.login-shell {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.login-primary {
  min-height: calc(100vh - 4rem);
  display: flex;
  align-items: center;
}

.login-grid {
  width: 100%;
  align-items: center;
}

.login-column {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-column > * {
  width: 100%;
}

.login-hero {
  min-height: 430px;
  display: flex;
  width: 100%;
  border-radius: 32px;
  background: linear-gradient(155deg, #126fed 0%, #0f58bf 62%, #f4bd1f 120%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.login-hero-content {
  width: 100%;
  position: relative;
  z-index: 2;
}

.login-hero-title {
  font-weight: 800;
}

.login-hero-copy {
  opacity: 0.92;
  font-weight: 400;
}

.login-hero-badge {
  width: 72px;
  height: 72px;
}

.login-highlight {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.login-highlight-icon,
.login-highlight-text {
  color: #fff;
}

.login-highlight-text {
  font-weight: 600;
}

.login-hero-orb-lg {
  position: absolute;
  inset: auto -90px -120px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.login-hero-orb-sm {
  position: absolute;
  inset: 40px auto auto -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.login-panel {
  width: 100%;
  border-radius: 32px;
  background: #fff;
  border: 1px solid rgba(18, 111, 237, 0.12);
}

.login-panel-main {
  min-height: 430px;
  max-width: 34rem;
}

.login-panel-copy {
  color: rgba(18, 111, 237, 0.72);
}

.login-panel-main .mud-stack {
  gap: 1.25rem;
}

.login-submit {
  min-height: 52px;
  font-weight: 700;
}

.login-forgot-link {
  align-self: flex-end;
  font-weight: 600;
}

.login-seed-panel {
  margin-top: 1rem;
  border-radius: 24px;
  background: #f7faff;
  border: 1px solid rgba(18, 111, 237, 0.14);
}

.login-dev-helper {
  box-shadow: 0 14px 32px rgba(18, 111, 237, 0.08);
}

.forgot-password-panel {
  max-width: 640px;
  margin: 0 auto;
}

.forgot-password-header {
  padding-top: 0.25rem;
}

.forgot-password-heading-row {
  min-height: 2.5rem;
}

.forgot-password-kicker {
  margin: 0;
  font-weight: 400;
  line-height: 1;
}

.forgot-password-backicon-link {
  display: inline-flex;
  text-decoration: none;
}

.forgot-password-backicon {
  width: 30px;
  height: 30px;
}

.login-dev-header {
  gap: 1rem;
}

.login-seed-title {
  font-weight: 700;
  color: #126fed;
}

.login-seed-copy,
.login-seed-meta {
  color: rgba(23, 49, 45, 0.72);
}

.login-seed-card {
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(18, 111, 237, 0.1);
}

.login-seed-username {
  font-weight: 700;
}

@media (max-width: 959.98px) {
  .login-shell {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .login-primary {
    min-height: auto;
  }
  .login-column {
    width: 100%;
  }
}
.app-shell {
  background: radial-gradient(circle at top left, rgba(18, 111, 237, 0.08), transparent 22%), linear-gradient(180deg, #f4f8fb 0%, #eef4f7 100%);
}
.app-shell.dark-mode {
  background: radial-gradient(circle at top left, rgba(88, 166, 255, 0.1), transparent 22%), linear-gradient(180deg, #08111f 0%, #0d1727 100%);
}

.layout-pending {
  visibility: hidden;
}

.topbar {
  padding: 0.5rem 1rem;
  gap: 0.75rem;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18, 111, 237, 0.18);
  min-height: 64px;
  background: #126fed;
  color: #ffffff;
  overflow: visible;
}

.app-shell.dark-mode .topbar {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: #126fed;
}

.topbar-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.topbar-logo {
  display: block;
  width: auto;
  height: 42px;
  max-width: 180px;
  object-fit: contain;
}

.topbar-theme-button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  margin-right: 0.5rem;
  color: #ffffff;
}

.topbar-import-button {
  height: 42px;
  min-width: 132px;
  padding: 0 1.25rem;
  margin-right: 1rem;
  border-color: rgba(255, 255, 255, 0.3) !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  text-transform: none;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.topbar-import-button.is-running {
  background: rgba(244, 189, 31, 0.2);
  border-color: rgba(244, 189, 31, 0.62) !important;
}

.topbar-import-button.is-running :deep(.mud-icon-root) {
  animation: topbar-import-spin 1.15s linear infinite;
}

.topbar-import-button :deep(.mud-button-label),
.topbar-import-button :deep(.mud-icon-root) {
  color: #ffffff !important;
}

@keyframes topbar-import-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.topbar :deep(.mud-icon-button),
.topbar :deep(.mud-icon-root),
.topbar :deep(.mud-button-root) {
  color: #ffffff !important;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 360px;
  margin-right: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 1;
}

.topbar-user-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.topbar-user--button {
  appearance: none;
  color: inherit;
  cursor: pointer;
  width: clamp(220px, 22vw, 360px);
  max-width: calc(100vw - 8rem);
  text-transform: none;
  letter-spacing: 0;
}
.topbar-user--button :deep(.mud-button-label) {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar-user-menu-icon {
  flex-shrink: 0;
  color: #ffffff !important;
}

.topbar-user-avatar {
  flex-shrink: 0;
}

.topbar-user-bullet {
  background: #f4bd1f !important;
  color: #17312d !important;
  font-weight: 700;
}

.app-shell.dark-mode .topbar-user {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.topbar-user-label {
  color: rgba(255, 255, 255, 0.82);
}

.topbar-user-name {
  color: #ffffff;
}

.app-shell.dark-mode .topbar-user-label {
  color: rgba(237, 244, 255, 0.72);
}

.app-shell.dark-mode .topbar-user-name {
  color: #f5f9ff;
}

.app-shell.dark-mode .topbar-theme-button {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #f5f9ff;
}

.app-shell.dark-mode .topbar-import-button {
  border-color: rgba(255, 255, 255, 0.24) !important;
  background: rgba(255, 255, 255, 0.11);
  color: #f5f9ff !important;
}

.topbar-logout-button {
  color: #ffffff !important;
}

.app-shell.dark-mode .topbar-logout-button {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #f5f9ff;
}

.topbar-user-copy {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  justify-content: center;
  text-align: left;
}

.topbar-user-label,
.topbar-user-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.topbar-user-menu-summary {
  min-width: 280px;
  max-width: 420px;
  padding: 0.75rem 1rem 0.55rem;
}

.topbar-user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  min-width: 300px;
  max-width: min(420px, 100vw - 1.5rem);
  overflow: hidden;
  border: 1px solid rgba(17, 48, 90, 0.12);
  border-radius: 14px;
  background: #ffffff;
  color: #126fed;
  box-shadow: 0 18px 46px rgba(9, 28, 58, 0.2);
  z-index: 1500;
}

.topbar-user-dropdown :deep(.mud-icon-root) {
  color: #126fed !important;
}

.topbar-user-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border: 0;
  background: transparent;
  color: #126fed;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.topbar-user-dropdown-item:hover {
  background: rgba(18, 111, 237, 0.08);
}

.app-shell.dark-mode .topbar-user-dropdown {
  border-color: rgba(125, 189, 255, 0.22);
  background: #132036;
  color: #f4f8ff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

.app-shell.dark-mode .topbar-user-dropdown-item,
.app-shell.dark-mode .topbar-user-dropdown :deep(.mud-icon-root) {
  color: #f4f8ff !important;
}

.app-shell.dark-mode .topbar-user-dropdown-item:hover {
  background: rgba(125, 189, 255, 0.16);
}

.app-main {
  min-height: calc(100vh - 64px);
}

.app-main-shell {
  position: relative;
  min-height: calc(100vh - 64px);
}

.desktop-drawer-shell {
  position: fixed;
  left: 0;
  top: 64px;
  width: 72px;
  height: calc(100vh - 64px);
  transition: width 0.32s ease, box-shadow 0.32s ease;
  z-index: 5;
  box-shadow: 10px 0 28px rgba(9, 28, 58, 0.08);
  background: #126fed;
}

.desktop-drawer-shell.expanded {
  width: 280px;
  box-shadow: 18px 0 40px rgba(9, 28, 58, 0.18);
}

.mobile-drawer {
  z-index: 1300;
}

.main-content-shell {
  width: 100%;
  padding: 2.1rem 1.5rem 2rem calc(72px + 1.5rem);
  transition: padding-left 0.32s ease;
}

.main-content-shell-expanded {
  padding-left: calc(280px + 1.5rem);
}

.scroll-top-button {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #126fed 0%, #0f58bf 100%);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(17, 48, 90, 0.18);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1200;
}

.scroll-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-button:hover {
  box-shadow: 0 18px 36px rgba(17, 48, 90, 0.24);
}

.scroll-top-button-icon {
  font-size: 1.1rem;
  font-weight: 700;
}

#blazor-error-ui {
  color-scheme: light only;
  background: #fff4e5;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}
#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

@media (max-width: 959.98px) {
  .topbar {
    padding: 0.45rem 0.85rem;
    min-height: 60px;
    gap: 0.5rem;
  }
  .topbar-logo {
    height: 34px;
    max-width: 142px;
  }
  .topbar-import-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0 0.65rem;
  }
  .topbar-import-button :deep(.mud-button-icon-start) {
    margin: 0;
  }
  .topbar-theme-button {
    width: 48px;
    height: 48px;
    margin-right: 0.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
  }
  .topbar-user--button {
    min-width: 66px;
    width: 66px;
    max-width: 66px;
    min-height: 48px;
    padding: 0.25rem 0.42rem 0.25rem 0.3rem;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.26);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  }
  .topbar-user--button :deep(.mud-button-label) {
    justify-content: center;
    gap: 0.18rem;
  }
  .topbar-user-copy {
    display: none;
  }
  .topbar-user-bullet {
    width: 38px !important;
    height: 38px !important;
    font-size: 1rem !important;
  }
  .topbar-user-menu-icon {
    width: 16px;
    min-width: 16px;
    margin-left: -0.1rem;
    opacity: 0.88;
  }
  .app-main {
    min-height: calc(100vh - 60px);
  }
  .app-main-shell {
    min-height: calc(100vh - 60px);
  }
  .desktop-drawer-shell {
    display: none;
  }
  .main-content-shell {
    padding: 1.35rem 1rem 2rem;
  }
}
.nav-shell {
  height: 100%;
  box-sizing: border-box;
  padding: 1rem 0.9rem;
  background: #126fed;
  color: #f5f9ff;
  overflow: hidden;
}

.dark-mode .nav-shell {
  background: #126fed;
}

.brand-block {
  width: 100%;
  box-sizing: border-box;
  padding: 1.25rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-overline,
.nav-section-title {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(245, 249, 255, 0.64);
}

.brand-copy,
.nav-helper-copy {
  color: rgba(245, 249, 255, 0.82);
}

.nav-section {
  margin-top: 0.5rem;
}

.nav-links {
  padding-top: 0.35rem;
}

.nav-helper {
  width: 100%;
  box-sizing: border-box;
  padding: 1.15rem 1.2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-shell .mud-navmenu {
  gap: 0.35rem;
}

.nav-submenu-group {
  width: 100%;
}

.nav-settings-group {
  width: 100%;
}

.nav-shell .mud-nav-group .mud-nav-link {
  color: #ffffff;
}

.nav-shell .mud-nav-link {
  min-height: 42px;
  margin: 0.2rem 0;
  padding: 0.7rem 0.85rem;
  border-radius: 16px;
  color: #ffffff;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-subitem {
  position: relative;
}

.nav-shell:not(.nav-shell-compact) .nav-subitem {
  margin-left: 1rem;
  width: calc(100% - 1rem);
  min-height: 38px;
  padding-left: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.nav-shell:not(.nav-shell-compact) .nav-subitem::before {
  content: "";
  position: absolute;
  left: -0.55rem;
  top: 50%;
  width: 0.8rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.nav-shell:not(.nav-shell-compact) .nav-subitem::after {
  content: "";
  position: absolute;
  left: -0.55rem;
  top: -0.7rem;
  width: 1px;
  height: calc(50% + 0.7rem);
  background: rgba(255, 255, 255, 0.18);
}

.nav-shell .mud-nav-link .mud-nav-link-text,
.nav-shell .mud-nav-link .mud-nav-link-icon,
.nav-shell .mud-nav-link .mud-icon-root {
  color: #ffffff !important;
}

.nav-shell .mud-nav-link .mud-icon-root {
  opacity: 1 !important;
}

.nav-shell .mud-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.04), 0 10px 22px rgba(7, 22, 45, 0.18);
  transform: translateX(2px);
}

.dark-mode .nav-shell .mud-nav-link:hover {
  background: rgba(125, 189, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(125, 189, 255, 0.14), 0 12px 24px rgba(2, 8, 18, 0.3);
}

.nav-shell .mud-nav-link.active,
.nav-shell .mud-nav-link.active:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  color: #ffffff;
  box-shadow: inset 3px 0 0 #f4bd1f, inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 26px rgba(7, 22, 45, 0.22);
}

.dark-mode .nav-shell .mud-nav-link.active,
.dark-mode .nav-shell .mud-nav-link.active:hover {
  background: linear-gradient(90deg, rgba(125, 189, 255, 0.18), rgba(125, 189, 255, 0.08));
  box-shadow: inset 3px 0 0 #f4bd1f, inset 0 0 0 1px rgba(125, 189, 255, 0.16), 0 12px 28px rgba(2, 8, 18, 0.34);
}

.nav-shell .mud-nav-link.active .mud-nav-link-text,
.nav-shell .mud-nav-link.active .mud-nav-link-icon,
.nav-shell .mud-nav-link.active .mud-icon-root {
  color: #ffffff !important;
  font-weight: 700;
}

.page-shell {
  padding: 0 1.5rem 2rem;
}

.page-shell--wide {
  width: 100%;
}

.page-shell--form {
  max-width: 70rem;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 1.25rem;
}

.page-header__card {
  padding: 2rem 2.25rem;
}

.page-header__content {
  max-width: 56rem;
}

.page-header__content .section-kicker {
  margin-bottom: 0.4rem;
}

.page-header__title {
  margin: 0;
}

.page-header__copy {
  max-width: 52rem;
}

@media (max-width: 959.98px) {
  .page-shell {
    padding: 0 1rem 1.5rem;
  }
  .page-header {
    margin-bottom: 1rem;
  }
  .page-header__card {
    padding: 1.5rem;
  }
}
.page-form-shell {
  width: 100%;
}

.page-form-card {
  padding: 2rem;
}

.page-form-frame {
  padding: 0;
}

.page-form-header {
  padding: 0.5rem 0 0.75rem;
}

.page-form-header-icon {
  flex-shrink: 0;
}

.page-form-alert {
  border-radius: 16px;
}

.page-form-section {
  padding: 1.75rem;
  border-radius: 22px;
  background: rgba(18, 111, 237, 0.03);
  border: 1px solid rgba(18, 111, 237, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.page-form-section-inner {
  padding-inline: 0.75rem;
}

.page-form-actions {
  gap: 1rem;
  padding-top: 0.75rem;
  padding-right: 0.25rem;
  padding-bottom: 0.25rem;
}

.page-form-actions--end {
  display: flex;
  justify-content: flex-end;
}

.page-form-back-row {
  display: flex;
  align-items: center;
  padding-inline: 0.25rem;
  margin-top: -0.75rem;
  margin-bottom: -0.5rem;
}

.page-back-button {
  min-height: 2.5rem;
  padding-inline: 0.7rem 1rem;
  border: 1px solid rgba(18, 111, 237, 0.18);
  border-radius: 999px;
  background: rgba(18, 111, 237, 0.09);
  color: #0d5fcf !important;
  box-shadow: 0 10px 24px rgba(18, 111, 237, 0.1);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.page-back-button:hover,
.page-back-button:focus-visible {
  border-color: rgba(18, 111, 237, 0.28);
  background: rgba(18, 111, 237, 0.15);
  box-shadow: 0 12px 28px rgba(18, 111, 237, 0.14);
}

.page-back-button .mud-icon-root {
  color: #0d5fcf;
  font-size: 1.15rem;
}

.dark-mode .page-back-button {
  border-color: rgba(125, 189, 255, 0.3);
  background: rgba(125, 189, 255, 0.14);
  color: #edf4ff !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.dark-mode .page-back-button:hover,
.dark-mode .page-back-button:focus-visible {
  border-color: rgba(125, 189, 255, 0.46);
  background: rgba(125, 189, 255, 0.22);
}

.dark-mode .page-back-button .mud-icon-root {
  color: #edf4ff;
}

.page-form-grid {
  margin: 0;
  width: 100%;
}

.page-form-grid .mud-grid-item {
  padding-top: 1rem;
}

.page-form-grid .mud-input-control {
  padding-inline: 0.5rem;
}

.page-form-card .mud-input-control {
  margin-top: 0;
}

.contract-status-editor {
  position: relative;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(18, 111, 237, 0.14);
  background: rgba(18, 111, 237, 0.045);
}

.contract-status-reason-popover {
  width: 100%;
  max-width: none;
  margin-top: 0.65rem;
  padding: 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(18, 111, 237, 0.22);
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(18, 35, 58, 0.14);
}

.dark-mode .contract-status-editor {
  border-color: rgba(125, 189, 255, 0.2);
  background: rgba(125, 189, 255, 0.08);
}

.dark-mode .contract-status-reason-popover {
  border-color: rgba(125, 189, 255, 0.32);
  background: #132036;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.contract-automation-section {
  margin-top: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(18, 111, 237, 0.14);
  border-radius: 8px;
  background: rgba(18, 111, 237, 0.045);
}

.dark-mode .contract-automation-section {
  border-color: rgba(125, 189, 255, 0.22);
  background: rgba(125, 189, 255, 0.08);
}

@media (max-width: 959.98px) {
  .page-form-shell {
    padding: 0 1rem 1rem;
  }
  .page-form-card {
    padding: 1rem;
  }
  .page-form-section {
    padding: 1rem;
  }
  .page-form-section-inner {
    padding-inline: 0;
  }
}
.dashboard-shell {
  gap: 1.75rem;
}

.dashboard-grid {
  margin-top: 0.25rem;
}

.section-kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mud-palette-primary);
}

.hero-banner {
  padding: 1rem 2rem;
  border-radius: 28px;
  background: radial-gradient(circle at top right, rgba(244, 189, 31, 0.18), transparent 22%), radial-gradient(circle at bottom left, rgba(18, 111, 237, 0.12), transparent 30%), linear-gradient(135deg, #ffffff 0%, #f6fbff 100%);
  border: 1px solid rgba(18, 111, 237, 0.1);
  box-shadow: 0 14px 32px rgba(17, 48, 90, 0.06);
}

.hero-banner__grid {
  align-items: center;
}

.dark-mode .hero-banner {
  background: radial-gradient(circle at top right, rgba(244, 189, 31, 0.16), transparent 24%), radial-gradient(circle at bottom left, rgba(88, 166, 255, 0.16), transparent 34%), linear-gradient(135deg, #101b2d 0%, #122238 100%);
  border-color: rgba(125, 189, 255, 0.18);
  box-shadow: 0 18px 36px rgba(3, 8, 20, 0.34);
}

.dark-mode .hero-action-button--danger {
  background: rgba(255, 113, 104, 0.1);
  border-color: rgba(255, 113, 104, 0.46) !important;
  color: #ffb0aa !important;
}

.dark-mode .hero-action-button--danger .mud-button-label,
.dark-mode .hero-action-button--danger .mud-icon-root {
  color: #ffb0aa !important;
}

.dark-mode .hero-refresh-button,
.dark-mode .hero-updated-chip {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(125, 189, 255, 0.24) !important;
}

.hero-copy {
  max-width: 780px;
}

.hero-actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.hero-action-button {
  min-width: 0;
  min-height: 48px;
  padding: 0.55rem 1rem;
  border-radius: 16px !important;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 800;
  line-height: 1.15;
  box-shadow: 0 10px 22px rgba(17, 48, 90, 0.12);
}

.hero-action-button--primary {
  min-width: 150px;
}

.hero-action-button--danger {
  min-width: 138px;
  background: rgba(255, 59, 48, 0.04);
  border-color: rgba(255, 59, 48, 0.42) !important;
  color: #ff3b30 !important;
  box-shadow: none;
}

.hero-action-button--danger .mud-button-label,
.hero-action-button--danger .mud-icon-root {
  color: #ff3b30 !important;
}

.hero-refresh-button {
  width: 48px;
  height: 48px;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(18, 111, 237, 0.38) !important;
  box-shadow: 0 10px 22px rgba(17, 48, 90, 0.1);
}

.hero-updated-chip {
  min-height: 32px;
  border-radius: 999px !important;
  background: rgba(18, 111, 237, 0.04) !important;
}

.hero-updated-chip .mud-chip-content {
  font-size: 0.78rem;
  white-space: nowrap;
}

.kpi-card {
  height: 100%;
  padding: 1.6rem 1.7rem;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(18, 111, 237, 0.08);
  box-shadow: 0 14px 32px rgba(17, 48, 90, 0.06);
}

.dark-mode .kpi-card {
  background: linear-gradient(180deg, #0f1a2c 0%, #122238 100%);
  border-color: rgba(125, 189, 255, 0.14);
  box-shadow: 0 18px 36px rgba(3, 8, 20, 0.3);
}

.kpi-card-highlight {
  background: linear-gradient(135deg, rgba(18, 111, 237, 0.12), rgba(244, 189, 31, 0.14));
}

.dark-mode .kpi-card-highlight {
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.18), rgba(244, 189, 31, 0.16));
}

.kpi-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.dashboard-card {
  height: 100%;
  padding: 1.85rem;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(18, 111, 237, 0.08);
  box-shadow: 0 14px 32px rgba(17, 48, 90, 0.06);
}

.dark-mode .dashboard-card {
  background: linear-gradient(180deg, #0f1a2c 0%, #122238 100%);
  border-color: rgba(125, 189, 255, 0.14);
  box-shadow: 0 18px 36px rgba(3, 8, 20, 0.3);
}

.dashboard-card-tall {
  min-height: 100%;
}

.dashboard-card-accent {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
}

.dark-mode .dashboard-card-accent {
  background: linear-gradient(180deg, #122238 0%, #162842 100%);
}

.mini-card {
  height: 100%;
  padding: 1.2rem 1.25rem;
  border-radius: 20px;
  background: #f8fbff;
  border: 1px solid rgba(18, 111, 237, 0.08);
}

.dark-mode .mini-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(125, 189, 255, 0.12);
}

.dark-mode .kpi-icon {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.dark-mode .dashboard-legend strong,
.dark-mode .section-kicker {
  color: #7dbdff;
}

.quick-action-button {
  width: 100%;
  min-height: 50px;
}

.dashboard-signal-panel {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.25rem;
  align-items: center;
}

.dashboard-signal-orb {
  min-height: 180px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(244, 189, 31, 0.28), transparent 34%), radial-gradient(circle at bottom, rgba(18, 111, 237, 0.2), transparent 40%), linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid rgba(18, 111, 237, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.dashboard-signal-orb__value {
  font-size: 3rem;
  line-height: 1;
  font-weight: 800;
  color: #126fed;
}

.dashboard-signal-orb__label {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(18, 111, 237, 0.58);
}

.dashboard-signal-metrics {
  min-width: 0;
}

.signal-metric {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(18, 111, 237, 0.08);
}

.signal-metric__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.signal-metric__bar {
  margin-top: 0.8rem;
  height: 8px;
  border-radius: 999px;
  background: rgba(18, 111, 237, 0.08);
  overflow: hidden;
}

.signal-metric__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.signal-metric--warning .signal-metric__bar span {
  background: linear-gradient(90deg, #ffcb4a 0%, #f4bd1f 100%);
}

.signal-metric--error .signal-metric__bar span {
  background: linear-gradient(90deg, #ff8b7b 0%, #ef5350 100%);
}

.signal-metric--success .signal-metric__bar span {
  background: linear-gradient(90deg, #5ed39d 0%, #26a269 100%);
}

.dashboard-note-card {
  height: 100%;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(18, 111, 237, 0.08);
}

.analytics-table {
  display: grid;
  gap: 0.5rem;
}

.analytics-table__header,
.analytics-table__row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 72px 72px 72px 96px;
  gap: 0.75rem;
  align-items: center;
}

.analytics-table__header {
  color: rgba(18, 111, 237, 0.72);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.analytics-table__row {
  padding: 0.75rem 0;
  border-top: 1px solid rgba(18, 111, 237, 0.08);
}

.dark-mode .dashboard-signal-orb {
  background: radial-gradient(circle at top, rgba(244, 189, 31, 0.16), transparent 34%), radial-gradient(circle at bottom, rgba(88, 166, 255, 0.18), transparent 42%), linear-gradient(180deg, rgba(15, 26, 44, 0.92) 0%, rgba(18, 34, 56, 0.98) 100%);
  border-color: rgba(125, 189, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(125, 189, 255, 0.08);
}

.dark-mode .dashboard-signal-orb__value {
  color: #7dbdff;
}

.dark-mode .dashboard-signal-orb__label {
  color: rgba(237, 244, 255, 0.62);
}

.dark-mode .signal-metric,
.dark-mode .dashboard-note-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(125, 189, 255, 0.12);
}

.dark-mode .analytics-table__row {
  border-top-color: rgba(125, 189, 255, 0.12);
}

.dashboard-chart-card {
  min-height: 420px;
}

.dashboard-legend strong {
  color: #126fed;
}

.status-donut-panel {
  padding: 1.2rem 1rem 1rem;
  border-radius: 24px;
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
  border: 1px solid rgba(18, 111, 237, 0.08);
  color: #126fed;
}

.status-donut-panel :deep(.mud-chart) {
  margin-inline: auto;
}

.status-donut-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.35rem;
}

.status-donut-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: rgba(18, 111, 237, 0.88);
}

.status-donut-legend__item strong {
  color: #126fed;
  font-weight: 700;
}

.status-donut-legend__dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.dark-mode .status-donut-panel {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(125, 189, 255, 0.16);
  color: #edf4ff;
}

.dark-mode .status-donut-legend__item {
  color: rgba(237, 244, 255, 0.86);
}

.dark-mode .status-donut-legend__item strong {
  color: #ffffff;
}

.status-page-shell {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-page-card {
  width: 100%;
  max-width: 620px;
  text-align: center;
}

@media (max-width: 1100px) {
  .hero-banner {
    padding: 1.75rem;
  }
  .hero-actions {
    justify-content: flex-start;
    gap: 0.55rem;
  }
  .hero-action-button {
    flex: 1 1 156px;
    min-width: 0;
  }
  .hero-refresh-button {
    flex: 0 0 48px;
  }
  .hero-updated-chip {
    flex: 1 1 100%;
    justify-content: center;
  }
  .dashboard-signal-panel {
    grid-template-columns: 1fr;
  }
  .dashboard-signal-orb {
    min-height: 150px;
  }
  .status-donut-panel {
    padding-inline: 0.75rem;
  }
  .status-donut-legend {
    justify-content: flex-start;
  }
  .analytics-table__header {
    display: none;
  }
  .analytics-table__row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 599.98px) {
  .hero-banner {
    padding: 1.45rem;
    border-radius: 24px;
  }
  .hero-actions {
    margin-top: 0.35rem;
  }
  .hero-action-button {
    flex-basis: calc(100% - 52px);
    min-height: 44px;
  }
  .hero-refresh-button {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 14px !important;
  }
  .hero-updated-chip {
    width: 100%;
  }
}
.notes-panel {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.notes-panel--bounded {
  max-height: 550px;
  overflow: hidden;
}

.notes-panel__header,
.notes-panel__composer,
.notes-panel__list {
  width: 100%;
}

.notes-panel__item {
  padding: 0.78rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(18, 111, 237, 0.1);
  background: rgba(255, 255, 255, 0.74);
}

.notes-panel__text {
  font-size: 0.98rem;
  line-height: 1.42;
  color: #126fed;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.notes-panel__meta {
  font-size: 0.82rem;
  line-height: 1.25;
}

.dark-mode .notes-panel__item {
  border-color: rgba(125, 189, 255, 0.28);
  background: rgba(19, 32, 54, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dark-mode .notes-panel__text {
  color: #f4f8ff;
}

.dark-mode .notes-panel__meta {
  color: rgba(237, 244, 255, 0.72);
}

.notes-dialog__loading {
  min-height: 12rem;
  display: grid;
  place-items: center;
  background: transparent;
}

.notes-dialog__body {
  max-height: 550px;
  overflow: hidden;
}

.notes-panel__list--scroll,
.contract-scroll-frame {
  max-height: 550px;
  overflow-y: auto;
  padding-right: 0.35rem;
  scrollbar-gutter: stable;
}

.notes-panel__list--scroll {
  min-height: 0;
  gap: 0.65rem !important;
}

.notes-panel--bounded .notes-panel__list--scroll {
  max-height: none;
  flex: 1 1 auto;
}

.contract-status-history-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contract-status-history-panel__header {
  width: 100%;
}

.contract-status-history-dialog__body {
  max-height: 550px;
  overflow: hidden;
}

.notes-panel__list--scroll::-webkit-scrollbar,
.contract-scroll-frame::-webkit-scrollbar {
  width: 0.5rem;
}

.notes-panel__list--scroll::-webkit-scrollbar-thumb,
.contract-scroll-frame::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(18, 111, 237, 0.28);
}

.dark-mode .notes-panel__list--scroll::-webkit-scrollbar-thumb,
.dark-mode .contract-scroll-frame::-webkit-scrollbar-thumb {
  background: rgba(125, 189, 255, 0.34);
}

.customer-contracts-dialog__table {
  max-height: 24rem;
  overflow: auto;
}

.contract-type-dialog__option {
  height: 100%;
}

.customer-quick-dialog__subtitle {
  color: var(--mud-palette-text-secondary);
}

.customer-quick-dialog__body {
  display: grid;
  gap: 0.85rem;
}

.customer-quick-dialog__summary,
.customer-quick-dialog__info-card {
  border-radius: 8px;
  border: 1px solid var(--mud-palette-lines-default);
  background: var(--mud-palette-surface);
}

.customer-quick-dialog__summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
}

.customer-quick-dialog__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.customer-quick-dialog__info-card {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.85rem;
}

.customer-quick-dialog__info-card .mud-icon-root {
  color: var(--mud-palette-primary);
  margin-top: 0.1rem;
}

.customer-quick-dialog__label {
  color: var(--mud-palette-text-secondary);
  font-weight: 700;
  letter-spacing: 0;
}

.customer-quick-dialog__name,
.customer-quick-dialog__value {
  color: var(--mud-palette-text-primary);
  overflow-wrap: anywhere;
}

.customer-quick-dialog__action {
  min-height: 42px;
}

.dark-mode .customer-quick-dialog__subtitle {
  color: rgba(237, 244, 255, 0.84);
}

.dark-mode .customer-quick-dialog__summary,
.dark-mode .customer-quick-dialog__info-card {
  border-color: rgba(125, 189, 255, 0.32);
  background: var(--mud-palette-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dark-mode .customer-quick-dialog__summary .mud-typography,
.dark-mode .customer-quick-dialog__info-card .mud-typography {
  color: #f4f8ff;
}

.dark-mode .customer-quick-dialog__label {
  color: rgba(237, 244, 255, 0.74);
}

.dark-mode .customer-quick-dialog__info-card .mud-icon-root {
  color: #7dbdff;
}

.dark-mode .customer-quick-dialog__action {
  background: #7dbdff !important;
  color: #071426 !important;
}

.dark-mode .customer-quick-dialog__action .mud-button-label,
.dark-mode .customer-quick-dialog__action .mud-icon-root {
  color: #071426 !important;
}

@media (max-width: 599.98px) {
  .customer-quick-dialog__grid {
    grid-template-columns: 1fr;
  }
}
.users-hero {
  padding-bottom: 1.85rem;
}

.users-hero-summary {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(18, 111, 237, 0.06);
  border: 1px solid rgba(18, 111, 237, 0.08);
}

.dark-mode .users-hero-summary {
  background: rgba(88, 166, 255, 0.1);
  border-color: rgba(125, 189, 255, 0.16);
}

.users-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.users-quick-filters__chip {
  cursor: pointer;
  border-radius: 999px;
}

.users-quick-filters__chip :deep(.mud-chip) {
  border-radius: 999px;
  padding-inline: 0.9rem;
}

.users-quick-filters__chip :deep(.mud-chip-content) {
  font-weight: 600;
}

.users-actions-cell {
  min-width: 7.5rem;
}

.users-current-chip {
  font-weight: 700;
}

.users-row-current {
  background: rgba(18, 111, 237, 0.04);
}

.users-row-current:hover {
  background: rgba(18, 111, 237, 0.08);
}

.dark-mode .users-row-current {
  background: rgba(88, 166, 255, 0.08);
}

.dark-mode .users-row-current:hover {
  background: rgba(88, 166, 255, 0.14);
}

.user-detail-grid {
  margin: 0;
}

.user-detail-item {
  height: 100%;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(18, 111, 237, 0.04);
  border: 1px solid rgba(18, 111, 237, 0.08);
}

.user-detail-label {
  display: block;
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(18, 111, 237, 0.56);
}

.user-detail-value {
  font-weight: 600;
}

.dark-mode .user-detail-item {
  background: rgba(88, 166, 255, 0.08);
  border-color: rgba(125, 189, 255, 0.14);
}

.dark-mode .user-detail-label {
  color: rgba(237, 244, 255, 0.62);
}

@media (max-width: 959.98px) {
  .users-quick-filters {
    width: 100%;
  }
}
.traceability-hero-actions {
  width: 100%;
}

.traceability-refresh-button,
.traceability-filter-button {
  min-height: 44px;
  border-radius: 999px !important;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 800;
}

.traceability-refresh-button {
  padding-inline: 1.25rem;
  background: rgba(18, 111, 237, 0.07) !important;
  border-color: rgba(18, 111, 237, 0.42) !important;
  box-shadow: 0 10px 22px rgba(17, 48, 90, 0.08);
}

.traceability-filter-button {
  box-shadow: 0 10px 22px rgba(18, 111, 237, 0.22);
}

.dark-mode .traceability-refresh-button {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(125, 189, 255, 0.28) !important;
}

.ranking-card__row {
  gap: 1rem;
  min-height: 2rem;
}

.ranking-card__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-card__badge {
  flex: 0 0 auto;
  margin-left: auto;
}

.commercial-snapshot-dialog {
  color: var(--mud-palette-text-primary);
}

.commercial-snapshot-card,
.commercial-snapshot-metric {
  background: var(--mud-palette-surface);
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: 16px;
  color: var(--mud-palette-text-primary);
  box-shadow: none;
}

.commercial-snapshot-card {
  padding: 1.35rem;
}

.commercial-snapshot-card--hero {
  min-height: 144px;
}

.commercial-snapshot-kicker {
  color: var(--mud-palette-primary);
  letter-spacing: 0.06em;
}

.commercial-snapshot-muted {
  color: var(--mud-palette-text-secondary);
}

.commercial-snapshot-icon,
.commercial-snapshot-metric__icon {
  flex: 0 0 auto;
}

.commercial-snapshot-metric {
  min-height: 96px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.commercial-snapshot-value {
  margin-top: 0.35rem;
}

.commercial-snapshot-metric__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mud-palette-primary-text);
  background: var(--mud-palette-primary);
}

.commercial-snapshot-ranking {
  height: 100%;
}

.commercial-snapshot-ranking__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 32px;
}

.commercial-snapshot-ranking__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commercial-snapshot-ranking__badge {
  justify-self: end;
}

@media (max-width: 959.98px) {
  .traceability-hero-actions {
    justify-content: flex-start !important;
    margin-top: 0.45rem;
  }
  .traceability-refresh-button {
    min-width: 144px;
  }
}
@media (max-width: 599.98px) {
  .traceability-hero-actions {
    justify-content: stretch !important;
  }
  .traceability-refresh-button {
    width: 100%;
  }
  .traceability-filter-button {
    min-height: 46px;
  }
}
.contracts-hero {
  padding-bottom: 1.85rem;
}

.contracts-table .mud-table-root {
  min-width: 1280px;
}

.contracts-table .mud-table-cell {
  padding-inline: 0.55rem;
}

.contracts-table .mud-icon-button {
  width: 2rem;
  height: 2rem;
  padding: 0.25rem;
}

.contracts-table .mud-icon-button .mud-icon-root {
  font-size: 1.2rem;
}

.contracts-col-actions {
  width: 8.25rem;
  min-width: 8.25rem;
}

.contracts-col-managed {
  width: 14.5rem;
  min-width: 14.5rem;
}

.contracts-col-customer {
  width: 20rem;
  min-width: 20rem;
}

.contracts-col-document {
  width: 9rem;
  min-width: 9rem;
}

.contracts-col-subtype {
  width: 6.25rem;
  min-width: 6.25rem;
  text-align: center;
  overflow: visible;
  text-overflow: clip;
}

.contracts-col-subtype .mud-table-sort-label,
.contracts-col-subtype .mud-chip {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.contracts-col-cups {
  width: 15rem;
  min-width: 15rem;
}

.contracts-col-location {
  width: 9rem;
  min-width: 9rem;
}

.contracts-col-origin {
  width: 10.5rem;
  min-width: 10.5rem;
}

.contracts-col-status {
  width: 12rem;
  min-width: 12rem;
}

.contracts-col-date {
  width: 6.5rem;
  min-width: 6.5rem;
}

.contracts-col-updated {
  width: 12rem;
  min-width: 12rem;
}

.contracts-col-customer .mud-link {
  display: inline;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  line-height: 1.3;
}

.contracts-cups-value {
  font-family: "Roboto Mono", "Consolas", monospace;
  font-size: 0.86rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.contracts-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: 100%;
  padding: 0.25rem 0;
}

.contracts-active-filters .mud-chip {
  cursor: pointer;
}

.contracts-filter-panel {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(18, 111, 237, 0.12);
  background: rgba(18, 111, 237, 0.035);
}

.contracts-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contracts-quick-filters__chip {
  min-height: 30px;
}

.contracts-actions-cell {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 7.75rem;
}

.contracts-actions-cell__primary {
  flex: 0 0 auto;
}

.contracts-actions-cell__divider {
  align-self: stretch;
  min-height: 1.5rem;
  margin-inline: 0.15rem;
}

.contracts-actions-cell__edit {
  flex: 0 0 auto;
}

.contracts-managed-cell {
  min-width: 0;
}

.contracts-managed-cell .mud-typography {
  max-width: 12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contracts-status-cell {
  min-width: 0;
}

.contracts-substatus {
  max-width: 100%;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  line-height: 1.25;
}

@media (max-width: 959.98px) {
  .contracts-filter-panel {
    padding: 0.75rem;
  }
  .contracts-table .mud-table-root {
    min-width: 0;
  }
  .contracts-col-actions,
  .contracts-col-managed,
  .contracts-col-customer,
  .contracts-col-document,
  .contracts-col-subtype,
  .contracts-col-cups,
  .contracts-col-location,
  .contracts-col-origin,
  .contracts-col-status,
  .contracts-col-date,
  .contracts-col-updated {
    width: auto;
    min-width: 0;
  }
}
.dark-mode .contracts-filter-panel {
  border-color: rgba(125, 189, 255, 0.18);
  background: rgba(125, 189, 255, 0.07);
}

.imports-page .import-vertical-card,
.imports-page .import-upload-card,
.imports-page .import-empty-state {
  min-height: 100%;
}
.imports-page .import-vertical-card {
  border: 1px solid rgba(18, 111, 237, 0.08);
}
.imports-page .import-vertical-card--active {
  border-color: rgba(244, 189, 31, 0.32);
}
.imports-page .import-vertical-card--disabled {
  opacity: 0.72;
}
.imports-page .import-file-picker {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px dashed rgba(18, 111, 237, 0.28);
  border-radius: 8px;
  background: rgba(18, 111, 237, 0.035);
}
.imports-page .import-dropzone {
  position: relative;
  display: grid;
  min-height: 11rem;
  place-items: center;
  padding: 1.25rem;
  overflow: hidden;
  border: 1px dashed rgba(18, 111, 237, 0.34);
  border-radius: 8px;
  background: rgba(18, 111, 237, 0.035);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.imports-page .import-dropzone:hover,
.imports-page .import-dropzone:focus-within {
  border-color: rgba(18, 111, 237, 0.68);
  background: rgba(18, 111, 237, 0.065);
  box-shadow: 0 0 0 3px rgba(18, 111, 237, 0.08);
}
.imports-page .import-dropzone--selected {
  border-color: rgba(244, 189, 31, 0.64);
  background: rgba(244, 189, 31, 0.075);
}
.imports-page .import-dropzone--dragging {
  border-color: rgba(18, 111, 237, 0.78);
  background: rgba(18, 111, 237, 0.095);
  box-shadow: 0 0 0 4px rgba(18, 111, 237, 0.1);
}
.imports-page .import-dropzone--selected .import-dropzone__content {
  color: #126fed;
}
.imports-page .import-dropzone__input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  font-size: 10rem;
  cursor: pointer;
}
.imports-page .import-dropzone__content {
  pointer-events: none;
  text-align: center;
}
.imports-page .import-dropzone__content .mud-icon-root {
  font-size: clamp(2.25rem, 4vw, 3rem);
}
.imports-page .import-template-download {
  width: fit-content;
}
.imports-page .import-metric {
  padding: 1rem;
  min-height: 6rem;
}
.imports-page .import-empty-state {
  display: grid;
  min-height: 18rem;
  place-items: center;
}
.imports-page .import-empty-state .mud-icon-root {
  font-size: clamp(2.5rem, 5vw, 3.25rem);
}
.imports-page .import-result-card {
  overflow: hidden;
}
.imports-page .import-result-table .mud-table-container {
  overflow-x: auto;
}
.imports-page .import-result-table .mud-table-root {
  min-width: 760px;
  table-layout: auto;
}
.imports-page .import-result-table .mud-table-cell {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  vertical-align: middle;
}
.imports-page .import-result-table .mud-table-cell .mud-typography,
.imports-page .import-result-table .mud-table-cell .mud-link,
.imports-page .import-result-table .mud-table-cell .mud-chip-content,
.imports-page .import-result-table .mud-table-cell .mud-table-sort-label {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}
.imports-page .import-col-row {
  width: 4.25rem;
}
.imports-page .import-col-cups {
  width: 9.5rem;
}
.imports-page .import-col-dni,
.imports-page .import-col-status {
  width: 8.75rem;
}
.imports-page .import-col-result {
  width: 9.5rem;
}
.imports-page .import-col-contract {
  width: 6rem;
}
.imports-page .import-result-chip {
  max-width: none;
  white-space: nowrap;
}
.imports-page .import-result-chip .mud-chip-content {
  white-space: nowrap;
}
.imports-page .import-result-message {
  display: block;
  min-width: 14rem;
  max-width: 30rem;
  line-height: 1.35;
}

.dark-mode .imports-page .import-file-picker {
  border-color: rgba(125, 189, 255, 0.26);
  background: rgba(125, 189, 255, 0.08);
}
.dark-mode .imports-page .import-dropzone {
  border-color: rgba(125, 189, 255, 0.28);
  background: rgba(125, 189, 255, 0.08);
}
.dark-mode .imports-page .import-dropzone:hover,
.dark-mode .imports-page .import-dropzone:focus-within {
  border-color: rgba(125, 189, 255, 0.58);
  background: rgba(125, 189, 255, 0.12);
}
.dark-mode .imports-page .import-dropzone--dragging {
  border-color: rgba(125, 189, 255, 0.68);
  background: rgba(125, 189, 255, 0.15);
}
.dark-mode .imports-page .import-dropzone--selected .import-dropzone__content {
  color: #edf4ff;
}
.dark-mode .imports-page .import-vertical-card {
  border-color: rgba(125, 189, 255, 0.16);
}

@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope/Manrope-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top left, rgba(18, 111, 237, 0.08), transparent 28%), linear-gradient(180deg, #ffffff 0%, #eef3f2 100%);
}

body {
  color: #126fed;
}

a {
  color: inherit;
}

#app,
main {
  min-height: 100vh;
}

.text-secondary {
  color: rgba(18, 111, 237, 0.72);
}

.dark-mode {
  color: #edf4ff;
}

.dark-mode .text-secondary {
  color: rgba(237, 244, 255, 0.76);
}

.dark-mode .mud-typography,
.dark-mode .mud-button-label,
.dark-mode .mud-chip-content,
.dark-mode .mud-input-label,
.dark-mode .mud-input-slot,
.dark-mode .mud-select-input,
.dark-mode .mud-table-cell,
.dark-mode .mud-table-sort-label,
.dark-mode .mud-list-item-text,
.dark-mode .mud-nav-link-text {
  color: #edf4ff;
}

.dark-mode .mud-input-helper-text,
.dark-mode .mud-input-adornment,
.dark-mode .mud-table-cell .text-secondary {
  color: rgba(237, 244, 255, 0.68);
}

.mud-table-sort-label {
  opacity: 1;
}

.mud-table-sort-label-icon {
  opacity: 0.65 !important;
}

.mud-table-sort-label.mud-active .mud-table-sort-label-icon {
  opacity: 1 !important;
}

.dark-mode .mud-table-sort-label-icon {
  opacity: 0.75 !important;
}

.list-table-toolbar {
  gap: 1rem;
}

.list-filter-bar {
  align-items: stretch;
}

.list-search {
  flex: 1 1 22rem;
  min-width: 18rem;
  width: 100%;
}

.list-table-card {
  height: auto;
  overflow: hidden;
}

.list-table-card > .mud-stack {
  height: auto;
}

.list-table-card .list-table {
  margin-top: 0;
}

.dark-mode .list-table-card {
  background: linear-gradient(180deg, #0f1a2c 0%, #122238 100%);
  border: 1px solid rgba(125, 189, 255, 0.14);
  box-shadow: 0 18px 36px rgba(3, 8, 20, 0.3);
}

.list-table .mud-table-container {
  border-radius: 18px;
  height: auto !important;
  max-height: none !important;
  overflow-x: auto;
  overflow-y: visible;
}

.list-table .mud-table-root {
  height: auto !important;
}

.list-row--highlight {
  animation: list-row-highlight 3.8s ease-out both;
}

@keyframes list-row-highlight {
  0% {
    background: rgba(244, 189, 31, 0.24);
  }
  100% {
    background: transparent;
  }
}
@media (max-width: 959.98px) {
  .list-search {
    flex-basis: 100%;
    min-width: 100%;
  }
}
@media (min-width: 600px) {
  .mud-table-root {
    table-layout: fixed;
    width: 100%;
  }
  .mud-table-cell {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
  }
  .mud-table-cell > * {
    min-width: 0;
    max-width: 100%;
  }
  .mud-table-cell .mud-typography,
  .mud-table-cell .mud-link,
  .mud-table-cell a:not(.mud-button-root),
  .mud-table-cell .mud-table-sort-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mud-table-cell .mud-stack {
    min-width: 0;
    max-width: 100%;
  }
  .mud-table-cell .mud-chip {
    max-width: 100%;
  }
  .mud-table-cell .mud-chip-content {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
.mud-popover .mud-list-item-text,
.mud-popover .mud-typography {
  font-size: 1rem;
  line-height: 1.45;
}

.mud-popover .mud-list-item {
  min-height: 42px;
}

.dark-mode .mud-popover .mud-list {
  background: #132036;
  color: #f4f8ff;
  border: 1px solid rgba(125, 189, 255, 0.22);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

.dark-mode .mud-popover .mud-list-item:hover,
.dark-mode .mud-popover .mud-list-item.mud-selected-item {
  background: rgba(125, 189, 255, 0.16);
}

.dark-mode .mud-popover .mud-list-item-text,
.dark-mode .mud-popover .mud-typography {
  color: #f4f8ff;
}

.table-action--view .mud-icon-root {
  color: #126fed !important;
}

.table-action--edit .mud-icon-root {
  color: #f28c28 !important;
}

.table-action--email .mud-icon-root {
  color: #00a9c8 !important;
}

.table-action--history .mud-icon-root {
  color: #9dbb1b !important;
}

.topbar-user-menu-summary {
  min-width: 220px;
  padding: 0.75rem 1rem 0.55rem;
}

.contract-type-dialog__button {
  min-height: 34px;
  padding-block: 0.35rem;
}

.account-summary-card {
  min-height: 100%;
}

.account-avatar {
  width: 72px !important;
  height: 72px !important;
  font-size: 1.75rem !important;
  font-weight: 800;
}

.contract-inline-switches {
  padding-top: 0.25rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}
