@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* Unified USER theme (simple, consistent, calm) */
:root {
  /* Single UI typeface: only size, weight, and color should differ in components */
  --u-font-family: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --u-bg: #f4f7fb;
  --u-surface: #ffffff;
  --u-surface-soft: #f8fbff;
  --u-border: #d7e3f0;
  --u-border-strong: #c5d6ea;
  --u-text: #152235;
  --u-text-muted: #3d4f63;
  --u-accent: #1666d9;
  --u-accent-strong: #0f4fa9;
  --u-success: #0f8d5b;
  --u-warning: #b77607;
  --u-danger: #c43f3f;
  --u-radius: 12px;
  --u-radius-lg: 16px;

}

body.ff-user-theme {
  /* Compatibility tokens for legacy per-page styles */
  --ff-primary: var(--u-accent);
  --ff-accent: #3f84e5;
  --ff-bg: var(--u-bg);
  --ff-bg-light: #edf4ff;
  --ff-surface: #ffffff;
  --ff-surface-hover: #f2f7ff;
  --ff-text: var(--u-text);
  --ff-text-secondary: var(--u-text-muted);
  --ff-text-muted: #3d4f63;
  --ff-border: #d7e3f0;
  --ff-border-light: #e5edf7;
  --ff-success: var(--u-success);
  --ff-warning: var(--u-warning);
  --ff-danger: var(--u-danger);
  --ff-radius-sm: 8px;
  --ff-radius-md: 12px;
  --ff-radius-lg: 16px;
  --ff-radius-xl: 20px;

  --ob-bg: var(--u-bg);
  --ob-panel: #ffffff;
  --ob-panel-soft: #f8fafd;
  --ob-line: #dbe5f1;
  --ob-line-strong: #c8d6e7;
  --ob-text: #172033;
  --ob-muted: #66748a;
  --ob-blue: #3368d9;
  --ob-blue-soft: #edf4ff;
  --ob-green: #1f9d6e;
  --ob-green-soft: #edfdf5;

  font-family: var(--u-font-family) !important;
  background: radial-gradient(circle at 0% 0%, #eef4ff 0%, transparent 32%),
              radial-gradient(circle at 100% 0%, #eef7ff 0%, transparent 30%),
              var(--u-bg) !important;
  color: var(--u-text) !important;
  line-height: 1.5;
}

body.ff-user-theme h1,
body.ff-user-theme h2,
body.ff-user-theme h3,
body.ff-user-theme h4,
body.ff-user-theme h5,
body.ff-user-theme h6 {
  color: var(--u-text) !important;
  letter-spacing: 0.01em;
}

body.ff-user-theme .muted,
body.ff-user-theme .text-muted,
body.ff-user-theme .ff-muted,
body.ff-user-theme .ff-text-muted {
  color: var(--u-text-muted);
}

body.ff-user-theme .ff-text-small,
body.ff-user-theme .ff-text-tiny {
  color: #334155 !important;
  font-weight: 500 !important;
}

body.ff-user-theme .ff-stats-label {
  color: #334155 !important;
  font-weight: 600 !important;
}

body.ff-user-theme a {
  color: var(--u-accent);
}

body.ff-user-theme a:hover {
  color: var(--u-accent-strong);
}

body.ff-user-theme .ff-nav {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid var(--u-border) !important;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.ff-user-theme .ff-nav__logo {
  background: linear-gradient(145deg, #edf4ff, #f9fbff) !important;
  border-color: var(--u-border) !important;
}

body.ff-user-theme .ff-nav__link {
  border-radius: 10px !important;
}

body.ff-user-theme .ff-nav__link--active,
body.ff-user-theme .ff-nav__link.is-active,
body.ff-user-theme .ff-nav__link.active {
  background: #e9f1ff !important;
  color: var(--u-accent-strong) !important;
  border-color: #cfe0fb !important;
}

body.ff-user-theme :is(main, .main, .content, .content-wrap, .ff-main, .ff-container, .container) {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

body.ff-user-theme :is(.ff-card, .card, .panel, .widget, .box, .tile, .ff-panel) {
  background: var(--u-surface) !important;
  border: 1px solid var(--u-border) !important;
  border-radius: var(--u-radius) !important;

}

body.ff-user-theme :is(.ff-card:hover, .card:hover, .panel:hover, .widget:hover) {
  border-color: var(--u-border-strong) !important;
}

body.ff-user-theme :is(.ff-hero, .hero, .page-hero, .header-panel, .ff-section-header) {
  background: linear-gradient(180deg, #ffffff, #f7fbff) !important;
  border: 1px solid var(--u-border) !important;
  border-radius: var(--u-radius-lg) !important;

}

body.ff-user-theme :is(.ff-stat, .stat-card, .metric-card, .kpi-card) {
  background: #fff !important;
  border: 1px solid var(--u-border) !important;
  border-radius: var(--u-radius) !important;
}

body.ff-user-theme :is(.ff-warning, .alert-warning, .notice-warning) {
  background: rgba(183, 118, 7, 0.1) !important;
  border: 1px solid rgba(183, 118, 7, 0.25) !important;
  color: #9a6605 !important;
}

body.ff-user-theme :is(.ff-success, .alert-success, .notice-success) {
  background: rgba(15, 141, 91, 0.1) !important;
  border: 1px solid rgba(15, 141, 91, 0.25) !important;
  color: #0c724b !important;
}

body.ff-user-theme :is(.ff-danger, .alert-danger, .notice-danger) {
  background: rgba(196, 63, 63, 0.1) !important;
  border: 1px solid rgba(196, 63, 63, 0.25) !important;
  color: #a83737 !important;
}

body.ff-user-theme :is(table, .table, .ff-table) {
  border-collapse: separate;
  border-spacing: 0;
  background: var(--u-surface);
  border: 1px solid var(--u-border);
  border-radius: var(--u-radius);
  overflow: hidden;
}

body.ff-user-theme :is(th, .table th) {
  background: var(--u-surface-soft) !important;
  color: var(--u-text) !important;
  border-bottom: 1px solid var(--u-border) !important;
}

body.ff-user-theme :is(td, th) {
  border-color: var(--u-border) !important;
}

body.ff-user-theme :is(input, select, textarea) {
  background: #fff !important;
  border: 1px solid var(--u-border-strong) !important;
  color: var(--u-text) !important;
  border-radius: 10px !important;
}

body.ff-user-theme :is(input, select, textarea):focus {
  outline: none !important;
  border-color: #8eb4ee !important;

}

body.ff-user-theme :is(button, .btn, input[type="submit"], input[type="button"]) {
  border-radius: 10px !important;
}

body.ff-user-theme :is(.btn-primary, .button-primary, .ff-btn-primary) {
  background: var(--u-accent) !important;
  border-color: var(--u-accent) !important;
  color: #fff !important;
}

body.ff-user-theme :is(.btn-primary:hover, .button-primary:hover, .ff-btn-primary:hover) {
  background: var(--u-accent-strong) !important;
  border-color: var(--u-accent-strong) !important;
}

body.ff-user-theme :is(.badge-success, .status-success, .chip-success) {
  background: rgba(15, 141, 91, 0.12) !important;
  color: var(--u-success) !important;
}

body.ff-user-theme :is(.badge-warning, .status-warning, .chip-warning) {
  background: rgba(183, 118, 7, 0.14) !important;
  color: var(--u-warning) !important;
}

body.ff-user-theme :is(.badge-danger, .status-danger, .chip-danger) {
  background: rgba(196, 63, 63, 0.12) !important;
  color: var(--u-danger) !important;
}

@media (max-width: 768px) {
  body.ff-user-theme {
    font-size: 15px;
  }

  body.ff-user-theme :is(main, .main, .content, .content-wrap, .ff-main, .ff-container, .container) {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media print {
  body.ff-user-theme {
    background: #fff !important;
    color: #000 !important;
  }
}

/* === USER UTILITARIAN OVERRIDES === */
body.ff-user-theme :is(.ff-page-header, .ff-hero, .hero, .page-hero, .header-panel, .ff-section-header, .ff-filters-header, .ff-outbounds-header) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: #fff !important;
  border: 1px solid var(--u-border) !important;
  border-radius: var(--u-radius) !important;

}

body.ff-user-theme :is(.ff-header-content, .ff-header-info, .ff-header-actions, .ff-controls) {
  display: flex;
  align-items: center;
  gap: 16px;
}

body.ff-user-theme .ff-header-content {
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
}

body.ff-user-theme .ff-header-info {
  flex: 1 1 auto;
  min-width: 0;
}

body.ff-user-theme .ff-header-actions,
body.ff-user-theme .ff-controls {
  flex-wrap: wrap;
}

body.ff-user-theme :is(.ff-page-header h1, .ff-hero h1, .ff-header-title) {
  margin: 0;
  color: var(--u-text) !important;
  font-size: 22px !important;
  line-height: 1.2;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

body.ff-user-theme :is(.ff-header-eyebrow, .ff-header-description, .ff-card-subtitle, .ff-modal-subtitle, .ff-section-subtitle, .ff-hero p, .ff-system-subtitle, .ff-invoice-subtitle, .ff-stat-trend) {
  display: none !important;
}

body.ff-user-theme :is(.ff-stats-grid .ff-stat-card, .ff-filters-card, .ff-filters-container, .ff-summary-card, .ff-info-card) {

  border-radius: var(--u-radius) !important;
}

body.ff-user-theme .ff-page-narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

body.ff-user-theme .ff-user-select {
  position: relative;
  width: 100%;
  min-width: 0;
  z-index: 1;
}

body.ff-user-theme .ff-user-select.is-open {
  z-index: 2147482990;
}

body.ff-user-theme .ff-user-select__native {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
}

body.ff-user-theme .ff-user-select__trigger {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--u-border-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--u-text);
  font: inherit;
  text-align: left;

  cursor: pointer;
}

body.ff-user-theme .ff-user-select__trigger:focus-visible {
  outline: 2px solid var(--u-accent);
  outline-offset: 2px;
}

body.ff-user-theme .ff-user-select__label {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.ff-user-theme .ff-user-select__chevron {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}

body.ff-user-theme .ff-user-select.is-open .ff-user-select__chevron {
  transform: rotate(-135deg) translateY(-1px);
}

body.ff-user-theme .ff-user-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 2147483000;
  display: none;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--u-border-strong);
  border-radius: 12px;

}

body.ff-user-theme .ff-user-select.is-open .ff-user-select__menu,
body.ff-user-theme .ff-user-select__menu.is-floating {
  display: block;
}

body.ff-user-theme .ff-user-select__menu.is-floating {
  right: auto;
}

body.ff-user-theme .ff-user-select__option {
  width: 100%;
  display: block;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--u-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

body.ff-user-theme .ff-user-select__option:hover,
body.ff-user-theme .ff-user-select__option:focus-visible {
  background: #eef3fb;
  outline: none;
}

body.ff-user-theme .ff-user-select__option.is-selected {
  background: #dfe9fb;
  color: var(--u-accent-strong);
  font-weight: 700;
}

body.ff-user-theme .ff-user-select__option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

body.ff-user-theme .ff-user-select.is-disabled .ff-user-select__trigger {
  background: #f3f5f8;
  color: #7a8495;
  cursor: not-allowed;
}

body.ff-user-theme .ff-user-select.is-invalid .ff-user-select__trigger {
  border-color: #c63d3d;
}

@media (max-width: 768px) {
  body.ff-user-theme :is(.ff-page-header, .ff-hero, .hero, .page-hero, .header-panel, .ff-section-header, .ff-filters-header, .ff-outbounds-header),
  body.ff-user-theme :is(.ff-header-content, .ff-header-info, .ff-header-actions, .ff-controls) {
    display: grid;
    justify-content: stretch;
  }

  body.ff-user-theme .ff-header-actions .ff-btn,
  body.ff-user-theme .ff-controls .ff-btn {
    width: 100%;
  }
}

/* === USER LIGHT READABILITY GUARD === */
body.ff-user-theme :is(
  .ff-card,
  .card,
  .panel,
  .widget,
  .box,
  .tile,
  .ff-panel,
  .ff-modal,
  .ff-modal-content,
  .ff-modal-header,
  .ff-modal-body,
  .ff-modal-footer,
  .ff-toolbar,
  .ff-action-bar,
  .ff-filters-section,
  .ff-filters-card,
  .ff-filters-container,
  .ff-filter-panel,
  .ff-form-section,
  .ff-form-card,
  .ff-detail-card,
  .ff-detail-section,
  .ff-summary-card,
  .ff-stat-card,
  .ff-metric-card,
  .ff-info-card,
  .ff-list-card,
  .ff-item-card,
  .ff-mobile-card,
  .ff-product-card,
  .ff-receipt-card,
  .ff-outbound-card,
  .ff-invoice-card,
  .ff-inventory-card,
  .ff-timeline-item,
  .ff-upload-zone,
  .ff-cart,
  .ff-cart-panel,
  .ff-empty-state,
  .ff-table-container,
  .ff-table-wrapper,
  .ff-table-wrap,
  .ff-week-column,
  .ff-day,
  .ff-empty
) {
  background: #ffffff !important;
  background-image: none !important;
  border-color: var(--u-border) !important;
  color: var(--u-text) !important;

}

body.ff-user-theme :is(
  .ff-modal-header,
  .ff-modal-footer,
  .ff-toolbar,
  .ff-action-bar,
  .ff-filters-header,
  .ff-section-toolbar,
  .ff-table-toolbar,
  .ff-card-header
) {
  background: #f7fbff !important;
  background-image: none !important;
}

body.ff-user-theme :is(
  .ff-modal-overlay,
  .drawer-overlay,
  .ff-overlay
) {
  background: rgba(231, 238, 249, 0.78) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}

body.ff-user-theme :is(
  .ff-form-hint,
  .ff-modal-subtitle,
  .ff-card-subtitle,
  .ff-section-subtitle,
  .ff-item-meta,
  .ff-detail-meta,
  .ff-table-meta,
  .ff-muted,
  .ff-text-muted
) {
  color: var(--u-text-muted) !important;
}

body.ff-user-theme :is(
  .ff-chip,
  .ff-badge,
  .ff-pill,
  .badge,
  .chip
) {
  color: var(--u-text) !important;
  border-color: var(--u-border) !important;
}

body.ff-user-theme :is(
  .ff-week-column.is-weekend,
  .ff-day.is-weekend
) {
  background: #fffdf8 !important;
  border-color: #ead9b8 !important;
}

body.ff-user-theme .ff-btn-purple {
  background: #eef2ff !important;
  color: #324a86 !important;
  border: 1px solid #cfd9f8 !important;

}

body.ff-user-theme .ff-btn-purple:hover {
  background: #e2e9ff !important;
  color: #24396f !important;
}

/* Task detail status/composition flow */
body.ff-user-theme .ff-task-flow-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 16px;
  align-items: stretch;
  margin: 0 0 24px;
  padding: 18px;
  background: #ffffff !important;
  border: 1px solid var(--u-border);
  border-radius: 22px;

  color: var(--u-text);
}

body.ff-user-theme .ff-task-flow-main {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 1.2fr) minmax(220px, 0.8fr);
  gap: 12px;
  min-width: 0;
}

body.ff-user-theme .ff-task-flow-block,
body.ff-user-theme .ff-task-flow-kpis,
body.ff-user-theme .ff-task-flow-actions,
body.ff-user-theme .ff-task-flow-action {
  min-width: 0;
  padding: 14px;
  background: #f8fbff !important;
  border: 1px solid #dbe7f6;
  border-radius: 16px;
  color: var(--u-text);
}

body.ff-user-theme .ff-task-flow-label {
  margin-bottom: 8px;
  color: var(--u-text-muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.ff-user-theme .ff-task-flow-title {
  color: var(--u-text);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.25;
}

body.ff-user-theme .ff-task-flow-note,
body.ff-user-theme .ff-task-flow-message {
  margin-top: 8px;
  color: var(--u-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

body.ff-user-theme .ff-task-flow-priority {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

body.ff-user-theme .ff-task-flow-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.ff-user-theme .ff-task-flow-kpi {
  padding: 10px;
  background: #ffffff !important;
  border: 1px solid var(--u-border);
  border-radius: 12px;
}

body.ff-user-theme .ff-task-flow-kpi span {
  display: block;
  color: var(--u-text-muted);
  font-size: 12px;
  font-weight: 750;
}

body.ff-user-theme .ff-task-flow-kpi strong {
  display: block;
  margin-top: 6px;
  color: var(--u-text);
  font-size: 24px;
  line-height: 1;
}

body.ff-user-theme .ff-task-flow-actions {
  display: grid;
  gap: 12px;
  align-content: center;
}

body.ff-user-theme .ff-task-flow-action {
  display: grid;
  gap: 12px;
  padding: 0;
  background: transparent !important;
  border: 0;
}

body.ff-user-theme .ff-task-flow-actions .ff-btn {
  width: 100%;
}

body.ff-user-theme .ff-task-flow-card .ff-alert {
  margin: 8px 0 0;
}

body.ff-user-theme .ff-receipt-overview-card {
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  margin-bottom: 18px !important;
  padding: 14px !important;
  border-radius: 16px !important;

}

body.ff-user-theme .ff-receipt-overview-card .ff-task-flow-main {
  grid-template-columns: minmax(280px, 1.1fr) minmax(520px, 1.6fr) !important;
  align-items: stretch !important;
  gap: 12px !important;
}

body.ff-user-theme .ff-receipt-overview-status,
body.ff-user-theme .ff-receipt-overview-metrics {
  padding: 12px !important;
  border-radius: 12px !important;
}

body.ff-user-theme .ff-receipt-overview-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 10px !important;
}

body.ff-user-theme .ff-receipt-overview-meta span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 30px !important;
  max-width: 100% !important;
  padding: 6px 10px !important;
  border: 1px solid var(--u-border) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
}

body.ff-user-theme .ff-receipt-overview-meta i {
  color: var(--u-accent) !important;
  font-size: 12px !important;
}

body.ff-user-theme .ff-receipt-overview-card .ff-task-flow-message {
  margin-top: 10px !important;
  color: #475569 !important;
}

body.ff-user-theme .ff-receipt-overview-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body.ff-user-theme .ff-receipt-overview-metrics .ff-task-flow-kpi {
  display: flex !important;
  min-height: 74px !important;
  flex-direction: column !important;
  justify-content: center !important;
}

body.ff-user-theme .ff-receipt-overview-metrics .ff-task-flow-kpi span {
  font-size: 12px !important;
  line-height: 1.15 !important;
}

body.ff-user-theme .ff-receipt-overview-metrics .ff-task-flow-kpi strong {
  margin-top: 7px !important;
  font-size: 26px !important;
}

@media (max-width: 1100px) {
  body.ff-user-theme .ff-task-flow-card,
  body.ff-user-theme .ff-task-flow-main {
    grid-template-columns: 1fr;
  }

  body.ff-user-theme .ff-receipt-overview-card .ff-task-flow-main {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  body.ff-user-theme .ff-receipt-overview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 460px) {
  body.ff-user-theme .ff-receipt-overview-metrics {
    grid-template-columns: 1fr !important;
  }
}

/* User catalog and operation lists: compact, table-first, AJAX-friendly. */
body.ff-user-theme .ff-user-select__menu.is-floating {
  position: fixed !important;
  z-index: 2147483600 !important;
}

body.ff-user-theme [data-tooltip]::before,
body.ff-user-theme [data-tooltip]::after {
  z-index: 2147483500 !important;
}

body.ff-user-theme .ff-ajax-list {

}

body.ff-user-theme .ff-ajax-list.is-loading {
  opacity: 0.62;
  filter: saturate(0.9);
  pointer-events: none;
}

body.ff-user-theme.ff-user-list-page .ff-compact-filters,
body.ff-user-theme .ff-compact-filters {
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 20px !important;

  overflow: visible !important;
}

body.ff-user-theme.ff-user-list-page .ff-filters-header,
body.ff-user-theme .ff-compact-filters .ff-filters-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 0 !important;
  padding: 12px 18px !important;
  border-bottom: none !important;
}

body.ff-user-theme.ff-user-list-page .ff-filters-body,
body.ff-user-theme .ff-compact-filters .ff-filters-body {
  padding: 20px !important;
}

body.ff-user-theme.ff-user-list-page .ff-filters-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 14px !important;
  align-items: end !important;
}

body.ff-user-theme.ff-user-list-page .ff-form-label,
body.ff-user-theme .ff-compact-filters .ff-form-label {
  color: #475569 !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

body.ff-user-theme.ff-user-list-page :is(.ff-input, .ff-select, .ff-user-select__trigger),
body.ff-user-theme .ff-compact-filters :is(.ff-input, .ff-select, .ff-user-select__trigger) {
  min-height: 42px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 13px !important;

  color: #102033 !important;
}

body.ff-user-theme.ff-user-list-page :is(.ff-input:focus, .ff-select:focus, .ff-user-select.is-open .ff-user-select__trigger),
body.ff-user-theme .ff-compact-filters :is(.ff-input:focus, .ff-select:focus, .ff-user-select.is-open .ff-user-select__trigger) {
  background: #ffffff !important;
  border-color: #8fb3ff !important;

}

body.ff-user-theme.ff-user-list-page .ff-filters-actions,
body.ff-user-theme .ff-compact-filters .ff-filters-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin-top: 18px !important;
  padding-top: 18px !important;
  border-top: 1px solid #edf2f8 !important;
}

body.ff-user-theme .ff-compact-filters .ff-filters-buttons {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
}

/* Unified compact filter bar (all list pages) */
body.ff-user-theme .ff-compact-filters .ff-filters-title {
  display: flex !important;
  align-items: center !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  color: #475569 !important;
  gap: 10px !important;
}

body.ff-user-theme .ff-compact-filters .ff-filters-title i {
  color: #1666d9 !important;
  font-size: 14px !important;
  text-transform: none !important;
}

body.ff-user-theme .ff-compact-filters .ff-filters-toggle {
  margin-left: auto !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  font-weight: 650 !important;
  font-size: 13px !important;
  padding: 8px 14px !important;
  border-radius: 11px !important;

}

body.ff-user-theme .ff-compact-filters .ff-filters-toggle:hover {
  background: #e8eef6 !important;
  border-color: #cbd5e1 !important;
}

body.ff-user-theme .ff-compact-filters #filtersBody {
  padding: 0 18px 16px !important;
}

body.ff-user-theme .ff-compact-filters .ff-input-group {
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
}

body.ff-user-theme .ff-compact-filters .ff-input-group .ff-input {
  padding-left: 44px !important;
}

body.ff-user-theme .ff-compact-filters .ff-input-icon {
  position: absolute !important;
  left: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
  font-size: 14px !important;
  color: #475569 !important;
}

body.ff-user-theme .ff-compact-filters .ff-sort-controls {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
}

body.ff-user-theme .ff-compact-filters .ff-sort-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--u-text) !important;
  white-space: nowrap !important;
}

body.ff-user-theme .ff-compact-filters .ff-filters-form .ff-mb-6 {
  margin-bottom: 0 !important;
}

body.ff-user-theme .ff-compact-filters .ff-filter-label {
  color: #475569 !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

body.ff-user-theme .ff-compact-filters .ff-filters-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 14px !important;
  align-items: end !important;
}

body.ff-user-theme .ff-compact-filters .ff-filter-dates {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

body.ff-user-theme .ff-compact-filters .ff-filter-dates .ff-input--date {
  flex: 1 !important;
  min-width: 0 !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

body.ff-user-theme .ff-compact-filters .ff-filter-dates-sep {
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  flex-shrink: 0 !important;
  user-select: none !important;
}

body.ff-user-theme .ff-compact-filters .ff-sort-controls .ff-select {
  min-width: 0 !important;
  flex: 1 1 200px !important;
  max-width: 280px !important;
}

body.ff-user-theme .ff-compact-filters .ff-filters-actions .ff-btn-primary {

}

@media (max-width: 980px) {
  body.ff-user-theme .ff-compact-filters .ff-filters-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  body.ff-user-theme .ff-compact-filters .ff-filter-group--period {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 620px) {
  body.ff-user-theme .ff-compact-filters .ff-filters-grid {
    grid-template-columns: 1fr !important;
  }

  body.ff-user-theme .ff-compact-filters .ff-filter-dates {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body.ff-user-theme .ff-compact-filters .ff-filter-dates-sep {
    display: none !important;
  }

  body.ff-user-theme .ff-compact-filters .ff-sort-controls {
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body.ff-user-theme .ff-compact-filters .ff-sort-controls .ff-select {
    max-width: none !important;
  }
}

body.ff-user-theme.ff-user-list-page .ff-list-card,
body.ff-user-theme .ff-list-card {
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 22px !important;

  overflow: hidden !important;
}

body.ff-user-theme .ff-operational-table-wrap {
  width: 100% !important;
  overflow-x: auto !important;
}

body.ff-user-theme .ff-operational-table {
  width: 100% !important;
  min-width: 940px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

body.ff-user-theme .ff-operational-table thead th {
  padding: 13px 16px !important;
  background: #f7f9fc !important;
  border-bottom: 1px solid #e6edf7 !important;
  color: #334155 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-align: left !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

body.ff-user-theme .ff-operational-table tbody td {
  padding: 15px 16px !important;
  border-bottom: 1px solid #edf2f8 !important;
  color: #1f2a3d !important;
  vertical-align: middle !important;
}

body.ff-user-theme .ff-operational-table tbody tr {
  background: #ffffff !important;
  transition: background 0.14s ease !important;
}

body.ff-user-theme .ff-operational-table tbody tr:hover {
  background: #f8fbff !important;
}

body.ff-user-theme .ff-table-title {
  display: grid !important;
  gap: 4px !important;
  min-width: 0 !important;
  color: inherit !important;
  text-decoration: none !important;
}

body.ff-user-theme .ff-table-title strong {
  max-width: 360px !important;
  overflow: hidden !important;
  color: #102033 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.ff-user-theme .ff-table-title span {
  color: #475569 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

body.ff-user-theme .ff-row-title {
  display: block !important;
  max-width: 380px !important;
  overflow: hidden !important;
  color: #102033 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.ff-user-theme .ff-row-title:hover {
  color: #2458ce !important;
}

body.ff-user-theme .ff-row-muted,
body.ff-user-theme .ff-row-text {
  color: #475569 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

body.ff-user-theme .ff-nowrap {
  white-space: nowrap !important;
}

body.ff-user-theme .ff-text-right {
  text-align: right !important;
}

body.ff-user-theme .ff-row-progress {
  width: 88px !important;
  height: 5px !important;
  margin-top: 7px !important;
  overflow: hidden !important;
  background: #edf2f8 !important;
  border-radius: 999px !important;
}

body.ff-user-theme .ff-row-progress span {
  display: block !important;
  height: 100% !important;
  background: #2f66df !important;
  border-radius: inherit !important;
}

body.ff-user-theme .ff-table-empty {
  padding: 42px 18px !important;
  color: #475569 !important;
  text-align: center !important;
}

body.ff-user-theme .ff-pagination {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 22px 0 0 !important;
}

body.ff-user-theme .ff-pagination-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 12px !important;
  background: #ffffff !important;
  border: 1px solid #dbe4f0 !important;
  border-radius: 12px !important;

  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  text-decoration: none !important;
}

body.ff-user-theme .ff-pagination-btn:hover:not(.ff-disabled):not(.ff-active) {
  background: #f0f6ff !important;
  border-color: #b9ccf7 !important;
  color: #2458ce !important;
}

body.ff-user-theme .ff-pagination-btn.ff-active {
  background: #2f66df !important;
  border-color: #2f66df !important;
  color: #ffffff !important;

}

body.ff-user-theme .ff-pagination-btn.ff-disabled {
  opacity: 0.45 !important;
  pointer-events: none !important;
}

body.ff-user-theme .ff-pagination-info {
  flex-basis: 100% !important;
  margin-top: 8px !important;
  color: #475569 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-align: center !important;
}

body.ff-user-theme .ff-techspec-compact-head {
  justify-content: flex-start !important;
  gap: 10px !important;
}

body.ff-user-theme .ff-techspec-open-btn {
  min-width: 92px !important;
  margin-left: 0 !important;
}

@media (max-width: 980px) {
  body.ff-user-theme.ff-user-list-page .ff-filters-grid,
  body.ff-user-theme .ff-compact-filters .ff-filters-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  body.ff-user-theme.ff-user-list-page .ff-filters-actions,
  body.ff-user-theme .ff-compact-filters .ff-filters-actions {
    align-items: stretch !important;
    flex-direction: column !important;
  }
}

@media (max-width: 620px) {
  body.ff-user-theme.ff-user-list-page .ff-filters-grid,
  body.ff-user-theme .ff-compact-filters .ff-filters-grid {
    grid-template-columns: 1fr !important;
  }

  body.ff-user-theme .ff-table-title strong {
    max-width: 240px !important;
  }
}

/* Locked user navbar contract: identical desktop navbar on every user page. */
body.ff-user-theme .ff-nav {
  position: sticky !important;
  top: var(--ff-admin-offset, 0px) !important;
  z-index: 1000 !important;
  width: 100% !important;
  overflow: visible !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid var(--u-border) !important;

  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

body.ff-user-theme .ff-nav__inner {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 64px !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
  overflow: visible !important;
}

body.ff-user-theme .ff-nav__brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
  min-width: fit-content !important;
  padding: 6px 10px !important;
  border-radius: 8px !important;
  color: var(--u-text) !important;
  text-decoration: none !important;
}

body.ff-user-theme .ff-nav__logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  width: 32px !important;
  height: 32px !important;
  background: linear-gradient(145deg, #edf4ff, #f9fbff) !important;
  border: 1px solid var(--u-border) !important;
  border-radius: 10px !important;
}

body.ff-user-theme .ff-nav__title {
  display: flex !important;
  flex-direction: column !important;
  min-width: fit-content !important;
}

body.ff-user-theme .ff-nav__title-main {
  color: var(--u-text) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

body.ff-user-theme .ff-nav__title-sub {
  margin-top: 1px !important;
  color: var(--u-text-muted) !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
}

body.ff-user-theme .ff-nav__menu-container {
  display: flex !important;
  flex: 1 1 auto !important;
  justify-content: center !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  overflow-x: hidden !important;
}

body.ff-user-theme .ff-nav__menu {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 4px !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: auto !important;
  list-style: none !important;
  scrollbar-width: none !important;
}

body.ff-user-theme .ff-nav__menu::-webkit-scrollbar {
  display: none !important;
}

body.ff-user-theme .ff-nav__link {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  min-width: fit-content !important;
  height: 42px !important;
  padding: 9px 14px !important;
  border: 1px solid var(--u-border) !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: var(--u-text) !important;

  text-decoration: none !important;
  white-space: nowrap !important;
}

body.ff-user-theme .ff-nav__link:hover {
  background: #f2f7ff !important;
  border-color: #cfe0fb !important;
  color: var(--u-accent-strong) !important;
}

body.ff-user-theme .ff-nav__link--active,
body.ff-user-theme .ff-nav__link.is-active,
body.ff-user-theme .ff-nav__link.active {
  background: #e9f1ff !important;
  border-color: #cfe0fb !important;
  color: var(--u-accent-strong) !important;

}

body.ff-user-theme .ff-nav__link-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  width: 18px !important;
  height: 18px !important;
}

body.ff-user-theme .ff-nav__link-icon i {
  color: currentColor !important;
  font-size: 16px !important;
}

body.ff-user-theme .ff-nav__link-text {
  color: currentColor !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

body.ff-user-theme .ff-nav__link-indicator {
  display: block !important;
  flex-shrink: 0 !important;
  width: 6px !important;
  height: 6px !important;
  margin-left: 2px !important;
  border-radius: 999px !important;
  background: transparent !important;
}

body.ff-user-theme .ff-nav__link--active .ff-nav__link-indicator {
  background: var(--u-accent) !important;

}

body.ff-user-theme .ff-nav__user {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  gap: 12px !important;
}

body.ff-user-theme .ff-nav__user-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 44px !important;
  padding: 6px 10px 6px 12px !important;
  border: 1px solid var(--u-border) !important;
  border-radius: 999px !important;
  background: #ffffff !important;

}

body.ff-user-theme .ff-nav__username {
  color: var(--u-text) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

body.ff-user-theme .ff-nav__subuser {
  color: var(--u-text-muted) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

body.ff-user-theme .ff-nav__logout-btn,
body.ff-user-theme .ff-nav__impersonation-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 32px !important;
  border-radius: 999px !important;
  border: 1px solid var(--u-border) !important;
  background: #f8fbff !important;
  color: var(--u-text-muted) !important;

}

/* ---- Mobile / tablet: same visual language as desktop (single source, !important) ---- */
body.ff-user-theme .ff-nav__burger {
  display: none !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  min-height: 44px !important;
  border: 1px solid var(--u-border) !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: var(--u-text) !important;
  cursor: pointer !important;

  -webkit-tap-highlight-color: transparent !important;
}

body.ff-user-theme .ff-nav__burger span:not(.ff-nav__burger-text) {
  display: block !important;
  width: 18px !important;
  height: 2px !important;
  border-radius: 2px !important;
  background: var(--u-text) !important;
}

body.ff-user-theme .ff-nav__burger-text {
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: var(--u-text-muted) !important;
}

body.ff-user-theme .ff-nav__close {
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  align-self: flex-end !important;
  margin: 0 0 12px 0 !important;
  padding: 10px 14px !important;
  min-height: 44px !important;
  border: 1px solid var(--u-border) !important;
  border-radius: 10px !important;
  background: #f8fbff !important;
  color: var(--u-text-muted) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

body.ff-user-theme .ff-nav__overlay {
  display: none !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 1001 !important;
  background: rgba(18, 38, 62, 0.42) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

body.ff-user-theme .ff-nav__menu li {
  list-style: none !important;
}

@media (max-width: 1024px) {
  body.ff-user-theme .ff-nav__burger {
    display: inline-flex !important;
  }

  body.ff-user-theme .ff-nav__close {
    display: inline-flex !important;
  }

  body.ff-user-theme .ff-nav__overlay {
    display: block !important;
  }

  body.ff-user-theme .ff-nav__overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.ff-user-theme .ff-nav__menu-container {
    position: fixed !important;
    top: calc(64px + var(--ff-admin-offset, 0px) + env(safe-area-inset-top, 0px)) !important;
    left: 0 !important;
    bottom: 0 !important;
    width: min(320px, 88vw) !important;
    max-width: 100% !important;
    height: auto !important;
    flex: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 12px 12px calc(16px + env(safe-area-inset-bottom, 0px)) 12px !important;
    overflow-x: visible !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    background: #ffffff !important;
    border-right: 1px solid var(--u-border) !important;
    border-bottom: none !important;
    border-top: none !important;
    border-left: none !important;

    z-index: 1002 !important;
    transform: translate3d(-105%, 0, 0) !important;
    transition: transform 0.22s ease !important;
    will-change: transform !important;
    scrollbar-width: thin !important;
  }

  body.ff-user-theme .ff-nav__menu-container.active {
    transform: translate3d(0, 0, 0) !important;
  }

  body.ff-user-theme .ff-nav__menu {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    padding: 0 !important;
  }

  body.ff-user-theme .ff-nav__menu li {
    width: 100% !important;
  }

  body.ff-user-theme .ff-nav__link {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: flex-start !important;
    white-space: normal !important;
    height: auto !important;
    min-height: 44px !important;
  }

  body.ff-user-theme .ff-nav__user {
    margin-left: auto !important;
  }

  body.ff-user-theme .ff-nav__user-pill {
    max-width: min(200px, 42vw) !important;
    min-width: 0 !important;
  }

  body.ff-user-theme .ff-nav__username {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

@media (max-width: 480px) {
  body.ff-user-theme .ff-nav__title-sub {
    display: none !important;
  }

  body.ff-user-theme .ff-nav__burger-text {
    display: none !important;
  }
}

/* One UI typeface: differences only in size, weight, color. Inherits from body; icon glyphs stay on ::before. */
html:has(body.ff-user-theme) {
  font-family: var(--u-font-family);
}

body.ff-user-theme * {
  font-family: inherit !important;
}

/* Icon fonts: glyphs use the element’s font; restore vendor faces (not UI text). */
body.ff-user-theme .fa,
body.ff-user-theme .fas,
body.ff-user-theme .far,
body.ff-user-theme .fal,
body.ff-user-theme .fab,
body.ff-user-theme .fa-solid,
body.ff-user-theme .fa-regular,
body.ff-user-theme .fa-brands,
body.ff-user-theme .fa-classic {
  font-family: "Font Awesome 6 Free" !important;
}
body.ff-user-theme .fab,
body.ff-user-theme .fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
}
body.ff-user-theme i.bi,
body.ff-user-theme .bi {
  font-family: "bootstrap-icons" !important;
}

/* Cross-page accessibility and readability contract for the user cabinet. */
body.ff-user-theme .ff-skip-link {
  position: fixed !important;
  top: 10px !important;
  left: 10px !important;
  z-index: 2147483600 !important;
  padding: 10px 14px !important;
  border: 1px solid var(--u-border-strong) !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: var(--u-accent-strong) !important;

  font-weight: 800 !important;
  text-decoration: none !important;
  transform: translateY(-160%) !important;
  transition: transform 0.12s ease !important;
}

body.ff-user-theme .ff-skip-link:focus {
  transform: translateY(0) !important;
}

body.ff-user-theme :is(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid rgba(22, 102, 217, 0.28) !important;
  outline-offset: 2px !important;
}

body.ff-user-theme :is(p, li, td, th, label, .ff-card, .ff-table, .ff-header-title, .ff-header-description, .ff-stat-label, .ff-stat-value) {
  overflow-wrap: anywhere;
}

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

/* Compact filter contract for user list pages. */
body.ff-user-theme .ff-compact-filters {
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 1px solid var(--u-border) !important;
  border-radius: 14px !important;
  background: #fff !important;

  overflow: hidden !important;
}

body.ff-user-theme .ff-compact-filters .ff-filters-header {
  min-height: 42px !important;
  padding: 9px 14px !important;
  border-bottom: 1px solid #edf2f8 !important;
  background: #fff !important;
}

body.ff-user-theme .ff-compact-filters .ff-filters-title {
  gap: 8px !important;
  margin: 0 !important;
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
}

body.ff-user-theme .ff-compact-filters .ff-filters-title i {
  width: 26px !important;
  height: 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  background: #eef5ff !important;
  color: var(--u-accent) !important;
  font-size: 12px !important;
}

body.ff-user-theme .ff-compact-filters .ff-filters-toggle {
  min-height: 30px !important;
  padding: 5px 10px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}

body.ff-user-theme .ff-compact-filters #filtersBody {
  padding: 12px 14px !important;
}

body.ff-user-theme .ff-compact-filters .ff-filters-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 10px 14px !important;
}

body.ff-user-theme .ff-compact-filters .ff-filters-form .ff-mb-6 {
  margin-bottom: 0 !important;
}

body.ff-user-theme .ff-compact-filters .ff-filters-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  align-items: end !important;
  gap: 8px !important;
}

body.ff-user-theme .ff-compact-filters .ff-filter-group {
  min-width: 0 !important;
}

body.ff-user-theme .ff-compact-filters :is(.ff-filter-label, .ff-form-label) {
  margin: 0 0 4px !important;
  color: #475569 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.15 !important;
  text-transform: none !important;
}

body.ff-user-theme .ff-compact-filters :is(.ff-input, .ff-select, .ff-user-select__trigger) {
  width: 100% !important;
  min-height: 36px !important;
  height: 36px !important;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
}

body.ff-user-theme .ff-compact-filters .ff-input-group .ff-input {
  padding-left: 36px !important;
}

body.ff-user-theme .ff-compact-filters .ff-input-icon {
  left: 12px !important;
  font-size: 12px !important;
  color: #64748b !important;
}

body.ff-user-theme .ff-compact-filters .ff-filter-dates {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 6px !important;
}

body.ff-user-theme .ff-compact-filters .ff-filter-dates .ff-input--date {
  min-width: 0 !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

body.ff-user-theme .ff-compact-filters .ff-filter-dates-sep {
  color: #94a3b8 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body.ff-user-theme .ff-compact-filters .ff-filters-actions {
  display: flex !important;
  align-items: end !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-top: 0 !important;
}

body.ff-user-theme .ff-compact-filters .ff-filters-buttons,
body.ff-user-theme .ff-compact-filters .ff-sort-controls {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  flex-wrap: nowrap !important;
}

body.ff-user-theme .ff-compact-filters .ff-sort-label {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

body.ff-user-theme .ff-compact-filters .ff-sort-controls .ff-select {
  width: auto !important;
  min-width: 170px !important;
  max-width: 240px !important;
  flex: 0 1 210px !important;
}

body.ff-user-theme .ff-compact-filters .ff-filters-actions .ff-btn {
  min-height: 36px !important;
  height: 36px !important;
  padding: 7px 12px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.ff-user-theme .ff-compact-filters .ff-filters-actions .ff-btn i {
  font-size: 12px !important;
}

body.ff-user-theme .ff-order-items-export-btn {
  white-space: nowrap !important;
}

body.ff-user-theme .ff-order-items-export-btn i {
  color: #15935f !important;
}

body.ff-user-theme .ff-actions-row,
body.ff-user-theme .ff-detail-primary-actions,
body.ff-user-theme .ff-inline-action-form {
  display: flex !important;
  align-items: center !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  width: auto !important;
  min-width: 0 !important;
}

body.ff-user-theme .ff-inline-action-form {
  margin: 0 !important;
}

body.ff-user-theme .ff-actions-row .ff-btn,
body.ff-user-theme .ff-detail-primary-actions .ff-btn {
  width: auto !important;
  min-width: max-content !important;
  white-space: nowrap !important;
}

body.ff-user-theme .ff-order-products-card {
  border-radius: 14px !important;
  overflow: hidden !important;
}

body.ff-user-theme .ff-order-products-card.ff-inline-add-locked {
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.ff-user-theme .ff-order-products-card:hover {
  background: var(--ob-panel) !important;
  border-color: var(--ob-line) !important;
}

body.ff-user-theme .ff-order-products-card .ff-table-header {
  padding: 18px 24px !important;
  background: var(--ob-panel) !important;
  border-bottom: 1px solid var(--ob-line) !important;
}

@media (min-width: 961px) {
  body.ff-user-theme .ff-order-products-card .ff-table-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
  }

  body.ff-user-theme .ff-order-products-card .ff-card-title {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    white-space: nowrap !important;
  }

  body.ff-user-theme .ff-order-products-card .ff-table-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 1 1 auto !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
  }

  body.ff-user-theme .ff-order-products-card .ff-outbound-table-search {
    flex: 0 1 420px !important;
    width: clamp(280px, 26vw, 420px) !important;
    min-width: 260px !important;
    max-width: 420px !important;
    flex-wrap: nowrap !important;
  }

  body.ff-user-theme .ff-order-products-card .ff-table-controls > .ff-btn,
  body.ff-user-theme .ff-order-products-card .ff-table-controls > a.ff-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    white-space: nowrap !important;
  }
}

body.ff-user-theme .ff-order-products-card .ff-card-title {
  color: var(--ob-text) !important;
  font-size: 22px !important;
  font-weight: 850 !important;
}

body.ff-user-theme .ff-order-products-card .ff-card-title i {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  color: var(--ob-blue) !important;
  background: var(--ob-blue-soft) !important;
}

body.ff-user-theme .ff-order-products-card .ff-outbound-table-search {
  max-width: 360px !important;
}

body.ff-user-theme .ff-order-products-card .ff-outbound-table-search .ff-form-control,
body.ff-user-theme .ff-order-products-card .ff-outbound-import-panel .ff-form-control {
  min-height: 44px !important;
  background: var(--ob-panel) !important;
  border-color: var(--ob-line-strong) !important;
  color: var(--ob-text) !important;

}

body.ff-user-theme .ff-order-products-card .ff-outbound-table-search .ff-form-control::placeholder {
  color: #9aa8bb !important;
}

body.ff-user-theme .ff-order-products-card .ff-outbound-import-panel {
  padding: 16px 24px !important;
  background: var(--ob-panel-soft) !important;
  border-bottom: 1px solid var(--ob-line) !important;
}

body.ff-user-theme .ff-order-products-card .ff-outbound-import-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  min-width: 0 !important;
}

body.ff-user-theme .ff-order-products-card .ff-outbound-import-info {
  display: flex !important;
  align-items: baseline !important;
  gap: 16px !important;
  min-width: 260px !important;
  flex: 1 1 auto !important;
}

body.ff-user-theme .ff-order-products-card .ff-outbound-import-panel .ff-form-label {
  margin: 0 !important;
  color: var(--ob-text) !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

body.ff-user-theme .ff-order-products-card .ff-outbound-import-panel .ff-text-small {
  margin: 0 !important;
  color: var(--ob-muted) !important;
  font-size: 13px !important;
  white-space: nowrap !important;
}

body.ff-user-theme .ff-order-products-card .ff-outbound-import-actions,
body.ff-user-theme .ff-order-products-card .ff-outbound-import-form {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.ff-user-theme .ff-order-products-card .ff-outbound-import-form input[type="file"] {
  width: 260px !important;
  max-width: 32vw !important;
  flex: 0 1 260px !important;
}

body.ff-user-theme .ff-order-products-card .ff-table-wrapper {
  background: var(--ob-panel) !important;
  border-top: 0 !important;
}

body.ff-user-theme .ff-order-products-card .ff-outbound-bulkbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 12px 24px !important;
  background: #f8fbff !important;
  border-bottom: 1px solid var(--ob-line) !important;
}

body.ff-user-theme .ff-order-products-card .ff-outbound-bulkbar[hidden] {
  display: none !important;
}

body.ff-user-theme .ff-order-products-card .ff-outbound-bulkbar__info,
body.ff-user-theme .ff-order-products-card .ff-outbound-bulkbar__actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

body.ff-user-theme .ff-order-products-card .ff-outbound-bulkbar__info {
  color: var(--ob-muted) !important;
  font-size: 14px !important;
  font-weight: 750 !important;
}

body.ff-user-theme .ff-order-products-card .ff-outbound-bulkbar__count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 32px !important;
  height: 30px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  background: var(--ob-blue) !important;
  color: #fff !important;
  font-weight: 850 !important;
}

body.ff-user-theme .ff-order-products-card .ff-table {
  min-width: 860px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  color: var(--ob-text) !important;
  table-layout: fixed !important;
}

body.ff-user-theme .ff-order-products-card .ff-table thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  padding: 13px 14px !important;
  background: #f4f7fb !important;
  color: #42516a !important;
  border-bottom: 1px solid var(--ob-line) !important;
  border-right: 1px solid var(--ob-line) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  letter-spacing: 0.04em !important;
}

body.ff-user-theme .ff-order-products-card .ff-table thead th:last-child {
  border-right: 0 !important;
}

body.ff-user-theme .ff-order-products-card .ff-table tbody tr,
body.ff-user-theme .ff-order-products-card .ff-table tbody tr:nth-child(even) {
  background: var(--ob-panel) !important;
  border-bottom: 1px solid var(--ob-line) !important;
}

body.ff-user-theme .ff-order-products-card .ff-table tbody tr:hover {
  background: #f8fbff !important;
}

body.ff-user-theme .ff-order-products-card .ff-table tbody td {
  padding: 14px !important;
  color: var(--ob-muted) !important;
  border-right: 1px solid var(--ob-line) !important;
  border-bottom: 1px solid var(--ob-line) !important;
  background: transparent !important;
  max-width: none !important;
  overflow: visible !important;
}

body.ff-user-theme .ff-order-products-card .ff-table tbody td:last-child {
  border-right: 0 !important;
}

body.ff-user-theme .ff-receipt-products-card .ff-table-editable thead th:nth-child(1),
body.ff-user-theme .ff-receipt-products-card .ff-table-editable tbody td:nth-child(1) {
  width: 52px !important;
}

body.ff-user-theme .ff-receipt-products-card .ff-table-editable thead th:nth-child(2),
body.ff-user-theme .ff-receipt-products-card .ff-table-editable tbody td:nth-child(2) {
  width: auto !important;
}

body.ff-user-theme .ff-receipt-products-card .ff-table-editable thead th:nth-child(3),
body.ff-user-theme .ff-receipt-products-card .ff-table-editable tbody td:nth-child(3) {
  width: 150px !important;
}

body.ff-user-theme .ff-receipt-products-card .ff-table-editable thead th:nth-child(4),
body.ff-user-theme .ff-receipt-products-card .ff-table-editable tbody td:nth-child(4) {
  width: 110px !important;
}

body.ff-user-theme .ff-receipt-products-card .ff-table-editable thead th:nth-child(5),
body.ff-user-theme .ff-receipt-products-card .ff-table-editable tbody td:nth-child(5) {
  width: 90px !important;
}

body.ff-user-theme .ff-receipt-products-card .ff-table-readonly thead th:nth-child(1),
body.ff-user-theme .ff-receipt-products-card .ff-table-readonly tbody td:nth-child(1) {
  width: auto !important;
}

body.ff-user-theme .ff-receipt-products-card .ff-table-readonly thead th:nth-child(2),
body.ff-user-theme .ff-receipt-products-card .ff-table-readonly tbody td:nth-child(2) {
  width: 150px !important;
}

body.ff-user-theme .ff-receipt-products-card .ff-table-readonly thead th:nth-child(3),
body.ff-user-theme .ff-receipt-products-card .ff-table-readonly tbody td:nth-child(3) {
  width: 110px !important;
}

body.ff-user-theme .ff-receipt-products-card .ff-table-readonly thead th:nth-child(4),
body.ff-user-theme .ff-receipt-products-card .ff-table-readonly tbody td:nth-child(4) {
  width: 90px !important;
}

body.ff-user-theme .ff-products-catalog-card .ff-table {
  min-width: 920px !important;
}

body.ff-user-theme .ff-products-catalog-card .ff-table-readonly thead th:nth-child(1),
body.ff-user-theme .ff-products-catalog-card .ff-table-readonly tbody td:nth-child(1) {
  width: auto !important;
}

body.ff-user-theme .ff-products-catalog-card .ff-table-readonly thead th:nth-child(2),
body.ff-user-theme .ff-products-catalog-card .ff-table-readonly tbody td:nth-child(2) {
  width: 38% !important;
}

body.ff-user-theme .ff-products-catalog-card .ff-table-readonly thead th:nth-child(3),
body.ff-user-theme .ff-products-catalog-card .ff-table-readonly tbody td:nth-child(3) {
  width: 130px !important;
}

body.ff-user-theme .ff-order-products-card .ff-select-col {
  text-align: center !important;
  vertical-align: middle !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

body.ff-user-theme .ff-order-products-card .ff-item-select,
body.ff-user-theme .ff-order-products-card .ff-item-select-all {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  accent-color: var(--ob-blue) !important;
  cursor: pointer !important;
}

body.ff-user-theme .ff-order-products-card .ff-product-card-rich {
  align-items: flex-start !important;
  gap: 12px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;

}

body.ff-user-theme .ff-order-products-card .ff-table tbody td .ff-product-card.ff-product-card-rich {
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;

}

body.ff-user-theme .ff-order-products-card .ff-product-info {
  min-width: 0 !important;
  width: 100% !important;
}

body.ff-user-theme .ff-order-products-card .ff-product-image {
  width: 54px !important;
  height: 64px !important;
  border-radius: 10px !important;
  border: 1px solid var(--ob-line) !important;
  background: #fff !important;
  color: var(--ob-muted) !important;
  flex: 0 0 auto !important;
  object-fit: cover !important;
  overflow: hidden !important;
  position: relative !important;
  z-index: 1 !important;


}

body.ff-user-theme .ff-order-products-card .ff-product-image img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
}

body.ff-user-theme .ff-order-products-card .ff-product-image:not(img):not(:has(img)) {
  display: none !important;
}

body.ff-user-theme .ff-order-products-card img.ff-product-image:hover,
body.ff-user-theme .ff-order-products-card .ff-product-image:has(img):hover {
  border-color: #9bb9f2 !important;

  transform: scale(2.15) !important;
  z-index: 50 !important;
}

body.ff-user-theme .ff-products-catalog-card .ff-product-base-spec-editor {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 46px !important;
  align-items: start !important;
  gap: 8px !important;
  min-width: 0 !important;
}

body.ff-user-theme .ff-products-catalog-card .ff-product-base-spec-input {
  min-height: 48px !important;
  max-height: 84px !important;
  padding: 10px 12px !important;
  resize: vertical !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  color: var(--ob-text) !important;
}

body.ff-user-theme .ff-products-catalog-card .ff-product-base-spec-save {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  border-radius: 12px !important;
}

body.ff-user-theme .ff-products-catalog-card .ff-product-base-spec-save.is-saving {
  pointer-events: none !important;
  opacity: 0.72 !important;
}

body.ff-user-theme .ff-products-catalog-card .ff-techspec-status {
  grid-column: 1 / -1 !important;
  min-height: 16px !important;
  color: var(--ob-muted) !important;
  font-size: 12px !important;
  font-weight: 750 !important;
}

body.ff-user-theme .ff-order-products-card .ff-product-name {
  color: var(--ob-text) !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.ff-user-theme .ff-order-products-card .ff-product-detail {
  color: var(--ob-muted) !important;
  min-width: 0 !important;
}

body.ff-user-theme .ff-order-products-card .ff-product-detail span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.ff-user-theme .ff-order-products-card .ff-product-meta-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-top: 9px !important;
  min-width: 0 !important;
}

body.ff-user-theme .ff-order-products-card .ff-product-meta-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 28px !important;
  padding: 0 9px !important;
  border-radius: 999px !important;
  background: var(--ob-panel-soft) !important;
  border: 1px solid var(--ob-line) !important;
  color: #52627a !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.ff-user-theme .ff-order-products-card .ff-product-meta-chip i {
  color: var(--ob-blue) !important;
  flex: 0 0 auto !important;
}

body.ff-user-theme .ff-order-products-card .ff-product-meta-chip--barcode {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
  color: #66758b !important;
}

body.ff-user-theme .ff-order-products-card .ff-badge-primary,
body.ff-user-theme .ff-order-products-card .ff-badge-secondary,
body.ff-user-theme .ff-order-products-card .ff-badge-warning,
body.ff-user-theme .ff-order-products-card .ff-badge-success,
body.ff-user-theme .ff-order-products-card .ff-quantity-input {
  background: var(--ob-panel-soft) !important;
  border-color: var(--ob-line) !important;
  color: var(--ob-text) !important;

}

body.ff-user-theme .ff-order-products-card .ff-badge-primary,
body.ff-user-theme .ff-order-products-card .ff-badge-secondary,
body.ff-user-theme .ff-order-products-card .ff-badge-warning,
body.ff-user-theme .ff-order-products-card .ff-badge-success {
  min-width: 40px !important;
  min-height: 38px !important;
  font-size: 14px !important;
  letter-spacing: 0 !important;
}

body.ff-user-theme .ff-order-products-card .ff-quantity-controls {
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
}

body.ff-user-theme .ff-order-products-card .ff-quantity-btn {
  background: var(--ob-panel) !important;
  border-color: var(--ob-line) !important;
  color: var(--ob-blue) !important;

}

body.ff-user-theme .ff-order-products-card .ff-row-delete-btn {
  color: #dc2626 !important;
  border-color: #fee2e2 !important;
  background: #fff7f7 !important;

}

body.ff-user-theme .ff-order-products-card .ff-row-delete-btn:hover {
  color: #b91c1c !important;
  border-color: #fecaca !important;
  background: #fee2e2 !important;
}

@media (max-width: 1120px) {
  body.ff-user-theme .ff-compact-filters .ff-filters-form {
    grid-template-columns: 1fr !important;
  }

  body.ff-user-theme .ff-compact-filters .ff-filters-actions {
    justify-content: space-between !important;
  }
}

@media (max-width: 680px) {
  body.ff-user-theme .ff-compact-filters .ff-filters-grid {
    grid-template-columns: 1fr !important;
  }

  body.ff-user-theme .ff-compact-filters .ff-filter-dates {
    grid-template-columns: 1fr !important;
  }

  body.ff-user-theme .ff-compact-filters .ff-filter-dates-sep {
    display: none !important;
  }

  body.ff-user-theme .ff-compact-filters .ff-filters-actions,
  body.ff-user-theme .ff-compact-filters .ff-filters-buttons,
  body.ff-user-theme .ff-compact-filters .ff-sort-controls {
    align-items: stretch !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  body.ff-user-theme .ff-compact-filters .ff-sort-controls .ff-select,
  body.ff-user-theme .ff-compact-filters .ff-filters-actions .ff-btn {
    width: 100% !important;
    max-width: none !important;
  }
}

/* Кабинет: дашборд — уже общего layout (не 1320px «простыня») */
body.ff-user-dashboard-page main.ff-user-dash-container {
  max-width: 1180px !important;
  width: min(calc(100vw - 40px), 1180px) !important;
}
