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

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f3f7fa;
  --surface-tint: #e8f3f3;
  --text: #0f172a;
  --muted: #64748b;
  --line: #d9e4ea;
  --accent: #2864d9;
  --accent-dark: #1d4ea8;
  --section-label: #176f6d;
  --brand-accent: #176f6d;
  --sidebar: #111a26;
  --sidebar-soft: #1d2a39;
  --danger: #be3f3f;
  --info: #237b8b;
  --success: #0f7a54;
  --warning: #b7791f;
  --radius-card: 14px;
  --radius-control: 10px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 14px 42px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 44px rgba(15, 23, 42, 0.08);
  --font-main: "Plus Jakarta Sans", Aptos, Calibri, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #eef4f7 0, var(--bg) 260px),
    var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
input,
select,
textarea {
  letter-spacing: 0;
}

.hidden {
  display: none !important;
}

@keyframes page-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
}

body.dashboard-mode .auth-shell {
  display: block;
}

.auth-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 44px;
  padding: 36px;
  background:
    linear-gradient(rgba(20, 29, 39, 0.86), rgba(20, 29, 39, 0.92)),
    url("https://images.unsplash.com/photo-1555041469-a586c61ea9bc?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand.compact {
  align-items: flex-start;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-accent);
  color: #ffffff;
  font-weight: 800;
}

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

.brand span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.account-identity {
  display: grid;
  gap: 3px;
  min-width: 190px;
}

.account-identity strong,
.account-identity span {
  display: block;
}

.account-identity strong {
  color: #ffffff;
  font-size: 14px;
}

.account-identity span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

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

.eyebrow {
  margin: 0 0 8px;
  color: var(--section-label);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
}

h2 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.16;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-copy p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.55;
}

.hero-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-steps article {
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-steps span {
  display: block;
  margin-bottom: 26px;
  color: var(--brand-accent);
  font-weight: 800;
}

.hero-steps strong {
  display: block;
  margin-bottom: 8px;
}

.hero-steps p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
}

.auth-panel {
  align-self: center;
  width: min(760px, calc(100% - 48px));
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  padding: 28px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-heading {
  margin-bottom: 18px;
}

.switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.switcher-button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.switcher-button.active {
  background: var(--surface);
  color: var(--accent-dark);
  box-shadow: 0 8px 24px rgba(25, 43, 37, 0.08);
}

.auth-form,
.profile-card {
  display: grid;
  gap: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
}

label.wide {
  grid-column: 1 / -1;
}

label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 102, 208, 0.16);
}

input:disabled,
select:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.native-select-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.custom-select {
  position: relative;
  min-width: 0;
}

.custom-select-trigger {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 252, 0.96));
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.custom-select-trigger:hover,
.custom-select.open .custom-select-trigger {
  border-color: rgba(40, 100, 217, 0.66);
  box-shadow: 0 0 0 3px rgba(40, 100, 217, 0.14);
}

.custom-select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-icon {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--accent-dark);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
  flex: 0 0 auto;
}

.custom-select.open .custom-select-icon {
  transform: rotate(225deg) translate(-2px, -1px);
}

.custom-select-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  max-height: 236px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(40, 100, 217, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 20px 48px rgba(15, 23, 42, 0.18),
    0 2px 8px rgba(15, 23, 42, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px) scale(0.985);
  transform-origin: top;
  transition:
    opacity 150ms ease,
    transform 150ms ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(40, 100, 217, 0.42) transparent;
}

.custom-select.open .custom-select-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.custom-select-option {
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #243044;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 130ms ease,
    color 130ms ease,
    transform 130ms ease;
}

.custom-select-option:hover,
.custom-select-option:focus {
  outline: none;
  background: rgba(40, 100, 217, 0.1);
  color: var(--accent-dark);
}

.custom-select-option.selected {
  background: linear-gradient(135deg, var(--accent), #3c7af2);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(40, 100, 217, 0.2);
}

.custom-select.disabled .custom-select-trigger {
  cursor: not-allowed;
  opacity: 0.68;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-button {
  border: 0;
  background: var(--accent);
  color: #ffffff;
}

.primary-button:hover {
  background: var(--accent-dark);
}

.secondary-button {
  border: 1px solid var(--accent);
  background: #edf3ff;
  color: var(--accent-dark);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #ffffff;
}

.form-message {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.form-message.error {
  color: var(--danger);
}

.form-message.success {
  color: var(--accent-dark);
}

.dashboard {
  min-height: 100vh;
  display: block;
}

.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
  background:
    linear-gradient(135deg, rgba(198, 169, 106, 0.12), transparent 34%),
    linear-gradient(90deg, #121a24, var(--sidebar));
  color: #ffffff;
  box-shadow: 0 10px 34px rgba(23, 32, 43, 0.18);
}

.dashboard-topbar-inner {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 8px 16px;
  overflow: visible;
}

.dashboard-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 4px 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.dashboard-nav::-webkit-scrollbar {
  height: 5px;
}

.dashboard-nav::-webkit-scrollbar-track {
  background: transparent;
}

.dashboard-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
}

.dashboard-nav a,
.dashboard-nav > button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nav-mark {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--brand-accent);
  font-size: 11px;
  font-weight: 900;
}

.dashboard-nav a.active,
.dashboard-nav a:hover,
.dashboard-nav > button.active,
.dashboard-nav > button:hover {
  background: var(--sidebar-soft);
  color: #ffffff;
}

.dashboard-nav a:hover,
.dashboard-nav > button:hover {
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

[data-legacy-manager-new-button] {
  display: none !important;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 10px;
}

.nav-dropdown-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 34px 0 13px;
  border: 0;
  border-radius: 8px;
  background: var(--sidebar-soft);
  color: #ffffff;
  font-weight: 500;
  position: relative;
  cursor: pointer;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.nav-dropdown-button::after {
  content: "";
  position: absolute;
  right: 13px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav-dropdown-menu {
  position: fixed;
  top: var(--nav-dropdown-top, 72px);
  left: var(--nav-dropdown-left, 0);
  z-index: 1200;
  display: grid;
  gap: 4px;
  min-width: var(--nav-dropdown-width, 220px);
  max-width: min(340px, calc(100vw - 16px));
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: var(--sidebar);
  box-shadow: 0 18px 46px rgba(10, 16, 24, 0.28);
  isolation: isolate;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top left;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.nav-dropdown.is-open .nav-dropdown-button::after {
  transform: translateY(2px) rotate(225deg);
}

.nav-dropdown-menu button {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.nav-dropdown-menu button.active,
.nav-dropdown-menu button:hover {
  background: var(--sidebar-soft);
  color: #ffffff;
}

.nav-dropdown-menu button:hover {
  transform: translateX(2px);
}

.nav-dropdown-menu a {
  width: 100%;
  justify-content: flex-start;
}

.role-badge {
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
  white-space: nowrap;
}

.topbar-actions .ghost-button {
  min-height: 36px;
  padding: 0 14px;
}

.cabinet-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(32, 40, 51, 0.08);
}

.cabinet-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.cabinet-tabs button.active,
.cabinet-tabs button:hover {
  background: #edf3ff;
  color: var(--accent-dark);
}

.cabinet-tabs button:hover {
  transform: translateY(-1px);
}

.dashboard-main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 28px;
  animation: page-enter 220ms ease both;
}

.dashboard-main::before {
  content: "";
  position: fixed;
  inset: 76px 0 auto 0;
  z-index: -1;
  height: 240px;
  background: linear-gradient(180deg, #f7fafc 0%, rgba(247, 250, 252, 0) 100%);
  pointer-events: none;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.section-lead {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.48;
}

.supplier-command-strip,
.workspace-metrics,
.product-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.supplier-command-strip article,
.workspace-metrics article,
.product-focus-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f9fbfd);
  box-shadow: var(--shadow-soft);
}

.supplier-command-strip article {
  border-left: 4px solid var(--brand-accent);
}

.supplier-command-strip span,
.workspace-metrics span,
.supplier-command-strip small,
.workspace-metrics small,
.product-focus-grid small {
  display: block;
  color: var(--muted);
}

.supplier-command-strip strong,
.workspace-metrics strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 24px;
  line-height: 1.18;
}

.supplier-action-center {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.5fr);
  gap: 14px;
  margin-bottom: 18px;
}

.supplier-action-hero,
.supplier-action-metrics article,
.supplier-action-list article {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.supplier-action-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  min-height: 100%;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(23, 111, 109, 0.12), transparent 54%),
    #ffffff;
}

.supplier-action-hero h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.supplier-action-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.supplier-action-hero > strong {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  background: var(--brand-accent);
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
}

.supplier-action-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  grid-column: 1 / -1;
}

.supplier-action-metrics article {
  padding: 14px;
}

.supplier-action-metrics span,
.supplier-action-metrics small,
.supplier-action-list span,
.supplier-action-list small {
  display: block;
  color: var(--muted);
}

.supplier-action-metrics strong {
  display: block;
  margin: 7px 0 4px;
  color: #101827;
  font-size: 24px;
  font-weight: 900;
}

.supplier-action-list {
  display: grid;
  gap: 8px;
}

.supplier-action-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 12px;
  border-left: 4px solid rgba(23, 111, 109, 0.34);
}

.supplier-action-list article.danger {
  border-left-color: #dc2626;
  background: linear-gradient(90deg, #fff7f7, #ffffff 48%);
}

.supplier-action-list article.warning {
  border-left-color: #d97706;
  background: linear-gradient(90deg, #fffbeb, #ffffff 48%);
}

.supplier-action-list article.success {
  border-left-color: var(--brand-accent);
  background: linear-gradient(90deg, #effefa, #ffffff 48%);
}

.supplier-action-list strong {
  display: block;
  margin: 4px 0;
  color: #101827;
}

.workspace-preview {
  display: grid;
  gap: 18px;
}

.workspace-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 102, 208, 0.08), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow);
}

.workspace-hero p {
  max-width: 640px;
  color: var(--muted);
  line-height: 1.5;
}

.document-hero {
  min-height: 180px;
}

.formal-documents-card {
  margin-top: 0;
}

.formal-documents-table {
  display: grid;
  gap: 8px;
}

.formal-document-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.9fr) minmax(230px, 1.5fr) minmax(100px, 0.7fr) minmax(110px, 0.8fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.formal-document-row:not(.formal-document-head):hover {
  border-color: #cbd7e3;
  background: #ffffff;
  transform: translateY(-1px);
}

.formal-document-head {
  min-height: 40px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.formal-document-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.document-status,
.payment-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  width: fit-content;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.document-status.signed,
.payment-lock {
  background: #dff4ef;
  color: #176356;
}

.document-status.unsigned,
.payment-lock.blocked {
  background: #fff3df;
  color: #9a5a10;
}

.status-pill.warning {
  background: #fff3df;
  color: #9a5a10;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf3ff;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.status-pill.review {
  background: #e9f7f9;
  color: var(--info);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metrics article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metrics span,
.metrics small {
  color: var(--muted);
}

.metrics span,
.metrics strong,
.metrics small {
  display: block;
}

.metrics strong {
  margin: 10px 0 5px;
  font-size: 30px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.profile-card,
.review-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.profile-card:hover,
.review-card:hover,
.future-card:hover {
  border-color: #cbd7e3;
  box-shadow: 0 24px 70px rgba(32, 40, 51, 0.13);
}

.card-heading p,
.review-card p {
  color: var(--muted);
  line-height: 1.48;
}

.split-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.supplier-table {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.supplier-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(120px, 0.8fr) minmax(150px, 1fr) minmax(130px, 0.8fr);
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.supplier-row-head {
  min-height: 42px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.supplier-row strong,
.supplier-row small {
  display: block;
}

.supplier-row:not(.supplier-row-head):hover,
.nomenclature-row:not(.nomenclature-head):hover,
.sales-row:not(.sales-head):hover,
.procurement-row:not(.procurement-head):hover,
.new-calendar-row:not(.new-calendar-head):hover,
.new-assortment-row:not(.new-assortment-head):hover,
.logistics-row:not(.logistics-head):hover,
.payments-row:not(.payments-head):hover,
.quality-row:not(.quality-head):hover {
  border-color: #cbd7e3;
  background: #ffffff;
  transform: translateY(-1px);
}

.supplier-row small {
  margin-top: 4px;
  color: var(--muted);
}

.admin-workspace-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-supplier-panel {
  position: sticky;
  top: 92px;
}

.admin-supplier-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.admin-supplier-list button {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: inherit;
  text-align: left;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.admin-supplier-list button:hover,
.admin-supplier-list button.active {
  border-color: rgba(23, 111, 109, 0.42);
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.admin-supplier-list strong,
.admin-supplier-list span,
.admin-supplier-list small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-supplier-list span,
.admin-supplier-list small {
  color: var(--muted);
  font-size: 12px;
}

.admin-workspace-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.admin-access-grid,
.admin-process-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-access-grid span {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  background: #f8fbfc;
}

.admin-access-grid strong,
.admin-access-grid small {
  display: block;
}

.admin-access-grid strong {
  margin-bottom: 4px;
  font-size: 18px;
}

.admin-access-grid small {
  color: var(--muted);
}

.admin-tab-access-panel {
  display: grid;
  gap: 18px;
}

.admin-tab-access-list {
  display: grid;
  gap: 14px;
}

.admin-tab-access-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fcfc);
}

.admin-tab-access-card-head,
.admin-tab-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-tab-access-card-head strong,
.admin-tab-access-card-head small {
  display: block;
}

.admin-tab-access-card-head small {
  margin-top: 4px;
  color: var(--muted);
}

.admin-tab-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 10px;
}

.admin-tab-toggle {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.admin-tab-toggle:hover,
.admin-tab-toggle.enabled {
  border-color: rgba(23, 111, 109, 0.28);
  background: #f0fbfa;
}

.admin-tab-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-tab-toggle-control {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #dbe4eb;
  box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.16);
  transition: background-color 180ms ease;
}

.admin-tab-toggle-control::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
  transition: transform 180ms ease;
}

.admin-tab-toggle.enabled .admin-tab-toggle-control {
  background: var(--brand-accent);
}

.admin-tab-toggle.enabled .admin-tab-toggle-control::after {
  transform: translateX(18px);
}

.admin-tab-toggle strong,
.admin-tab-toggle small {
  display: block;
}

.admin-tab-toggle small {
  margin-top: 3px;
  color: var(--muted);
}

.admin-tab-card-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.admin-tab-card-actions .form-message {
  min-height: 0;
  margin: 0 0 0 auto;
}

.admin-process-tabs {
  display: flex;
  gap: 6px;
  margin: 16px 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.admin-process-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 800;
}

.admin-process-tabs button.active,
.admin-process-tabs button:hover {
  border-color: rgba(23, 111, 109, 0.38);
  background: rgba(23, 111, 109, 0.1);
  color: var(--brand-accent);
}

.admin-cabinet-tabs {
  margin-top: 6px;
  padding-bottom: 8px;
}

.admin-cabinet-profile,
.admin-readonly-section {
  display: grid;
  gap: 16px;
}

.admin-detail-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-detail-fields span {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: #f8fbfc;
}

.admin-detail-fields strong,
.admin-detail-fields small {
  display: block;
}

.admin-detail-fields small {
  margin-top: 4px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-readonly-list {
  margin-top: 0;
}

.admin-audit-section {
  display: grid;
  gap: 16px;
}

.admin-audit-list {
  display: grid;
  gap: 10px;
}

.admin-audit-list article {
  display: grid;
  grid-template-columns: max-content minmax(180px, 0.9fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: #f8fbfc;
}

.admin-audit-list strong,
.admin-audit-list small {
  display: block;
}

.admin-audit-list small {
  margin-top: 4px;
  color: var(--muted);
}

.admin-audit-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.admin-process-table {
  display: grid;
  gap: 8px;
  overflow-x: auto;
}

.admin-process-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.25fr) minmax(170px, 1fr) minmax(180px, 0.9fr) minmax(230px, auto);
  gap: 12px;
  align-items: center;
  min-width: 880px;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.admin-process-head {
  min-height: 42px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-process-row strong,
.admin-process-row small {
  display: block;
}

.admin-process-row small {
  margin-top: 4px;
  color: var(--muted);
}

.admin-process-row code {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-process-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.danger-button {
  border-color: rgba(190, 63, 63, 0.3);
  color: var(--danger);
}

.admin-process-editor {
  width: min(920px, calc(100vw - 56px));
}

.admin-process-editor-form {
  display: grid;
  gap: 14px;
}

.admin-process-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-process-form-grid label.wide {
  grid-column: 1 / -1;
}

.admin-process-form-grid textarea {
  min-height: 110px;
  resize: vertical;
}

.admin-checkbox-field {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.admin-checkbox-field input {
  width: 18px;
  min-height: 18px;
}

.admin-checkbox-field span {
  color: var(--text);
}

.admin-form-locks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-form-locks span {
  min-width: 0;
  padding: 10px 12px;
  border: 1px dashed rgba(148, 163, 184, 0.42);
  border-radius: 8px;
  background: #f8fbfc;
}

.admin-form-locks strong,
.admin-form-locks small {
  display: block;
}

.admin-form-locks small {
  margin-top: 4px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-state {
  margin-bottom: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
}

.empty-workspace {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.future-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(180px, 0.8fr) minmax(220px, 1fr);
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.assortment-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.assortment-summary article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.assortment-summary span,
.assortment-summary small {
  display: block;
  color: var(--muted);
}

.assortment-summary strong {
  display: block;
  margin: 10px 0 5px;
  font-size: 24px;
  line-height: 1.18;
}

.assortment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
  gap: 18px;
}

.assortment-layout > .profile-card {
  align-self: start;
}

.assortment-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  gap: 18px;
  margin-bottom: 18px;
}

.assortment-toolbar {
  margin: 0;
  box-shadow: none;
}

.assortment-toolbar.future-toolbar {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.assortment-toolbar label.wide {
  grid-column: 1 / -1;
}

.assortment-toolbar .secondary-button {
  width: fit-content;
}

.arjuna-shot {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 111, 109, 0.08), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow);
}

.arjuna-shot-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.arjuna-shot-top span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.arjuna-shot-grid {
  display: grid;
  grid-template-columns: minmax(90px, 0.8fr) 1fr;
  gap: 8px 12px;
  align-items: center;
  font-size: 13px;
}

.arjuna-shot-grid span {
  color: var(--muted);
}

.product-focus-grid article {
  display: flex;
  align-items: center;
  gap: 14px;
}

.category-dot {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.category-dot.sofa {
  background: #4b6f8f;
}

.category-dot.table {
  background: var(--brand-accent);
}

.category-dot.storage {
  background: var(--success);
}

.product-focus-grid strong {
  display: block;
  margin-bottom: 4px;
}

.sales-filter {
  grid-template-columns: minmax(140px, 0.7fr) minmax(140px, 0.7fr) minmax(170px, 0.9fr) minmax(160px, 0.8fr) minmax(240px, 1.2fr) auto;
  align-items: end;
}

.sales-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.sales-summary-total {
  grid-template-columns: minmax(260px, 420px);
}

.sales-summary article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sales-summary-total article {
  border-left: 4px solid var(--brand-accent);
}

.sales-summary .channel-card {
  position: relative;
  overflow: hidden;
}

.sales-summary .channel-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--accent);
}

.sales-summary .channel-card.wb::before,
.channel-pill.wb,
.channel-badge.wb {
  background: #8b4bd6;
}

.sales-summary .channel-card.ozon::before,
.channel-pill.ozon,
.channel-badge.ozon {
  background: #1f6fe5;
}

.sales-summary .channel-card.ym::before,
.channel-pill.ym,
.channel-badge.ym {
  background: #f6c500;
}

.channel-topline {
  display: flex;
  gap: 8px;
  align-items: center;
}

.channel-badge,
.channel-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.channel-badge {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
}

.channel-pill {
  min-height: 28px;
  font-size: 12px;
  white-space: nowrap;
}

.sales-summary span,
.sales-summary small {
  display: block;
  color: var(--muted);
}

.sales-summary .channel-badge,
.sales-row .channel-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.sales-summary strong {
  display: block;
  margin: 10px 0 5px;
  font-size: 26px;
  line-height: 1.18;
}

.sales-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.sales-layout-wide {
  grid-template-columns: minmax(0, 1fr);
}

.sales-table {
  display: grid;
  gap: 8px;
}

.sales-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.7fr) minmax(110px, 0.85fr) minmax(190px, 1.45fr) minmax(130px, 0.9fr) minmax(110px, 0.75fr) minmax(64px, 0.45fr) minmax(110px, 0.8fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.sales-head {
  min-height: 40px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.forecast-card {
  align-content: start;
}

.forecast-main {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.forecast-main span,
.forecast-list span {
  color: var(--muted);
}

.forecast-main strong {
  font-size: 36px;
  line-height: 1;
}

.forecast-meter span {
  max-width: 100%;
}

.forecast-list {
  display: grid;
  gap: 10px;
}

.forecast-list article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.positive {
  color: #207a55;
}

.negative {
  color: var(--danger);
}

.procurement-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.procurement-filter {
  grid-template-columns: minmax(140px, 0.7fr) minmax(140px, 0.7fr) minmax(150px, 0.8fr) minmax(140px, 0.7fr) minmax(170px, 0.9fr) auto;
  align-items: end;
  margin-bottom: 18px;
}

.procurement-summary article {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.procurement-summary article::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--brand-accent);
}

.procurement-summary span,
.procurement-summary small {
  display: block;
  color: var(--muted);
}

.procurement-summary strong {
  display: block;
  margin: 10px 0 5px;
  font-size: 26px;
  line-height: 1.18;
}

.procurement-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.procurement-layout-wide {
  grid-template-columns: minmax(0, 1fr);
}

.procurement-table {
  display: grid;
  gap: 8px;
}

.procurement-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.9fr) minmax(90px, 0.7fr) minmax(120px, 0.85fr) minmax(150px, 1fr) minmax(130px, 0.9fr) minmax(104px, 0.7fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.procurement-row.active {
  border-color: rgba(31, 111, 109, 0.45);
  background: #f2fbfa;
}

.procurement-head {
  min-height: 40px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.procurement-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  width: fit-content;
  padding: 0 10px;
  border-radius: 8px;
  background: #eaf4f3;
  color: var(--brand-accent);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.procurement-status.ready {
  background: #dff4ef;
  color: #176356;
}

.procurement-status.review {
  background: #eaf2ff;
  color: #2459b6;
}

.procurement-status.draft {
  background: #eef2f6;
  color: var(--muted);
}

.procurement-status.scheduled {
  background: #ecf7e9;
  color: #277342;
}

.compact-button {
  min-height: 34px;
  padding: 0 12px;
}

.procurement-detail-card {
  margin-top: 18px;
}

.procurement-detail-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.procurement-detail-summary article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.procurement-detail-summary span,
.procurement-detail-summary small {
  display: block;
  color: var(--muted);
}

.procurement-detail-summary strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 20px;
}

.procurement-items-table,
.claims-table {
  display: grid;
  gap: 8px;
}

.procurement-item-row,
.claims-row {
  display: grid;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.procurement-item-row {
  grid-template-columns: minmax(110px, 0.8fr) minmax(220px, 1.5fr) minmax(80px, 0.6fr) minmax(110px, 0.8fr) minmax(120px, 0.85fr);
}

.claims-row {
  grid-template-columns: minmax(100px, 0.75fr) minmax(110px, 0.8fr) minmax(140px, 0.9fr) minmax(110px, 0.8fr) minmax(220px, 1.35fr) minmax(120px, 0.85fr);
}

.claims-head,
.procurement-item-row.procurement-head {
  min-height: 40px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.procurement-slot-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.regulation-card {
  align-content: start;
}

.regulation-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(31, 111, 109, 0.22);
  border-radius: 8px;
  background: #f2fbfa;
}

.regulation-box > span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(31, 111, 109, 0.12);
  color: var(--brand-accent);
  font-size: 12px;
  font-weight: 900;
}

.regulation-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

.schedule-transfer {
  display: grid;
  gap: 10px;
}

.schedule-transfer h4 {
  margin: 0;
  font-size: 15px;
}

.schedule-transfer article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.schedule-transfer span {
  color: var(--muted);
}

.supply-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.supply-flow article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.supply-flow span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 8px;
  background: #eaf4f3;
  color: var(--brand-accent);
  font-size: 12px;
  font-weight: 900;
}

.supply-flow small {
  color: var(--muted);
}

.new-assortment-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.new-assortment-summary article {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.new-assortment-summary article::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--brand-accent);
}

.new-assortment-summary span,
.new-assortment-summary small {
  display: block;
  color: var(--muted);
}

.new-assortment-summary strong {
  display: block;
  margin: 10px 0 5px;
  font-size: 26px;
  line-height: 1.18;
}

.new-assortment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.calendar-mode-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.calendar-mode-switch button {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.calendar-mode-switch button.active,
.calendar-mode-switch button:hover {
  background: #ffffff;
  color: var(--brand-accent);
  box-shadow: 0 8px 20px rgba(18, 39, 46, 0.08);
}

.new-calendar-form {
  display: grid;
  gap: 14px;
}

.new-assortment-table {
  display: grid;
  gap: 8px;
}

.new-assortment-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(190px, 1.25fr) minmax(90px, 0.7fr) minmax(90px, 0.65fr) minmax(120px, 0.85fr) minmax(120px, 0.85fr) minmax(140px, 0.95fr) minmax(150px, 1fr) minmax(130px, 0.85fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.new-assortment-head {
  min-height: 40px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.offer-marketplace-table {
  overflow-x: auto;
  padding-bottom: 6px;
}

.offer-marketplace-row {
  grid-template-columns:
    minmax(130px, 0.8fr)
    minmax(230px, 1.15fr)
    minmax(280px, 1.45fr)
    minmax(100px, 0.65fr)
    minmax(150px, 0.8fr)
    minmax(120px, 0.65fr)
    minmax(150px, 0.75fr);
  min-width: 1120px;
}

.offer-marketplace-head {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.offer-marketplace-row small {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.offer-marketplace-item {
  cursor: pointer;
}

.offer-marketplace-item:hover,
.offer-marketplace-item.active {
  border-color: rgba(20, 126, 124, 0.42);
  background: #eefafa;
  box-shadow: 0 14px 32px rgba(20, 126, 124, 0.1);
}

.offer-detail-card {
  border-color: rgba(20, 126, 124, 0.24);
  background:
    linear-gradient(135deg, rgba(238, 250, 250, 0.96), rgba(255, 255, 255, 0.98));
}

.offer-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.offer-detail-grid article,
.offer-detail-characteristics {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.offer-detail-grid span,
.offer-detail-characteristics span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.offer-detail-grid strong {
  font-size: 20px;
}

.offer-price-form {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) auto minmax(120px, 1fr);
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(20, 126, 124, 0.2);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(241, 251, 251, 0.96), rgba(255, 255, 255, 0.98));
}

.offer-price-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.offer-price-form label,
.offer-price-form span {
  display: block;
}

.offer-price-form label span {
  margin-bottom: 6px;
  color: var(--brand-accent);
  font-size: 12px;
  font-weight: 900;
}

.offer-price-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-weight: 900;
  outline: none;
}

.offer-price-form input:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 4px rgba(20, 126, 124, 0.12);
}

.offer-detail-characteristics p {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  line-height: 1.55;
}

.offer-characteristic-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.offer-characteristic-slot {
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(20, 126, 124, 0.2);
  border-radius: 12px;
  background: #f1fbfb;
  line-height: 1.35;
}

.offer-characteristic-slot span {
  color: var(--brand-accent);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.offer-characteristic-slot strong {
  color: var(--text);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.offer-modal-page-blur {
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}

.offer-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(8px);
}

.offer-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1380px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.offer-modal-header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff, #f1fbfb);
}

.offer-modal-header h3 {
  margin: 4px 0 8px;
  font-size: 24px;
}

.offer-modal-header span {
  color: var(--muted);
  font-weight: 700;
}

.offer-modal-header .modal-close-button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(20, 126, 124, 0.28);
  border-radius: 12px;
  background: rgba(241, 251, 251, 0.92);
  color: var(--brand-accent);
  box-shadow: 0 12px 30px rgba(20, 126, 124, 0.1);
  font-weight: 900;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.offer-modal-header .modal-close-button:hover {
  border-color: rgba(20, 126, 124, 0.48);
  background: #e7f8f7;
  box-shadow: 0 16px 34px rgba(20, 126, 124, 0.16);
  transform: translateY(-1px);
}

.offer-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  min-height: 0;
  padding: 20px;
  overflow: hidden;
}

.offer-modal-info {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  padding-right: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(20, 126, 124, 0.48) rgba(226, 232, 240, 0.58);
  scrollbar-width: thin;
}

.offer-chat-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 500px;
  padding: 22px;
  border: 1px dashed rgba(20, 126, 124, 0.28);
  border-radius: 16px;
  background: #f7fcfc;
  text-align: center;
}

.offer-chat-empty span {
  color: var(--muted);
  font-weight: 700;
}

.offer-chat-panel {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto;
  height: 100%;
  min-height: 0;
  align-self: stretch;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background: #f8fbfc;
}

.offer-chat-panel header {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.offer-chat-panel header span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.offer-chat-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 14px;
  overflow-y: auto;
}

.offer-chat-form {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 46px;
  grid-template-areas: "file text send";
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.offer-chat-form .message-input-wrap {
  grid-area: text;
  width: 100%;
  border-radius: 16px;
}

.offer-chat-form textarea {
  width: 100%;
  min-height: 46px;
  max-height: 84px;
  resize: none;
}

.offer-file-button {
  grid-area: file;
  display: inline-grid;
  width: 28px;
  height: 46px;
  place-items: center;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--brand-accent);
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.offer-file-button:hover {
  background: transparent;
  transform: translateY(-1px);
}

.offer-file-button span {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.offer-file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.offer-file-name {
  display: none;
}

.offer-chat-form .send-button {
  grid-area: send;
}

@media (max-width: 980px) {
  .offer-modal-backdrop {
    padding: 14px;
  }

  .offer-modal {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
  }

  .offer-modal-body {
    grid-template-columns: 1fr;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .offer-modal-info {
    padding-right: 0;
    overflow: visible;
  }

  .offer-chat-panel {
    position: relative;
    height: min(520px, calc(100vh - 80px));
    min-height: 420px;
  }

  .offer-detail-grid {
    grid-template-columns: 1fr;
  }

  .offer-price-form {
    grid-template-columns: 1fr;
  }
}

.tech-file-upload {
  display: inline-flex;
  min-width: 0;
  cursor: pointer;
}

.tech-file-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.tech-file-upload span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: #edf3ff;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-calendar-table {
  display: grid;
  gap: 8px;
}

.new-calendar-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(82px, 0.7fr) minmax(82px, 0.7fr) minmax(130px, 1fr) minmax(92px, 0.8fr) minmax(100px, 0.8fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.new-calendar-head {
  min-height: 40px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.new-calendar-row input[type="number"] {
  min-height: 36px;
  padding: 0 10px;
  font-weight: 800;
}

.calendar-progress {
  display: block;
  height: 7px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce6ee;
}

.calendar-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-accent);
}

.new-plan-status {
  display: inline-flex;
  justify-content: center;
  min-height: 28px;
  width: fit-content;
  padding: 0 10px;
  border-radius: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.new-plan-status.ready {
  background: #dff4ef;
  color: #176356;
}

.new-plan-status.review {
  background: #eaf2ff;
  color: #2459b6;
}

.new-plan-status.risk {
  background: #fff3df;
  color: #9a5a10;
}

.new-plan-status.scheduled {
  background: #ecf7e9;
  color: #277342;
}

.arjuna-capacity-card {
  align-content: start;
}

.capacity-gauge {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(31, 111, 109, 0.22);
  border-radius: 8px;
  background: #f2fbfa;
}

.capacity-gauge span,
.capacity-gauge small {
  color: var(--muted);
}

.capacity-gauge strong {
  font-size: 32px;
  line-height: 1;
}

.supplier-league {
  display: grid;
  gap: 10px;
}

.supplier-league h4 {
  margin: 0;
  font-size: 15px;
}

.supplier-league article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.supplier-league article.current {
  border-color: rgba(31, 111, 109, 0.36);
  background: #f2fbfa;
}

.supplier-league article > span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #eaf4f3;
  color: var(--brand-accent);
  font-weight: 900;
}

.supplier-league strong,
.supplier-league small {
  display: block;
}

.supplier-league small {
  margin-top: 4px;
  color: var(--muted);
}

.logistics-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.logistics-summary article {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.logistics-summary article::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--brand-accent);
}

.logistics-summary span,
.logistics-summary small {
  display: block;
  color: var(--muted);
}

.logistics-summary strong {
  display: block;
  margin: 10px 0 5px;
  font-size: 26px;
  line-height: 1.18;
}

.logistics-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.logistics-table {
  display: grid;
  gap: 8px;
}

.logistics-row {
  display: grid;
  grid-template-columns: minmax(96px, 0.75fr) minmax(170px, 1.25fr) minmax(70px, 0.55fr) minmax(132px, 0.9fr) minmax(130px, 0.9fr) minmax(120px, 0.9fr) minmax(130px, 0.9fr);
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.logistics-head {
  min-height: 40px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.logistics-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.logistics-row input,
.logistics-row select {
  min-height: 36px;
  padding: 0 10px;
  font-weight: 800;
}

.logistics-slots-card {
  align-content: start;
}

.logistics-calendar-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.logistics-order-panel,
.logistics-calendar-card {
  align-content: start;
}

.logistics-order-list {
  display: grid;
  gap: 10px;
}

.logistics-order-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.logistics-order-card:hover,
.logistics-order-card.active {
  border-color: rgba(31, 111, 109, 0.45);
  background: #f2fbfa;
  box-shadow: 0 14px 28px rgba(20, 56, 54, 0.08);
}

.logistics-order-card.active {
  transform: translateY(-1px);
}

.logistics-order-card strong,
.logistics-order-card small {
  display: block;
}

.logistics-order-card small {
  margin-top: 4px;
  color: var(--muted);
}

.selected-logistics-order {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(31, 111, 109, 0.24);
  border-radius: 8px;
  background: #f2fbfa;
}

.logistics-step-block {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.step-label {
  color: var(--brand-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.logistics-time-picker {
  display: grid;
  gap: 6px;
}

.logistics-time-picker span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.logistics-time-picker input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  padding: 0 12px;
  outline: none;
}

.logistics-time-picker input:focus {
  border-color: rgba(31, 111, 109, 0.52);
  box-shadow: 0 0 0 3px rgba(31, 111, 109, 0.12);
}

.logistics-slot-modal {
  width: min(560px, 100%);
}

.logistics-slot-confirm-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.logistics-slot-confirm-summary span {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(31, 111, 109, 0.18);
  border-radius: 10px;
  background: #f2fbfa;
}

.logistics-slot-confirm-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.logistics-slot-confirm-summary strong {
  color: var(--text);
  font-size: 14px;
}

.logistics-slot-confirm-summary em {
  color: var(--brand-accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.logistics-slot-confirm-form {
  display: grid;
  gap: 14px;
}

.logistics-order-number-group {
  display: grid;
  gap: 10px;
}

.logistics-order-number-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-weight: 900;
}

.icon-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(31, 111, 109, 0.32);
  border-radius: 999px;
  background: rgba(31, 111, 109, 0.1);
  color: var(--brand-accent);
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.icon-button:hover {
  border-color: rgba(31, 111, 109, 0.52);
  background: rgba(31, 111, 109, 0.16);
  transform: translateY(-1px);
}

.logistics-order-number-list {
  display: grid;
  gap: 8px;
}

.logistics-slot-confirm-form label {
  display: grid;
  gap: 6px;
}

.logistics-slot-confirm-form label span {
  color: var(--text);
  font-weight: 900;
}

.logistics-slot-confirm-form label small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.logistics-slot-confirm-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  padding: 0 12px;
  outline: none;
}

.logistics-slot-confirm-form input:focus {
  border-color: rgba(31, 111, 109, 0.52);
  box-shadow: 0 0 0 3px rgba(31, 111, 109, 0.12);
}

.selected-logistics-order label {
  display: grid;
  gap: 6px;
}

.logistics-warehouse-picker {
  display: grid;
  gap: 8px;
}

.logistics-warehouse-picker button {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.logistics-warehouse-picker button:hover,
.logistics-warehouse-picker button.active {
  border-color: rgba(23, 111, 109, 0.46);
  background: #effafa;
  box-shadow: inset 3px 0 0 var(--brand-accent);
}

.logistics-warehouse-picker button:hover {
  transform: translateY(-1px);
}

.logistics-warehouse-picker button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.logistics-warehouse-picker span,
.logistics-warehouse-picker strong,
.logistics-warehouse-picker small,
.logistics-warehouse-picker em {
  display: block;
}

.logistics-warehouse-picker span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.logistics-warehouse-picker small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.logistics-warehouse-picker em {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(31, 111, 109, 0.1);
  color: var(--brand-accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.selected-logistics-order select,
.selected-logistics-order input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-weight: 800;
}

.selected-logistics-order select {
  padding: 0 12px;
}

.selected-logistics-order input {
  padding: 0 12px;
}

.selected-logistics-order span,
.selected-logistics-order small {
  color: var(--muted);
}

.slot-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.slot-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.slot-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.slot-legend .free {
  background: #1f6f6d;
}

.slot-legend .busy {
  background: #a8b3bf;
}

.slot-legend .own {
  background: #d6a928;
}

.logistics-calendar-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-color: rgba(31, 111, 109, 0.46) transparent;
}

.logistics-day-column {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 180px;
}

.logistics-day-column header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.logistics-day-column header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.slot-cell {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 88px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.slot-cell span,
.slot-cell small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.slot-cell strong {
  font-size: 14px;
  line-height: 1.25;
}

.slot-cell.free {
  border-color: rgba(31, 111, 109, 0.35);
  background: #f3fbfa;
}

.slot-cell.free:hover {
  transform: translateY(-1px);
  border-color: var(--brand-accent);
}

.slot-cell.busy {
  background: #eef2f5;
  color: #667381;
  cursor: not-allowed;
}

.slot-cell.own {
  border-color: rgba(214, 169, 40, 0.6);
  background: #fff8df;
}

.slot-calendar {
  display: grid;
  gap: 10px;
}

.slot-calendar article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.slot-calendar strong,
.slot-calendar span {
  display: block;
}

.slot-calendar span {
  margin-top: 4px;
  color: var(--muted);
}

.delivery-rule {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(31, 111, 109, 0.22);
  border-radius: 8px;
  background: #f2fbfa;
}

.delivery-rule span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(31, 111, 109, 0.12);
  color: var(--brand-accent);
  font-size: 12px;
  font-weight: 900;
}

.delivery-rule p {
  margin: 0;
}

.delivery-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.delivery-flow article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.delivery-flow span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 8px;
  background: #eaf4f3;
  color: var(--brand-accent);
  font-size: 12px;
  font-weight: 900;
}

.delivery-flow small {
  color: var(--muted);
}

.payments-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.payments-summary article {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.payments-summary article::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--brand-accent);
}

.payments-summary span,
.payments-summary small {
  display: block;
  color: var(--muted);
}

.payments-summary strong {
  display: block;
  margin: 10px 0 5px;
  font-size: 26px;
  line-height: 1.18;
}

.payments-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.payments-table {
  display: grid;
  gap: 8px;
}

.payments-row {
  display: grid;
  grid-template-columns: minmax(100px, 0.85fr) minmax(100px, 0.75fr) minmax(132px, 0.95fr) minmax(120px, 0.9fr) minmax(150px, 1fr) minmax(120px, 0.85fr);
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.payments-head {
  min-height: 40px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.payments-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.payments-row input[type="date"],
.payments-row input[type="number"] {
  min-height: 36px;
  padding: 0 10px;
  font-weight: 800;
}

.invoice-upload {
  display: inline-flex;
  min-width: 0;
  cursor: pointer;
}

.invoice-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.invoice-upload span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: #edf3ff;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  width: fit-content;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.payment-status.waiting {
  background: #fff3df;
  color: #9a5a10;
}

.payment-status.ready {
  background: #dff4ef;
  color: #176356;
}

.payment-status.review {
  background: #eaf2ff;
  color: #2459b6;
}

.payment-status.paid {
  background: #ecf7e9;
  color: #277342;
}

.payments-calendar-card {
  align-content: start;
}

.payment-calendar {
  display: grid;
  gap: 10px;
}

.payment-calendar article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.payment-calendar article.ready {
  border-color: rgba(31, 111, 109, 0.28);
  background: #f2fbfa;
}

.payment-calendar strong,
.payment-calendar span {
  display: block;
}

.payment-calendar span {
  margin-top: 4px;
  color: var(--muted);
}

.payment-rule {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(31, 111, 109, 0.22);
  border-radius: 8px;
  background: #f2fbfa;
}

.payment-rule span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(31, 111, 109, 0.12);
  color: var(--brand-accent);
  font-size: 12px;
  font-weight: 900;
}

.payment-rule p {
  margin: 0;
}

.payment-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.payment-flow article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.payment-flow span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 8px;
  background: #eaf4f3;
  color: var(--brand-accent);
  font-size: 12px;
  font-weight: 900;
}

.payment-flow small {
  color: var(--muted);
}

.quality-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.quality-filter {
  grid-template-columns: minmax(160px, 0.8fr) minmax(160px, 0.8fr) auto;
  align-items: end;
  margin-bottom: 18px;
}

.quality-summary article {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quality-summary article::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--brand-accent);
}

.quality-summary span,
.quality-summary small {
  display: block;
  color: var(--muted);
}

.quality-summary strong {
  display: block;
  margin: 10px 0 5px;
  font-size: 26px;
  line-height: 1.18;
}

.quality-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.quality-table {
  display: grid;
  gap: 8px;
}

.quality-row {
  display: grid;
  grid-template-columns: minmax(104px, 0.8fr) minmax(190px, 1.45fr) minmax(80px, 0.6fr) minmax(78px, 0.6fr) minmax(72px, 0.55fr) minmax(78px, 0.6fr) minmax(140px, 0.9fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.quality-head {
  min-height: 40px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.quality-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.quality-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  width: fit-content;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.quality-badge.good {
  background: #dff4ef;
  color: #176356;
}

.quality-badge.medium {
  background: #eaf2ff;
  color: #2459b6;
}

.quality-badge.risk {
  background: #fff3df;
  color: #9a5a10;
}

.quality-insights-card {
  align-content: start;
}

.quality-problem-list {
  display: grid;
  gap: 10px;
}

.quality-problem-list article {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.quality-problem-list span {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--brand-accent);
}

.quality-problem-list p {
  margin: 0;
}

.quality-claims-note {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(31, 111, 109, 0.22);
  border-radius: 8px;
  background: #f2fbfa;
}

.quality-claims-note span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(31, 111, 109, 0.12);
  color: var(--brand-accent);
  font-size: 12px;
  font-weight: 900;
}

.quality-claims-note p {
  margin: 0;
}

.quality-actions-section {
  margin-top: 18px;
}

.quality-action-form {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(260px, 1.5fr) minmax(150px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
}

.quality-action-form label.wide {
  grid-column: auto;
}

.quality-actions-list {
  display: grid;
  gap: 10px;
}

.quality-actions-list article {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.quality-actions-list article.done {
  background: #f2fbfa;
}

.quality-actions-list span,
.quality-actions-list small {
  display: block;
  color: var(--muted);
}

.quality-actions-list span {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 900;
  color: var(--brand-accent);
}

.nomenclature-table {
  display: grid;
  gap: 8px;
  max-height: min(640px, calc(100vh - 330px));
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: rgba(23, 111, 109, 0.42) transparent;
  scrollbar-width: thin;
}

.nomenclature-row {
  display: grid;
  grid-template-columns: minmax(100px, 0.75fr) minmax(230px, 1.4fr) minmax(150px, 0.9fr) minmax(150px, 0.9fr) minmax(150px, 0.85fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.nomenclature-button {
  width: 100%;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.nomenclature-button.active {
  border-color: rgba(31, 111, 109, 0.38);
  background: #f2fbfa;
}

.nomenclature-head {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 40px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.nomenclature-row small {
  color: var(--muted);
  line-height: 1.35;
}

.market-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: #eaf4f3;
  color: var(--brand-accent);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.arjuna-card {
  align-content: start;
}

.product-passport,
.product-health-grid,
.product-main-fields {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.product-passport {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.product-main-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: #f8fbfc;
}

.product-main-fields > span {
  grid-column: 1 / -1;
  color: var(--brand-accent);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.product-passport article,
.product-health-grid article,
.product-main-fields article,
.product-problem-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.product-passport span,
.product-health-grid span,
.product-health-grid small,
.product-main-fields strong,
.product-problem-card span,
.product-problem-card small {
  display: block;
  color: var(--muted);
}

.product-passport strong,
.product-health-grid strong,
.product-main-fields p,
.product-problem-card strong {
  display: block;
  margin-top: 5px;
  color: #101827;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.product-main-fields p {
  margin-bottom: 0;
}

.product-health-grid strong {
  font-size: 19px;
}

.product-problem-card {
  margin-bottom: 12px;
  border-color: rgba(23, 111, 109, 0.22);
  background: #f2fbfa;
}

.product-problem-card small {
  margin-top: 6px;
  line-height: 1.4;
}

.arjuna-empty {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.arjuna-empty span {
  color: var(--muted);
}

.arjuna-template {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 127, 127, 0.38) transparent;
}

.arjuna-template > span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(31, 111, 109, 0.12);
  color: var(--brand-accent);
  font-size: 12px;
  font-weight: 900;
}

.arjuna-template article {
  display: grid;
  grid-template-columns: minmax(130px, 0.78fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.arjuna-template article strong {
  color: #101827;
  overflow-wrap: anywhere;
}

.arjuna-template p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.arjuna-note {
  border-color: rgba(31, 111, 109, 0.22);
  background: #f2fbfa;
}

.arjuna-note strong {
  color: var(--brand-accent);
}

.assortment-form {
  display: grid;
  gap: 14px;
}

.assortment-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(8, 15, 24, 0.48);
}

.assortment-modal {
  position: relative;
  z-index: 1001;
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(8, 15, 24, 0.32);
}

body.product-card-open {
  overflow: hidden;
}

.product-card-backdrop {
  z-index: 1020;
  align-items: flex-start;
  padding: 104px 16px 16px;
  overflow: hidden;
  background: rgba(8, 15, 24, 0.76);
  backdrop-filter: blur(2px);
}

.product-card-modal {
  z-index: 1021;
  width: min(1080px, calc(100vw - 32px));
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 16px;
  border-radius: 12px;
  background: #ffffff;
  background-clip: padding-box;
  box-shadow: 0 34px 110px rgba(8, 15, 24, 0.36);
}

.product-card-modal-heading {
  position: sticky;
  top: -16px;
  z-index: 20;
  margin: -16px -16px 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 78%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.product-card-modal-heading .modal-close-button {
  flex: 0 0 auto;
  min-height: 42px;
  border-color: rgba(23, 111, 109, 0.22);
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.product-card-modal .arjuna-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.product-card-modal .arjuna-card > .card-heading {
  display: none;
}

.product-card-modal .arjuna-template {
  max-height: none;
}

.modal-close-button {
  border-color: var(--line);
  color: var(--text);
}

.new-product-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.new-product-form .form-actions,
.new-product-form .form-message,
.new-product-required-note {
  grid-column: 1 / -1;
}

.new-product-form label.required-missing input,
.new-product-form label.required-missing select {
  border-color: #d97706;
  background: #fffaf0;
}

.new-product-form label.required-missing span {
  color: #9a5a10;
}

.new-product-required-note {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(31, 111, 109, 0.22);
  border-radius: 8px;
  background: #f2fbfa;
}

.new-product-required-note span {
  color: var(--muted);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.assortment-import-modal {
  width: min(1080px, 100%);
}

.assortment-import-category {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(248, 251, 252, 0.98), rgba(255, 255, 255, 0.98));
}

.assortment-import-step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.assortment-import-step > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-accent);
  color: #ffffff;
  font-weight: 950;
}

.assortment-import-step strong,
.assortment-import-step small {
  display: block;
}

.assortment-import-step small {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 800;
}

.assortment-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.assortment-category-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 13px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.assortment-category-card:hover,
.assortment-category-card.active {
  border-color: rgba(20, 127, 127, 0.54);
  background: #f2fbfa;
}

.assortment-category-card.active {
  box-shadow: 0 0 0 3px rgba(20, 127, 127, 0.12);
}

.assortment-category-card.disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.category-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: rgba(20, 127, 127, 0.12);
  color: var(--brand-accent);
  font-size: 12px;
  font-weight: 950;
}

.assortment-category-card strong,
.assortment-category-card small {
  display: block;
}

.assortment-category-card small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.assortment-import-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 14px;
  margin-top: 18px;
}

.assortment-import-dropzone {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 132px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(20, 127, 127, 0.24);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(239, 250, 250, 0.88), rgba(255, 255, 255, 0.98));
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.assortment-import-dropzone:hover,
.assortment-import-dropzone.has-file {
  border-color: rgba(20, 127, 127, 0.52);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.84),
    0 16px 34px rgba(15, 23, 42, 0.08);
}

.assortment-import-native-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.assortment-import-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-accent), #1da7a3);
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 14px 26px rgba(20, 127, 127, 0.22);
}

.assortment-import-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.assortment-import-copy strong {
  font-size: 18px;
}

.assortment-import-copy small,
.assortment-import-file span {
  color: var(--muted);
}

.assortment-import-action {
  min-width: 124px;
  padding: 11px 14px;
  border: 1px solid rgba(40, 100, 217, 0.34);
  border-radius: 8px;
  background: rgba(40, 100, 217, 0.08);
  color: var(--accent-dark);
  font-weight: 900;
  text-align: center;
}

.assortment-import-mode {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.assortment-import-mode > strong {
  font-size: 14px;
}

.assortment-import-mode-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 9px;
  background: #f8fbfc;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.assortment-import-mode-card:hover,
.assortment-import-mode-card.active {
  border-color: rgba(40, 100, 217, 0.46);
  background: #f3f7ff;
}

.assortment-import-mode-card.active {
  box-shadow: 0 0 0 3px rgba(40, 100, 217, 0.1);
}

.assortment-import-mode-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.mode-check {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.54);
  border-radius: 50%;
  background: #ffffff;
}

.mode-check::after {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.assortment-import-mode-card.active .mode-check {
  border-color: var(--accent);
}

.assortment-import-mode-card.active .mode-check::after {
  opacity: 1;
  transform: scale(1);
}

.mode-copy {
  display: grid;
  gap: 3px;
}

.mode-copy strong {
  font-size: 14px;
}

.mode-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.assortment-import-preview {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.assortment-import-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 9px;
  background: #f8fbfc;
}

.assortment-import-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.assortment-import-stats article {
  padding: 13px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 9px;
  background: #ffffff;
}

.assortment-import-stats span,
.assortment-import-stats strong {
  display: block;
}

.assortment-import-stats span {
  color: var(--muted);
  font-weight: 800;
}

.assortment-import-stats strong {
  margin-top: 6px;
  font-size: 24px;
}

.assortment-import-stats .has-errors strong {
  color: #b42318;
}

.assortment-import-table {
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.assortment-import-row {
  display: grid;
  grid-template-columns: 82px 110px 160px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.assortment-import-row:last-child {
  border-bottom: 0;
}

.assortment-import-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fbfc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.import-status {
  color: var(--brand-accent);
}

.import-status.error {
  color: #b42318;
}

.assortment-import-row small {
  color: var(--muted);
}

.integration-note {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #eadfbd;
  border-radius: 8px;
  background: #fbf7ea;
}

.integration-note strong {
  display: block;
  margin-bottom: 6px;
  color: #6d5926;
}

.integration-note p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.48;
}

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

.accreditation-layout {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.8fr);
}

.future-card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.wide-card {
  grid-column: 1 / -1;
}

.future-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.future-card-header p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.48;
}

.future-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f4efe0;
  color: #7a632b;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.future-list {
  display: grid;
  gap: 10px;
}

.future-list span {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
}

.future-meter {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.future-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.future-table {
  display: grid;
  gap: 8px;
}

.future-table div {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.future-table div:first-child {
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.future-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checklist-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checklist-preview label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
}

.checklist-preview input {
  width: 16px;
  min-height: 16px;
}

.review-timeline {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.review-timeline article {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
}

.review-timeline article > span {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.review-timeline article.done > span,
.review-timeline article.active > span {
  border-color: var(--accent);
  background: var(--accent);
}

.review-timeline strong {
  display: block;
  margin-bottom: 5px;
}

.review-timeline p {
  margin-bottom: 0;
}

@media (max-width: 1080px) {
  .auth-shell,
  .dashboard,
  .dashboard-grid,
  .metrics,
  .supplier-command-strip,
  .supplier-action-center,
  .supplier-action-metrics,
  .workspace-metrics,
  .product-focus-grid,
  .assortment-summary,
  .assortment-search-panel,
  .assortment-layout,
  .assortment-toolbar.future-toolbar,
  .new-product-form,
  .sales-summary,
  .sales-layout,
  .sales-filter,
  .procurement-summary,
  .procurement-layout,
  .supply-flow,
  .new-assortment-summary,
  .new-assortment-layout,
  .logistics-summary,
  .logistics-layout,
  .logistics-calendar-layout,
  .delivery-flow,
  .payments-summary,
  .payments-layout,
  .payment-flow,
  .quality-summary,
  .quality-layout,
  .quality-action-form,
  .product-passport,
  .product-health-grid,
  .manager-orders-connect,
  .manager-api-grid,
  .manager-orders-filter.future-toolbar,
  .future-toolbar,
  .future-grid,
  .accreditation-layout {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    min-height: auto;
  }

  .auth-panel {
    align-self: stretch;
  }

  .dashboard-topbar-inner {
    gap: 10px;
  }
}

@media (max-width: 720px) {
  .auth-hero,
  .auth-panel,
  .dashboard-main,
  .dashboard-topbar-inner {
    padding: 18px;
  }

  .auth-panel {
    width: calc(100% - 24px);
    max-height: none;
  }

  .hero-steps,
  .field-grid,
  .assortment-import-grid,
  .assortment-import-stats,
  .assortment-category-grid {
    grid-template-columns: 1fr;
  }

  .assortment-import-dropzone,
  .assortment-import-row {
    grid-template-columns: 1fr;
  }

  .assortment-import-action {
    width: 100%;
  }

  label.wide {
    grid-column: auto;
  }

  .dashboard-header,
  .workspace-hero,
  .form-actions,
  .split-heading,
  .supplier-row,
  .supplier-action-list article,
  .formal-document-row,
  .nomenclature-row,
  .sales-row,
  .procurement-row,
  .new-calendar-row,
  .new-assortment-row,
  .logistics-row,
  .payments-row,
  .quality-row,
  .future-card-header,
  .future-table div,
  .checklist-preview {
    display: grid;
  }

  .dashboard-topbar-inner {
    grid-template-columns: 1fr auto;
    padding: 10px 12px;
  }

  .dashboard-nav {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: nowrap;
  }

  .dashboard-nav a,
  .dashboard-nav > button {
    justify-content: flex-start;
  }

  .new-calendar-row,
  .new-assortment-row,
  .logistics-row,
  .payments-row,
  .quality-row,
  .procurement-item-row,
  .claims-row {
    grid-template-columns: 1fr;
  }

  .supplier-action-list article {
    align-items: stretch;
  }

  .nav-dropdown,
  .nav-dropdown-button {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    margin-top: 8px;
    box-shadow: none;
  }

  .topbar-actions {
    display: flex;
  }
}

/* UI UX Pro Max inspired enterprise layer */
.auth-panel,
.workspace-hero,
.profile-card,
.review-card,
.future-card,
.formal-documents-card,
.arjuna-card,
.forecast-card,
.regulation-card,
.procurement-detail-card,
.logistics-slots-card,
.payments-calendar-card,
.quality-insights-card {
  border-radius: var(--radius-card);
  border-color: rgba(148, 163, 184, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    var(--surface);
  box-shadow: var(--shadow-card);
}

.dashboard-topbar {
  border-bottom: 1px solid rgba(23, 111, 109, 0.22);
  background:
    linear-gradient(180deg, rgba(19, 30, 43, 0.98), rgba(17, 26, 38, 0.98)),
    var(--sidebar);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}

.dashboard-topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-accent), rgba(40, 100, 217, 0.75), rgba(246, 197, 0, 0.6));
}

.dashboard-topbar-inner {
  min-height: 74px;
  align-items: center;
}

.account-identity {
  padding-left: 2px;
}

.account-identity strong {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.account-identity span {
  font-weight: 500;
}

.dashboard-nav {
  padding: 6px 0 9px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
}

.dashboard-nav a,
.dashboard-nav > button,
.nav-dropdown-button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.dashboard-nav a.active,
.dashboard-nav a:hover,
.dashboard-nav > button.active,
.dashboard-nav > button:hover,
.nav-dropdown-button.active,
.nav-dropdown-button:hover {
  border-color: rgba(23, 111, 109, 0.55);
  background: linear-gradient(180deg, rgba(35, 48, 64, 0.96), rgba(29, 42, 57, 0.96));
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 22px rgba(0, 0, 0, 0.16);
}

.nav-mark {
  width: 23px;
  height: 23px;
  border-radius: 7px;
  background: rgba(23, 111, 109, 0.22);
  color: #71d3cd;
  font-size: 9px;
  font-weight: 800;
}

.nav-dropdown-menu {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: rgba(17, 26, 38, 0.98);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 70px rgba(8, 15, 24, 0.44);
  backdrop-filter: blur(12px);
}

.nav-dropdown-menu button {
  border-radius: 9px;
  font-weight: 700;
}

.topbar-actions {
  align-items: center;
}

.role-badge {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.topbar-actions .ghost-button,
.ghost-button {
  border-radius: 10px;
}

.dashboard-main {
  padding-top: 30px;
}

.dashboard-main::before {
  background:
    linear-gradient(180deg, rgba(232, 243, 243, 0.7), rgba(248, 250, 252, 0)),
    linear-gradient(90deg, rgba(23, 111, 109, 0.08), rgba(40, 100, 217, 0.05), rgba(246, 197, 0, 0.04));
}

.dashboard-header {
  margin-bottom: 20px;
}

.dashboard-header h2 {
  max-width: 980px;
  color: var(--text);
  font-size: clamp(25px, 2.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-lead {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.dashboard-header .section-lead {
  display: none;
}

.eyebrow {
  color: var(--section-label);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.status-pill,
.procurement-status,
.quality-badge,
.channel-pill,
.channel-badge {
  border: 1px solid rgba(23, 111, 109, 0.12);
  border-radius: 999px;
  font-weight: 800;
}

.status-pill {
  background: #e8f7f6;
  color: var(--brand-accent);
}

.status-pill.review {
  background: #e8f7f6;
  color: var(--info);
}

.status-pill.warning {
  background: #fff7e8;
  color: var(--warning);
}

.primary-button,
.secondary-button,
.ghost-button,
.compact-button,
.modal-close-button {
  min-height: 42px;
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), #3c7af2);
  box-shadow: 0 12px 26px rgba(40, 100, 217, 0.24);
}

.primary-button:hover {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(40, 100, 217, 0.28);
}

.secondary-button {
  background: #eef6ff;
  color: var(--accent-dark);
  box-shadow: 0 10px 22px rgba(40, 100, 217, 0.08);
}

.secondary-button:hover,
.compact-button:hover,
.modal-close-button:hover {
  transform: translateY(-1px);
}

label span,
.field-grid span,
.formal-document-row.formal-document-head,
.supplier-row-head,
.nomenclature-head,
.sales-head,
.procurement-head,
.new-calendar-head,
.new-assortment-head,
.logistics-head,
.payments-head,
.quality-head,
.claims-row.claims-head {
  color: #526177;
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  border-radius: var(--radius-control);
  border-color: rgba(148, 163, 184, 0.35);
  background: #ffffff;
  color: var(--text);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(23, 111, 109, 0.72);
  box-shadow: 0 0 0 4px rgba(23, 111, 109, 0.11);
  outline: none;
}

.switcher,
.cabinet-tabs,
.calendar-mode-switch {
  border-color: rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: #edf4f8;
}

.switcher-button,
.cabinet-tabs button,
.calendar-mode-switch button {
  border-radius: 9px;
  font-weight: 800;
}

.switcher-button.active,
.cabinet-tabs button.active,
.cabinet-tabs button:hover,
.calendar-mode-switch button.active,
.calendar-mode-switch button:hover {
  background: #ffffff;
  color: var(--brand-accent);
  box-shadow: 0 9px 22px rgba(15, 23, 42, 0.08);
}

.workspace-metrics article,
.product-focus-grid article,
.assortment-summary article,
.sales-summary article,
.procurement-summary article,
.procurement-detail-summary article,
.new-assortment-summary article,
.logistics-summary article,
.payments-summary article,
.quality-summary article {
  border-color: rgba(148, 163, 184, 0.26);
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
    var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.workspace-metrics strong,
.assortment-summary strong,
.sales-summary strong,
.procurement-summary strong,
.procurement-detail-summary strong,
.new-assortment-summary strong,
.logistics-summary strong,
.payments-summary strong,
.quality-summary strong {
  color: #101827;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.procurement-summary article::before,
.new-assortment-summary article::before,
.logistics-summary article::before,
.payments-summary article::before,
.quality-summary article::before {
  background: linear-gradient(180deg, var(--brand-accent), rgba(23, 111, 109, 0.35));
}

.sales-summary-total article {
  border-left-color: var(--brand-accent);
}

.supplier-row,
.formal-document-row,
.nomenclature-row,
.sales-row,
.procurement-row,
.procurement-item-row,
.claims-row,
.new-calendar-row,
.new-assortment-row,
.logistics-row,
.payments-row,
.quality-row,
.future-table div {
  border-radius: 12px;
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.supplier-row:not(.supplier-row-head):hover,
.formal-document-row:not(.formal-document-head):hover,
.nomenclature-row:not(.nomenclature-head):hover,
.sales-row:not(.sales-head):hover,
.procurement-row:not(.procurement-head):hover,
.procurement-item-row:not(.procurement-head):hover,
.claims-row:not(.claims-head):hover,
.new-calendar-row:not(.new-calendar-head):hover,
.new-assortment-row:not(.new-assortment-head):hover,
.logistics-row:not(.logistics-head):hover,
.payments-row:not(.payments-head):hover,
.quality-row:not(.quality-head):hover,
.manager-new-row:not(.manager-new-head):hover,
.manager-sales-row:not(.manager-sales-head):hover,
.manager-payments-row:not(.manager-payments-head):hover,
.manager-orders-row:not(.manager-orders-head):hover,
.future-table div:not(:first-child):hover {
  border-color: rgba(23, 111, 109, 0.38);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

.procurement-row.active,
.nomenclature-button.active {
  border-color: rgba(23, 111, 109, 0.5);
  background: #eefafa;
  box-shadow: inset 3px 0 0 var(--brand-accent);
}

.auth-hero {
  background:
    linear-gradient(135deg, rgba(17, 26, 38, 0.92), rgba(19, 43, 56, 0.86)),
    url("https://images.unsplash.com/photo-1555041469-a586c61ea9bc?auto=format&fit=crop&w=1400&q=80");
}

.brand-mark {
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-accent), #2e8985);
  box-shadow: 0 10px 22px rgba(23, 111, 109, 0.24);
}

.form-message.success {
  color: var(--success);
}

.form-message.error {
  color: var(--danger);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(23, 111, 109, 0.28);
  outline-offset: 3px;
}

.manager-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.manager-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.manager-side-stack {
  display: grid;
  gap: 18px;
}

.manager-compare-card,
.manager-logistics-card {
  overflow: hidden;
}

.manager-table,
.manager-delivery-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  overflow-x: auto;
}

.manager-table-head,
.manager-table-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(145px, 1fr) minmax(120px, 0.8fr) minmax(140px, 1fr) minmax(130px, 0.9fr) minmax(120px, 0.8fr) minmax(145px, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 1060px;
}

.manager-table-head {
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.manager-table-row {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.manager-table-row:hover {
  border-color: rgba(23, 111, 109, 0.38);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

.manager-table-row span,
.manager-table-row strong,
.manager-table-row small,
.manager-rank-list span,
.manager-rank-list strong,
.manager-rank-list small,
.manager-warehouse-list span,
.manager-warehouse-list strong,
.manager-warehouse-list small {
  display: block;
}

.manager-table-row strong,
.manager-rank-list strong,
.manager-warehouse-list strong {
  color: #101827;
  font-weight: 800;
}

.manager-table-row small,
.manager-rank-list small,
.manager-warehouse-list small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.manager-rank-list,
.manager-warehouse-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.manager-rank-list div,
.manager-warehouse-list div {
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.manager-rank-list div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.manager-rank-list span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(23, 111, 109, 0.12);
  color: var(--brand-accent);
  font-weight: 900;
}

.manager-rank-list small {
  grid-column: 2;
}

.manager-meter {
  height: 8px;
  margin: 10px 0 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edf3;
}

.manager-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-accent), #2f8f89);
}

.manager-delivery-list > div {
  display: grid;
  grid-template-columns: minmax(210px, 1.5fr) minmax(150px, 1fr) minmax(160px, 1fr) minmax(120px, 0.7fr);
  gap: 12px;
  align-items: center;
  min-width: 720px;
  padding: 13px 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.manager-delivery-list strong,
.manager-delivery-list small {
  display: block;
}

.manager-delivery-list small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.manager-logistics-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.manager-logistics-warehouses {
  position: sticky;
  top: 108px;
}

.manager-slots-card {
  overflow: hidden;
}

.manager-logistics-layout.single {
  display: block;
}

.manager-slot-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.manager-slot-legend span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.manager-slot-legend .free,
.manager-slot-card.free {
  border-color: rgba(23, 111, 109, 0.28);
  background: #effafa;
}

.manager-slot-legend .partial,
.manager-slot-card.partial {
  border-color: rgba(246, 197, 0, 0.38);
  background: #fff9df;
}

.manager-slot-legend .busy,
.manager-slot-card.busy {
  border-color: rgba(40, 100, 217, 0.28);
  background: #eef4ff;
}

.manager-slot-legend .closed,
.manager-slot-card.closed {
  border-color: rgba(148, 163, 184, 0.36);
  background: #f2f5f8;
}

.manager-slots-calendar {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  max-height: 72vh;
  overflow: auto;
  padding-right: 4px;
}

.manager-slots-day {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.manager-slots-day > header {
  position: sticky;
  top: 0;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: #ffffff;
}

.manager-slots-day > header strong,
.manager-slots-day > header small {
  display: block;
}

.manager-slots-day > header small {
  margin-top: 4px;
  color: var(--muted);
  text-transform: capitalize;
}

.manager-slots-day-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 10px;
}

.manager-slot-card {
  min-height: 150px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.manager-slot-card:hover {
  border-color: rgba(23, 111, 109, 0.34);
  box-shadow: inset 0 0 0 1px rgba(23, 111, 109, 0.08), 0 10px 26px rgba(15, 23, 42, 0.06);
}

.manager-slot-warehouse-meta {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.manager-slot-topline,
.manager-slot-capacity {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.manager-slot-topline span {
  color: var(--brand-accent);
  font-size: 12px;
  font-weight: 900;
}

.manager-slot-card p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-weight: 700;
}

.manager-slot-capacity {
  padding: 8px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.manager-slot-capacity span,
.manager-slot-capacity small {
  font-weight: 800;
}

.manager-slot-capacity small {
  color: var(--muted);
}

.manager-slot-deliveries {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.manager-slot-deliveries span {
  display: block;
  padding: 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.72);
}

.manager-slot-deliveries strong,
.manager-slot-deliveries small {
  display: block;
}

.manager-slot-deliveries small,
.manager-slot-deliveries em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.warehouse-slots-card {
  overflow: hidden;
}

.warehouse-slots-calendar {
  max-height: 68vh;
  overflow: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 127, 127, 0.38) transparent;
}

.warehouse-delivery-calendar-card {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
}

.warehouse-delivery-calendar-card > .card-heading {
  position: relative;
  z-index: 5;
  margin: -22px -22px 0;
  padding: 22px 22px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.warehouse-delivery-calendar {
  position: relative;
  z-index: 1;
  max-height: 560px;
  overflow: auto;
  margin-top: 0;
  padding-top: 18px;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 127, 127, 0.38) transparent;
}

.warehouse-delivery-calendar .manager-slots-day-grid {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  padding-top: 6px;
}

.warehouse-delivery-calendar .manager-slots-day > header {
  z-index: 3;
  background: #ffffff;
}

.warehouse-delivery-slot {
  min-height: 120px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 249, 0.96));
  box-shadow: none;
}

.warehouse-delivery-slot:hover {
  border-color: rgba(23, 111, 109, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 249, 0.96));
  box-shadow: none;
}

.warehouse-delivery-slot .manager-slot-deliveries span {
  border: 1px solid rgba(23, 111, 109, 0.12);
  background: #ffffff;
}

.warehouse-delivery-slot .manager-slot-deliveries em {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  margin-top: 6px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eefafa;
  color: var(--brand-accent);
  font-style: normal;
  font-weight: 900;
}

.warehouse-slot-editor {
  display: grid;
  gap: 10px;
  align-content: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 252, 252, 0.94));
}

.warehouse-slot-editor label {
  display: grid;
  gap: 6px;
  margin: 0;
}

.warehouse-slot-editor label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.warehouse-slot-editor input,
.warehouse-slot-editor select {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-weight: 800;
}

.warehouse-slot-editor input:focus,
.warehouse-slot-editor select:focus {
  outline: none;
  border-color: rgba(20, 127, 127, 0.66);
  box-shadow: 0 0 0 3px rgba(20, 127, 127, 0.12);
}

.warehouse-slot-editor .compact-button {
  width: 100%;
  min-height: 38px;
}

.warehouse-slot-editor .form-message {
  min-height: 18px;
  margin: 0;
  font-size: 12px;
}

.manager-assortment-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.manager-assortment-suppliers {
  position: sticky;
  top: 108px;
}

.manager-assortment-tabs {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.manager-assortment-tabs button {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.manager-assortment-tabs button:hover,
.manager-assortment-tabs button.active {
  border-color: rgba(23, 111, 109, 0.45);
  background: #effafa;
  box-shadow: inset 3px 0 0 var(--brand-accent);
}

.manager-assortment-tabs strong,
.manager-assortment-tabs small {
  display: block;
}

.manager-assortment-tabs small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.manager-assortment-card {
  overflow: hidden;
}

.manager-assortment-statuses {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.manager-assortment-statuses span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.manager-assortment-table {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  overflow-x: auto;
}

.manager-assortment-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.9fr) minmax(220px, 1.3fr) minmax(150px, 0.9fr) minmax(150px, 0.9fr) minmax(130px, 0.8fr) minmax(100px, 0.7fr) minmax(260px, 1.5fr);
  gap: 12px;
  align-items: center;
  min-width: 1180px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.manager-assortment-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  background: #f7fafc;
}

.manager-assortment-row strong,
.manager-assortment-row small {
  display: block;
}

.manager-assortment-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.manager-work-card {
  overflow: hidden;
}

.manager-new-table,
.manager-sales-table,
.manager-payments-table,
.manager-orders-table {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  overflow-x: auto;
}

.manager-orders-table {
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
}

.manager-new-row,
.manager-sales-row,
.manager-payments-row,
.manager-orders-row {
  display: grid;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  min-width: 1120px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.manager-new-row {
  grid-template-columns: minmax(190px, 1.15fr) minmax(190px, 1.1fr) minmax(130px, 0.8fr) minmax(130px, 0.8fr) minmax(130px, 0.8fr) minmax(150px, 0.9fr) minmax(210px, 1.2fr);
}

.manager-sales-row {
  grid-template-columns: minmax(110px, 0.7fr) minmax(110px, 0.7fr) minmax(210px, 1.25fr) minmax(220px, 1.25fr) minmax(145px, 0.9fr) minmax(90px, 0.6fr) minmax(130px, 0.8fr);
}

.manager-payments-row {
  grid-template-columns: minmax(120px, 0.8fr) minmax(220px, 1.25fr) minmax(120px, 0.75fr) minmax(120px, 0.75fr) minmax(130px, 0.8fr) minmax(180px, 1fr) minmax(140px, 0.85fr);
}

.manager-orders-row {
  grid-template-columns: 100px 100px 120px minmax(180px, 1fr) minmax(180px, 1fr) minmax(220px, 1.2fr) 78px 120px 140px;
}

.manager-orders-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.manager-orders-row > span:nth-child(7),
.manager-orders-row > span:nth-child(8) {
  text-align: right;
}

.manager-orders-row > span:nth-child(4) {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.35;
  color: #334155;
}

.operation-chip {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(36, 89, 182, 0.1);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.operation-chip.buyout {
  background: rgba(23, 111, 109, 0.12);
  color: var(--brand-accent);
}

.manager-orders-head {
  position: sticky;
  top: 0;
  z-index: 2;
}

.manager-new-head,
.manager-sales-head,
.manager-payments-head,
.manager-orders-head {
  min-height: 40px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  background: #f7fafc;
}

.manager-new-row strong,
.manager-new-row small,
.manager-sales-row strong,
.manager-sales-row small,
.manager-payments-row strong,
.manager-payments-row small,
.manager-orders-row strong,
.manager-orders-row small {
  display: block;
}

.manager-new-row small,
.manager-sales-row small,
.manager-payments-row small,
.manager-orders-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.manager-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.manager-sales-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.manager-subheading {
  margin-top: 18px;
}

.manager-home-orders-card {
  margin-bottom: 18px;
}

.manager-home-orders-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.manager-home-orders-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.manager-home-orders-grid span,
.manager-home-orders-table small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.manager-home-orders-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 24px;
}

.manager-home-orders-grid small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.manager-home-orders-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
  gap: 14px;
}

.manager-home-orders-table {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}

.manager-home-orders-table > div {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(180px, 1.1fr) 120px;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: #ffffff;
}

.manager-home-orders-table span {
  min-width: 0;
}

.manager-home-orders-table strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-orders-connect {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 18px;
  margin-bottom: 18px;
}

.manager-marketplace-create {
  grid-template-columns: minmax(0, 1fr);
}

.manager-marketplace-create > aside {
  display: none;
}

.manager-new-assortment-workspace {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.manager-new-assortment-workspace > aside {
  display: none;
}

.manager-template-panel {
  display: grid;
  gap: 14px;
}

.template-create-button {
  width: 100%;
  justify-content: center;
}

.category-template-list {
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.category-template-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.category-template-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.category-template-delete {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
}

.category-template-card strong,
.category-template-card span,
.category-template-card small {
  display: block;
}

.category-template-card span,
.category-template-card small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 750;
}

.marketplace-create-hidden {
  display: none;
}

.manager-sync-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(23, 111, 109, 0.18);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.78), rgba(255, 255, 255, 0.92));
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.manager-sync-panel strong,
.manager-sync-panel span,
.manager-sync-panel small {
  display: block;
}

.manager-sync-panel strong {
  margin-bottom: 4px;
  color: var(--text);
}

.manager-sync-panel span,
.manager-sync-panel small {
  color: var(--muted);
}

.manager-sync-panel small {
  text-align: right;
  white-space: nowrap;
}

.manager-sync-panel.syncing {
  border-color: rgba(37, 99, 235, 0.28);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.9), rgba(255, 255, 255, 0.94));
}

.manager-sync-panel.syncing strong::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.36);
  animation: syncPulse 1200ms ease-in-out infinite;
}

.manager-sync-panel.error {
  border-color: rgba(220, 38, 38, 0.22);
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.9), rgba(255, 255, 255, 0.94));
}

.manager-sync-panel.error strong {
  color: #b91c1c;
}

.manager-sync-panel.success strong {
  color: var(--brand-accent);
}

@keyframes syncPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.34);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.manager-api-card {
  min-width: 0;
}

.manager-api-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.manager-api-grid.offer-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manager-api-grid.offer-form-grid > .wide {
  grid-column: 1 / -1;
}

.offer-template-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(20, 126, 124, 0.16);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.74), rgba(255, 255, 255, 0.96));
}

.offer-template-picker label {
  min-width: 0;
}

.offer-template-picker .native-select-hidden {
  width: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
}

.offer-template-picker select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 42px 0 14px;
  background:
    linear-gradient(45deg, transparent 50%, var(--brand-accent) 50%),
    linear-gradient(135deg, var(--brand-accent) 50%, transparent 50%),
    #ffffff;
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  appearance: none;
  outline: none;
}

.offer-template-picker select:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 4px rgba(20, 126, 124, 0.12);
}

.offer-template-picker .custom-select-trigger {
  min-height: 46px;
  border-color: rgba(20, 126, 124, 0.42);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #fbffff);
  box-shadow: 0 10px 24px rgba(20, 126, 124, 0.06);
  font-weight: 900;
}

.offer-template-picker .custom-select-trigger:hover,
.offer-template-picker .custom-select.open .custom-select-trigger {
  border-color: var(--brand-accent);
  box-shadow:
    0 0 0 4px rgba(20, 126, 124, 0.12),
    0 14px 34px rgba(20, 126, 124, 0.1);
}

.offer-template-picker .custom-select-icon {
  color: var(--brand-accent);
}

.offer-template-picker .custom-select-menu {
  z-index: 140;
  top: calc(100% + 6px);
  padding: 7px;
  border-color: rgba(20, 126, 124, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 22px 54px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(20, 126, 124, 0.06);
  scrollbar-color: rgba(20, 126, 124, 0.46) transparent;
}

.offer-template-picker .custom-select-option {
  min-height: 38px;
  border-radius: 9px;
  color: var(--text);
  font-weight: 850;
}

.offer-template-picker .custom-select-option:hover,
.offer-template-picker .custom-select-option:focus {
  background: #eefafa;
  color: var(--brand-accent);
}

.offer-template-picker .custom-select-option.selected {
  background: linear-gradient(135deg, var(--brand-accent), #1a928f);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(20, 126, 124, 0.18);
}

.offer-template-picker button {
  min-height: 44px;
  white-space: nowrap;
}

.manager-api-grid.offer-form-grid textarea {
  min-height: 92px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  line-height: 1.45;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.manager-api-grid.offer-form-grid textarea:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 4px rgba(20, 126, 124, 0.12);
  background: #fbffff;
}

.manager-api-list {
  display: grid;
  gap: 10px;
}

.manager-api-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: #f7fafc;
}

.manager-api-list strong,
.manager-api-list span,
.manager-api-list small {
  display: block;
}

.manager-api-list span,
.manager-api-list small {
  margin-top: 4px;
  color: var(--muted);
}

.manager-api-message {
  padding-top: 2px;
  color: var(--brand-accent) !important;
}

.manager-api-message.error {
  color: var(--danger) !important;
}

.manager-offer-claims-list {
  display: grid;
  gap: 10px;
}

.manager-offer-claims-list article,
.manager-offer-claim-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 12px;
  background: #f8fbfc;
  color: var(--text);
  text-align: left;
}

.manager-offer-claim-button {
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.manager-offer-claim-button:hover {
  border-color: rgba(20, 126, 124, 0.48);
  background: #f4fbfb;
  box-shadow: 0 16px 36px rgba(20, 126, 124, 0.1);
  transform: translateY(-1px);
}

.manager-offer-claims-list strong,
.manager-offer-claims-list span,
.manager-offer-claims-list small {
  display: block;
}

.manager-offer-claims-list span,
.manager-offer-claims-list small {
  margin-top: 4px;
  color: var(--muted);
}

.manager-offer-claim-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.manager-offer-claim-meta strong {
  color: var(--brand-accent);
  font-size: 17px;
  font-weight: 950;
  white-space: nowrap;
}

.manager-offers-board {
  display: grid;
  gap: 18px;
}

.manager-offer-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.manager-offer-card {
  display: grid;
  gap: 8px;
  min-height: 162px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.manager-offer-card:hover,
.manager-offer-card.active {
  border-color: rgba(20, 126, 124, 0.48);
  background: #f4fbfb;
  box-shadow: 0 18px 42px rgba(20, 126, 124, 0.12);
  transform: translateY(-1px);
}

.manager-offer-card .new-plan-status {
  width: fit-content;
}

.manager-offer-card strong,
.manager-offer-card span,
.manager-offer-card small {
  display: block;
}

.manager-offer-card strong {
  font-size: 16px;
  font-weight: 950;
}

.manager-offer-card span:not(.new-plan-status),
.manager-offer-card small {
  color: var(--muted);
  font-weight: 750;
}

.manager-offer-modal .offer-modal-body {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.manager-offer-approval-panel {
  display: grid;
  gap: 8px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(20, 126, 124, 0.18);
  border-radius: 14px;
  background: #f4fbfb;
}

.category-template-modal {
  width: min(980px, calc(100vw - 48px));
  height: min(820px, calc(100vh - 48px));
}

.category-template-form {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 0;
  padding: 22px;
  overflow: hidden;
}

.template-blocks {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding-right: 6px;
  scrollbar-color: rgba(20, 126, 124, 0.46) rgba(226, 232, 240, 0.72);
  scrollbar-width: thin;
}

.template-blocks::-webkit-scrollbar {
  width: 8px;
}

.template-blocks::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.72);
}

.template-blocks::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(20, 126, 124, 0.46);
}

.template-block-editor {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(20, 126, 124, 0.16);
  border-radius: 14px;
  background: #f8fbfc;
}

.template-block-editor textarea,
.offer-characteristics-edit-form textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-weight: 750;
  line-height: 1.45;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.template-block-editor textarea:focus,
.offer-characteristics-edit-form textarea:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 4px rgba(20, 126, 124, 0.12);
  background: #fbffff;
}

.template-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.template-form-actions.compact-actions {
  margin-top: 10px;
}

.offer-characteristics-edit-form {
  display: grid;
  gap: 12px;
}

.offer-characteristics-edit-form > label > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .manager-offer-modal .offer-modal-body {
    grid-template-columns: 1fr;
  }

  .manager-new-assortment-workspace,
  .offer-template-picker,
  .template-block-editor {
    grid-template-columns: 1fr;
  }
}

.manager-quota-count {
  display: inline-grid;
  width: fit-content;
  min-width: 42px;
  min-height: 34px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid rgba(20, 126, 124, 0.24);
  border-radius: 999px;
  background: #eefafa;
  color: var(--brand-accent);
  font-size: 16px;
  font-weight: 950;
}

.supplier-offer-form-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: min(620px, calc(100dvh - 230px));
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(20, 126, 124, 0.24);
  border-radius: 14px;
  background: #fff;
}

.offer-supplier-form-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.55fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(20, 126, 124, 0.3);
  border-left: 4px solid var(--brand-accent);
  border-radius: 10px;
  background: #f3fbfa;
}

.offer-supplier-form-picker > div,
.offer-supplier-form-picker > label {
  display: grid;
  gap: 6px;
}

.offer-supplier-form-picker strong {
  font-size: 16px;
}

.offer-supplier-form-picker small {
  color: var(--muted);
  line-height: 1.45;
}

.offer-picker-kicker {
  color: var(--brand-accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.offer-supplier-form-picker label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.offer-supplier-form-picker select {
  width: 100%;
  min-height: 44px;
}

.offer-supplier-template-preview {
  display: grid;
  grid-column: 1 / -1;
  gap: 14px;
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(20, 126, 124, 0.18);
}

.offer-supplier-template-empty {
  display: grid;
  gap: 4px;
  min-height: 66px;
  align-content: center;
  padding: 12px 14px;
  border: 1px dashed rgba(20, 126, 124, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.offer-supplier-template-empty span,
.offer-supplier-template-summary small,
.offer-supplier-template-field small {
  color: var(--muted);
}

.offer-supplier-template-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.offer-supplier-template-summary > div:first-child {
  display: grid;
  gap: 5px;
}

.offer-supplier-template-summary strong {
  font-size: 17px;
}

.offer-supplier-template-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.offer-supplier-template-actions {
  display: grid;
  justify-items: end;
  gap: 9px;
}

.offer-supplier-template-toggle {
  min-height: 36px;
  border-color: rgba(20, 126, 124, 0.3);
  background: #ffffff;
  color: var(--brand-accent);
}

.offer-supplier-template-toggle:hover {
  border-color: var(--brand-accent);
  background: #eefafa;
}

.offer-supplier-template-preview.is-collapsed .offer-supplier-template-groups {
  display: none;
}

.offer-supplier-template-counts span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid rgba(20, 126, 124, 0.18);
  border-radius: 7px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.offer-supplier-template-counts span.required {
  border-color: rgba(40, 100, 217, 0.22);
  background: #f2f6ff;
  color: var(--accent-dark);
}

.offer-supplier-template-counts b {
  color: var(--text);
  font-size: 14px;
}

.offer-supplier-template-groups {
  display: grid;
  gap: 12px;
}

.offer-supplier-template-group {
  overflow: hidden;
  border: 1px solid rgba(20, 126, 124, 0.2);
  border-radius: 8px;
  background: #ffffff;
}

.offer-supplier-template-group > header {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(20, 126, 124, 0.14);
  background: #f1f9f8;
}

.offer-supplier-template-group > header strong {
  color: var(--brand-accent);
  font-size: 13px;
}

.offer-supplier-template-group > header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.offer-supplier-template-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.offer-supplier-template-field {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-width: 0;
  padding: 13px;
  border-bottom: 1px solid rgba(217, 228, 234, 0.74);
}

.offer-supplier-template-field:nth-child(odd) {
  border-right: 1px solid rgba(217, 228, 234, 0.74);
}

.offer-supplier-template-control {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.offer-supplier-template-control-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.offer-supplier-template-control-heading strong,
.offer-supplier-template-control small {
  overflow-wrap: anywhere;
}

.offer-supplier-template-control-heading strong {
  color: var(--text);
  font-size: 13px;
}

.offer-supplier-template-control-heading em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.offer-supplier-template-control-heading em.required {
  color: var(--accent-dark);
}

.offer-supplier-template-control small {
  font-size: 11px;
  line-height: 1.35;
}

.offer-supplier-template-control input,
.offer-supplier-template-control select,
.offer-supplier-template-control .custom-select-trigger {
  min-height: 40px;
  border-radius: 8px;
  background: #ffffff;
}

.offer-supplier-template-control input:focus,
.offer-supplier-template-control select:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(20, 126, 124, 0.11);
}

.offer-supplier-template-control .custom-select-menu {
  z-index: 180;
}

.offer-supplier-template-number {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 6px;
  background: #eef7f7;
  color: var(--brand-accent);
  font-size: 11px;
  font-weight: 900;
}

.supplier-offer-form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px 14px;
  background: #f5fbfb;
}

.supplier-offer-form-heading h4 {
  margin: 0;
  font-size: 18px;
}

.supplier-offer-form-heading > div:first-child > span,
.supplier-form-progress span,
.supplier-form-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.supplier-form-progress {
  display: grid;
  flex: 0 0 auto;
  gap: 2px;
  min-width: 150px;
  text-align: right;
}

.supplier-form-progress strong {
  color: var(--brand-accent);
  font-size: 24px;
  line-height: 1;
}

.supplier-form-progress-track {
  height: 4px;
  overflow: hidden;
  background: #dfe9ec;
}

.supplier-form-progress-track span {
  display: block;
  height: 100%;
  background: var(--brand-accent);
  transition: width 180ms ease;
}

.supplier-offer-form {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.supplier-form-skus {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 14px;
  min-height: 0;
  padding: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(20, 126, 124, 0.48) rgba(226, 232, 240, 0.58);
  scrollbar-width: thin;
}

.supplier-form-skus::-webkit-scrollbar {
  width: 8px;
}

.supplier-form-skus::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.58);
}

.supplier-form-skus::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(20, 126, 124, 0.48);
}

.supplier-form-sku {
  display: grid;
  gap: 12px;
  min-height: max-content;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  background: #fff;
}

.supplier-form-sku-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.supplier-form-sku-heading span,
.supplier-form-sku-heading strong {
  display: block;
}

.supplier-form-sku-heading span {
  margin-bottom: 3px;
  color: var(--brand-accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.supplier-form-groups {
  display: grid;
  gap: 8px;
  padding: 0 12px;
}

.supplier-form-group {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: #fff;
}

.supplier-form-group summary {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  list-style: none;
  background: #f7fafb;
  cursor: pointer;
}

.supplier-form-group summary::-webkit-details-marker {
  display: none;
}

.supplier-form-group summary small {
  color: var(--muted);
  font-weight: 750;
}

.supplier-form-group-mark {
  width: 6px;
  height: 22px;
  border-radius: 3px;
  background: var(--brand-accent);
}

.supplier-form-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.supplier-form-field {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.supplier-form-field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.supplier-form-field > span b {
  margin-left: 3px;
  color: #d04c3f;
}

.supplier-form-field input,
.supplier-form-field select {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid #cfdae2;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.supplier-form-field input:focus,
.supplier-form-field select:focus {
  border-color: var(--brand-accent);
  outline: 3px solid rgba(20, 126, 124, 0.12);
}

.supplier-form-field.calculated input,
.supplier-form-field input:disabled,
.supplier-form-field select:disabled {
  background: #eef3f5;
  color: #526274;
  opacity: 1;
}

.supplier-form-field > small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.supplier-form-field.is-conditionally-hidden {
  display: none;
}

.supplier-form-files {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}

.supplier-form-file-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed rgba(20, 126, 124, 0.32);
  border-radius: 10px;
  background: #f8fcfc;
}

.supplier-form-file-group header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.supplier-form-file-group header strong,
.supplier-form-file-group header span {
  display: block;
}

.supplier-form-file-group header span,
.supplier-form-file-list small {
  color: var(--muted);
  font-size: 11px;
}

.supplier-form-file-add {
  position: relative;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(20, 126, 124, 0.28);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-accent);
  cursor: pointer;
  font-weight: 900;
}

.supplier-form-file-add input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.supplier-form-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.supplier-form-file-chip {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 7px;
  background: #eaf6f6;
  color: #31565d;
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.supplier-form-file-chip button {
  border: 0;
  background: transparent;
  color: #a13737;
  cursor: pointer;
  font-size: 16px;
}

.supplier-form-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.06);
}

.supplier-form-actions strong,
.supplier-form-actions span {
  display: block;
}

.supplier-form-save-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.supplier-form-progress-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff5d9;
  color: #8a6500;
  font-size: 11px;
  font-weight: 900;
}

.supplier-form-progress-pill.ready {
  background: #e4f6f4;
  color: var(--brand-accent);
}

.manager-offer-modal .supplier-offer-form {
  height: 100%;
}

@media (max-width: 1100px) {
  .supplier-form-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .offer-supplier-form-picker {
    grid-template-columns: 1fr;
  }

  .offer-supplier-template-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .offer-supplier-template-counts {
    justify-content: flex-start;
  }

  .offer-supplier-template-actions {
    justify-items: start;
  }

  .offer-supplier-template-fields {
    grid-template-columns: 1fr;
  }

  .offer-supplier-template-field:nth-child(odd) {
    border-right: 0;
  }

  .offer-supplier-template-field {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .supplier-offer-form-heading,
  .supplier-form-actions,
  .supplier-form-sku-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .supplier-form-progress {
    text-align: left;
  }

  .supplier-form-field-grid,
  .supplier-form-files {
    grid-template-columns: 1fr;
  }

  .supplier-form-save-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .supplier-offer-form-shell {
    height: min(560px, calc(100dvh - 120px));
    min-height: 360px;
  }
}

.manager-api-actions {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.danger-button {
  border: 1px solid rgba(220, 38, 38, 0.34);
  border-radius: 10px;
  background: rgba(254, 242, 242, 0.92);
  color: #b91c1c;
  font-weight: 800;
  padding: 11px 16px;
  cursor: pointer;
  transition: 160ms ease;
}

.danger-button:hover {
  border-color: rgba(220, 38, 38, 0.58);
  background: #fee2e2;
  transform: translateY(-1px);
}

.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

.manager-orders-filter-card {
  margin-bottom: 18px;
}

.manager-orders-filter.future-toolbar {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  margin: 0;
  box-shadow: none;
}

.manager-orders-filter .wide {
  grid-column: 1 / -2;
}

.collaboration-metrics {
  margin-bottom: 18px;
}

.collaboration-layout,
.messenger-shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.collaboration-sidebar {
  position: sticky;
  top: 108px;
}

.conversation-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.messenger-shell {
  height: clamp(560px, calc(100vh - 235px), 720px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  align-items: stretch;
}

.messenger-shell > * {
  min-width: 0;
}

.messenger-sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid rgba(148, 163, 184, 0.22);
  background: #f8fbfc;
}

.messenger-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
}

.messenger-sidebar-header h3,
.messenger-sidebar-header p {
  margin: 0;
}

.messenger-sidebar-header p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.messenger-sidebar-header > span {
  display: inline-grid;
  min-width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: rgba(23, 111, 109, 0.12);
  color: var(--brand-accent);
  font-size: 13px;
  font-weight: 900;
}

.messenger-search {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  margin: 0 14px 12px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 12px;
  background: #ffffff;
}

.messenger-search span {
  color: var(--muted);
  font-weight: 900;
}

.messenger-search input {
  min-height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 13px;
}

.messenger-conversation-list {
  align-content: start;
  margin-top: 0;
  overflow: auto;
  padding: 0 10px 14px;
}

.conversation-list button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 70px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.conversation-list button:hover,
.conversation-list button.active {
  border-color: rgba(23, 111, 109, 0.45);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.conversation-list strong,
.conversation-list span,
.conversation-list small {
  display: block;
}

.conversation-list span,
.conversation-list small {
  color: var(--muted);
  font-size: 12px;
}

.messenger-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand-accent), #2f8f89);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.messenger-avatar.large {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  font-size: 13px;
}

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

.conversation-main strong,
.conversation-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-main strong {
  color: var(--text);
}

.conversation-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.conversation-meta b {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--brand-accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
}

.collaboration-chat-card {
  min-height: 620px;
}

.messenger-chat {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 12%, rgba(23, 111, 109, 0.08), transparent 24%),
    linear-gradient(180deg, #fbfdfe 0%, #f2f7f8 100%);
}

.messenger-chat-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 80px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
}

.messenger-chat-header h3,
.messenger-chat-header p {
  margin: 0;
}

.messenger-chat-header h3 {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messenger-chat-header p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.messenger-topic {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(23, 111, 109, 0.1);
  color: var(--brand-accent);
  font-size: 12px;
  font-weight: 900;
}

.message-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: none;
  min-height: 0;
  margin-top: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 22px;
  scroll-behavior: smooth;
  scrollbar-color: rgba(23, 111, 109, 0.38) transparent;
}

.message-thread::before {
  content: "";
  flex: 1 0 auto;
}

.message-thread::-webkit-scrollbar {
  width: 8px;
}

.message-thread::-webkit-scrollbar-track {
  background: transparent;
}

.message-thread::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(23, 111, 109, 0.34);
  background-clip: content-box;
}

.message-bubble {
  display: grid;
  gap: 6px;
  flex: 0 0 auto;
  align-self: flex-start;
  width: fit-content;
  max-width: min(680px, 78%);
  padding: 12px 14px 9px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px 16px 16px 5px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.message-bubble.own {
  align-self: flex-end;
  border-color: rgba(23, 111, 109, 0.28);
  border-radius: 16px 16px 5px 16px;
  background: #e7f7f5;
}

.message-author {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.message-author strong {
  color: var(--brand-accent);
  font-size: 12px;
}

.message-bubble p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.message-bubble small,
.message-time {
  justify-self: end;
  color: var(--muted);
  font-size: 11px;
}

.message-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.message-read-state {
  color: #64748b;
  font-weight: 800;
}

.message-read-state.read {
  color: var(--brand-accent);
}

.attachment-chip {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(36, 89, 182, 0.1);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.message-form,
.task-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.message-form {
  grid-template-columns: minmax(0, 1fr) minmax(140px, 210px) 46px;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.message-form textarea,
.task-form textarea {
  min-height: 96px;
  resize: vertical;
}

.message-form textarea {
  min-height: 46px;
  max-height: 118px;
  padding: 13px 16px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  line-height: 1.45;
  resize: vertical;
}

.message-input-wrap {
  display: block;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.message-input-wrap:focus-within {
  border-color: rgba(23, 111, 109, 0.42);
  box-shadow: 0 0 0 4px rgba(23, 111, 109, 0.08);
}

.attachment-input-wrap {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  min-height: 46px;
  padding: 0 12px 0 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background: #ffffff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.attachment-input-wrap:focus-within {
  border-color: rgba(23, 111, 109, 0.42);
  box-shadow: 0 0 0 4px rgba(23, 111, 109, 0.08);
}

.attachment-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 9px;
  background: rgba(23, 111, 109, 0.1);
  color: var(--brand-accent);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.attachment-input-wrap input {
  min-height: 44px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}

.send-button {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 16px;
  background: var(--brand-accent);
  color: #ffffff;
  font-size: 21px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(23, 111, 109, 0.2);
  transition:
    background-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.send-button:hover {
  background: #155d5b;
  box-shadow: 0 14px 28px rgba(23, 111, 109, 0.26);
  transform: translateY(-1px);
}

.task-table {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  overflow-x: auto;
}

.task-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.15fr) minmax(130px, 0.8fr) minmax(260px, 1.4fr) minmax(90px, 0.6fr) minmax(110px, 0.65fr) minmax(230px, 1.2fr);
  gap: 12px;
  align-items: center;
  min-width: 1120px;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.task-row:not(.task-head):hover {
  border-color: rgba(23, 111, 109, 0.38);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

.task-head {
  min-height: 40px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  background: #f7fafc;
}

.task-row strong,
.task-row small {
  display: block;
}

.task-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.notification-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.notification-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.notification-list article.unread {
  border-color: rgba(23, 111, 109, 0.34);
  background: #effafa;
}

.notification-list strong,
.notification-list small {
  display: block;
}

.notification-list small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.notification-list p {
  margin: 0;
  color: var(--muted);
}

.manager-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
}

.manager-detail-modal {
  width: min(1180px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
    var(--surface);
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.28);
}

.manager-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.manager-detail-header h3 {
  margin: 4px 0 6px;
  font-size: 26px;
}

.manager-detail-header p:last-child {
  color: var(--muted);
}

.manager-detail-loading {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.manager-detail-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.manager-detail-metrics article {
  padding: 15px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 12px;
  background: #ffffff;
}

.manager-detail-metrics span,
.manager-detail-metrics strong,
.manager-detail-metrics small {
  display: block;
}

.manager-detail-metrics span,
.manager-detail-metrics small {
  color: var(--muted);
}

.manager-detail-metrics strong {
  margin: 8px 0 4px;
  color: #101827;
  font-size: 24px;
  font-weight: 900;
}

.manager-command-center {
  display: grid;
  grid-template-columns: minmax(230px, 0.82fr) minmax(0, 1fr) minmax(300px, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.manager-risk-card,
.manager-recommendations-card,
.manager-task-create-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.manager-risk-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.manager-risk-card span,
.manager-risk-card strong,
.manager-risk-card small {
  display: block;
}

.manager-risk-card span,
.manager-risk-card small {
  color: var(--muted);
}

.manager-risk-card strong {
  margin: 5px 0 4px;
  color: #101827;
  font-size: 22px;
  font-weight: 900;
}

.manager-risk-card.high {
  border-color: rgba(220, 38, 38, 0.28);
  background: linear-gradient(180deg, #fff7f7, #ffffff 82%);
}

.manager-risk-card.medium {
  border-color: rgba(217, 119, 6, 0.28);
  background: linear-gradient(180deg, #fffbeb, #ffffff 82%);
}

.manager-risk-card.low {
  border-color: rgba(15, 118, 110, 0.24);
  background: linear-gradient(180deg, #effefa, #ffffff 82%);
}

.manager-risk-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.24);
}

.manager-risk-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.manager-risk-card.high .manager-risk-meter span {
  background: #dc2626;
}

.manager-risk-card.medium .manager-risk-meter span {
  background: #d97706;
}

.manager-risk-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.manager-risk-card li {
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.72);
  color: #334155;
  font-size: 13px;
}

.manager-recommendations-card,
.manager-task-create-card {
  display: grid;
  align-content: start;
  gap: 13px;
}

.manager-recommendations-list {
  display: grid;
  gap: 8px;
}

.manager-recommendations-list button {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 58px;
  padding: 11px 12px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 10px;
  background: #f7fbfb;
  color: #101827;
  text-align: left;
}

.manager-recommendations-list button:hover {
  border-color: rgba(15, 118, 110, 0.36);
  background: #effefa;
  transform: translateY(-1px);
}

.manager-recommendations-list strong,
.manager-recommendations-list small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.manager-recommendations-list small {
  color: var(--muted);
}

.manager-detail-task-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.manager-detail-task-form label,
.manager-detail-task-form label span {
  display: grid;
}

.manager-detail-task-form label {
  gap: 6px;
}

.manager-detail-task-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.manager-detail-task-form .wide,
.manager-detail-task-form .form-message {
  grid-column: 1 / -1;
}

.manager-detail-task-form button {
  width: fit-content;
}

.manager-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.manager-detail-section {
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.manager-detail-section h4 {
  margin: 0 0 12px;
  font-size: 15px;
}

.manager-detail-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.manager-detail-fields span {
  min-width: 0;
  padding: 10px;
  border-radius: 10px;
  background: #f6f9fb;
}

.manager-detail-fields strong,
.manager-detail-fields small {
  display: block;
}

.manager-detail-fields small {
  margin-top: 4px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.manager-detail-list {
  display: grid;
  gap: 8px;
}

.manager-detail-list > div {
  display: grid;
  grid-template-columns: minmax(170px, 1.3fr) minmax(100px, 0.8fr) minmax(110px, 0.8fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: #f6f9fb;
  color: #101827;
  font-size: 13px;
}

.manager-detail-list > div span,
.manager-detail-list > div strong,
.manager-detail-list > div small {
  display: block;
  min-width: 0;
}

.manager-detail-list > div small {
  margin-top: 3px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .dashboard-topbar-inner {
    min-height: auto;
  }

  .dashboard-nav {
    padding-bottom: 7px;
  }

  .dashboard-header h2 {
    font-size: 24px;
  }

  .workspace-metrics article,
  .product-focus-grid article,
  .assortment-summary article,
  .sales-summary article,
  .procurement-summary article,
  .new-assortment-summary article,
  .logistics-summary article,
  .payments-summary article,
  .quality-summary article {
    padding: 16px;
  }

  .manager-metrics,
  .manager-grid {
    grid-template-columns: 1fr;
  }

  .manager-logistics-layout,
  .manager-assortment-layout,
  .manager-sales-layout,
  .manager-orders-connect,
  .manager-api-grid,
  .manager-orders-filter.future-toolbar,
  .collaboration-layout,
  .messenger-shell,
  .manager-slots-day,
  .manager-slots-day-grid {
    grid-template-columns: 1fr;
  }

  .manager-logistics-warehouses,
  .manager-assortment-suppliers,
  .collaboration-sidebar {
    position: static;
  }

  .notification-list article {
    grid-template-columns: 1fr;
  }

  .messenger-shell {
    min-height: auto;
  }

  .messenger-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  }

  .messenger-conversation-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 12px;
  }

  .messenger-chat {
    min-height: 0;
  }

  .messenger-chat-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .messenger-topic {
    grid-column: 2;
    width: fit-content;
  }

  .message-bubble {
    max-width: 90%;
  }

  .message-form {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .attachment-input-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .manager-slot-legend,
  .manager-assortment-statuses {
    justify-content: flex-start;
  }

  .manager-side-stack {
    grid-template-columns: 1fr;
  }

  .manager-detail-backdrop {
    padding: 12px;
  }

  .manager-detail-modal {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 18px;
  }

  .manager-detail-header,
  .split-heading {
    flex-direction: column;
  }

  .manager-detail-metrics,
  .manager-command-center,
  .manager-detail-grid,
  .manager-detail-fields,
  .manager-detail-task-form,
  .logistics-slot-confirm-summary {
    grid-template-columns: 1fr;
  }

  .manager-detail-task-form button {
    width: 100%;
  }

  .manager-detail-list > div {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

/* Marketplace workflow */
.workflow-dashboard-header {
  align-items: flex-end;
}

.workflow-header-stats,
.workflow-actions,
.workflow-actions.compact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.workflow-metrics article {
  position: relative;
  overflow: hidden;
}

.workflow-metrics article::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-accent), #56a9a5);
  opacity: 0.55;
}

.workflow-create-panel {
  padding: 0;
  overflow: hidden;
}

.workflow-create-panel > summary {
  min-height: 88px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  list-style: none;
  cursor: pointer;
}

.workflow-create-panel > summary::-webkit-details-marker {
  display: none;
}

.workflow-create-panel > summary span:first-child {
  display: grid;
  gap: 5px;
}

.workflow-create-panel > summary small {
  color: var(--muted);
  font-weight: 500;
}

.workflow-create-panel[open] > summary {
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.workflow-create-panel .manager-api-card {
  padding: 24px;
  border: 0;
  box-shadow: none;
}

.workflow-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.workflow-offer-tile {
  min-width: 0;
  min-height: 210px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background:
    linear-gradient(145deg, rgba(23, 111, 109, 0.055), transparent 42%),
    var(--surface);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.workflow-offer-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 111, 109, 0.38);
  box-shadow: var(--shadow-soft);
}

.workflow-offer-tile header,
.workflow-offer-tile footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.workflow-offer-tile footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.workflow-offer-tile > span,
.workflow-offer-tile > small,
.workflow-offer-tile footer > span {
  color: var(--muted);
}

.revision-tag {
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff3dd;
  color: #9a5d0a;
  font-size: 11px;
  font-weight: 800;
}

.workflow-comment {
  margin: 2px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--warning);
  border-radius: 0 8px 8px 0;
  background: #fffaf0;
  color: #7b541c;
  font-size: 12px;
  line-height: 1.5;
}

.workflow-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: #f7fafb;
}

.workflow-step {
  position: relative;
  padding: 8px 10px;
  border-radius: 8px;
  background: #e7edf1;
  color: #72808e;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.workflow-step.done {
  background: #dff2ea;
  color: var(--success);
}

.workflow-step.active {
  background: var(--brand-accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(23, 111, 109, 0.2);
}

.workflow-step.danger {
  grid-column: 1 / -1;
  background: #fde8e8;
  color: var(--danger);
}

.quality-signoff-card {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  border: 1px solid #bfdbd9;
  border-radius: var(--radius-card);
  background: #f0f8f7;
}

.quality-signoff-card > div {
  padding: 13px;
  display: grid;
  gap: 5px;
  border-radius: 10px;
  background: #fff;
}

.quality-signoff-card span {
  color: var(--muted);
  font-size: 12px;
}

.quality-signoff-card .primary-button {
  grid-column: 1 / -1;
}

.workflow-offer-table .is-muted {
  opacity: 0.58;
}

.workflow-offer-table .offer-marketplace-item.is-actionable {
  cursor: pointer;
}

.workflow-offer-table .offer-marketplace-item.is-actionable:hover,
.workflow-offer-table .offer-marketplace-item.is-actionable:focus-visible {
  border-color: rgba(23, 111, 109, 0.42);
  background: #f3fbfa;
  box-shadow: 0 10px 26px rgba(23, 111, 109, 0.1);
  outline: none;
}

.manager-marketplace-response-count {
  display: grid;
  gap: 2px;
}

.manager-marketplace-response-count strong {
  font-size: 17px;
}

.manager-marketplace-response-count small {
  color: var(--brand-accent);
  font-weight: 900;
}

.manager-marketplace-offer-modal {
  width: min(1240px, calc(100vw - 32px));
  height: min(900px, calc(100vh - 36px));
  grid-template-rows: auto minmax(0, 1fr);
}

.manager-marketplace-detail-body {
  display: grid;
  align-content: start;
  gap: 20px;
  min-height: 0;
  padding: 20px;
  overflow-y: auto;
}

.manager-marketplace-offer-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.manager-marketplace-comparison,
.manager-marketplace-selected-claim {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background: #ffffff;
}

.manager-marketplace-comparison .manager-offer-claims-list {
  max-height: 320px;
  overflow-y: auto;
}

.manager-marketplace-comparison .manager-offer-claim-button.active {
  border-color: rgba(23, 111, 109, 0.5);
  background: #eef9f8;
  box-shadow: 0 10px 24px rgba(23, 111, 109, 0.1);
}

.best-offer-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #dff4ef;
  color: var(--success);
  font-size: 11px;
  font-weight: 950;
}

.manager-marketplace-claim-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  min-height: 520px;
}

.manager-marketplace-claim-layout .offer-chat-panel {
  height: 100%;
}

.manager-marketplace-select-hint {
  min-height: 80px;
}

.new-plan-status.danger {
  background: #fde8e8;
  color: var(--danger);
}

.workflow-offer-modal {
  width: min(1180px, calc(100vw - 32px));
}

.workflow-offer-modal.has-workflow-progress {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.workflow-offer-modal .offer-modal-body {
  min-height: 460px;
}

.workflow-team-layout {
  align-items: start;
}

.workflow-team-list article {
  border-left: 3px solid rgba(23, 111, 109, 0.38);
}

.workflow-actions {
  margin-top: 16px;
}

.workflow-actions.compact {
  margin-top: 0;
}

.workflow-history {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .manager-marketplace-offer-summary,
  .manager-marketplace-claim-layout {
    grid-template-columns: 1fr;
  }

  .manager-marketplace-claim-layout .offer-chat-panel {
    min-height: 420px;
  }
}

.workflow-history h4 {
  margin: 0 0 14px;
}

.workflow-history > div {
  display: grid;
  gap: 0;
}

.workflow-history article {
  position: relative;
  min-height: 54px;
  padding: 0 0 16px 28px;
}

.workflow-history article:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 15px;
  bottom: -2px;
  width: 1px;
  background: #cbd9df;
}

.workflow-history-dot {
  position: absolute;
  left: 1px;
  top: 4px;
  width: 13px;
  height: 13px;
  border: 3px solid #d6ebe9;
  border-radius: 50%;
  background: var(--brand-accent);
}

.workflow-history article div {
  display: grid;
  gap: 4px;
}

.workflow-history small {
  color: var(--muted);
}

.workflow-history p {
  margin: 3px 0 0;
  color: #526273;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .workflow-offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .workflow-dashboard-header {
    align-items: stretch;
  }

  .workflow-offer-grid,
  .quality-signoff-card {
    grid-template-columns: 1fr;
  }

  .workflow-progress {
    display: flex;
    overflow-x: auto;
  }

  .workflow-step {
    min-width: 130px;
  }

  .workflow-create-panel > summary {
    align-items: flex-start;
    flex-direction: column;
  }
}
