:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
}

/* Accounting attendance events */
.accounting-detail-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.attendance-dialog{width:min(900px,calc(100vw - 36px));max-width:900px}
.attendance-layout{display:grid;grid-template-columns:minmax(270px,.82fr) minmax(390px,1.18fr);min-height:430px;background:var(--surface,#111b28)}
.attendance-history{border-right:1px solid rgba(148,163,184,.22);padding:18px}
.attendance-history-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.attendance-history-head strong{font-size:14px;color:#e7edf7}
.attendance-history-head button{display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(74,222,128,.48);border-radius:9px;background:rgba(34,197,94,.1);color:#7ee7aa;padding:8px 11px;font-weight:750;cursor:pointer}
.attendance-history-head svg{width:15px;height:15px}
.attendance-event-list{display:flex;flex-direction:column;gap:8px;max-height:390px;overflow:auto;padding-right:3px}
.attendance-event-row{width:100%;display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px;text-align:left;border:1px solid rgba(148,163,184,.2);border-radius:11px;background:rgba(15,23,42,.42);padding:10px;color:#e8eef8;cursor:pointer}
.attendance-event-row:hover{border-color:rgba(245,190,45,.55);background:rgba(245,190,45,.06)}
.attendance-event-row.cancelled{opacity:.48}.attendance-event-row.draft{border-style:dashed}
.attendance-event-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:rgba(245,190,45,.1);color:#f4c84a}
.attendance-event-icon svg{width:18px;height:18px}.attendance-event-row>span:nth-child(2){min-width:0;display:flex;flex-direction:column;gap:3px}.attendance-event-row strong{font-size:13px}.attendance-event-row small{color:#8f9db1;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.attendance-event-row em{font-style:normal;font-size:10px;color:#69dda2;border:1px solid rgba(74,222,128,.3);border-radius:999px;padding:4px 7px}
.attendance-empty{color:#8997aa;text-align:center;padding:54px 10px;font-size:13px}
.attendance-editor{padding:18px}.attendance-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:0!important}.attendance-form-grid textarea{resize:vertical;min-height:58px}
.attendance-impact{grid-column:1/-1!important;display:flex!important;flex-direction:row!important;align-items:center;gap:10px;border:1px solid rgba(74,222,128,.28);border-radius:10px;background:rgba(34,197,94,.07);padding:10px 12px!important;cursor:pointer}.attendance-impact input{width:17px!important;height:17px!important;accent-color:#d7aa28}.attendance-impact span{display:flex;flex-direction:column;gap:2px}.attendance-impact strong{font-size:12px;color:#dfe9f5}.attendance-impact small{font-size:10px;color:#8f9db1}
.attendance-detail-row td:nth-child(2){color:#f2ca56}.attendance-detail-row{background:rgba(245,190,45,.035)}
body.erp-theme-light .attendance-layout{background:#fff}body.erp-theme-light .attendance-history{border-color:#d8e0ea}body.erp-theme-light .attendance-history-head strong,body.erp-theme-light .attendance-event-row{color:#172236}body.erp-theme-light .attendance-event-row{background:#f8fafc;border-color:#d8e0ea}body.erp-theme-light .attendance-form-grid label>span{color:#546176}
@media(max-width:820px){.attendance-layout{grid-template-columns:1fr}.attendance-history{border-right:0;border-bottom:1px solid rgba(148,163,184,.22)}.attendance-event-list{max-height:220px}.attendance-form-grid{grid-template-columns:1fr}.accounting-detail-actions{justify-content:flex-start}}

body.admin-dark {
  --bg: #0f1115;
  --card: #171a21;
  --text: #e7eaf0;
  --muted: #9aa3b2;
  --line: #2b313d;
  --accent: #38bdf8;
  --accent-dark: #7dd3fc;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: var(--accent); text-decoration: none; }

body.admin-dark a { color: #7dd3fc; }

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 14px clamp(16px, 4vw, 48px);
  background: var(--card);
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.topbar h1 { margin: 0 0 2px; font-size: clamp(21px, 2.2vw, 28px); }
.topbar h1 span { font-weight: 300; }
.topbar p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.2; }
.userbar { display: flex; gap: 16px; align-items: center; color: var(--muted); }
.ai-assistant-beacon {
  position: relative;
  display: inline-flex;
  width: auto;
  min-height: 36px;
  align-items: center;
  gap: 9px;
  padding: 6px 12px 6px 8px;
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(168, 85, 247, 0.18)),
    rgba(15, 23, 42, 0.34);
  color: var(--text);
  overflow: hidden;
  cursor: default;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.12);
}
.ai-assistant-beacon::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 90deg, transparent, rgba(56, 189, 248, 0.42), rgba(168, 85, 247, 0.45), transparent 62%);
  opacity: 0.55;
  animation: ai-orbit 5s linear infinite;
}
.ai-assistant-beacon span,
.ai-assistant-beacon strong {
  position: relative;
  z-index: 1;
}
.ai-assistant-beacon span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #ffffff, #7dd3fc 34%, #8b5cf6 70%, #111827);
  box-shadow: 0 0 18px rgba(125, 211, 252, 0.55);
}
.ai-assistant-beacon span::after {
  content: "✦";
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
}
.ai-assistant-beacon strong {
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}
@keyframes ai-orbit {
  to { transform: rotate(360deg); }
}
.account-switcher {
  position: relative;
}
.account-switcher summary {
  list-style: none;
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}
.account-switcher summary::-webkit-details-marker {
  display: none;
}
.account-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 6px;
  min-width: 280px;
  max-height: 420px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}
.account-switcher-menu form {
  margin: 0;
}
.account-switcher-row {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
}
.account-switcher-row span {
  color: var(--muted);
  font-size: 12px;
}
.account-switcher-row:hover,
.account-switcher-row.active {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.1);
}
.account-switcher-row.admin-return {
  border-color: rgba(56, 189, 248, 0.34);
}
.module-access-control {
  position: relative;
  margin-left: auto;
}
.module-access-control summary {
  list-style: none;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}
.module-access-control summary::-webkit-details-marker {
  display: none;
}
.module-access-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: grid;
  gap: 8px;
  width: min(320px, 86vw);
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  padding: 10px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}
.module-access-popover > strong {
  font-size: 13px;
}
.module-access-users {
  display: grid;
  gap: 5px;
  max-height: 260px;
  overflow: auto;
}
.module-access-users label {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 7px;
  color: var(--text);
  font-size: 12px;
}
.module-access-users input {
  width: auto;
  margin: 0;
}
.module-access-users span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.module-access-popover .button {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 12px;
}
.theme-switch {
  position: relative;
  flex: 0 0 auto;
  width: 27px;
  height: 48px;
  padding: 3px 0;
  display: grid;
  place-items: center;
  color: #697386;
  background: #f1f4f8;
  border: 1px solid #cbd3de;
  border-radius: 14px;
  cursor: pointer;
}
.theme-icon {
  position: relative;
  z-index: 2;
  font-size: 12px;
  line-height: 1;
  transition: color .2s ease;
}
.theme-switch-thumb {
  position: absolute;
  z-index: 1;
  top: 2px;
  left: 2px;
  width: 21px;
  height: 21px;
  background: #f0b73d;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(240, 183, 61, .32);
  transition: transform .22s ease, background-color .22s ease;
}
.theme-switch .theme-icon-sun { color: #1b2028; }
.theme-switch[aria-pressed="true"] { color: #8994a6; background: #171b23; border-color: #394150; }
.theme-switch[aria-pressed="true"] .theme-switch-thumb {
  transform: translateY(21px);
  background: #d9e5f7;
  box-shadow: 0 0 8px rgba(183, 207, 242, .34);
}
.theme-switch[aria-pressed="true"] .theme-icon-sun { color: #7b8493; }
.theme-switch[aria-pressed="true"] .theme-icon-moon { color: #151922; }
.settings-switcher {
  position: relative;
}
.settings-switcher summary {
  list-style: none;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.settings-switcher summary::-webkit-details-marker {
  display: none;
}
.settings-switcher summary:hover,
.settings-switcher[open] summary {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.18);
}
.settings-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 25;
  display: grid;
  gap: 10px;
  min-width: 320px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(39, 39, 42, 0.96);
  color: #f4f4f5;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
}
.settings-account-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 4px 8px 12px;
  border-bottom: 1px solid rgba(244, 244, 245, 0.12);
}
.settings-account-row span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.26);
  color: #c4b5fd;
  font-size: 14px;
  font-weight: 900;
}
.settings-account-row strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #f4f4f5;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}
.settings-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
}
.settings-password-form {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.settings-password-form label {
  display: grid;
  gap: 6px;
  color: #d4d4d8;
  font-size: 13px;
  font-weight: 800;
}
.settings-password-form label strong {
  color: #f4f4f5;
  font-size: 13px;
  font-weight: 800;
}
.settings-password-form select,
.settings-password-form input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid rgba(244, 244, 245, 0.14);
  border-radius: 12px;
  background: rgba(24, 24, 27, 0.78);
  color: #ffffff;
  font-size: 14px;
}
.settings-password-form button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.settings-password-form button:hover {
  background: rgba(59, 130, 246, 0.28);
}
.settings-logout {
  color: #f4f4f5 !important;
}
.settings-logout:hover {
  background: rgba(239, 68, 68, 0.18) !important;
}
body.admin-dark .theme-switch {
  background: rgba(15, 23, 42, 0.5);
}
body.admin-dark .account-switcher-menu {
  background: #171a21;
}
body.admin-dark .account-switcher-row,
body.admin-dark .account-switcher-row:hover {
  color: var(--text);
}

.app-layout {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  align-items: start;
  gap: 0;
}
body.side-menu-collapsed .app-layout {
  grid-template-columns: 56px minmax(0, 1fr);
}
.side-nav {
  position: sticky;
  top: 62px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: calc(100vh - 62px);
  min-height: 0;
  overflow: visible;
  padding: 18px 12px;
  border-right: 1px solid var(--line);
  background: var(--card);
}
.side-nav nav {
  display: grid;
  gap: 6px;
  overflow-y: auto;
}
.side-nav nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
}
.side-nav nav a strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-nav nav a:hover,
.side-nav nav a.active {
  border-color: rgba(37, 99, 235, 0.36);
  background: rgba(37, 99, 235, 0.1);
}
.side-nav-bottom {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.side-menu-toggle {
  display: flex;
  width: 100%;
  height: 40px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}
.side-menu-toggle:hover {
  border-color: rgba(37, 99, 235, 0.36);
  background: rgba(37, 99, 235, 0.1);
}
.side-menu-toggle span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  font-size: 22px;
  line-height: 1;
}
.side-menu-toggle strong {
  overflow: hidden;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-settings summary {
  justify-content: flex-start;
  width: 100%;
  height: 48px;
  gap: 12px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 16px;
}
.side-settings summary span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  font-size: 20px;
}
.side-settings summary strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 400;
}
.side-settings .settings-menu {
  top: auto;
  right: auto;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 280px;
}
body.side-menu-collapsed .side-nav {
  padding: 18px 8px;
}
body.side-menu-collapsed .side-nav nav {
  display: none;
}
body.side-menu-collapsed .side-nav-bottom {
  border-top: 0;
  padding-top: 0;
}
body.side-menu-collapsed .side-menu-toggle,
body.side-menu-collapsed .side-settings summary {
  justify-content: center;
  width: 40px;
  padding: 0;
}
body.side-menu-collapsed .side-menu-toggle strong,
body.side-menu-collapsed .side-settings summary strong {
  display: none;
}
body.side-menu-collapsed .side-settings .settings-menu {
  bottom: 0;
  left: calc(100% + 8px);
}

.page { padding: 12px clamp(16px, 4vw, 48px) 48px; }
html.erp-shell-booting .app-layout > main.page > * { display: none !important; }
html.erp-shell-booting .app-layout > main.page::before {
  content: 'Загрузка раздела…';
  display: block;
  padding: 12px 4px;
  color: var(--muted);
  font-size: 13px;
}
.section-anchor {
  scroll-margin-top: 96px;
}
.admin-command-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}
.admin-command-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}
.admin-command-head span {
  display: inline-flex;
  margin-bottom: 6px;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.admin-command-head h2 {
  margin: 0 0 4px;
  font-size: 20px;
}
.admin-command-head p {
  margin: 0;
  color: var(--muted);
}

.admin-menu-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(146px, 1fr);
  min-width: 0;
  overflow-x: auto;
  gap: 10px;
}
.admin-menu-group {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}
.admin-menu-group-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.admin-menu-group-head h3 {
  margin: 0 0 3px;
  font-size: 15px;
}
.admin-menu-group-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.admin-menu-group-head > span {
  display: inline-flex;
  min-width: 28px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.admin-menu-links {
  display: grid;
  gap: 6px;
}
.admin-menu-links a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  padding: 7px 9px;
  color: var(--text);
}
.admin-menu-links a:hover {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
}
.admin-menu-links span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.admin-menu-links strong {
  color: var(--accent);
  font-size: 13px;
}
.notice {
  margin-bottom: 16px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 700;
}
.filter-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  background: var(--card);
  color: var(--text);
  font-weight: 700;
}
.filter-link.active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--accent-dark);
}
.filter-link span {
  display: inline-flex;
  min-width: 24px;
  justify-content: center;
  margin-left: 8px;
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  font-size: 12px;
}
.filter-link.active span {
  background: rgba(37, 99, 235, 0.16);
  color: var(--accent-dark);
}
.sales-date-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  margin: 0;
}
.sales-date-form label {
  margin: 0;
  min-width: 132px;
  font-size: 12px;
}
.sales-date-form input {
  min-height: 36px;
  padding: 8px 9px;
  font-size: 14px;
}
.sales-date-form .button {
  min-height: 36px;
  padding: 8px 10px;
}
.sales-store-section .section-head {
  padding: 8px 12px;
  gap: 8px;
  align-items: center;
}
.sales-store-section .section-head h2 {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
}
.sales-store-section .section-actions {
  gap: 7px;
}
.sales-store-section .section-actions > span {
  font-size: 12px;
  line-height: 1.2;
}
.sales-store-section .sales-date-form {
  gap: 6px;
}
.sales-store-section .sales-date-form label {
  display: flex;
  min-width: 118px;
  gap: 6px;
  align-items: center;
  font-size: 11px;
}
.sales-store-section .sales-date-form input {
  min-height: 30px;
  padding: 5px 7px;
  font-size: 13px;
}
.sales-store-section .button {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 12px;
}
.stock-filter-button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 9px;
  background: var(--card);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.stock-filter-button.active {
  border-color: #38bdf8;
  background: rgba(37, 99, 235, 0.18);
  color: #ffffff;
}
.top-products-tools {
  display: grid;
  grid-template-columns: 150px 112px;
  gap: 10px;
  align-items: end;
  padding: 10px 12px 12px;
}
.top-products-section .section-head {
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}
.top-products-section .section-head h2 {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  line-height: 1.1;
}
.top-products-updated {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.top-products-section .section-actions {
  align-items: center;
  gap: 8px;
}
.top-products-total-card {
  display: grid;
  min-width: 160px;
  min-height: 40px;
  align-content: center;
  gap: 1px;
  padding: 6px 12px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.08);
}
.top-products-total-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}
.top-products-total-card strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
}
.top-products-total-card small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
body.admin-dark .top-products-total-card {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.1);
}
.top-products-section .sales-date-form {
  align-items: center;
  gap: 8px;
}
.top-products-section .sales-date-form label {
  display: inline-flex;
  min-width: 146px;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.top-products-section .sales-date-form input,
.top-products-section .sales-date-form .button,
.top-products-section .export-link {
  min-height: 40px;
}
.top-products-section .sales-date-form .button,
.top-products-section .export-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 8px;
  line-height: 1;
  font-size: 13px;
  font-weight: 900;
}
.top-products-section .sales-date-form .button {
  min-width: 104px;
}
.top-products-section .export-link {
  min-width: 72px;
}
.top-product-search-field {
  max-width: 150px;
}
.top-products-tools label {
  display: grid;
  gap: 5px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.top-products-tools input,
.top-products-tools select {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}
.top-products-tools input:focus,
.top-products-tools select:focus {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
  outline: none;
}
.top-products-scroll-wrap {
  max-height: 760px;
  overflow-y: auto;
}
.top-products-scroll-wrap table {
  min-width: 960px;
  border-collapse: separate;
  border-spacing: 0;
}
.top-products-scroll-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 9px 12px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  color: #d8dee9;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 -1px 0 rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}
.top-products-scroll-wrap thead th:first-child {
  border-top-left-radius: 6px;
}
.top-products-scroll-wrap thead th:last-child {
  border-top-right-radius: 6px;
}
.top-products-scroll-wrap tbody tr {
  transition: background 0.15s ease;
}
.top-products-scroll-wrap tbody tr:hover {
  background: rgba(56, 189, 248, 0.07);
}
.top-products-scroll-wrap th.numeric,
.top-products-scroll-wrap td.numeric {
  text-align: right;
  white-space: nowrap;
}
.top-products-platform-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 160px;
}
.top-products-column-filter summary {
  gap: 4px;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 900;
}
.top-products-column-filter .column-filter-menu {
  min-width: 170px;
}
.top-products-orders strong {
  color: var(--text);
  font-size: 14px;
}
.top-products-revenue {
  color: #38bdf8;
  font-weight: 900;
}
.top-products-sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d8dee9;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.top-products-sort-button-left {
  justify-content: flex-start;
}
.top-products-sort-button span {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  color: #9ca3af;
  font-size: 12px;
  line-height: 1;
}
.top-products-sort-button[data-sort-direction] {
  color: #ffffff;
}
.top-products-sort-button[data-sort-direction] span {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
}
body:not(.admin-dark) .top-products-scroll-wrap thead th {
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  color: #334155;
  box-shadow: inset 0 -1px 0 rgba(37, 99, 235, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
body:not(.admin-dark) .top-products-sort-button {
  color: #334155;
}
body:not(.admin-dark) .top-products-sort-button[data-sort-direction] {
  color: #0f172a;
}
.top-products-scroll-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.top-products-scroll-wrap::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.18);
}
.top-products-scroll-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.45);
}
@media (max-width: 900px) {
  .top-products-tools {
    grid-template-columns: 1fr;
  }
}
.table-sort-button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  gap: 4px;
  justify-content: flex-start;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.table-sort-button::after {
  content: "↕";
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
}
.table-sort-button[data-sort-direction="asc"]::after {
  content: "↑";
  color: #ffffff;
}
.table-sort-button[data-sort-direction="desc"]::after {
  content: "↓";
  color: #ffffff;
}
.products-scroll-wrap {
  max-height: 622px;
  overflow-y: auto;
}
.products-scroll-wrap table {
  min-width: 1260px;
}
.products-scroll-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}
.products-scroll-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.products-scroll-wrap::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.12);
}
.products-scroll-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.35);
}
.abc-scroll-wrap {
  max-height: 446px;
  overflow-y: auto;
}
.abc-scroll-wrap table {
  min-width: 980px;
}
.abc-scroll-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}
.abc-scroll-wrap::-webkit-scrollbar {
  width: 10px;
}
.abc-scroll-wrap::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.12);
}
.abc-scroll-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.35);
}
.abc-xyz-scroll-wrap {
  max-height: 446px;
  overflow-y: auto;
}
.abc-xyz-scroll-wrap table {
  min-width: 980px;
}
.abc-xyz-scroll-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}
.abc-xyz-scroll-wrap::-webkit-scrollbar {
  width: 10px;
}
.abc-xyz-scroll-wrap::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.12);
}
.abc-xyz-scroll-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.35);
}
.xyz-scroll-wrap {
  max-height: 446px;
  overflow-y: auto;
}
.xyz-scroll-wrap table {
  min-width: 980px;
}
.xyz-scroll-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}
.xyz-scroll-wrap::-webkit-scrollbar {
  width: 10px;
}
.xyz-scroll-wrap::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.12);
}
.xyz-scroll-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.35);
}
.dimension-inputs,
.weight-inputs {
  display: flex;
  gap: 5px;
  align-items: center;
}
.dimension-inputs input {
  width: 54px;
  min-height: 30px;
  padding: 5px 6px;
  font-size: 12px;
}
.weight-inputs input {
  width: 72px;
  min-height: 30px;
  padding: 5px 6px;
  font-size: 12px;
}
.weight-inputs select {
  width: 54px;
  min-height: 30px;
  padding: 5px 6px;
  font-size: 12px;
}
.inline-package-form {
  margin: 0;
}
.inline-package-form .button {
  min-height: 30px;
  padding: 6px 8px;
  font-size: 12px;
}
.offer-print-link {
  color: var(--accent);
  font-weight: 800;
}
.barcode-action {
  display: inline-flex;
  min-width: 34px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}
.barcode-action:hover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.16);
}
.column-filter {
  position: relative;
  display: inline-block;
}
.column-filter summary {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  list-style: none;
  cursor: pointer;
}
.column-filter summary::-webkit-details-marker {
  display: none;
}
.column-filter summary span {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.column-filter-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  min-width: 190px;
  max-height: 260px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}
.column-filter-menu label {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0;
  padding: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}
.column-filter-menu input {
  width: auto;
  min-height: auto;
  margin: 0;
}
.filter-reset {
  width: 100%;
  min-height: 30px;
  margin-top: 6px;
  padding: 6px 8px;
  font-size: 12px;
}
body.admin-dark .column-filter-menu {
  border-color: #2b313d;
  background: #171a21;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
}
body.admin-dark .column-filter summary span {
  border-color: #2b313d;
}
.button {
  width: auto;
  min-height: 40px;
  border-radius: 6px;
  padding: 10px 14px;
  white-space: nowrap;
}
.button.compact { min-height: 42px; }
.button.secondary {
  background: #111827;
}
.button.secondary:hover {
  background: #374151;
}
.cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stock-cards {
  gap: 8px;
  margin-top: -8px;
  margin-bottom: 14px;
}
.stock-cards .card {
  min-height: 64px;
  padding: 10px 12px;
  justify-content: center;
  gap: 6px;
}
.stock-cards .card span {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}
.stock-cards .card strong {
  font-size: 20px;
  line-height: 1;
}
.api-cards {
  grid-template-columns: repeat(6, minmax(140px, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card span { color: var(--muted); font-size: 14px; }
.card strong { font-size: 24px; line-height: 1.15; }
.card strong.compact-value { font-size: 18px; }
.card small { color: var(--muted); font-size: 13px; }
.card.primary { border-color: #bfdbfe; background: #eff6ff; }
.card.warning { border-color: #facc15; background: #fefce8; }

.table-section {
  background: var(--card);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.06);
}
.sales-store-section {
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.06);
}
.sales-store-section .section-head {
  border-bottom-color: rgba(56, 189, 248, 0.22);
}
.section-head {
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid rgba(56, 189, 248, 0.22);
}
.section-head h2 { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.15; }
.section-head span { color: var(--muted); font-size: 12px; line-height: 1.2; }
.section-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.export-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  color: #ffffff;
  font-weight: 700;
}
.export-link:hover {
  background: #374151;
  color: #ffffff;
}
.row-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.mini-link {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 13px;
}
.mini-link.secondary {
  background: #4b5563;
}
.action-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 12px;
  padding: 16px 20px;
  background: #fafafa;
}
.store-action-list {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  border-top: 1px solid var(--line);
}
.action-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 14px;
  display: grid;
  gap: 8px;
}
.action-item.high {
  border-color: #fecaca;
  background: #fef2f2;
}
.action-item.medium {
  border-color: #fde68a;
  background: #fffbeb;
}
.action-item.low {
  border-color: #d1d5db;
  background: #f9fafb;
}
.action-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.action-item strong {
  font-size: 16px;
  line-height: 1.25;
}
.action-item small {
  color: var(--muted);
  line-height: 1.35;
}
.purchase-section .purchase-head {
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}
.purchase-section .purchase-head h2 {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}
.purchase-actions {
  align-items: center;
  gap: 8px;
}
.purchase-filter-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}
.purchase-filter-form label {
  display: grid;
  gap: 5px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.purchase-filter-form input,
.purchase-filter-form select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 800;
}
.purchase-filter-form input {
  width: 150px;
}
.purchase-filter-form select {
  min-width: 112px;
}
.purchase-section .purchase-filter-form .button,
.purchase-section .export-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 8px;
  line-height: 1;
  font-size: 13px;
  font-weight: 900;
}
.purchase-section .purchase-filter-form .button {
  min-width: 104px;
}
.purchase-section .export-link {
  min-width: 72px;
}
.purchase-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(56, 189, 248, 0.18);
  background: rgba(15, 23, 42, 0.03);
}
.purchase-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}
.purchase-summary-item {
  display: grid;
  min-height: 48px;
  align-content: center;
  gap: 2px;
  padding: 7px 10px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.06);
}
.purchase-summary-item span,
.purchase-summary-item small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
}
.purchase-summary-item strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
}
.purchase-table-wrap {
  max-height: 760px;
  overflow: auto;
}
.purchase-table-wrap table {
  min-width: 1180px;
}
.purchase-table-wrap .numeric {
  text-align: right;
  white-space: nowrap;
}
.purchase-quantity strong {
  color: #38bdf8;
  font-weight: 950;
}
.purchase-budget {
  color: #38bdf8;
  font-weight: 900;
}
body.admin-dark .purchase-summary-item {
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(56, 189, 248, 0.08);
}
.platform-label {
  white-space: nowrap;
  font-weight: 900;
}
.platform-label.ozon { color: #38bdf8; }
.platform-label.wb { color: #a855f7; }
.row-number {
  color: var(--muted);
  font-weight: 900;
}
.quality-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  padding: 16px 20px;
  background: #fafafa;
}
.quality-grid + .table-wrap {
  border-top: 1px solid var(--line);
}
.task-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}
.task-limit-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 0 auto;
}
.task-limit-form label {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.task-limit-form select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  padding: 7px 10px;
  font-size: 14px;
}
.quick-fill-panel {
  border-top: 1px solid var(--line);
  background: #ffffff;
}
.quick-fill-panel textarea {
  width: calc(100% - 32px);
  margin: 14px 16px 10px;
  min-height: 180px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.45;
}
.quick-fill-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 0 16px 16px;
}
.quick-fill-actions span {
  color: var(--muted);
  font-size: 13px;
}
.top-manager-section .section-head {
  padding-top: 7px;
  padding-bottom: 7px;
}
.top-manager-section .section-actions span {
  font-size: 11px;
}
.top-manager-kpis {
  grid-template-columns: repeat(6, minmax(112px, 1fr));
  gap: 7px;
  padding: 8px 10px;
}
.top-manager-kpis .quality-item {
  min-height: 70px;
  padding: 8px 9px;
  border-radius: 7px;
}
.top-manager-kpis .quality-item span {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 11px;
  line-height: 1.1;
}
.top-manager-kpis .quality-item strong {
  margin-top: 2px;
  font-size: 20px;
  line-height: 1;
}
.top-manager-kpis .quality-item small {
  font-size: 10px;
  line-height: 1.1;
}
.task-icon {
  display: inline-flex;
  width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}
.task-icon-list::before { content: "!"; }
.task-icon-cost::before { content: "P"; }
.task-icon-percent::before { content: "%"; }
.task-icon-logistics::before { content: "L"; }
.task-icon-table::before { content: "#"; }
.task-icon-revenue::before { content: "R"; }
.top-manager-section .task-filter-tabs {
  gap: 6px;
  padding: 6px 10px 9px;
}
.top-manager-section .filter-link {
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 12px;
}
.top-manager-section .filter-link span {
  min-width: 22px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  text-align: center;
}
.top-manager-section .task-limit-form {
  gap: 5px;
  margin-left: auto;
}
.top-manager-section .task-limit-form label {
  font-size: 11px;
}
.top-manager-section .task-limit-form select {
  min-height: 30px;
  padding: 4px 7px;
}
.top-manager-section .task-limit-form .button {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 11px;
}
.top-manager-section .inline-table-head {
  min-height: 30px;
  padding: 6px 10px;
}
.top-manager-section .inline-table-head span:first-child {
  font-size: 12px;
  font-weight: 800;
}
.top-manager-section .inline-table-head span:last-child {
  font-size: 11px;
}
.manager-task-wrap table {
  min-width: 1120px;
}
.manager-task-wrap {
  max-height: 482px;
  overflow-y: auto;
}
.manager-task-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}
.manager-task-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.manager-task-wrap::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.12);
}
.manager-task-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.35);
}
.manager-store-wrap {
  border-top: 1px solid var(--line);
}
.manager-store-wrap table {
  min-width: 760px;
}
.top-manager-section table th,
.top-manager-section table td {
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.15;
}
.top-manager-section table th {
  white-space: nowrap;
}
.top-manager-section .name-cell {
  max-width: 230px;
  line-height: 1.15;
}
.top-manager-section .badge {
  min-height: 22px;
  padding: 3px 7px;
  font-size: 11px;
  line-height: 1;
}
.top-manager-section .row-number {
  width: 42px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}
.top-manager-section .money-input,
.top-manager-section .percent-input {
  width: 76px;
  min-height: 30px;
  padding: 5px 7px;
  font-size: 12px;
}
.top-manager-section .row-actions {
  gap: 4px;
  flex-wrap: nowrap;
}
.top-manager-section .button.compact {
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1;
}
.marketplace-chip {
  display: inline-flex;
  min-width: 66px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 8px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}
.marketplace-chip.ozon {
  background: #005bff;
}
.marketplace-chip.wb {
  background: #a000b5;
}
.marketplace-chip:not(.ozon):not(.wb) {
  background: #475569;
}
.unmatched-top-wrap {
  border-top: 1px solid var(--line);
}
.unmatched-top-wrap table {
  min-width: 980px;
}
.alias-map-wrap {
  border-top: 1px solid var(--line);
}
.alias-map-wrap table {
  min-width: 980px;
}
.alias-input {
  min-width: 150px;
  max-width: 180px;
}
.alias-candidates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.alias-candidate {
  display: inline-grid;
  gap: 2px;
  width: auto;
  min-height: 28px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--accent-dark);
  padding: 4px 9px;
  font-size: 12px;
}
.alias-candidate small {
  color: #64748b;
  font-size: 10px;
}
.alias-empty {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.bulk-alias-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.bulk-alias-form label {
  margin: 0;
  min-width: min(520px, 100%);
  font-size: 13px;
}
.bulk-alias-form textarea {
  min-height: 92px;
  padding: 9px 10px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.bulk-alias-form span {
  color: var(--muted);
  font-size: 13px;
  padding-bottom: 10px;
}
.import-log-wrap {
  border-top: 1px solid var(--line);
}
.inline-table-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  background: #fafafa;
  color: var(--muted);
  font-weight: 700;
}
.quality-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  display: grid;
  gap: 6px;
}
.quality-item.ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.quality-item.warn {
  border-color: #fde68a;
  background: #fffbeb;
}
.quality-item span,
.quality-item small {
  color: var(--muted);
}
.quality-item strong {
  font-size: 24px;
  line-height: 1.15;
}
.quality-item strong.status-value {
  font-size: 18px;
}
.readiness-panel {
  border-top: 1px solid var(--line);
  background: #ffffff;
}
.readiness-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
  padding: 16px;
}
.readiness-step {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}
.readiness-step.ok {
  border-color: #bbf7d0;
}
.readiness-step.warn {
  border-color: #fde68a;
}
.readiness-step div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.readiness-step span,
.readiness-step small {
  color: var(--muted);
}
.readiness-step strong {
  font-size: 18px;
}
.progress-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #eef2f7;
}
.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}
.compact-table-wrap table {
  min-width: 760px;
}
.stock-limit-form {
  display: flex;
  gap: 10px;
  align-items: end;
  margin: 0;
}
.stock-limit-form label,
.product-filter-form label {
  margin: 0;
  min-width: 120px;
  font-size: 13px;
}
.stock-limit-form input,
.product-filter-form input,
.product-filter-form select,
.product-import-form input {
  padding: 9px 10px;
}
.product-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  justify-content: flex-end;
}
.product-filter-form {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  margin: 0;
}
.product-filter-form label:first-of-type {
  min-width: 260px;
}
.product-filter-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  font-size: 16px;
}
.product-import-form {
  display: flex;
  gap: 10px;
  align-items: end;
  margin: 0;
}
.product-import-form label {
  margin: 0;
  min-width: 180px;
  font-size: 13px;
}
.product-import-form input[type="file"] {
  max-width: 220px;
  font-size: 14px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
th, td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  font-size: 13px;
}
.sales-store-wrap table {
  min-width: 760px;
}
.sales-store-wrap th,
.sales-store-wrap td {
  padding: 8px 12px;
  font-size: 13px;
}
.sales-store-wrap tfoot th {
  padding: 10px 12px;
  font-size: 13px;
}
th { color: var(--muted); font-size: 13px; font-weight: 600; background: #fafafa; }
tfoot th {
  border-top: 2px solid var(--line);
  background: #f3f4f6;
  color: var(--text);
  font-weight: 800;
  padding: 10px 12px;
  font-size: 13px;
}
.total-row th {
  white-space: nowrap;
}
.empty { color: var(--muted); text-align: center; padding: 28px; }
.chart-range-actions {
  align-items: center;
}
.chart-range-actions .filter-link {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
}
.daily-turnover-summary {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(220px, 0.8fr);
  gap: 10px;
  padding: 10px 16px 0;
}
.turnover-target-card,
.turnover-average-card {
  display: grid;
  gap: 6px;
  align-content: center;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.06);
  padding: 10px 12px;
}
.turnover-target-card {
  grid-template-columns: minmax(160px, 1fr) auto;
}
.turnover-target-card span,
.turnover-average-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.turnover-target-card strong,
.turnover-average-card strong {
  color: var(--text);
  font-size: 15px;
}
.turnover-target-card b {
  align-self: center;
  color: var(--accent);
  font-size: 18px;
}
.turnover-target-track {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
}
.turnover-target-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #22c55e);
}
.chart {
  position: relative;
  min-height: 282px;
  padding: 20px 20px 22px 86px;
  overflow-x: auto;
}
.chart-grid {
  position: absolute;
  top: 20px;
  right: 20px;
  bottom: 82px;
  left: 20px;
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  pointer-events: none;
}
.chart-grid-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 1px;
}
.chart-grid-line span {
  width: 70px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.chart-grid-line i {
  flex: 1;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}
.chart-bars {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  align-items: end;
  min-width: max-content;
}
.chart-day {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 96px;
  color: var(--muted);
  font-size: 13px;
}
.chart-day strong {
  color: var(--text);
  font-size: 14px;
}
.bar-wrap {
  display: flex;
  align-items: end;
  justify-content: center;
  width: 52px;
  height: 170px;
  border-bottom: 1px solid var(--line);
}
.bar {
  width: 34px;
  border-radius: 6px 6px 0 0;
  background: #2563eb;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  background: #f3f4f6;
  color: #4b5563;
}
.badge.ok { background: #dcfce7; color: #166534; }
.badge.error { background: #fee2e2; color: #991b1b; }
.badge.warn, .badge.skipped { background: #fef3c7; color: #92400e; }
.badge.never, .badge.muted { background: #f3f4f6; color: #6b7280; }
.error-cell {
  max-width: 320px;
  white-space: normal;
  color: #991b1b;
}
.name-cell {
  max-width: 360px;
  white-space: normal;
}
.money-input,
.percent-input {
  width: 112px;
  min-width: 112px;
  padding: 8px 10px;
}
.percent-input {
  width: 88px;
  min-width: 88px;
}
.inline-economics-form {
  margin: 0;
}
.inline-save-group {
  display: flex;
  gap: 8px;
  align-items: center;
}
.inline-economics-form .button {
  min-height: 36px;
  padding: 8px 12px;
}
.table-action-form {
  margin: 0;
}
.table-action-form .button {
  width: auto;
  min-height: 34px;
  padding: 7px 10px;
}
.muted-cell {
  color: var(--muted);
}
.communication-center {
  scroll-margin-top: 16px;
}
.communication-head p {
  margin: 4px 0 0;
  color: var(--muted);
}
.communication-actions form {
  margin: 0;
}
.communication-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.communication-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.06);
  font-size: 13px;
  font-weight: 800;
}
.communication-tabs strong {
  color: var(--text);
}
.communication-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px auto;
  gap: 10px;
  align-items: end;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.communication-toolbar label {
  margin: 0;
}
.communication-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px;
}
.communication-metrics article,
.communication-subpanel,
.communication-source-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.06);
  padding: 10px 12px;
}
.communication-metrics span,
.communication-subpanel p,
.communication-source-grid small {
  color: var(--muted);
}
.communication-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}
.communication-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.5fr);
  gap: 12px;
  padding: 0 14px 14px;
}
.communication-list {
  min-height: 420px;
  max-height: 620px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.04);
}
.communication-list-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.communication-list-head span {
  color: var(--muted);
  font-size: 12px;
}
.communication-question-item {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
}
.communication-question-item:hover,
.communication-question-item.active {
  background: rgba(56, 189, 248, 0.1);
}
.communication-question-item.active {
  box-shadow: inset 3px 0 0 var(--accent);
}
.communication-question-item div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.communication-question-item p,
.communication-question-item small {
  margin: 0;
}
.communication-question-item p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.communication-question-item small {
  color: var(--muted);
}
.communication-question-item b {
  justify-self: start;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
}
.communication-question-flags {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.knowledge-badge {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56, 189, 248, 0.36);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  font-style: normal;
  font-size: 13px;
  line-height: 1;
}
.communication-question-item b.new { background: #3b1d1d; color: #fca5a5; }
.communication-question-item b.in_work { background: #30260f; color: #fde68a; }
.communication-question-item b.waiting_answer { background: #18243d; color: #bfdbfe; }
.communication-question-item b.closed { background: #10251a; color: #86efac; }
.communication-card {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.04);
  padding: 14px;
}
.communication-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.communication-card-head span,
.communication-message span,
.communication-similar span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.communication-card-head h3 {
  margin: 4px 0;
  font-size: 22px;
}
.communication-card-head p,
.communication-message p,
.communication-similar p {
  margin: 0;
  color: var(--muted);
}
.communication-message,
.communication-similar {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--card);
}
.communication-message p {
  color: var(--text);
  line-height: 1.45;
}
.communication-answer-form {
  margin: 0;
}
.communication-message textarea {
  min-height: 96px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
  line-height: 1.45;
  resize: vertical;
}
.communication-message textarea[readonly] {
  cursor: default;
}
.communication-message textarea:not([readonly]) {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
  padding: 8px;
}
.communication-message.ai {
  border-color: rgba(56, 189, 248, 0.32);
}
.communication-message.sent-answer {
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(34, 197, 94, 0.08);
}
.communication-message.sent-answer span {
  color: #86efac;
}
.communication-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.communication-inline-action {
  margin: 0;
}
.communication-inline-action .button {
  width: auto;
}
.communication-bottom-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(420px, 1.2fr);
  gap: 12px;
  padding: 0 14px 14px;
}
.communication-subpanel h3 {
  margin: 0 0 8px;
}
.communication-subpanel p {
  margin: 0;
  line-height: 1.45;
}
.communication-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.communication-source-grid article {
  display: grid;
  gap: 5px;
}
.communication-source-grid span {
  justify-self: start;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 900;
}
.communication-source-grid span.ok { background: #10251a; color: #86efac; }
.communication-source-grid span.waiting { background: #30260f; color: #fde68a; }
.communication-source-grid span.error { background: #3b1d1d; color: #fca5a5; }
.communication-source-grid span.skipped,
.communication-source-grid span.never { background: #1e2532; color: #cbd5e1; }
.communication-empty {
  margin: 12px;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.login-card {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}
.login-card h1 { margin: 0 0 20px; }
.login-card h1 span { font-weight: 300; }
.login-card p { margin: 0 0 20px; color: var(--muted); }
.login-mode-panel[hidden]{display:none!important}
.login-mode-panel select,.login-mode-panel input{box-sizing:border-box;min-height:46px;background:var(--card);color:var(--text);font-weight:400}
.login-account-select{position:relative;display:block}
.login-account-select::after{content:"";position:absolute;right:26px;top:50%;width:8px;height:8px;border-right:1.8px solid var(--text);border-bottom:1.8px solid var(--text);transform:translateY(-70%) rotate(45deg);pointer-events:none}
.login-mode-panel .login-account-select select{appearance:none;padding:10px 55px 10px 12px;border:1px solid var(--line);border-radius:6px;font-size:16px}
.login-mode-toggle,.login-mode-toggle:hover{display:grid;place-items:center;width:32px;height:32px;margin:-4px 0 14px;padding:4px;border:0;border-radius:6px;background:none;box-shadow:none;color:var(--accent)}
.login-mode-toggle svg{width:20px;height:20px}
.login-mode-toggle svg[hidden]{display:none}
label { display: grid; gap: 8px; margin-bottom: 14px; color: var(--muted); }
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  font-size: 16px;
}
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #ffffff;
  font-size: 16px;
}
button {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  padding: 12px 14px;
  cursor: pointer;
}
button:hover { background: var(--accent-dark); }
.alert {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

body.admin-dark .topbar,
body.admin-dark .table-section,
body.admin-dark .card,
body.admin-dark .quality-item,
body.admin-dark .purchase-summary-item,
body.admin-dark .action-item,
body.admin-dark .filter-link,
body.admin-dark .task-filter-tabs {
  background: var(--card);
  border-color: var(--line);
  color: var(--text);
}
body.admin-dark .topbar {
  background: #12161e;
}
body.admin-dark .admin-command-panel {
  border-color: #334155;
  background: #151922;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

body.admin-dark .side-nav {
  border-color: #252b36;
  background: #11151d;
}
body.admin-dark .side-nav-bottom {
  border-color: #252b36;
}
body.admin-dark .side-menu-toggle {
  color: #e7eaf0;
}
body.admin-dark .side-menu-toggle:hover {
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(56, 189, 248, 0.1);
}
body.admin-dark .side-nav nav a {
  color: #e7eaf0;
}
body.admin-dark .side-nav nav a:hover,
body.admin-dark .side-nav nav a.active {
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(56, 189, 248, 0.1);
}
body.admin-dark .admin-menu-group {
  border-color: #2b313d;
  background: #10141c;
}
body.admin-dark .admin-menu-group-head > span {
  border-color: #334155;
  color: #cbd5e1;
}
body.admin-dark .admin-menu-links a {
  border-color: #252b36;
  background: #171b24;
}
body.admin-dark .admin-menu-links a:hover {
  border-color: #38bdf8;
  background: #1b2330;
}
body.admin-dark .admin-menu-links strong {
  color: #fbbf24;
}
body.admin-dark .table-section {
  border-color: rgba(56, 189, 248, 0.38);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.08), 0 12px 24px rgba(0, 0, 0, 0.16);
}
body.admin-dark .sales-store-section {
  border-color: rgba(56, 189, 248, 0.38);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.08), 0 12px 24px rgba(0, 0, 0, 0.16);
}
body.admin-dark .page {
  background: var(--bg);
}
body.admin-dark .product-tools,
body.admin-dark .product-filter-form,
body.admin-dark .product-import-form,
body.admin-dark .stock-limit-form {
  color: var(--text);
}
body.admin-dark .notice {
  border-color: #14532d;
  background: #0f2a1b;
  color: #86efac;
}
body.admin-dark .quality-item.warn,
body.admin-dark .card.warning {
  background: #211a10;
  border-color: #5b3d14;
}
body.admin-dark .quality-item.ok{
  border-color: #14532d;
  background: #101f18;
  color: #86efac;
}

body.admin-dark .card.primary,
body.admin-dark .filter-link.active {
  border-color: #075985;
  background: #102333;
  color: #bae6fd;
}
body.admin-dark input,
body.admin-dark select,
body.admin-dark textarea {
  border-color: #333b49;
  background: #0e1219;
  color: var(--text);
}
body.admin-dark input::placeholder,
body.admin-dark textarea::placeholder {
  color: #687386;
}
body.admin-dark button,
body.admin-dark .button {
  background: #2563eb;
  color: #ffffff;
}
body.admin-dark button:hover,
body.admin-dark .button:hover {
  background: #1d4ed8;
}
body.admin-dark .button.secondary {
  border: 1px solid #394252;
  background: #202633;
  color: #e7eaf0;
}
body.admin-dark .button.secondary:hover {
  background: #2b3342;
}
body.admin-dark .quality-grid,
body.admin-dark .task-filter-tabs,
body.admin-dark .quick-fill-panel,
body.admin-dark .table-wrap,
body.admin-dark .inline-table-head {
  background: #11151d;
}
body.admin-dark th {
  background: #141922;
  color: #aab3c2;
}
body.admin-dark tfoot th {
  border-top-color: #3a4352;
  background: #1a202b;
  color: #e7eaf0;
}
body.admin-dark th,
body.admin-dark td {
  border-bottom-color: #2b313d;
}
body.admin-dark tr:hover td {
  background: #151b25;
}
body.admin-dark .badge.ok {
  background: #12351f;
  color: #86efac;
}
body.admin-dark .badge.warn,
body.admin-dark .badge.skipped {
  background: #3a2a0c;
  color: #fcd34d;
}
body.admin-dark .badge.error {
  background: #3b1717;
  color: #fca5a5;
}
body.admin-dark .badge.never,
body.admin-dark .badge.muted {
  background: #252b36;
  color: #aab3c2;
}
body.admin-dark .error-cell {
  color: #fca5a5;
}

@media (max-width: 1100px) {
  .app-layout,
  body.side-menu-collapsed .app-layout { grid-template-columns: 1fr; }
  .side-nav {
    position: sticky;
    top: 0;
    z-index: 12;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px;
    align-items: center;
    gap: 8px;
    height: auto;
    min-height: 0;
    padding: 8px clamp(16px, 4vw, 48px);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .side-nav nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .side-nav nav a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 6px 9px;
  }
  .side-nav-bottom {
    margin-top: 0;
    display: flex;
    gap: 8px;
    padding-top: 0;
    border-top: 0;
  }
  .side-menu-toggle,
  .side-settings summary {
    justify-content: center;
    width: 40px;
    height: 36px;
    gap: 0;
    padding: 0;
  }
  .side-menu-toggle strong,
  .side-settings summary strong {
    display: none;
  }
  body.side-menu-collapsed .side-nav {
    padding: 8px clamp(16px, 4vw, 48px);
  }
  body.side-menu-collapsed .side-nav nav {
    display: flex;
  }
  body.side-menu-collapsed .side-nav-bottom {
    border-top: 0;
    padding-top: 0;
  }
  .side-settings .settings-menu {
    top: calc(100% + 8px);
    right: 0;
    bottom: auto;
    left: auto;
  }
  body.side-menu-collapsed .side-settings .settings-menu {
    top: calc(100% + 8px);
    right: 0;
    bottom: auto;
    left: auto;
  }
  .cards { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
  .action-list { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
  .store-action-list { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
  .purchase-summary { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
  .quality-grid { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
  .readiness-steps { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .daily-turnover-summary { grid-template-columns: 1fr; }
  .communication-layout,
  .communication-bottom-grid {
    grid-template-columns: 1fr;
  }
  .communication-source-grid,
  .communication-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .topbar, .section-head, .userbar { flex-direction: column; align-items: flex-start; }
  .ai-assistant-beacon strong { display: none; }
  .ai-assistant-beacon { min-height: 34px; padding: 5px; }
  .side-nav { padding: 8px 16px; }
  .side-nav nav a strong { font-size: 13px; }
  .admin-command-head { flex-direction: column; }

  .section-actions { width: 100%; justify-content: flex-start; }
  .sales-date-form, .button { width: 100%; }
  .sales-date-form { flex-direction: column; align-items: stretch; }
  .stock-limit-form { width: 100%; flex-direction: column; align-items: stretch; }
  .product-tools { width: 100%; flex-direction: column; align-items: stretch; }
  .product-filter-form { width: 100%; flex-direction: column; align-items: stretch; }
  .product-import-form { width: 100%; flex-direction: column; align-items: stretch; }
  .stock-limit-form label { width: 100%; }
  .product-filter-form label, .product-filter-form label:first-of-type { width: 100%; min-width: 100%; }
  .product-import-form label,
  .product-import-form input[type="file"] { width: 100%; max-width: none; }
  .sales-date-form label { min-width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .action-list { grid-template-columns: 1fr; }
  .store-action-list { grid-template-columns: 1fr; }
  .purchase-summary { grid-template-columns: 1fr; }
  .quality-grid { grid-template-columns: 1fr; }
  .readiness-steps { grid-template-columns: 1fr; }
  .communication-toolbar,
  .communication-metrics,
  .communication-source-grid {
    grid-template-columns: 1fr;
  }
  .communication-buttons {
    flex-direction: column;
  }
  .communication-buttons .button {
    width: 100%;
  }
  .card { min-height: 96px; }
}

.top-products-scroll-wrap .top-products-table thead th,
body.admin-dark .top-products-scroll-wrap .top-products-table thead th {
  padding: 9px 12px !important;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98)) !important;
  color: #d8dee9 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  box-shadow: inset 0 -1px 0 rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  white-space: nowrap !important;
}
.top-products-scroll-wrap .top-products-table .top-products-sort-button,
body.admin-dark .top-products-scroll-wrap .top-products-table .top-products-sort-button,
body.admin-dark .top-products-scroll-wrap .top-products-table .top-products-sort-button:hover {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #d8dee9 !important;
  font: inherit !important;
  font-weight: 900 !important;
}
.top-products-scroll-wrap .top-products-table .top-products-sort-button span,
body.admin-dark .top-products-scroll-wrap .top-products-table .top-products-sort-button span {
  display: inline-grid !important;
  width: 17px !important;
  height: 17px !important;
  place-items: center !important;
  border: 1px solid rgba(56, 189, 248, 0.22) !important;
  border-radius: 999px !important;
  background: rgba(56, 189, 248, 0.08) !important;
  color: #9ca3af !important;
  font-size: 12px !important;
  line-height: 1 !important;
}
.top-products-scroll-wrap .top-products-table .top-products-sort-button[data-sort-direction],
body.admin-dark .top-products-scroll-wrap .top-products-table .top-products-sort-button[data-sort-direction] {
  color: #ffffff !important;
}
.top-products-scroll-wrap .top-products-table .top-products-sort-button[data-sort-direction] span,
body.admin-dark .top-products-scroll-wrap .top-products-table .top-products-sort-button[data-sort-direction] span {
  border-color: rgba(56, 189, 248, 0.55) !important;
  background: rgba(56, 189, 248, 0.16) !important;
  color: #38bdf8 !important;
}
.top-products-scroll-wrap .top-products-table .top-products-sort-button-left,
body.admin-dark .top-products-scroll-wrap .top-products-table .top-products-sort-button-left {
  justify-content: flex-start !important;
}
.top-products-scroll-wrap .top-products-table .top-products-platform-head .top-products-sort-button-left,
body.admin-dark .top-products-scroll-wrap .top-products-table .top-products-platform-head .top-products-sort-button-left {
  width: auto !important;
}

.top-products-rank-head,
.top-products-rank {
  width: 44px;
  text-align: center;
  white-space: nowrap;
}
.top-products-rank {
  color: #38bdf8;
  font-size: 14px;
  font-weight: 900;
}

.top-products-scroll-wrap .top-products-table .top-products-sum-button,
body.admin-dark .top-products-scroll-wrap .top-products-table .top-products-sum-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  width: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #d8dee9 !important;
  font: inherit !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}
.top-products-scroll-wrap .top-products-table .top-products-sum-button strong,
body.admin-dark .top-products-scroll-wrap .top-products-table .top-products-sum-button strong {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #38bdf8 !important;
  font-size: 14px !important;
  font-weight: 300 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
}
.top-products-scroll-wrap .top-products-table .top-products-sum-button:hover strong,
.top-products-scroll-wrap .top-products-table .top-products-sum-button:focus-visible strong,
body.admin-dark .top-products-scroll-wrap .top-products-table .top-products-sum-button:hover strong,
body.admin-dark .top-products-scroll-wrap .top-products-table .top-products-sum-button:focus-visible strong {
  color: #7dd3fc !important;
}
.top-products-scroll-wrap .top-products-table .top-products-sum-button:focus-visible,
body.admin-dark .top-products-scroll-wrap .top-products-table .top-products-sum-button:focus-visible {
  outline: 1px solid rgba(56, 189, 248, 0.35) !important;
  outline-offset: 4px !important;
  border-radius: 4px !important;
}
.top-products-summary-row {
  background: rgba(56, 189, 248, 0.1);
}
.top-products-summary-row td {
  border-top: 1px solid rgba(56, 189, 248, 0.38);
  border-bottom: 1px solid rgba(56, 189, 248, 0.26);
}
.top-products-summary-mark,
.top-products-summary-offer {
  color: #67e8f9;
  font-weight: 950;
}
.marketplace-chip.summary {
  background: rgba(56, 189, 248, 0.16);
  color: #67e8f9;
  border-color: rgba(56, 189, 248, 0.38);
}

.password-field {
  position: relative;
  display: block;
}
.password-field input {
  padding-right: 44px;
}
.password-toggle,
.password-toggle:hover,
.password-toggle.active {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  transform: translateY(-50%);
}
.password-toggle:hover,
.password-toggle.active {
  color: var(--accent);
}

.purchase-filter-form .purchase-date-field {
  display: inline-flex;
  min-width: 132px;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.purchase-filter-form .purchase-date-field input {
  width: 132px;
}

.purchase-analytics-card {
  min-width: min(520px, 100%);
  max-width: 640px;
  padding: 10px 12px;
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(168, 85, 247, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.purchase-analytics-title {
  display: grid;
  gap: 2px;
}
.purchase-analytics-title span {
  color: #e5e7eb;
  font-size: 15px;
  font-weight: 900;
}
.purchase-analytics-title strong {
  color: #38bdf8;
  font-size: 13px;
  font-weight: 900;
}
.purchase-analytics-title small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.purchase-analytics-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(74px, 1fr));
  gap: 6px;
  margin-top: 8px;
}
.purchase-analytics-grid span {
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.46);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.purchase-analytics-grid strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.purchase-analytics-card.urgent {
  border-color: rgba(248, 113, 113, 0.58);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(15, 23, 42, 0.7));
}
.purchase-analytics-card.buy {
  border-color: rgba(251, 191, 36, 0.58);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(15, 23, 42, 0.7));
}
.purchase-analytics-card.watch {
  border-color: rgba(56, 189, 248, 0.48);
}
.purchase-analytics-card.enough {
  border-color: rgba(74, 222, 128, 0.5);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(15, 23, 42, 0.7));
}
.purchase-analytics-card.silent {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.38);
}
.purchase-table tr.purchase-selected-row td {
  background: rgba(56, 189, 248, 0.1);
  box-shadow: inset 0 1px 0 rgba(56, 189, 248, 0.18), inset 0 -1px 0 rgba(56, 189, 248, 0.18);
}
@media (max-width: 1500px) {
  .purchase-analytics-grid {
    grid-template-columns: repeat(3, minmax(86px, 1fr));
  }
}

.purchase-table .purchase-summary-row {
  cursor: pointer;
}
.purchase-table .purchase-summary-row:hover td {
  background: rgba(56, 189, 248, 0.14);
}
.purchase-table .purchase-summary-row:focus-visible td {
  outline: 1px solid rgba(56, 189, 248, 0.55);
  outline-offset: -2px;
}

.site-fecor-admin {
  display: grid;
  gap: 14px;
}
.site-fecor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.site-fecor-tabs a {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  text-decoration: none;
}
.site-fecor-tabs strong {
  color: #d6a21f;
}
.site-fecor-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 0.8fr) minmax(420px, 1.4fr);
}
#site-fecor-catalog,
#site-fecor-catalog .site-fecor-grid,
#site-fecor-catalog .site-fecor-card,
#site-fecor-catalog .site-fecor-form,
#site-fecor-catalog .site-fecor-core-fields,
#site-fecor-catalog .site-fecor-price-fields,
#site-fecor-catalog .site-fecor-price-rules,
#site-fecor-catalog .site-fecor-marketplace-fields,
#site-fecor-catalog + .site-fecor-product-list,
#site-fecor-catalog + .site-fecor-product-list .site-fecor-products-wrap {
  min-width: 0;
  max-width: 100%;
}
.site-fecor-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.site-fecor-card h3 {
  font-size: 16px;
  margin: 0 0 12px;
}
.site-fecor-form {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
}
.site-fecor-product-form .site-fecor-form {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}
.site-fecor-core-fields,
.site-fecor-price-fields,
.site-fecor-price-rules,
.site-fecor-marketplace-fields {
  display: grid;
  gap: 8px;
}
.site-fecor-core-fields {
  grid-template-columns: minmax(110px, 0.65fr) minmax(190px, 1.2fr) minmax(145px, 0.85fr);
}
.site-fecor-price-fields {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}
.site-fecor-price-rules {
  grid-template-columns: repeat(3, minmax(125px, 1fr)) minmax(190px, 1.25fr) 36px;
  align-items: center;
}
.site-fecor-marketplace-fields {
  grid-template-columns: repeat(3, minmax(145px, 1fr));
}
.site-fecor-core-fields input,
.site-fecor-core-fields select,
.site-fecor-price-fields input,
.site-fecor-price-rules input,
.site-fecor-price-rules select,
.site-fecor-marketplace-fields input {
  min-height: 32px;
  padding-block: 5px;
}
.site-fecor-price-rules button {
  width: 36px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #72db98;
  background: rgba(79, 207, 131, .08);
  border: 1px solid rgba(79, 207, 131, .45);
  border-radius: 5px;
  cursor: pointer;
}
.site-fecor-price-rules button:hover { background: rgba(79, 207, 131, .16); }
.site-fecor-price-rules button i { width: 17px; height: 17px; }
.site-fecor-product-form .site-fecor-form .button.compact {
  grid-column: -2 / -1;
  justify-self: end;
}
.site-fecor-form label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 5px;
}
.site-fecor-form input,
.site-fecor-form select,
.site-fecor-form textarea {
  background: var(--input-bg, #fff);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  min-height: 36px;
  padding: 8px 10px;
}
.site-fecor-form textarea {
  min-height: 74px;
  resize: vertical;
}
.site-fecor-form .wide {
  grid-column: 1 / -1;
}
.site-fecor-form .checkline {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 8px;
  min-height: 36px;
}
.site-fecor-form .checkline input {
  min-height: auto;
}
.site-fecor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.site-fecor-list button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  cursor: pointer;
}
.site-fecor-list button:hover,
.site-fecor-list button.active { color: #287c55; border-color: rgba(40, 124, 85, 0.5); background: rgba(40, 124, 85, 0.07); }
.site-fecor-list button svg { width: 14px; height: 14px; stroke-width: 1.7; }
body.admin-dark .site-fecor-list button {
  color: #d6dce5;
  background: rgba(255, 255, 255, 0.025);
  border-color: #343c48;
  box-shadow: none;
}
body.admin-dark .site-fecor-list button:hover {
  color: #e5e9ef;
  background: rgba(255, 255, 255, 0.05);
  border-color: #4a5564;
}
body.admin-dark .site-fecor-list button.active {
  color: #8edcae;
  background: rgba(48, 135, 86, 0.1);
  border-color: rgba(80, 168, 118, 0.42);
}
.site-fecor-products-wrap table {
  min-width: 900px;
}
#site-fecor-catalog + .site-fecor-product-list .site-fecor-products-wrap {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.site-fecor-product-list { margin-top: 14px; padding: 0; overflow: hidden; }
.site-fecor-product-list-head { min-height: 58px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.site-fecor-product-list-head h3 { margin: 0; }
.site-order-new-dot { width: 10px; height: 10px; margin-left: 8px; display: inline-block; vertical-align: 1px; border-radius: 50%; background: #39f57a; box-shadow: 0 0 0 3px rgba(57, 245, 122, 0.14), 0 0 12px rgba(57, 245, 122, 0.95); animation: site-order-dot-pulse 1.8s ease-in-out infinite; }
@keyframes site-order-dot-pulse { 50% { opacity: 0.72; box-shadow: 0 0 0 5px rgba(57, 245, 122, 0.08), 0 0 17px rgba(57, 245, 122, 1); } }
.site-fecor-product-list-head label { width: min(280px, 42vw); }
.site-fecor-product-list-head input { width: 100%; min-height: 36px; padding: 8px 11px; color: var(--text); background: var(--input-bg, #fff); border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.site-order-search { width: min(360px, calc(100% - 28px)); margin: 12px 14px; }
.site-order-search input { width: 100%; min-height: 38px; box-sizing: border-box; padding: 8px 12px; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 5px; outline: 0; font: inherit; transition: border-color .18s ease, box-shadow .18s ease; }
.site-order-search input:focus { border-color: color-mix(in srgb, var(--accent) 76%, var(--line)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 11%, transparent); }
.site-order-search input::placeholder { color: var(--muted); }
.site-order-search input::-webkit-search-cancel-button { display: none; }
@media (max-width: 720px) { .site-order-search { width: calc(100% - 28px); } }
.site-order-primary{min-width:132px}
.site-order-primary .site-order-date{display:block;margin-top:5px;color:var(--text);font-weight:700;white-space:nowrap}
.site-order-primary .site-order-kind{display:block;margin-top:2px;color:var(--muted)}
.site-order-status-cell{min-width:88px;vertical-align:middle}
.site-order-status-cell .site-order-state{margin:0}
.site-order-status-form{margin:0}
.site-order-state-button{appearance:none;font-family:inherit;cursor:pointer}
.site-order-state-button:hover{border-color:rgba(242,201,76,.8);background:rgba(214,162,31,.18);box-shadow:0 0 0 2px rgba(214,162,31,.08)}
.site-order-state-button:focus-visible{outline:2px solid rgba(242,201,76,.7);outline-offset:2px}.site-order-primary>strong,.site-order-primary>small{display:block}.site-order-state{width:max-content;margin:5px 0 3px;padding:3px 7px;display:inline-flex;align-items:center;border:1px solid;border-radius:999px;font-size:9px;font-weight:800;line-height:1}.site-order-state.new{color:#f2c94c;border-color:rgba(214,162,31,.42);background:rgba(214,162,31,.09)}.site-order-state.processed{color:#6ee7b7;border-color:rgba(52,211,153,.4);background:rgba(16,185,129,.08)}.site-order-row-new td{background:rgba(214,162,31,.035)}.site-order-row-actions{width:48px!important;min-width:48px}.site-order-row-actions form{display:inline-block!important}.site-order-row-actions form+form{margin-left:5px!important}.site-order-process{min-height:30px;padding:5px 8px;display:inline-flex;align-items:center;gap:5px;border:1px solid rgba(52,211,153,.42);border-radius:6px;background:rgba(16,185,129,.08);color:#6ee7b7;font:inherit;font-size:10px;font-weight:800;white-space:nowrap;cursor:pointer}.site-order-process:hover{background:rgba(16,185,129,.16);border-color:rgba(52,211,153,.7)}.site-order-process span{font-size:13px}
.site-fecor-products-wrap tbody tr[data-site-product-row] { cursor: pointer; }
.site-fecor-products-wrap tbody tr[data-site-product-row]:hover td,
.site-fecor-products-wrap tbody tr[data-site-product-row].active td { background: rgba(40, 124, 85, 0.09); }
.site-fecor-products-wrap tr[hidden] { display: none; }
.site-fecor-order-cell { width: 128px; text-align: center; white-space: nowrap; }
.site-fecor-order-actions { display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.site-fecor-order-actions form { margin: 0; }
.site-fecor-order-actions button {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}
.site-fecor-order-actions button:hover,
.site-fecor-order-actions button:focus-visible {
  color: #58d894;
  background: rgba(70, 198, 132, 0.1);
  border-color: rgba(70, 198, 132, 0.34);
}
.site-fecor-order-actions button svg { width: 17px; height: 17px; stroke-width: 1.8; }
.site-fecor-delete-cell { width: 46px; padding-left: 4px; padding-right: 4px; text-align: center; }
.site-fecor-delete-cell form { margin: 0; }
.site-fecor-delete-cell .site-fecor-delete { width: 30px; height: 30px; margin: 0 auto; }
.site-fecor-existing-media { min-height: 58px; padding: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; background: rgba(148, 163, 184, 0.06); border: 1px solid var(--line); border-radius: 8px; }
.site-fecor-existing-media[hidden] { display: none; }
.site-fecor-existing-media > a { flex: 0 0 auto; }
.site-fecor-existing-media img { width: 52px; height: 52px; display: block; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.site-fecor-media-photo { position: relative; flex: 0 0 auto; padding: 2px; border: 1px solid transparent; border-radius: 7px; cursor: grab; }
.site-fecor-media-photo.selected { border-color: rgba(40, 124, 85, 0.75); box-shadow: 0 0 0 2px rgba(40, 124, 85, 0.14); }
.site-fecor-media-photo.dragging { opacity: 0.48; }
.site-fecor-media-photo-new { border-color: rgba(52, 211, 153, 0.72); box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.12); }
.site-fecor-media-index { position: absolute; left: 5px; bottom: 5px; min-width: 20px; height: 20px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(7, 17, 29, 0.88); color: #fff; font-size: 11px; font-weight: 800; pointer-events: none; }
.site-fecor-media-new-badge { position: absolute; top: 5px; left: 5px; padding: 2px 5px; border-radius: 4px; background: rgba(16, 185, 129, 0.92); color: #fff; font-size: 8px; font-weight: 900; letter-spacing: .04em; pointer-events: none; }
.site-fecor-media-remove { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; min-height: 20px; padding: 0; display: flex; align-items: center; justify-content: center; opacity: 0; border: 0 !important; border-radius: 0; background: transparent !important; color: #ef4444 !important; font-size: 22px; font-weight: 400; line-height: 1; cursor: pointer; transition: opacity 120ms ease, color 120ms ease; }
.site-fecor-media-photo:hover .site-fecor-media-remove,
.site-fecor-media-remove:focus-visible { opacity: 1; }
.site-fecor-media-remove:hover { color: #ff6b6b !important; background: transparent !important; }
.site-fecor-media-file { min-height: 34px; padding: 0 11px; display: inline-flex; align-items: center; color: #287c55; border: 1px solid rgba(40, 124, 85, 0.35); border-radius: 7px; font-size: 12px; font-weight: 700; }
.site-fecor-settings {
  scroll-margin-top: 88px;
}
.site-fecor-grid-compact {
  grid-template-columns: minmax(320px, 0.8fr) minmax(420px, 1.2fr);
}
.site-fecor-form-single {
  grid-template-columns: 1fr 1fr;
}
.site-fecor-contacts-form {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}
.site-fecor-list-card {
  min-height: 180px;
}
.site-fecor-records {
  display: grid;
  gap: 8px;
}
.site-fecor-records article {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 48px;
  padding: 8px 10px;
}
.site-fecor-records article div {
  min-width: 0;
}
.site-fecor-records strong,
.site-fecor-records small {
  display: block;
}
.site-fecor-records strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-fecor-records small {
  color: var(--muted);
  margin-top: 3px;
}
.site-fecor-records a {
  color: var(--fecor-soft-green, #7ddf9a);
  font-weight: 700;
  text-decoration: none;
}
.site-fecor-records form { flex: 0 0 auto; margin: 0; }
.site-fecor-delete {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  color: #ef4444 !important;
  cursor: pointer;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  padding: 0;
  width: 32px;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}
.site-fecor-delete:hover { background: transparent !important; color: #ff6b6b !important; }
.site-fecor-delete svg { height: 16px; stroke-width: 1.7; width: 16px; }
body.admin-dark .site-fecor-card,
body.admin-dark .site-fecor-tabs a {
  background: rgba(18, 25, 35, 0.86);
}
body.admin-dark .site-fecor-form input,
body.admin-dark .site-fecor-form select,
body.admin-dark .site-fecor-form textarea {
  background: #0b1118;
}
body.admin-dark .site-fecor-products-wrap thead th {
  background: #172236;
  color: #f8fafc;
}

/* FECOR ERP navigation */
.side-nav-brand {
  position: relative;
  min-height: 34px;
  margin: -18px -12px 4px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.side-menu-toggle.side-menu-toggle-brand {
  position: absolute;
  z-index: 4;
  top: 8px;
  right: -1px;
  flex: 0 0 22px;
  width: 22px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line) !important;
  border-right: 0 !important;
  border-radius: 7px 0 0 7px;
  background: rgba(255, 255, 255, 0.025) !important;
  color: #a8b2c0;
  box-shadow: none !important;
}
.side-menu-toggle.side-menu-toggle-brand:hover {
  border-color: rgba(214, 162, 31, 0.38) !important;
  background: rgba(214, 162, 31, 0.08) !important;
  color: #e2b943;
}
.side-menu-toggle.side-menu-toggle-brand span { width: 100%; height: 100%; font-size: 18px; }
.side-nav nav a,
.side-nav-tree summary,
.side-nav-subtree summary {
  gap: 10px;
}
.side-nav nav a > svg,
.side-nav-tree summary > svg,
.side-nav-subtree summary > svg,
.side-nav-bottom summary svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: #aeb8c8;
  stroke-width: 1.55;
}
.side-nav nav a.active > svg,
.side-nav nav a:hover > svg,
.side-nav-tree.active > summary > svg {
  color: #e2b943;
}
.side-nav-subtree {
  margin: 2px 0;
}
.side-nav-subtree > summary {
  min-height: 32px;
  padding: 6px 9px;
  display: flex;
  align-items: center;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}
.side-nav-subtree > summary::-webkit-details-marker { display: none; }
.side-nav-subtree > summary::after {
  content: "›";
  margin-left: auto;
  color: var(--muted);
  transform: rotate(90deg);
  transition: transform 140ms ease;
}
.side-nav-subtree:not([open]) > summary::after { transform: none; }
.side-nav-subtree > summary strong { font-size: 13px; font-weight: 400; }
.side-nav-subtree > div { padding-left: 16px; }
.side-nav-tree div .side-nav-subtree a { min-height: 30px; }
.side-nav-tree[data-os-tree="marketplaces"] .side-nav-subtree>summary{border-color:transparent;background:transparent;color:var(--text)}
body.admin-dark .side-nav-tree[data-os-tree="marketplaces"] .side-nav-subtree>summary{color:#e7eaf0}
.side-nav-tree[data-os-tree="marketplaces"] .side-nav-subtree>summary:hover,
.side-nav-tree[data-os-tree="marketplaces"] .side-nav-subtree.active>summary{border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}
body.admin-dark .side-nav-tree[data-os-tree="marketplaces"] .side-nav-subtree>summary:hover,
body.admin-dark .side-nav-tree[data-os-tree="marketplaces"] .side-nav-subtree.active>summary{border-color:rgba(214,162,31,.45);background:rgba(214,162,31,.08);color:var(--fecor-gold-bright)}
.side-nav-tree[data-os-tree="marketplaces"] .side-nav-subtree>div{padding-left:15px}
.side-nav-tree[data-os-tree="marketplaces"] .side-nav-subtree>div>a strong{font-size:12px}
body.side-menu-collapsed .side-nav-brand { margin-inline: -8px; padding: 0; justify-content: center; }
body.side-menu-collapsed .side-menu-toggle-brand {
  position: absolute;
  top: 8px;
  right: -1px;
  width: 22px;
  border-right: 1px solid var(--line) !important;
  border-radius: 7px;
}

.side-nav-bottom {
  gap: 4px;
  padding-top: 6px;
}
.side-settings summary {
  height: 34px;
  min-height: 34px;
  gap: 8px;
  padding: 0 9px;
  border-radius: 6px;
}
.side-settings summary span {
  width: 20px;
  height: 20px;
  font-size: 17px;
}
.side-settings summary strong {
  font-size: 14px;
}

.site-b2b-admin > .panel-title-row {
  padding-bottom: 10px;
}
.site-b2b-directories > [data-b2b-portal] {
  margin-top: 0;
}
#b2b-sales-panel:has(#b2b-counterparties:not([hidden])) > .panel-title-row {
  display: none !important;
}
.site-b2b-tabs {
  max-width: 560px;
}
body.admin-dark .side-settings summary {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.025);
  color: #cbd3de;
  box-shadow: none;
}
body.admin-dark .side-settings summary:hover {
  border-color: rgba(214, 162, 31, 0.34);
  background: rgba(214, 162, 31, 0.07);
}
/* B2B sales */
.site-b2b-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  min-height: 720px;
  border: 1px solid rgba(214, 162, 31, 0.22);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(9, 15, 23, 0.35);
}
.site-b2b-layout.site-b2b-layout--full { grid-template-columns: minmax(0, 1fr); }
.site-b2b-workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.site-b2b-import-result {
  margin: 9px 16px 0;
  padding: 7px 9px;
  border: 1px solid rgba(72, 199, 128, 0.32);
  border-radius: 6px;
  color: #8ce2ac;
  background: rgba(72, 199, 128, 0.07);
  font-size: 12px;
}
.site-b2b-table-wrap { flex: 1 1 auto; overflow: auto; }
.site-b2b-table { width: 100%; min-width: 1050px; border-collapse: collapse; }
.site-b2b-table th,
.site-b2b-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 11px; }
.site-b2b-table th { position: sticky; top: 0; z-index: 1; background: #131d2b; color: #cad2de; font-size: 10px; font-weight: 700; }
.site-b2b-table tbody tr { cursor: pointer; }
.site-b2b-table tbody tr:hover td,
.site-b2b-table tbody tr.active td { background: rgba(214, 162, 31, 0.07); }
.site-b2b-table td strong,
.site-b2b-table td small { display: block; }
.site-b2b-table td small { margin-top: 3px; color: var(--muted); line-height: 1.35; }
.site-b2b-table td a { color: #68baf4; text-decoration: none; }
#b2b-counterparties .site-b2b-table{min-width:0;table-layout:fixed}
#b2b-counterparties .site-b2b-table :is(th,td){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
#b2b-counterparties .site-b2b-table td strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#b2b-counterparties .site-b2b-table thead th:nth-child(1),#b2b-counterparties .site-b2b-table tr[data-b2b-row] td:nth-child(1){width:6%}
#b2b-counterparties .site-b2b-table .site-b2b-number-axis{display:block;width:56px;margin-left:-8px;text-align:center}
#b2b-counterparties .site-b2b-table thead th:nth-child(2),#b2b-counterparties .site-b2b-table tr[data-b2b-row] td:nth-child(2){width:40%}
#b2b-counterparties .site-b2b-table thead th:nth-child(3),#b2b-counterparties .site-b2b-table tr[data-b2b-row] td:nth-child(3){width:16%}
#b2b-counterparties .site-b2b-table thead th:nth-child(4),#b2b-counterparties .site-b2b-table tr[data-b2b-row] td:nth-child(4){width:25%}
#b2b-counterparties .site-b2b-table thead th:nth-child(5),#b2b-counterparties .site-b2b-table tr[data-b2b-row] td:nth-child(5){width:13%}
#b2b-counterparties form[data-b2b-counterparty-delete-form][hidden]{display:none}
@media(max-width:700px){
  #b2b-counterparties .site-b2b-table thead th:nth-child(3),#b2b-counterparties .site-b2b-table tr[data-b2b-row] td:nth-child(3),#b2b-counterparties .site-b2b-table thead th:nth-child(4),#b2b-counterparties .site-b2b-table tr[data-b2b-row] td:nth-child(4){display:none}
  #b2b-counterparties .site-b2b-table thead th:nth-child(1),#b2b-counterparties .site-b2b-table tr[data-b2b-row] td:nth-child(1){width:10%}
  #b2b-counterparties .site-b2b-table thead th:nth-child(2),#b2b-counterparties .site-b2b-table tr[data-b2b-row] td:nth-child(2){width:62%}
  #b2b-counterparties .site-b2b-table thead th:nth-child(5),#b2b-counterparties .site-b2b-table tr[data-b2b-row] td:nth-child(5){width:28%}
}
.site-b2b-abc {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #495465;
  border-radius: 4px;
  font-weight: 800;
}
.site-b2b-abc.abc-a { color: #57dc8b; border-color: rgba(60, 203, 117, 0.45); }
.site-b2b-abc.abc-b { color: #edb530; border-color: rgba(227, 173, 44, 0.5); }
.site-b2b-abc.abc-c { color: #b4bdca; }
.site-b2b-status { display: inline-flex; padding: 4px 6px; border: 1px solid #4a5564; border-radius: 4px; color: #c0c9d5; white-space: nowrap; }
.site-b2b-status.status-new { color: #66b8ff; border-color: rgba(61, 150, 231, 0.5); }
.site-b2b-status.status-verified,
.site-b2b-status.status-active { color: #63dc91; border-color: rgba(59, 198, 112, 0.48); }
.site-b2b-status.status-in_work,
.site-b2b-status.status-offer,
.site-b2b-status.status-contacted { color: #e5b43b; border-color: rgba(225, 167, 35, 0.5); }
.site-b2b-footer { min-height: 45px; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.site-b2b-footer strong { color: var(--text); }
.site-b2b-client-card {
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 28, 39, 0.98), rgba(12, 18, 26, 0.98));
}
.site-b2b-client-card form { height: 100%; display: flex; flex-direction: column; }
.site-b2b-client-card header {
  min-height: 70px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.site-b2b-client-card header small { color: #d6a21f; font-size: 10px; font-weight: 700; }
.site-b2b-client-card header h3 { margin: 2px 0 0; color: var(--text); font-size: 17px; }
.site-b2b-client-card header button { width: 28px; padding: 0; background: transparent; color: #e0e5ec; font-size: 24px; font-weight: 300; }
.site-b2b-form-fields { flex: 1 1 auto; padding: 12px 14px; display: grid; align-content: start; gap: 8px; overflow-y: auto; }
.site-b2b-form-fields label { margin: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 8px; color: #aeb7c4; font-size: 11px; }
.site-b2b-form-fields input,
.site-b2b-form-fields select,
.site-b2b-form-fields textarea {
  width: 100%;
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid #3b4655;
  border-radius: 4px;
  background: #0d141d;
  color: #e5e9ef;
  font: inherit;
}
.site-b2b-form-fields textarea { min-height: 68px; resize: vertical; }
.site-b2b-input-icon { position: relative; }
.site-b2b-input-icon input { padding-right: 33px; }
.site-b2b-input-icon svg { position: absolute; right: 9px; top: 9px; width: 16px; height: 16px; color: #9eabb9; stroke-width: 1.5; }
.site-b2b-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.site-b2b-form-row label { grid-template-columns: 1fr; }
.site-b2b-form-fields details { border-top: 1px solid var(--line); padding-top: 8px; }
.site-b2b-form-fields details summary { color: #cbd3de; cursor: pointer; font-size: 11px; }
.site-b2b-form-fields details label { display: block; margin-top: 8px; }
.site-b2b-client-card footer { padding: 12px 14px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 9px; border-top: 1px solid var(--line); }
.site-b2b-client-card footer button { min-height: 38px; border: 1px solid #465161; background: transparent; color: #dce2ea; }
.site-b2b-client-card footer button[type="submit"] { border-color: #e0ad2b; background: linear-gradient(180deg, #e7ba45, #c59013); color: #151009; }

body:not(.admin-dark) .site-b2b-layout { background: #fff; }
body:not(.admin-dark) .site-b2b-form-fields input,
body:not(.admin-dark) .site-b2b-form-fields select,
body:not(.admin-dark) .site-b2b-form-fields textarea { background: #fff; color: #17202c; }
body:not(.admin-dark) .site-b2b-table th { background: #eef2f7; color: #243042; }
body:not(.admin-dark) .site-b2b-client-card { background: #f7f9fb; }

@media (max-width: 1450px) {
  .site-b2b-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  #site-fecor-catalog .site-fecor-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .side-nav { grid-template-columns: auto minmax(0, 1fr) auto; }
  .side-nav-brand { min-height: 44px; margin: -8px 0; padding: 5px 10px 5px 0; border-bottom: 0; border-right: 1px solid var(--line); }
  .side-nav-brand-full strong { font-size: 18px; }
  .side-nav-brand-full small { font-size: 8px; }
  .side-menu-toggle-brand { display: none !important; }
  .site-b2b-layout { grid-template-columns: 1fr; }
  .site-b2b-client-card { border-top: 1px solid var(--line); border-left: 0; }
  .site-b2b-client-card form { min-height: 640px; }
}
@media (max-width: 720px) {
  .side-nav-brand { display: none; }
  .side-nav { grid-template-columns: minmax(0, 1fr) auto; }
  .site-b2b-form-fields label { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .site-fecor-grid,
  .site-fecor-grid-compact,
  .site-fecor-form,
  .site-fecor-form-single,
  .site-fecor-contacts-form,
  .site-fecor-product-form .site-fecor-form,
  .site-fecor-core-fields,
  .site-fecor-price-fields,
  .site-fecor-price-rules,
  .site-fecor-marketplace-fields {
    grid-template-columns: 1fr;
  }
}

.site-fecor-form-title {
  color: var(--text);
  font-size: 14px;
  grid-column: 1 / -1;
  margin: 2px 0 0;
}

.side-nav-tree {
  border: 1px solid transparent;
  border-radius: 8px;
}
.side-nav-tree summary {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  min-height: 40px;
  padding: 8px 12px;
}
.side-nav-tree summary::-webkit-details-marker {
  display: none;
}
.side-nav-tree summary::after {
  color: var(--muted);
  content: "▾";
  font-size: 11px;
  margin-left: auto;
  transition: transform 0.16s ease;
}
.side-nav-tree:not([open]) summary::after {
  transform: rotate(-90deg);
}
.side-nav-tree summary strong {
  font-size: 14px;
  font-weight: 400;
}
.side-nav-tree div {
  display: grid;
  gap: 4px;
  padding: 2px 0 6px 12px;
}
.side-nav nav .side-nav-tree div a {
  min-height: 32px;
  padding: 6px 10px;
}
.side-nav nav .side-nav-tree div a strong {
  color: var(--muted);
  font-size: 13px;
}
.side-nav-tree.active summary,
.side-nav-tree summary:hover {
  border-color: rgba(37, 99, 235, 0.36);
  background: rgba(37, 99, 235, 0.1);
}
body.admin-dark .side-nav-tree summary {
  color: #e7eaf0;
}
body.admin-dark .side-nav-tree.active summary,
body.admin-dark .side-nav-tree summary:hover {
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(56, 189, 248, 0.1);
}
body.side-menu-collapsed .side-nav-tree summary strong,
body.side-menu-collapsed .side-nav-tree div {
  display: none;
}
body.side-menu-collapsed .side-nav-tree summary {
  justify-content: center;
  padding: 8px;
}
body.side-menu-collapsed .side-nav-tree summary::after {
  margin-left: 0;
}

.site-fecor-section-head {
  align-items: flex-end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}
.site-fecor-section-head h3 {
  font-size: 18px;
  margin: 0;
}
.site-fecor-section-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.site-fecor-view[hidden] {
  display: none !important;
}
.site-fecor-tabs a.active,
.side-nav-tree div a.active {
  border-color: rgba(214, 162, 31, 0.45);
  background: rgba(214, 162, 31, 0.12);
}
body.admin-dark .site-fecor-tabs a.active,
body.admin-dark .side-nav-tree div a.active {
  border-color: rgba(214, 162, 31, 0.5);
  background: rgba(214, 162, 31, 0.12);
}
.site-fecor-admin {
  border-color: rgba(214, 162, 31, 0.28);
  box-shadow: 0 0 0 1px rgba(214, 162, 31, 0.08), 0 18px 48px rgba(0, 0, 0, 0.18);
}
body.admin-dark .site-fecor-admin {
  background: linear-gradient(180deg, rgba(22, 29, 39, 0.98), rgba(14, 19, 27, 0.98));
  border-color: rgba(214, 162, 31, 0.32);
  box-shadow: 0 0 0 1px rgba(214, 162, 31, 0.1), 0 0 28px rgba(214, 162, 31, 0.08), 0 18px 52px rgba(0, 0, 0, 0.3);
}
.site-fecor-admin > .panel-title-row,
.site-fecor-admin > .site-fecor-tabs {
  padding-left: 28px;
  padding-right: 28px;
}
.site-fecor-admin .panel-title-row {
  border-bottom: 1px solid rgba(214, 162, 31, 0.16);
  margin: -4px -4px 2px;
  padding: 4px 4px 12px;
}
#sorber-site-panel > .site-sorber-view:not(.site-fecor-card) {
  padding: 14px;
}
#sorber-site-panel .site-sorber-view-title {
  border-bottom: 0;
}
@media (max-width: 760px) {
  .site-fecor-admin > .panel-title-row,
  .site-fecor-admin > .site-fecor-tabs {
    padding-left: 14px;
    padding-right: 14px;
  }
}
.site-fecor-admin > .panel-title-row {
  padding-left: 28px;
  padding-right: 28px;
}
@media (max-width: 760px) {
  .site-fecor-admin > .panel-title-row {
    padding-left: 14px;
    padding-right: 14px;
  }
}
.site-fecor-card {
  border-color: rgba(214, 162, 31, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
body.admin-dark .site-fecor-card {
  background: linear-gradient(180deg, rgba(24, 31, 43, 0.95), rgba(17, 23, 33, 0.95));
  border-color: rgba(214, 162, 31, 0.24);
}
body.admin-dark .site-fecor-card:hover {
  border-color: rgba(214, 162, 31, 0.42);
  box-shadow: 0 0 0 1px rgba(214, 162, 31, 0.08), 0 12px 30px rgba(0, 0, 0, 0.16);
}
.site-fecor-card h3,
.site-fecor-form-title {
  color: #f2d27a;
}
.site-fecor-tabs a {
  border-color: rgba(214, 162, 31, 0.18);
}
body.admin-dark .site-fecor-tabs a {
  background: rgba(214, 162, 31, 0.04);
  border-color: rgba(214, 162, 31, 0.22);
}
body.admin-dark .site-fecor-products-wrap {
  border: 1px solid rgba(214, 162, 31, 0.18);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
body.admin-dark .site-fecor-products-wrap table {
  background: rgba(15, 21, 31, 0.72);
}
.site-fecor-form .button.compact {
  justify-self: start;
  min-height: 36px;
  padding: 8px 16px;
  border-color: rgba(214, 162, 31, 0.45);
  background: linear-gradient(180deg, #e0b33b, #b98510);
  color: #0b0b0b;
  font-weight: 800;
}
.site-fecor-form .button.compact:hover {
  border-color: rgba(242, 210, 122, 0.72);
  filter: brightness(1.05);
}
:root {
  --fecor-soft-green: #7ddf9a;
  --fecor-soft-green-strong: #4ecb76;
  --fecor-soft-green-bg: rgba(125, 223, 154, 0.1);
}
.site-fecor-card h3,
.site-fecor-form-title,
.site-fecor-tabs strong {
  color: var(--fecor-soft-green);
}
.site-fecor-tabs a.active,
.side-nav-tree div a.active {
  border-color: rgba(125, 223, 154, 0.42);
  background: var(--fecor-soft-green-bg);
}
body.admin-dark .site-fecor-tabs a.active,
body.admin-dark .side-nav-tree div a.active {
  border-color: rgba(125, 223, 154, 0.45);
  background: rgba(125, 223, 154, 0.1);
}
.site-fecor-form .button.compact {
  border-color: rgba(125, 223, 154, 0.45);
  background: linear-gradient(180deg, #8ee8a7, #4ecb76);
  color: #07110b;
}
.site-fecor-form .button.compact:hover {
  border-color: rgba(151, 239, 174, 0.72);
  filter: brightness(1.03);
}
body.admin-dark .site-fecor-card {
  border-color: rgba(125, 223, 154, 0.22);
}
body.admin-dark .site-fecor-card:hover {
  border-color: rgba(125, 223, 154, 0.36);
  box-shadow: 0 0 0 1px rgba(125, 223, 154, 0.06), 0 12px 30px rgba(0, 0, 0, 0.16);
}

.site-fecor-upload {
  align-self: end;
}
.site-fecor-upload input[type="file"] {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}
.site-fecor-upload span {
  align-items: center;
  border: 1px dashed rgba(125, 223, 154, 0.48);
  border-radius: 8px;
  color: var(--fecor-soft-green);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
}
.site-fecor-upload span:hover {
  background: rgba(125, 223, 154, 0.1);
}

.site-fecor-form .checkline {
  align-items: center;
  align-self: end;
  border: 1px solid rgba(125, 223, 154, 0.24);
  border-radius: 999px;
  color: var(--fecor-soft-green);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 9px;
  justify-self: start;
  min-height: 36px;
  padding: 7px 13px 7px 10px;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.site-fecor-form .checkline:hover {
  background: rgba(125, 223, 154, 0.08);
  border-color: rgba(125, 223, 154, 0.42);
}
.site-fecor-form .checkline input[type=checkbox] {
  appearance: none;
  background: rgba(125, 223, 154, 0.08);
  border: 1px solid rgba(125, 223, 154, 0.48);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(12, 18, 27, 0.95);
  flex: 0 0 auto;
  height: 18px;
  margin: 0;
  min-height: 18px;
  width: 18px;
}
.site-fecor-form .checkline input[type=checkbox]:checked {
  background: var(--fecor-soft-green);
  border-color: var(--fecor-soft-green);
  box-shadow: inset 0 0 0 4px rgba(12, 18, 27, 0.95), 0 0 0 3px rgba(125, 223, 154, 0.12);
}
.site-fecor-form .checkline:has(input[type=checkbox]:checked) {
  background: rgba(125, 223, 154, 0.1);
  border-color: rgba(125, 223, 154, 0.48);
  color: #a8f2bb;
}
.site-fecor-settings h3,
.site-fecor-settings .site-fecor-form-title {
  color: var(--text);
}
body.admin-dark .site-fecor-settings h3,
body.admin-dark .site-fecor-settings .site-fecor-form-title {
  color: #e7eaf0;
}
.site-customer-requisites { margin-top: 6px; }
.site-customer-requisites summary { color: #69c7ee; font-size: 12px; cursor: pointer; }
.site-customer-requisites small { display: block; max-width: 360px; margin-top: 5px; white-space: normal; }
.site-customer-list-head { align-items: end; gap: 18px; }
.site-customer-list-head > div { display: grid; gap: 3px; }
.site-customer-list-head label { width: min(360px, 42vw); margin-left: auto; }
.site-customer-list-head input { width: 100%; min-height: 38px; padding: 8px 12px; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 5px; font: inherit; }
.site-customer-actions-cell { width: 88px; text-align: right; white-space: nowrap; }
.site-customer-actions-cell form { display: inline; }
.site-customer-actions-cell .site-customer-edit,
body.admin-dark .site-customer-actions-cell .site-customer-edit {
  appearance: none;
  -webkit-appearance: none;
  width: 30px;
  height: 34px;
  min-height: 0;
  margin-right: 6px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: #69c7ee;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
  transition: color .16s ease, transform .16s ease;
}
.site-customer-actions-cell .site-customer-edit:hover,
body.admin-dark .site-customer-actions-cell .site-customer-edit:hover {
  color: #a9e7ff;
  background: transparent;
  box-shadow: none;
  transform: scale(1.08);
}
.site-message-table td { vertical-align: top; }
.site-message-table .site-message-new { background: rgba(74, 222, 128, 0.055); }
.site-message-text { min-width: 260px; max-width: 560px; white-space: normal; line-height: 1.45; }
.site-message-source { display: inline-block; margin-top: 6px; color: #69c7ee; font-size: 12px; text-decoration: none; }
.site-message-source:hover { text-decoration: underline; }
.site-message-actions { width: 76px; white-space: nowrap; text-align: right; }
.site-message-actions form { display: inline; }
.site-message-actions .site-message-read,
body.admin-dark .site-message-actions .site-message-read { width: 27px; min-height: 27px; height: 27px; margin-right: 7px; padding: 0; color: #7ddf9a; background: transparent; border: 1px solid rgba(125, 223, 154, .46); border-radius: 50%; box-shadow: none; font-size: 16px; line-height: 1; vertical-align: middle; }
.site-message-actions .site-message-read:hover,
body.admin-dark .site-message-actions .site-message-read:hover { color: #b7f7c9; background: rgba(125, 223, 154, .1); }
.site-customer-dialog { width: min(760px, calc(100vw - 28px)); max-height: calc(100vh - 28px); padding: 0; overflow: auto; color: var(--text); background: var(--card); border: 1px solid rgba(105,199,238,.5); border-radius: 7px; box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.site-customer-dialog::backdrop { background: rgba(4,7,11,.72); backdrop-filter: blur(3px); }
.site-customer-edit-form { position: relative; padding: 22px; }
.site-customer-edit-form header { margin-bottom: 16px; }
.site-customer-edit-form header small { color: #69c7ee; font-weight: 700; text-transform: uppercase; }
.site-customer-edit-form header h3 { margin: 4px 0 0; font-size: 22px; }
.site-customer-dialog-close { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; padding: 0; color: #ff6b6b; background: transparent; border: 0; font-size: 29px; line-height: 1; cursor: pointer; }
.site-customer-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.site-customer-form-grid label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.site-customer-form-grid label.wide { grid-column: 1 / -1; }
.site-customer-price-access { display: grid; grid-template-columns: repeat(3, minmax(100px, 1fr)); gap: 8px; margin: 2px 0; padding: 9px 11px 11px; border: 1px solid var(--line); border-radius: 5px; }
.site-customer-price-access legend { padding: 0 6px; color: #69c7ee; font-size: 12px; font-weight: 700; }
.site-customer-price-access label { min-height: 34px; display: flex; align-items: center; gap: 8px; padding: 5px 9px; color: var(--text); background: rgba(105,199,238,.06); border: 1px solid rgba(105,199,238,.2); border-radius: 4px; cursor: pointer; }
.site-customer-price-access input { width: 16px; min-height: 16px; height: 16px; margin: 0; accent-color: #4fcf83; }
.site-customer-form-grid input, .site-customer-form-grid select, .site-customer-form-grid textarea { width: 100%; min-height: 40px; box-sizing: border-box; padding: 9px 11px; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 5px; font: inherit; }
.site-customer-form-grid .site-customer-price-access input[type="checkbox"] { flex: 0 0 16px; width: 16px; min-width: 16px; height: 16px; min-height: 16px; padding: 0; border-radius: 3px; accent-color: #4fcf83; }
.site-customer-form-grid textarea { resize: vertical; }
.site-customer-edit-form footer { margin-top: 16px; display: flex; justify-content: flex-end; gap: 10px; }
.site-customer-edit-form footer button[type=button] { min-height: 38px; padding: 8px 14px; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
@media (max-width: 700px) { .site-customer-list-head { align-items: stretch; flex-direction: column; } .site-customer-list-head label { width: 100%; margin-left: 0; } .site-customer-form-grid { grid-template-columns: 1fr; } .site-customer-form-grid label.wide { grid-column: auto; } .site-customer-price-access { grid-template-columns: 1fr; } }

/* Product order controls stay compact and readable despite global button styles. */
.site-fecor-products-wrap .site-fecor-order-cell {
  width: 132px;
}
.site-fecor-products-wrap .site-fecor-order-actions {
  display: inline-grid;
  grid-template-columns: repeat(3, 32px);
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.site-fecor-products-wrap .site-fecor-order-actions form {
  width: 32px;
  height: 32px;
  margin: 0;
}
.site-fecor-products-wrap .site-fecor-order-actions .site-fecor-order-button,
body.admin-dark .site-fecor-products-wrap .site-fecor-order-actions .site-fecor-order-button {
  appearance: none;
  -webkit-appearance: none;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  color: #72d8ff;
  background: #101d2c;
  border: 1px solid rgba(92, 204, 255, .48);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(92, 204, 255, .05), 0 0 10px rgba(43, 174, 255, .12);
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.site-fecor-products-wrap .site-fecor-order-actions .site-fecor-order-button span {
  display: block;
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-1px);
  text-shadow: 0 0 8px rgba(80, 201, 255, .72);
}
.site-fecor-products-wrap .site-fecor-order-actions .site-fecor-order-top span {
  font-size: 20px;
}
.site-fecor-products-wrap .site-fecor-order-actions .site-fecor-order-button:hover,
.site-fecor-products-wrap .site-fecor-order-actions .site-fecor-order-button:focus-visible,
body.admin-dark .site-fecor-products-wrap .site-fecor-order-actions .site-fecor-order-button:hover,
body.admin-dark .site-fecor-products-wrap .site-fecor-order-actions .site-fecor-order-button:focus-visible {
  color: #eaf9ff;
  background: #15304a;
  border-color: rgba(104, 219, 255, .9);
  box-shadow: inset 0 0 0 1px rgba(112, 220, 255, .12), 0 0 15px rgba(43, 174, 255, .42);
  transform: translateY(-1px);
  outline: none;
}
.site-fecor-products-wrap .site-fecor-order-actions .site-fecor-order-button:active {
  transform: translateY(0);
}

/* Employees */
.employee-workspace{background:#f7f9fc;color:#152238;border:1px solid #dce4ef;border-radius:10px;overflow:hidden;min-height:720px;box-shadow:0 16px 44px rgba(28,47,76,.08)}
.employee-page-head{display:grid;grid-template-columns:1fr minmax(240px,360px) auto;gap:18px;align-items:center;padding:22px 26px;background:#fff;border-bottom:1px solid #dce4ef}.employee-page-head h2{margin:2px 0;font-size:24px}.employee-page-head p,.employee-page-head span{margin:0;color:#68778e;font-size:12px}.employee-search{position:relative;margin:0}.employee-search i{position:absolute;left:12px;top:11px;width:17px;color:#7890ad}.employee-search input{height:42px;padding:8px 12px 8px 38px;background:#fff;border:1px solid #d5deea;color:#152238}
.employee-primary,.employee-secondary{width:auto;min-height:40px;padding:9px 15px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:6px}.employee-primary{background:#1769e8;color:#fff}.employee-secondary{background:#fff;color:#152238;border:1px solid #d5deea}.employee-primary i,.employee-secondary i{width:16px}
.employee-layout{display:grid;grid-template-columns:280px 1fr;min-height:650px}.employee-list{padding:14px;background:#fff;border-right:1px solid #dce4ef}.employee-list>a{display:flex;gap:10px;align-items:center;padding:10px;margin-bottom:5px;color:#152238;text-decoration:none;border:1px solid transparent;border-radius:7px}.employee-list>a:hover,.employee-list>a.active{background:#eef5ff;border-color:#bfd6fb}.employee-list>a>span:last-child{display:grid;gap:3px;min-width:0}.employee-list strong,.employee-list small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.employee-list small{color:#68778e}.employee-mini-avatar{width:42px;height:42px;flex:0 0 42px;border-radius:50%;display:grid;place-items:center;background:#dce9fa;color:#23518c;font-weight:800;overflow:hidden}.employee-mini-avatar img,.employee-avatar img{width:100%;height:100%;object-fit:cover}.employee-list-empty{padding:35px 12px;text-align:center;color:#68778e;line-height:1.6}
.employee-content{padding:20px 24px}.employee-actions{display:flex;justify-content:flex-end;margin-bottom:12px}.employee-hero{display:grid;grid-template-columns:minmax(360px,1.4fr) minmax(260px,.8fr) minmax(300px,.9fr);gap:0;background:#fff;border:1px solid #dce4ef;border-radius:8px}.employee-profile{display:flex;gap:22px;padding:28px}.employee-avatar{width:132px;height:132px;flex:0 0 132px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,#dce9fa,#a8c4e8);font-size:36px;color:#20466f}.employee-profile h3{margin:4px 0 7px;font-size:23px}.employee-profile p{margin:0 0 18px;color:#34445b}.employee-profile>div>span{display:flex;gap:8px;align-items:center;margin-top:10px;color:#34445b}.employee-profile i{width:16px}.employee-summary{margin:20px 0;padding:8px 24px;border-left:1px solid #dce4ef;display:grid;grid-template-columns:130px 1fr;gap:14px 12px;align-content:center}.employee-terms{padding:25px;border-left:1px solid #dce4ef}.employee-terms h3,.employee-info-grid h3{margin:0 0 22px;font-size:16px}.employee-terms dl,.employee-info-grid dl{display:grid;grid-template-columns:minmax(110px,1fr) minmax(120px,1fr);gap:16px 12px}.employee-terms dt,.employee-summary dt,.employee-info-grid dt{color:#68778e}.employee-terms dd,.employee-summary dd,.employee-info-grid dd{margin:0}.employee-terms small{display:block;color:#68778e}.employee-status{display:inline-block;padding:5px 9px;border-radius:6px;background:#daf4df;color:#24743a}.employee-status.vacation{background:#fff0c7;color:#835c00}.employee-status.sick{background:#ffe3d4;color:#934319}.employee-status.dismissed{background:#e6e9ef;color:#5e6878}
.employee-tabs{display:flex;gap:10px;margin:14px 0 16px;border-bottom:1px solid #dce4ef;overflow-x:auto}.employee-tabs span{padding:13px 15px;white-space:nowrap;color:#44546c}.employee-tabs .active{color:#1769e8;border-bottom:2px solid #1769e8;font-weight:700}.employee-info-grid{display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:14px}.employee-info-grid>section{padding:20px;background:#fff;border:1px solid #dce4ef;border-radius:8px}.employee-info-grid .employee-notes{grid-column:1/3}.employee-notes p{color:#44546c;line-height:1.55}.employee-empty{min-height:550px;display:grid;place-items:center;align-content:center;gap:10px;text-align:center;color:#68778e}.employee-empty i{width:54px;height:54px}.employee-empty h3{margin:5px 0 0;color:#152238}.employee-empty p{max-width:430px}
.employee-dialog{width:min(980px,calc(100vw - 28px));max-height:calc(100vh - 28px);padding:0;border:1px solid #c9d7e8;border-radius:10px;background:#fff;color:#152238;box-shadow:0 28px 90px rgba(0,0,0,.38)}.employee-dialog::backdrop{background:rgba(4,12,24,.66);backdrop-filter:blur(3px)}.employee-form{padding:24px}.employee-form header{display:flex;justify-content:space-between;align-items:start;margin-bottom:20px}.employee-form header small{color:#1769e8;font-weight:800;text-transform:uppercase}.employee-form header h3{margin:4px 0;font-size:24px}.employee-form header button{width:34px;padding:0;background:transparent;color:#66758a;font-size:28px}.employee-form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.employee-form-grid label{margin:0;gap:5px;font-size:12px}.employee-form-grid input,.employee-form-grid select,.employee-form-grid textarea{min-height:40px;padding:9px 10px;background:#fff;color:#152238;border:1px solid #d5deea;border-radius:6px;font:inherit}.employee-form-grid .wide{grid-column:1/-1}.employee-form footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.employee-form footer>button:first-child{width:auto;background:#fff;color:#152238;border:1px solid #d5deea}
body.admin-dark .employee-workspace{background:#0e141d;color:#e7edf6;border-color:#303b4b;box-shadow:0 18px 52px rgba(0,0,0,.3)}body.admin-dark .employee-page-head,body.admin-dark .employee-list,body.admin-dark .employee-hero,body.admin-dark .employee-info-grid>section{background:#151d28;border-color:#303b4b}body.admin-dark .employee-search input,body.admin-dark .employee-secondary{background:#101721;color:#e7edf6;border-color:#3b485a}body.admin-dark .employee-list{border-color:#303b4b}body.admin-dark .employee-list>a{color:#e7edf6}body.admin-dark .employee-list>a:hover,body.admin-dark .employee-list>a.active{background:#172b44;border-color:#315b8a}body.admin-dark .employee-summary,body.admin-dark .employee-terms{border-color:#303b4b}body.admin-dark .employee-tabs{border-color:#303b4b}body.admin-dark .employee-dialog{background:#151d28;color:#e7edf6;border-color:#3b485a}body.admin-dark .employee-form-grid input,body.admin-dark .employee-form-grid select,body.admin-dark .employee-form-grid textarea{background:#0e141d;color:#e7edf6;border-color:#3b485a}body.admin-dark .employee-form footer>button:first-child{background:#101721;color:#e7edf6;border-color:#3b485a}body.admin-dark .employee-empty h3{color:#e7edf6}
@media(max-width:1200px){.employee-hero{grid-template-columns:1fr 1fr}.employee-terms{grid-column:1/-1;border-left:0;border-top:1px solid #dce4ef}.employee-info-grid{grid-template-columns:1fr 1fr}.employee-info-grid>section:last-of-type{grid-column:1/-1}}@media(max-width:820px){.employee-page-head{grid-template-columns:1fr auto}.employee-search{grid-column:1/-1;grid-row:2}.employee-layout{grid-template-columns:1fr}.employee-list{display:flex;overflow-x:auto;border-right:0;border-bottom:1px solid #dce4ef}.employee-list>a{min-width:230px}.employee-content{padding:14px}.employee-hero{grid-template-columns:1fr}.employee-summary,.employee-terms{border-left:0;border-top:1px solid #dce4ef}.employee-profile{padding:20px}.employee-avatar{width:96px;height:96px;flex-basis:96px}.employee-info-grid{grid-template-columns:1fr}.employee-info-grid .employee-notes,.employee-info-grid>section:last-of-type{grid-column:auto}.employee-form-grid{grid-template-columns:1fr 1fr}}@media(max-width:560px){.employee-page-head{padding:16px}.employee-page-head .employee-primary{font-size:0}.employee-page-head .employee-primary i{width:20px}.employee-profile{display:grid}.employee-form-grid{grid-template-columns:1fr}.employee-form-grid .wide{grid-column:auto}}

/* Compact employee header */
.employee-page-head{grid-template-columns:max-content minmax(220px,340px) max-content;justify-content:space-between;gap:14px;padding:10px 16px;min-height:58px}
.employee-page-head h2{margin:0;font-size:20px;line-height:1.1}
.employee-search{width:min(340px,32vw)}
.employee-search input{height:36px;min-height:36px;padding:7px 11px;font-size:14px}
.employee-add-button{min-height:34px;padding:7px 11px;gap:5px;font-size:13px;white-space:nowrap}
.employee-add-button i{width:15px;height:15px}
@media(max-width:820px){.employee-page-head{grid-template-columns:max-content 1fr max-content}.employee-search{grid-column:auto;grid-row:auto;width:100%}}
@media(max-width:620px){.employee-page-head{grid-template-columns:1fr max-content}.employee-search{grid-column:1/-1;grid-row:2}.employee-add-button span{display:none}.employee-add-button{width:34px;padding:7px}.employee-page-head h2{font-size:18px}}

/* Employee full-width workspace and global live search */
.employee-layout{display:block;min-height:650px}.employee-content{width:100%;box-sizing:border-box}.employee-search{z-index:30}
.employee-search-results{position:absolute;top:calc(100% + 7px);left:0;right:0;max-height:420px;overflow:auto;padding:6px;background:#fff;border:1px solid #cbd7e6;border-radius:8px;box-shadow:0 18px 48px rgba(19,35,58,.2)}
.employee-search-results[hidden]{display:none}.employee-search-results a{display:flex;align-items:center;gap:10px;padding:9px 10px;color:#152238;text-decoration:none;border-radius:6px}.employee-search-results a:hover,.employee-search-results a:focus{background:#edf5ff;outline:none}.employee-search-results a>span:last-child{display:grid;gap:2px;min-width:0}.employee-search-results strong,.employee-search-results small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.employee-search-results small{color:#68778e;font-size:11px}.employee-search-avatar{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:50%;background:#dce9fa;color:#23518c;font-size:12px;font-weight:800}.employee-search-empty{display:block;padding:14px;text-align:center;color:#68778e;font-size:13px}
body.admin-dark .employee-search-results{background:#151d28;border-color:#3b485a;box-shadow:0 20px 54px rgba(0,0,0,.45)}body.admin-dark .employee-search-results a{color:#e7edf6}body.admin-dark .employee-search-results a:hover,body.admin-dark .employee-search-results a:focus{background:#172b44}
@media(max-width:820px){.employee-layout{display:block}.employee-search-results{left:0;right:0}}

/* Employees use the same visual language as B2B Potential clients */
.employee-workspace{border:1px solid rgba(214,162,31,.22);border-radius:8px;background:rgba(9,15,23,.35);box-shadow:none}
.employee-page-head{border-bottom:1px solid var(--line);background:transparent}
.employee-page-head h2{color:var(--text)}
.employee-search input{min-height:35px;border:1px solid #354050;border-radius:6px;background:#0d141e;color:#dce2ea;font-size:12px;box-shadow:none;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}
.employee-search input:hover{border-color:#4b5869}
.employee-search input:focus{border-color:rgba(214,162,31,.72);outline:none;box-shadow:0 0 0 3px rgba(214,162,31,.1)}
.employee-search input::placeholder{color:#7f8b9c}
.employee-primary,.employee-secondary{min-height:34px;padding:6px 9px;border:1px solid #3b4656;border-radius:6px;background:transparent;color:#dbe2ec;font-size:11px;font-weight:700;box-shadow:none}
.employee-primary:hover,.employee-secondary:hover{border-color:#d6a21f;background:rgba(214,162,31,.08);color:#edc452}
.employee-add-button{border-color:rgba(214,162,31,.68);background:linear-gradient(180deg,rgba(214,162,31,.2),rgba(214,162,31,.09));color:#edc452}
.employee-add-button:hover{border-color:#e0ad2b;background:rgba(214,162,31,.17);color:#f2cf72}
.employee-add-button svg,.employee-secondary svg{width:15px;height:15px;stroke-width:1.7}
.employee-content{padding:16px}
.employee-actions{margin-bottom:9px}
.employee-hero,.employee-info-grid>section{border-color:var(--line);border-radius:6px;background:rgba(20,28,39,.72);box-shadow:none}
.employee-hero:hover,.employee-info-grid>section:hover{border-color:rgba(214,162,31,.34)}
.employee-avatar{border:1px solid rgba(214,162,31,.35);background:linear-gradient(135deg,rgba(214,162,31,.22),rgba(214,162,31,.08));color:#edc452}
.employee-profile h3,.employee-terms h3,.employee-info-grid h3{color:var(--text)}
.employee-tabs{border-bottom-color:var(--line)}
.employee-tabs span{color:var(--muted);font-size:12px}
.employee-tabs span:hover{color:#edc452;background:rgba(214,162,31,.05)}
.employee-tabs .active{color:#edc452;border-bottom-color:#d6a21f}
.employee-search-results{padding:6px;border:1px solid #3b4656;border-radius:6px;background:#131d2b;box-shadow:0 18px 48px rgba(0,0,0,.38)}
.employee-search-results a{color:#dbe2ec;border:1px solid transparent;border-radius:5px}
.employee-search-results a:hover,.employee-search-results a:focus{border-color:rgba(214,162,31,.34);background:rgba(214,162,31,.08)}
.employee-search-avatar{border:1px solid rgba(214,162,31,.4);background:rgba(214,162,31,.1);color:#edc452}
.employee-dialog{border:1px solid rgba(214,162,31,.34);border-radius:8px;background:linear-gradient(180deg,rgba(20,28,39,.99),rgba(12,18,26,.99));box-shadow:0 24px 80px rgba(0,0,0,.55)}
.employee-form{padding:0}
.employee-form header{min-height:70px;margin:0;padding:12px 14px;align-items:center;border-bottom:1px solid var(--line)}
.employee-form header small{color:#d6a21f;font-size:10px;font-weight:700}
.employee-form header h3{margin:2px 0 0;color:var(--text);font-size:17px}
.employee-form header button{width:28px;min-height:28px;padding:0;background:transparent;color:#e0e5ec;font-size:24px;font-weight:300}
.employee-form-grid{padding:14px;grid-template-columns:repeat(3,1fr);gap:8px}
.employee-form-grid label{margin:0;gap:5px;color:#aeb7c4;font-size:11px}
.employee-form-grid input,.employee-form-grid select,.employee-form-grid textarea{width:100%;min-height:34px;padding:7px 8px;border:1px solid #3b4655;border-radius:4px;background:#0d141d;color:#e5e9ef;font:inherit;box-shadow:none;transition:border-color .16s ease,box-shadow .16s ease}
.employee-form-grid input:hover,.employee-form-grid select:hover,.employee-form-grid textarea:hover{border-color:#536174}
.employee-form-grid input:focus,.employee-form-grid select:focus,.employee-form-grid textarea:focus{border-color:rgba(214,162,31,.74);outline:none;box-shadow:0 0 0 3px rgba(214,162,31,.09)}
.employee-form footer{margin:0;padding:12px 14px;display:grid;grid-template-columns:1fr 1.2fr;gap:9px;border-top:1px solid var(--line)}
.employee-form footer button,.employee-form footer>button:first-child{width:100%;min-height:38px;border:1px solid #465161;background:transparent;color:#dce2ea}
.employee-form footer button[type=submit]{border-color:#e0ad2b;background:linear-gradient(180deg,#e7ba45,#c59013);color:#151009}
.employee-form footer button[type=submit]:hover{filter:brightness(1.06);color:#151009}
body.admin-dark .employee-workspace,body.admin-dark .employee-page-head{background:rgba(9,15,23,.35)}
body.admin-dark .employee-hero,body.admin-dark .employee-info-grid>section{background:rgba(20,28,39,.72)}
body.admin-dark .employee-search-results{background:#131d2b;border-color:#3b4656}
body:not(.admin-dark) .employee-workspace{background:#fff}
body:not(.admin-dark) .employee-page-head{background:#fff}
body:not(.admin-dark) .employee-search input,body:not(.admin-dark) .employee-form-grid input,body:not(.admin-dark) .employee-form-grid select,body:not(.admin-dark) .employee-form-grid textarea{background:#fff;color:#17202c}
body:not(.admin-dark) .employee-primary,body:not(.admin-dark) .employee-secondary{color:#39475a;background:#fff}
body:not(.admin-dark) .employee-add-button{border-color:rgba(184,133,13,.55);background:rgba(214,162,31,.09);color:#946b08}
body:not(.admin-dark) .employee-hero,body:not(.admin-dark) .employee-info-grid>section{background:#f7f9fb}
body:not(.admin-dark) .employee-search-results{background:#fff;border-color:#d4dce7}
body:not(.admin-dark) .employee-search-results a{color:#17202c}
body:not(.admin-dark) .employee-dialog{background:#f7f9fb;color:#17202c}
body:not(.admin-dark) .employee-form header button{color:#39475a}
body:not(.admin-dark) .employee-form footer>button:first-child{background:#fff;color:#39475a}
@media(max-width:760px){.employee-form-grid{grid-template-columns:1fr 1fr}}@media(max-width:520px){.employee-form-grid{grid-template-columns:1fr}}

/* Employee add button matches B2B Potential */
.employee-add-button{width:auto;min-height:34px;margin:0;padding:6px 9px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid rgba(214,162,31,.64);border-radius:6px;background:transparent;color:#edc452;font-size:11px;font-weight:700;cursor:pointer;box-shadow:none}
.employee-add-button:hover{border-color:#d6a21f;background:rgba(214,162,31,.08);color:#edc452}
.employee-add-button svg{width:15px;height:15px;stroke-width:1.7}
body.admin-dark .employee-add-button{border-color:rgba(214,162,31,.68);background:linear-gradient(180deg,rgba(214,162,31,.2),rgba(214,162,31,.09));color:#edc452}
body.admin-dark .employee-add-button:hover{border-color:rgba(214,162,31,.8);background:rgba(214,162,31,.13)}
body:not(.admin-dark) .employee-add-button{border-color:rgba(184,133,13,.55);background:transparent;color:#946b08}
body:not(.admin-dark) .employee-add-button:hover{background:rgba(214,162,31,.08)}

/* Marketplace reports · unified FECOR style */
.marketplace-reports-panel{min-height:540px;border:1px solid rgba(214,162,31,.22);border-radius:8px;overflow:hidden;background:rgba(9,15,23,.35);color:var(--text)}
body[data-os-section="reports"] main.page>.stock-cards,
body[data-os-section="accounting"] main.page>.stock-cards,
body[data-os-section="employees"] main.page>.stock-cards{display:none!important}
.marketplace-reports-head{min-height:64px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line)}.marketplace-reports-head h2{margin:0 0 3px;font-size:20px}.marketplace-reports-head>div span{color:var(--muted);font-size:11px}.marketplace-agent-badge{display:inline-flex;align-items:center;gap:7px;padding:9px 13px;border:1px solid rgba(89,220,142,.45);border-radius:999px;background:rgba(37,165,100,.08);color:#67dfa0;font-size:11px;font-weight:800}.marketplace-agent-badge svg{width:16px}.marketplace-agent-badge.offline{border-color:rgba(239,100,100,.48);background:rgba(239,100,100,.08);color:#ff8585}.marketplace-agent-badge.disabled{border-color:var(--line);background:rgba(127,142,160,.08);color:var(--muted)}
.marketplace-report-notice{margin:12px 16px 0;padding:8px 10px;border-radius:6px;font-size:12px}.marketplace-report-notice.success{border:1px solid rgba(72,199,128,.32);background:rgba(72,199,128,.07);color:#8ce2ac}.marketplace-report-notice.error{border:1px solid rgba(239,100,100,.35);background:rgba(239,100,100,.08);color:#ff9a9a}
.marketplace-report-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:16px}.marketplace-report-card{padding:16px;border:1px solid var(--line);border-radius:7px;background:rgba(20,28,39,.72);transition:border-color .16s ease}.marketplace-report-card:hover{border-color:rgba(214,162,31,.38)}.marketplace-report-card>header{display:flex;align-items:center;gap:11px;margin-bottom:14px}.marketplace-report-card h3{margin:0 0 3px;font-size:17px}.marketplace-report-card header small{color:var(--muted);font-size:11px}.marketplace-report-logo{width:38px;height:38px;display:grid;place-items:center;border:1px solid rgba(214,162,31,.42);border-radius:7px;background:rgba(214,162,31,.1);color:#edc452;font-size:12px;font-weight:900}
.marketplace-report-upload{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.marketplace-report-upload label{min-height:58px;margin:0;padding:8px 10px;display:grid;grid-template-columns:26px minmax(0,1fr);align-items:center;gap:2px 8px;border:1px dashed #4b5869;border-radius:6px;background:#0d141e;cursor:pointer}.marketplace-report-upload label:hover{border-color:rgba(214,162,31,.65);background:rgba(214,162,31,.05)}.marketplace-report-upload input{position:absolute;width:1px;height:1px;opacity:0}.marketplace-report-upload label svg{grid-row:1/3;width:21px;color:#edc452}.marketplace-report-upload label span{overflow:hidden;color:#dce2ea;font-size:12px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.marketplace-report-upload label small{color:var(--muted);font-size:10px}.marketplace-report-upload button{width:auto;min-height:34px;padding:7px 10px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid rgba(214,162,31,.64);border-radius:6px;background:transparent;color:#edc452;font-size:11px;font-weight:700}.marketplace-report-upload button:hover{border-color:#d6a21f;background:rgba(214,162,31,.08)}.marketplace-report-upload button svg{width:15px}
.marketplace-report-latest{min-height:64px;margin-top:12px;padding:10px;display:grid;gap:4px;border-top:1px solid var(--line)}.marketplace-report-latest strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.marketplace-report-latest small,.marketplace-report-empty{color:var(--muted);font-size:11px}.marketplace-agent-status{justify-self:start;display:inline-flex;align-items:center;gap:5px;color:#edc452;font-size:10px;font-weight:800}.marketplace-agent-status svg{width:14px}.marketplace-agent-status.done{color:#59dc8e}.marketplace-agent-status.error{color:#ff8585}.marketplace-agent-status.processing{color:#68baf4}
.marketplace-report-entry{display:grid;gap:4px;padding:9px 0;border-bottom:1px solid var(--line)}.marketplace-report-entry:last-child{border-bottom:0}
.marketplace-report-result{margin-top:8px;padding:8px;border:1px solid rgba(89,220,142,.28);border-radius:6px;background:rgba(89,220,142,.05)}.marketplace-report-result summary{cursor:pointer;color:#70e2a1;font-size:11px;font-weight:800}.marketplace-report-result pre{max-height:260px;margin:8px 0 0;padding:9px;overflow:auto;border-radius:5px;background:rgba(5,10,16,.48);color:var(--text);font:11px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap}.marketplace-report-error{margin-top:7px;padding:7px;border-radius:5px;background:rgba(239,100,100,.08);color:#ff9a9a;font-size:11px}
.marketplace-reports-footer{margin:0 16px 16px;padding:10px;display:flex;align-items:center;gap:8px;border:1px solid rgba(214,162,31,.16);border-radius:6px;color:var(--muted);font-size:11px}.marketplace-reports-footer svg{width:17px;color:#edc452}
.marketplace-report-batch-form{margin:16px;padding:16px;border:1px solid var(--line);border-radius:8px;background:rgba(20,28,39,.72)}.marketplace-report-type{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;color:var(--muted);font-size:12px}.marketplace-report-type strong{display:flex;align-items:center;gap:9px;color:var(--text);font-size:14px}.marketplace-report-batch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.marketplace-report-file{display:grid;gap:7px;margin:0;color:var(--muted);font-size:11px;font-weight:700}.marketplace-report-file>input{position:absolute;width:1px;height:1px;opacity:0}.marketplace-report-file>div{min-height:64px;padding:9px 12px;display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:2px 8px;border:1px dashed #4b5869;border-radius:7px;background:#0d141e;cursor:pointer}.marketplace-report-file>div:hover{border-color:rgba(214,162,31,.65);background:rgba(214,162,31,.05)}.marketplace-report-file svg{grid-row:1/3;width:21px;color:#edc452}.marketplace-report-file strong{overflow:hidden;color:var(--text);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.marketplace-report-file small{color:var(--muted);font-size:10px}.marketplace-report-comment{display:grid;gap:7px;margin:14px 0 0;color:var(--muted);font-size:11px;font-weight:700}.marketplace-report-comment span small{font-weight:500}.marketplace-report-comment input{height:40px;padding:0 12px;border:1px solid var(--line);border-radius:7px;background:#0d141e;color:var(--text);font:inherit}.marketplace-report-batch-actions{margin-top:14px;padding-top:14px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line)}.marketplace-report-batch-actions button{min-height:38px;padding:8px 14px;display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(89,220,142,.55);border-radius:7px;background:rgba(89,220,142,.08);color:#70e2a1;font-size:12px;font-weight:800}.marketplace-report-batch-actions button:hover{background:rgba(89,220,142,.14)}.marketplace-report-batch-actions button svg{width:16px}
body:not(.admin-dark) .marketplace-reports-panel{background:#fff}body:not(.admin-dark) .marketplace-report-card{background:#f7f9fb}body:not(.admin-dark) .marketplace-report-upload label{background:#fff}body:not(.admin-dark) .marketplace-report-upload label span{color:#17202c}
body:not(.admin-dark) .marketplace-report-batch-form{background:#f7f9fb}body:not(.admin-dark) .marketplace-report-file>div,body:not(.admin-dark) .marketplace-report-comment input{background:#fff}
.marketplace-ai-analytics{min-height:600px;padding:0;border:1px solid rgba(214,162,31,.24);border-radius:8px;overflow:hidden;background:#0d151f;color:var(--text)}
.marketplace-ai-query{display:grid;grid-template-columns:minmax(360px,1fr) 168px minmax(240px,.7fr);align-items:end;gap:14px;padding:16px 20px;border-bottom:1px solid var(--line);background:#111b28}.marketplace-ai-query label{display:grid;gap:6px;margin:0}.marketplace-ai-query label span{color:var(--text);font-size:12px;font-weight:800}.marketplace-ai-query input{height:40px;padding:0 13px;border:1px solid #344258;border-radius:6px;background:#0b131e;color:var(--text);font:inherit}.marketplace-ai-query input:focus{border-color:#d6a21f;outline:0;box-shadow:0 0 0 2px rgba(214,162,31,.12)}.marketplace-ai-query button{height:40px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #d6a21f;border-radius:6px;background:rgba(214,162,31,.12);color:#f4c542;font-weight:900;cursor:pointer}.marketplace-ai-query button svg{width:17px}.marketplace-ai-query small{align-self:center;color:var(--muted);line-height:1.4}.marketplace-ai-notice{margin:12px 20px;padding:10px 12px;border-radius:6px}.marketplace-ai-notice.error{border:1px solid rgba(248,113,113,.4);background:rgba(248,113,113,.08);color:#fca5a5}
.marketplace-ai-analytics-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:17px 20px;border-bottom:1px solid var(--line);background:#101925}.marketplace-ai-analytics-head>div>span{color:var(--muted);font-size:11px}.marketplace-ai-analytics-head h2{display:flex;align-items:center;gap:9px;margin:4px 0 2px;font-size:21px}.marketplace-ai-analytics-head h2 svg{width:22px;height:22px;color:#f4c542}.marketplace-ai-analytics-head p{margin:0;color:var(--muted);font-size:12px}.marketplace-ai-analytics-head>strong{display:flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid rgba(52,211,153,.38);border-radius:6px;color:#6ee7b7;background:rgba(16,185,129,.08);font-size:12px;white-space:nowrap}.marketplace-ai-analytics-head>strong svg{width:16px;height:16px}.marketplace-ai-analytics-head>strong.queued,.marketplace-ai-analytics-head>strong.sending,.marketplace-ai-analytics-head>strong.processing{border-color:rgba(214,162,31,.42);color:#f4c542;background:rgba(214,162,31,.08)}.marketplace-ai-analytics-head>strong.error{border-color:rgba(248,113,113,.42);color:#fca5a5;background:rgba(248,113,113,.08)}
.marketplace-ai-overview{display:grid;grid-template-columns:1.15fr .9fr 2fr;gap:10px;padding:12px}.marketplace-ai-overview>article,.marketplace-ai-score-grid article{border:1px solid var(--line);border-radius:7px;background:#121c29}.marketplace-ai-product{display:grid;grid-template-columns:116px 1fr;gap:13px;padding:12px}.marketplace-ai-product-image{height:112px;display:grid;place-items:center;border-radius:6px;background:#fff;overflow:hidden}.marketplace-ai-product-image img{width:100%;height:100%;object-fit:contain}.marketplace-ai-product-image svg{width:42px;height:42px;color:#64748b}.marketplace-ai-product h3{margin:4px 0;font-size:17px}.marketplace-ai-product p{margin:0 0 8px;color:var(--muted)}.marketplace-ai-product span{display:inline-block;padding:3px 7px;border-radius:4px;background:rgba(214,162,31,.12);color:#f4c542;font-size:10px;font-weight:900}.marketplace-ai-product a{display:flex;align-items:center;gap:5px;margin-top:12px;color:#60a5fa;font-size:11px}.marketplace-ai-product a svg{width:13px}
.marketplace-ai-total{display:flex;align-items:center;gap:15px;padding:14px}.marketplace-ai-score{--score:0;flex:0 0 92px;width:92px;height:92px;display:grid;place-content:center;text-align:center;border-radius:50%;background:radial-gradient(closest-side,#121c29 78%,transparent 80% 99%),conic-gradient(#4ade80 calc(var(--score)*1%),#253244 0)}.marketplace-ai-score strong{font-size:27px}.marketplace-ai-score small{color:var(--muted);font-size:9px}.marketplace-ai-total span{color:var(--muted);font-size:11px}.marketplace-ai-total h3{margin:6px 0;font-size:14px;line-height:1.35}.marketplace-ai-total p{margin:0;color:#f4c542;font-size:11px}
.marketplace-ai-score-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.marketplace-ai-score-grid article{display:grid;grid-template-columns:20px 1fr;align-items:center;gap:7px;padding:10px}.marketplace-ai-score-grid article>svg{width:18px;color:#4ade80}.marketplace-ai-score-grid article>span{grid-column:1/-1;color:var(--muted);font-size:10px}.marketplace-ai-score-grid article>strong{font-size:20px;color:#4ade80}.marketplace-ai-score-grid article>strong small{color:var(--muted);font-size:9px}.marketplace-ai-score-grid article.warning>svg,.marketplace-ai-score-grid article.warning>strong{color:#f4c542}.marketplace-ai-score-grid article.danger>svg,.marketplace-ai-score-grid article.danger>strong{color:#fb7185}
.marketplace-ai-dashboard{display:grid;grid-template-columns:1.15fr .95fr 1fr .72fr;gap:10px;padding:0 12px 12px}.marketplace-ai-card{padding:13px;border:1px solid var(--line);border-radius:7px;background:#121c29}.marketplace-ai-card h3{margin:0 0 12px;font-size:14px}.marketplace-ai-recommendations article{display:grid;grid-template-columns:66px 24px 1fr;align-items:start;gap:8px;padding:9px 0;border-top:1px solid rgba(148,163,184,.13)}.marketplace-ai-recommendations article:first-of-type{border-top:0}.marketplace-ai-recommendations b{padding:4px 5px;border-radius:4px;text-align:center;background:rgba(245,158,11,.1);color:#fbbf24;font-size:9px}.marketplace-ai-recommendations b.high{background:rgba(248,113,113,.1);color:#f87171}.marketplace-ai-recommendations b.low{background:rgba(96,165,250,.1);color:#60a5fa}.marketplace-ai-recommendations svg{width:17px;color:#f4c542}.marketplace-ai-recommendations strong{display:block;font-size:11px}.marketplace-ai-recommendations small{display:block;margin-top:3px;color:var(--muted);font-size:9px;line-height:1.4}.marketplace-ai-middle{display:grid;gap:10px}.marketplace-ai-middle>.marketplace-ai-card>p{display:flex;justify-content:space-between;gap:10px;margin:0;padding:7px 0;border-top:1px solid rgba(148,163,184,.13);font-size:10px}.marketplace-ai-middle>.marketplace-ai-card>p b{color:var(--muted);white-space:nowrap}.marketplace-ai-reviews>div{padding:9px;border-radius:5px}.marketplace-ai-reviews>div+div{margin-top:7px}.marketplace-ai-reviews .positive{background:rgba(34,197,94,.08);color:#86efac}.marketplace-ai-reviews .negative{background:rgba(239,68,68,.08);color:#fca5a5}.marketplace-ai-reviews strong{font-size:10px}.marketplace-ai-reviews p{margin:4px 0;font-size:9px}.marketplace-ai-seo>span{display:block;margin:12px 0 5px;color:var(--muted);font-size:10px}.marketplace-ai-seo>p{margin:0;padding:9px;border-radius:5px;background:#0d1621;font-size:10px;line-height:1.45}.marketplace-ai-seo>p.alert{color:#fca5a5;background:rgba(239,68,68,.08)}.marketplace-ai-seo>p.recommended{color:#bbf7d0;background:rgba(34,197,94,.08)}.marketplace-ai-keywords{display:flex;flex-wrap:wrap;gap:5px}.marketplace-ai-keywords b{padding:5px 7px;border:1px solid var(--line);border-radius:12px;font-size:9px;font-weight:500}.marketplace-ai-facts p{display:flex;justify-content:space-between;gap:10px;margin:0;padding:8px 0;border-bottom:1px solid rgba(148,163,184,.13);font-size:10px}.marketplace-ai-facts p span{color:var(--muted)}.marketplace-ai-facts a{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:13px;padding:8px;border:1px solid rgba(96,165,250,.35);border-radius:5px;color:#60a5fa;font-size:10px}.marketplace-ai-facts a svg{width:13px}
.marketplace-ai-waiting{min-height:360px;display:grid;place-content:center;justify-items:center;padding:40px;text-align:center}.marketplace-ai-waiting>svg{width:42px;height:42px;color:#f4c542}.marketplace-ai-waiting h3{margin:14px 0 6px}.marketplace-ai-waiting p{max-width:650px;margin:0;color:var(--muted)}.marketplace-ai-history{display:flex;align-items:stretch;gap:7px;overflow:auto;padding:12px;border-top:1px solid var(--line)}.marketplace-ai-history>h3{flex:0 0 auto;margin:auto 10px auto 0;font-size:12px}.marketplace-ai-history a{min-width:150px;display:grid;gap:3px;padding:8px 10px;border:1px solid var(--line);border-radius:6px;background:#111b28}.marketplace-ai-history a.active{border-color:rgba(214,162,31,.5);background:rgba(214,162,31,.08)}.marketplace-ai-history a span{color:#f4c542;font-size:9px;font-weight:900}.marketplace-ai-history a strong{font-size:11px}.marketplace-ai-history a small{color:var(--muted);font-size:9px}
body:not(.admin-dark) .marketplace-ai-analytics{background:#fff}body:not(.admin-dark) .marketplace-ai-query,body:not(.admin-dark) .marketplace-ai-analytics-head{background:#f7f9fb}body:not(.admin-dark) .marketplace-ai-query input,body:not(.admin-dark) .marketplace-ai-overview>article,body:not(.admin-dark) .marketplace-ai-score-grid article,body:not(.admin-dark) .marketplace-ai-card,body:not(.admin-dark) .marketplace-ai-history a{background:#fff}
@media(max-width:1180px){.marketplace-ai-overview{grid-template-columns:1fr 1fr}.marketplace-ai-score-grid{grid-column:1/-1}.marketplace-ai-dashboard{grid-template-columns:1fr 1fr}.marketplace-ai-query{grid-template-columns:1fr 160px}.marketplace-ai-query>small{grid-column:1/-1}}@media(max-width:720px){.marketplace-ai-query,.marketplace-ai-overview,.marketplace-ai-dashboard{grid-template-columns:1fr}.marketplace-ai-score-grid{grid-template-columns:1fr 1fr}.marketplace-ai-analytics-head{align-items:flex-start;flex-direction:column}.marketplace-ai-product{grid-template-columns:88px 1fr}.marketplace-ai-product-image{height:88px}}
@media(max-width:820px){.marketplace-report-grid{grid-template-columns:1fr}.marketplace-reports-head{align-items:flex-start;flex-direction:column}.marketplace-report-upload{grid-template-columns:1fr}.marketplace-report-upload button{width:100%}}
@media(max-width:820px){.marketplace-report-batch-grid{grid-template-columns:1fr}.marketplace-report-batch-actions{align-items:stretch;flex-direction:column}.marketplace-report-batch-actions button{justify-content:center;width:100%}}

/* ERP logo uses the WB report accent */
.topbar h1,.topbar h1 span{color:#edc452}
body.admin-dark .topbar h1,body.admin-dark .topbar h1 span{color:#edc452;text-shadow:0 0 16px rgba(214,162,31,.14)}

/* ==========================================================
   FECOR ERP DESIGN SYSTEM
   Canonical reference: B2B / Potential clients
   ========================================================== */
:root{
  --fecor-gold:#d6a21f;--fecor-gold-text:#a97908;--fecor-gold-bright:#edc452;
  --fecor-gold-soft:rgba(214,162,31,.08);--fecor-gold-line:rgba(214,162,31,.34);
  --fecor-control:35px;--fecor-radius:6px;--fecor-icon:15px;
  --accent:#b98510;--accent-dark:#946b08;
}
body.admin-dark{
  --fecor-gold-text:#edc452;--accent:#d6a21f;--accent-dark:#edc452;
  --card:#151b24;--line:#303846;--muted:#9da8b7;
}
body{font-size:13px}
body.admin-dark a{color:var(--fecor-gold-bright)}
a{color:var(--fecor-gold-text)}
main.page{font-size:12px}

/* Header and navigation */
.topbar{min-height:62px;padding-top:10px;padding-bottom:10px}
.topbar h1{font-size:22px;letter-spacing:-.02em}
.topbar p{font-size:11px}
.userbar{gap:10px;font-size:11px}
.side-nav nav a,.side-nav-tree summary,.side-nav-subtree summary{min-height:34px;border:1px solid transparent;border-radius:6px;font-size:12px}
.side-nav nav a>svg,.side-nav-tree summary>svg,.side-nav-subtree summary>svg,.side-nav-bottom summary svg{width:var(--fecor-icon);height:var(--fecor-icon);stroke-width:1.7}
.side-nav nav a:hover,.side-nav nav a.active,.side-nav-tree.active>summary,.side-nav-tree summary:hover{
  border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft);color:var(--fecor-gold-text)
}
body.admin-dark .side-nav nav a:hover,body.admin-dark .side-nav nav a.active,
body.admin-dark .side-nav-tree.active>summary,body.admin-dark .side-nav-tree summary:hover{
  border-color:rgba(214,162,31,.45);background:rgba(214,162,31,.08);color:var(--fecor-gold-bright)
}
.side-nav nav a:hover>svg,.side-nav nav a.active>svg,.side-nav-tree.active>summary>svg{color:var(--fecor-gold-text)}
body.admin-dark .side-nav nav a:hover>svg,body.admin-dark .side-nav nav a.active>svg,body.admin-dark .side-nav-tree.active>summary>svg{color:var(--fecor-gold-bright)}
.side-nav-tree div a.active,.site-fecor-tabs a.active{border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}
body.admin-dark .side-nav-tree div a.active,body.admin-dark .site-fecor-tabs a.active{border-color:rgba(214,162,31,.45);background:rgba(214,162,31,.08);color:var(--fecor-gold-bright)}
.side-menu-toggle:hover,body.admin-dark .side-menu-toggle:hover{border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}

/* Common controls */
main.page input:not([type=checkbox]):not([type=radio]):not([type=file]),
main.page select,main.page textarea{
  min-height:var(--fecor-control);padding:7px 9px;border:1px solid #cfd7e2;border-radius:var(--fecor-radius);
  background:#fff;color:var(--text);font-size:12px;line-height:1.2;box-shadow:none;
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease
}
body.admin-dark main.page input:not([type=checkbox]):not([type=radio]):not([type=file]),
body.admin-dark main.page select,body.admin-dark main.page textarea{
  border-color:#3b4655;background:#0d141d;color:#e5e9ef
}
main.page input:not([type=checkbox]):not([type=radio]):not([type=file]):hover,
main.page select:hover,main.page textarea:hover{border-color:#8794a5}
body.admin-dark main.page input:not([type=checkbox]):not([type=radio]):not([type=file]):hover,
body.admin-dark main.page select:hover,body.admin-dark main.page textarea:hover{border-color:#536174}
main.page input:not([type=checkbox]):not([type=radio]):not([type=file]):focus,
main.page select:focus,main.page textarea:focus{
  border-color:rgba(214,162,31,.74);outline:none;box-shadow:0 0 0 3px rgba(214,162,31,.09)
}
main.page label{font-size:11px}
main.page input::placeholder,main.page textarea::placeholder{color:#8792a2}
body.admin-dark main.page input::placeholder,body.admin-dark main.page textarea::placeholder{color:#687386}

/* Common buttons */
.button,.mini-link,.export-link,.filter-reset{
  width:auto;min-height:34px;padding:6px 9px;border:1px solid rgba(184,133,13,.55);border-radius:var(--fecor-radius);
  background:rgba(214,162,31,.08);color:#765504;font-size:11px;font-weight:700;line-height:1.2;box-shadow:none
}
.button.compact{min-height:34px;padding:6px 9px}
.button:hover,.mini-link:hover,.export-link:hover,.filter-reset:hover{
  border-color:var(--fecor-gold);background:rgba(214,162,31,.13);color:#765504
}
body.admin-dark .button,body.admin-dark .mini-link,body.admin-dark .export-link,body.admin-dark .filter-reset{
  border-color:rgba(214,162,31,.64);background:transparent;color:var(--fecor-gold-bright)
}
body.admin-dark .button:hover,body.admin-dark .mini-link:hover,body.admin-dark .export-link:hover,body.admin-dark .filter-reset:hover{
  border-color:var(--fecor-gold);background:rgba(214,162,31,.08);color:var(--fecor-gold-bright)
}
.button.secondary,.mini-link.secondary,body.admin-dark .button.secondary,body.admin-dark .mini-link.secondary{
  border-color:#465161;background:transparent;color:var(--text)
}
.button.secondary:hover,.mini-link.secondary:hover,body.admin-dark .button.secondary:hover,body.admin-dark .mini-link.secondary:hover{
  border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft);color:var(--fecor-gold-text)
}
main.page button svg,main.page .button svg,main.page a svg{width:var(--fecor-icon);height:var(--fecor-icon);stroke-width:1.7}

/* Panels, cards and section headers */
.table-section,.panel,.admin-command-panel,
.site-fecor-admin,.site-fecor-card,.communication-subpanel,.quality-item,.action-item,.card{
  border-radius:8px;border-color:rgba(184,133,13,.22);box-shadow:none
}
.table-section,.sales-store-section{border:1px solid rgba(184,133,13,.24);box-shadow:none;margin-bottom:16px}
body.admin-dark .table-section,body.admin-dark .sales-store-section{border-color:rgba(214,162,31,.22);box-shadow:none}
.section-head,.panel-title-row,.inline-table-head{min-height:52px;padding:9px 14px;border-bottom-color:var(--line)}
.section-head h2,.panel-title-row h2{font-size:16px;font-weight:700}
.section-head span,.panel-title-row span{font-size:11px}
.cards{gap:9px;margin-bottom:16px}
.card{min-height:92px;padding:12px}
.card span{font-size:11px}.card strong{font-size:19px}.card strong.compact-value{font-size:16px}.card small{font-size:10px}
body.admin-dark .card.primary{border-color:rgba(214,162,31,.32);background:rgba(214,162,31,.07);color:var(--fecor-gold-bright)}
.card.primary{border-color:rgba(184,133,13,.3);background:rgba(214,162,31,.06)}
.filter-link.active,body.admin-dark .filter-link.active{border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}
.module-access-control summary,.account-switcher summary{
  border-color:var(--fecor-gold-line);border-radius:6px;background:var(--fecor-gold-soft);color:var(--fecor-gold-text)
}

/* Tables */
.table-wrap,.compact-table-wrap,.site-fecor-products-wrap{border-color:var(--line)}
table th,table td{padding:8px 8px;border-bottom-color:var(--line);font-size:11px}
table th{background:#eef2f7;color:#354154;font-size:10px;font-weight:700}
body.admin-dark table th{background:#131d2b;color:#cad2de}
table tbody tr:hover td,table tbody tr.active td{background:rgba(214,162,31,.06)}
body.admin-dark table tbody tr:hover td,body.admin-dark table tbody tr.active td{background:rgba(214,162,31,.07)}
.table-sort-button,.top-products-sort-button,.top-products-sum-button,.stock-filter-button{
  min-height:30px;border-color:transparent;border-radius:5px;background:transparent;color:inherit;font-size:10px
}
.table-sort-button:hover,.table-sort-button.active,.top-products-sort-button:hover,.top-products-sort-button.active,
.top-products-sum-button:hover,.top-products-sum-button.active,.stock-filter-button:hover,.stock-filter-button.active{
  border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft);color:var(--fecor-gold-text)
}

/* Badges: geometry unified, semantic colors retained */
.badge,.status-pill,.marketplace-chip{
  min-height:24px;padding:4px 7px;border:1px solid currentColor;border-radius:4px;background:transparent;font-size:10px;font-weight:700
}
body.admin-dark .badge.ok,.badge.ok{border-color:rgba(59,198,112,.48);background:rgba(59,198,112,.08);color:#4fb979}
body.admin-dark .badge.warn,body.admin-dark .badge.skipped,.badge.warn,.badge.skipped{border-color:rgba(225,167,35,.5);background:rgba(225,167,35,.08);color:#b17d08}
body.admin-dark .badge.error,.badge.error{border-color:rgba(224,75,75,.48);background:rgba(224,75,75,.08);color:#d15858}
body.admin-dark .badge.never,body.admin-dark .badge.muted,.badge.never,.badge.muted{border-color:#657081;background:transparent;color:var(--muted)}

/* Filters, popovers, notices */
.column-filter summary span,.task-filter-tabs,.filter-link{border-radius:5px}
.column-filter-menu,.module-access-popover,.account-switcher-menu,.settings-menu{
  border-color:var(--fecor-gold-line);border-radius:7px;box-shadow:0 18px 48px rgba(0,0,0,.28)
}
.notice{padding:8px 10px;border-radius:6px;font-size:11px}
.action-list{gap:8px;padding:12px 14px}
.action-item{padding:10px;gap:6px}.action-item span{font-size:11px}.action-item strong{font-size:14px}.action-item small{font-size:10px}

/* Site FECOR brought into the canonical gold system */
.site-fecor-card h3,.site-fecor-form-title,.site-fecor-tabs strong{color:var(--fecor-gold-text)}
body.admin-dark .site-fecor-card h3,body.admin-dark .site-fecor-form-title,body.admin-dark .site-fecor-tabs strong{color:var(--fecor-gold-bright)}
.site-fecor-form .button.compact{
  border-color:rgba(184,133,13,.55);background:rgba(214,162,31,.08);color:#765504
}
body.admin-dark .site-fecor-form .button.compact{
  border-color:rgba(214,162,31,.64);background:transparent;color:var(--fecor-gold-bright)
}
.site-fecor-form .button.compact:hover,body.admin-dark .site-fecor-form .button.compact:hover{
  border-color:var(--fecor-gold);background:rgba(214,162,31,.1);color:var(--fecor-gold-text)
}
.site-fecor-upload span,.site-fecor-form .checkline,.site-fecor-media-file{
  border-color:var(--fecor-gold-line);color:var(--fecor-gold-text)
}
.site-fecor-upload span:hover,.site-fecor-form .checkline:hover{background:var(--fecor-gold-soft);border-color:rgba(214,162,31,.55)}
.site-fecor-form .checkline input[type=checkbox]:checked{background:var(--fecor-gold);border-color:var(--fecor-gold)}
.site-fecor-form .checkline:has(input[type=checkbox]:checked){background:var(--fecor-gold-soft);border-color:rgba(214,162,31,.55);color:var(--fecor-gold-text)}
.site-fecor-list button:hover,.site-fecor-list button.active,.site-fecor-products-wrap tbody tr[data-site-product-row]:hover td,.site-fecor-products-wrap tbody tr[data-site-product-row].active td{
  border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft);color:var(--fecor-gold-text)
}

/* Drawers and dialogs */
dialog{border-color:var(--fecor-gold-line)}
dialog::backdrop{background:rgba(4,7,11,.72);backdrop-filter:blur(3px)}
.site-customer-dialog{border-color:var(--fecor-gold-line)}
.site-customer-edit-form header small{color:var(--fecor-gold-text)}
.site-customer-form-grid input,.site-customer-form-grid select,.site-customer-form-grid textarea{min-height:34px;border-radius:4px;font-size:12px}
.site-customer-edit-form footer button[type=submit]{
  border:1px solid #e0ad2b;background:linear-gradient(180deg,#e7ba45,#c59013);color:#151009
}

/* Charts and accents */
.bar{background:linear-gradient(180deg,#e7ba45,#b98510)}
.chart-grid-line i{border-top-color:var(--line)}
.turnover-target-fill{background:linear-gradient(90deg,#b98510,#edc452)}
.top-products-rank,.task-icon{border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}

/* Responsive density */
@media(max-width:1100px){.section-head,.panel-title-row{padding:8px 10px}.cards{gap:7px}}
@media(max-width:700px){main.page{font-size:11px}.topbar{min-height:56px}.topbar h1{font-size:19px}.button,.button.compact{min-height:32px;padding:5px 8px}}

/* FECOR design-system cleanup */
:root{--fecor-soft-green:var(--fecor-gold);--fecor-soft-green-strong:#b98510;--fecor-soft-green-bg:var(--fecor-gold-soft)}
.side-nav{gap:8px;padding:12px 9px}.side-nav nav{gap:4px}.side-nav nav a{padding:6px 9px}.side-nav nav a strong,.side-nav-tree summary strong,.side-nav-subtree>summary strong{font-size:12px}.side-menu-toggle{height:34px;padding:0 9px;border-radius:6px;font-size:12px}.side-settings summary{height:38px;padding:0 9px;border-radius:6px;font-size:12px}
.account-switcher-row:hover,.account-switcher-row.active{border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft)}body.admin-dark .account-switcher-row:hover,body.admin-dark .account-switcher-row.active{border-color:rgba(214,162,31,.45);background:rgba(214,162,31,.08)}
.module-access-users label:hover{border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft)}
.settings-password-form button:hover{border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}
body.admin-dark .site-message-actions .site-message-read{color:#59dc8e;border-color:rgba(59,198,112,.48);background:transparent}
body.admin-dark .site-message-actions .site-message-read:hover{color:#8ce2ac;background:rgba(59,198,112,.08)}

/* Keep navigation items clear of the collapse corner */
body:not(.side-menu-collapsed) .side-nav nav{padding-right:22px}
body.side-menu-collapsed .side-nav nav{padding-right:0}
@media(min-width:1101px){.side-nav nav{overflow-x:hidden}}

/* Employee card contrast in dark theme */
body.admin-dark .employee-profile p{color:#c4ccd8}
body.admin-dark .employee-profile>div>span{color:#b8c3d2}
body.admin-dark .employee-profile>div>span svg{color:#91a3ba;stroke:#91a3ba}
body.admin-dark .employee-summary dt,body.admin-dark .employee-terms dt,body.admin-dark .employee-info-grid dt{color:#aeb9c8}
body.admin-dark .employee-summary dd,body.admin-dark .employee-terms dd,body.admin-dark .employee-info-grid dd{color:#e5e9ef}
body.admin-dark .employee-terms small,body.admin-dark .employee-notes p{color:#b8c3d2}

/* Employee details after removing the additional-information card */
.employee-info-grid{grid-template-columns:1fr 1fr}
.employee-info-grid .employee-notes{grid-column:1/-1}
.employee-info-grid>section:last-of-type{grid-column:auto}
@media(max-width:820px){.employee-info-grid{grid-template-columns:1fr}.employee-info-grid .employee-notes{grid-column:auto}}

.site-order-requisites-cell{min-width:108px;vertical-align:middle}
.site-order-requisites{position:relative}
.site-order-requisites summary{width:max-content;padding:6px 10px;list-style:none;cursor:pointer;border:1px solid rgba(214,162,31,.45);border-radius:7px;background:rgba(214,162,31,.08);color:#f2c94c;font-size:11px;font-weight:800;white-space:nowrap}
.site-order-requisites summary::-webkit-details-marker{display:none}
.site-order-requisites summary:hover{background:rgba(214,162,31,.15)}
.site-order-requisites[open] summary{margin-bottom:8px}
.site-order-requisites>div{min-width:230px;max-width:340px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.site-order-delivery{display:grid;gap:4px;min-width:190px}.site-order-delivery small,.site-order-delivery span{color:var(--muted);font-size:12px}.site-order-invoices{display:grid;gap:8px;min-width:220px}.site-order-invoices>div{display:grid}.site-order-invoices small{color:var(--muted)}.site-order-invoices summary{cursor:pointer;color:#d5a62a;font-weight:700}.site-order-invoice-form{display:grid;gap:7px;margin-top:10px;padding:10px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(0,0,0,.16)}.site-order-invoice-form label{display:grid;gap:3px;font-size:11px;color:var(--muted)}.site-order-invoice-form input,.site-order-invoice-form select{min-width:0;width:100%}.site-order-invoice-form button{border:0;border-radius:8px;padding:8px 10px;background:#d5a62a;color:#17130a;font-weight:800;cursor:pointer}.site-order-unit-prices{display:grid;gap:8px;min-width:120px}.site-order-unit-prices>div{display:grid;gap:2px}.site-order-unit-prices strong{white-space:nowrap}.site-order-unit-prices small{color:var(--muted)}.site-order-invoice-row{display:flex!important;align-items:center;justify-content:space-between;gap:10px;padding:7px 8px;border:1px solid rgba(255,255,255,.1);border-radius:8px}.site-order-invoice-row>div{display:grid}.site-order-invoice-delete{width:28px;height:28px;padding:0;border:1px solid rgba(255,105,105,.35);border-radius:7px;background:rgba(255,105,105,.08);color:#ff8585;font-size:18px;line-height:1;cursor:pointer}.site-order-invoice-delete:hover{background:rgba(255,105,105,.18);color:#fff}

/* Employee vacations */
.employee-tabs button{width:auto;padding:13px 15px;border:0;background:transparent;color:var(--muted);font:inherit;font-size:12px;white-space:nowrap}.employee-tabs button:hover,.employee-tabs button.active{color:#edc452;background:rgba(214,162,31,.05)}.employee-tabs button.active{border-bottom:2px solid #d6a21f;font-weight:700}.employee-vacations{border:1px solid var(--line);border-radius:7px;background:rgba(20,28,39,.72);overflow:hidden}.employee-vacations>header{padding:12px 15px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.employee-vacations h3,.employee-vacations p{margin:0}.employee-vacations p{color:var(--muted);font-size:11px}.employee-vacation-table{overflow:auto}.employee-vacation-table table{width:100%;min-width:760px}.employee-vacation-table td strong,.employee-vacation-table td small{display:block}.employee-vacation-table td small{color:var(--muted)}.vacation-status{padding:4px 7px;border:1px solid;border-radius:4px;font-size:10px;font-weight:700}.vacation-status.planned{color:#68baf4}.vacation-status.approved{color:#59dc8e}.vacation-status.completed{color:#aeb9c8}.vacation-status.cancelled{color:#ff8585}.employee-vacation-table button{width:30px;height:30px;padding:0;background:transparent;color:var(--muted)}.vacation-empty{text-align:center!important;padding:28px!important;color:var(--muted)}.employee-vacations>footer{padding:10px 15px;display:flex;gap:7px;border-top:1px solid var(--line);color:var(--muted);font-size:10px}.employee-vacations>footer svg{color:#edc452}.employee-vacation-notice{margin:10px;padding:8px;background:rgba(89,220,142,.08);color:#59dc8e}.vacation-dialog{width:min(760px,calc(100vw - 28px))}.vacation-form-grid output{min-height:35px;padding:8px;border:1px solid var(--line);border-radius:6px;color:#edc452}@media(max-width:700px){.vacation-form-grid{grid-template-columns:1fr}}

/* Employee vacations  canonical FECOR design system */
.employee-tabs{
  gap:4px;margin:12px 0 14px;padding:0;border-bottom:1px solid var(--line)
}
.employee-tabs button{
  width:auto;min-height:34px;margin:0;padding:7px 10px;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid transparent;border-bottom:2px solid transparent;border-radius:6px 6px 0 0;
  background:transparent;color:var(--muted);font-size:11px;font-weight:600;line-height:1.2;
  box-shadow:none
}
.employee-tabs button:hover{
  border-color:var(--fecor-gold-line);border-bottom-color:var(--fecor-gold-line);
  background:var(--fecor-gold-soft);color:var(--fecor-gold-text)
}
.employee-tabs button.active{
  border-color:var(--fecor-gold-line);border-bottom-color:var(--fecor-gold);
  background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font-weight:700
}
body.admin-dark .employee-tabs button:hover,
body.admin-dark .employee-tabs button.active{color:var(--fecor-gold-bright)}

.employee-vacations{
  border:1px solid rgba(184,133,13,.24);border-radius:8px;
  background:var(--card);box-shadow:none
}
body.admin-dark .employee-vacations{
  border-color:rgba(214,162,31,.22);background:#151b24
}
.employee-vacations>header{
  min-height:52px;padding:9px 14px;border-bottom:1px solid var(--line);
  background:transparent
}
.employee-vacations>header h3{margin:0 0 2px;color:var(--text);font-size:16px;font-weight:700}
.employee-vacations>header p{font-size:10px}
.employee-vacations .employee-add-button{
  min-height:34px;padding:6px 9px;border:1px solid rgba(214,162,31,.64);
  border-radius:6px;background:transparent;color:var(--fecor-gold-text);font-size:11px
}
body.admin-dark .employee-vacations .employee-add-button{color:var(--fecor-gold-bright)}
.employee-vacations .employee-add-button:hover{
  border-color:var(--fecor-gold);background:var(--fecor-gold-soft)
}
.employee-vacation-table{border:0}
.employee-vacation-table table{border-collapse:collapse}
.employee-vacation-table th,.employee-vacation-table td{
  height:auto;padding:8px;border-bottom:1px solid var(--line);font-size:11px
}
.employee-vacation-table th{
  background:#eef2f7;color:#354154;font-size:10px;font-weight:700;text-transform:none
}
body.admin-dark .employee-vacation-table th{background:#131d2b;color:#cad2de}
.employee-vacation-table tbody tr:hover td{background:var(--fecor-gold-soft)}
.employee-vacation-table td strong{color:var(--text);font-size:11px}
.employee-vacation-table td small{margin-top:3px;font-size:10px}
.vacation-status{
  min-height:24px;padding:4px 7px;display:inline-flex;align-items:center;
  border:1px solid currentColor;border-radius:4px;background:transparent;font-size:10px;font-weight:700
}
.employee-vacation-table button[data-vacation-edit]{
  width:30px;min-width:30px;height:30px;min-height:30px;padding:0;
  border:1px solid transparent;border-radius:5px;background:transparent;color:var(--muted)
}
.employee-vacation-table button[data-vacation-edit]:hover{
  border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft);color:var(--fecor-gold-text)
}
body.admin-dark .employee-vacation-table button[data-vacation-edit]:hover{color:var(--fecor-gold-bright)}
.employee-vacations>footer{
  min-height:38px;padding:8px 14px;background:transparent;font-size:10px
}
.employee-vacation-notice{
  margin:8px 14px;padding:7px 9px;border:1px solid rgba(59,198,112,.35);
  border-radius:6px;background:rgba(59,198,112,.08);font-size:11px
}
.employee-vacation-notice.error{border-color:rgba(248,113,113,.45);background:rgba(239,68,68,.08);color:#ef6666}
.vacation-document-link{max-width:180px;display:inline-flex;align-items:center;gap:6px;color:#168a60;font-size:10px;font-weight:700;text-decoration:none}
body.admin-dark .vacation-document-link{color:#67ddb0}
.vacation-document-link svg{width:15px;height:15px;flex:0 0 15px}
.vacation-document-link span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vacation-document-link:hover{text-decoration:underline}
.vacation-document-empty{color:var(--muted)}

.vacation-dialog{
  width:min(720px,calc(100vw - 28px));border:1px solid var(--fecor-gold-line);
  border-radius:8px;background:#f7f9fb;color:#17202c;box-shadow:0 24px 80px rgba(0,0,0,.42)
}
body.admin-dark .vacation-dialog{
  background:linear-gradient(180deg,rgba(20,28,39,.99),rgba(12,18,26,.99));
  color:#e5e9ef;box-shadow:0 24px 80px rgba(0,0,0,.55)
}
.vacation-dialog .employee-form{padding:18px}
.vacation-dialog .employee-form header{margin-bottom:14px}
.vacation-dialog .employee-form header small{color:var(--fecor-gold-text);font-size:10px}
body.admin-dark .vacation-dialog .employee-form header small{color:var(--fecor-gold-bright)}
.vacation-dialog .employee-form header h3{margin:3px 0;font-size:19px}
.vacation-form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.vacation-form-grid label{gap:4px;color:var(--muted);font-size:10px}
.vacation-form-grid input,.vacation-form-grid select,.vacation-form-grid textarea{
  min-height:35px;padding:7px 9px;border:1px solid #cfd7e2;border-radius:6px;
  background:#fff;color:var(--text);font-size:12px;box-shadow:none
}
body.admin-dark .vacation-form-grid input,
body.admin-dark .vacation-form-grid select,
body.admin-dark .vacation-form-grid textarea{
  border-color:#3b4655;background:#0d141d;color:#e5e9ef
}
.vacation-form-grid input:focus,.vacation-form-grid select:focus,.vacation-form-grid textarea:focus{
  border-color:rgba(214,162,31,.74);outline:none;box-shadow:0 0 0 3px rgba(214,162,31,.09)
}
.vacation-document-field small{color:var(--muted);font-size:9px;line-height:1.35}
.vacation-document-field input[type=file]{padding:5px 7px}
.vacation-form-grid output{
  min-height:35px;padding:7px 9px;border:1px solid var(--fecor-gold-line);
  border-radius:6px;background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font-size:12px
}
body.admin-dark .vacation-form-grid output{color:var(--fecor-gold-bright)}
.vacation-dialog .employee-form footer{margin-top:14px}
.vacation-dialog .employee-form footer button{
  width:auto;min-height:34px;padding:6px 9px;border-radius:6px;font-size:11px
}
.vacation-dialog .employee-form footer .employee-primary{
  border:1px solid rgba(214,162,31,.64);background:transparent;color:var(--fecor-gold-text)
}
body.admin-dark .vacation-dialog .employee-form footer .employee-primary{color:var(--fecor-gold-bright)}
.vacation-dialog .employee-form footer .employee-primary:hover{
  border-color:var(--fecor-gold);background:var(--fecor-gold-soft)
}
@media(max-width:700px){
  .vacation-form-grid{grid-template-columns:1fr}
  .employee-tabs button{padding:6px 8px}
  .employee-vacations>header{align-items:center}
}

/* Employee details  exact legacy FECOR tab/card presentation */
.employee-tabs{
  display:flex;align-items:stretch;gap:18px;margin:14px 0 32px;padding:0;
  border-bottom:1px solid #354152;overflow-x:auto;background:transparent
}
.employee-tabs button,
body.admin-dark .employee-tabs button,
body:not(.admin-dark) .employee-tabs button{
  width:auto;min-height:58px;margin:0;padding:17px 28px 15px;
  display:inline-flex;align-items:center;justify-content:center;
  border:0;border-bottom:3px solid transparent;border-radius:0;
  background:transparent;color:#a6afbd;font-size:15px;font-weight:500;
  line-height:1.2;white-space:nowrap;box-shadow:none
}
.employee-tabs button:hover,
body.admin-dark .employee-tabs button:hover,
body:not(.admin-dark) .employee-tabs button:hover{
  border:0;border-bottom:3px solid rgba(214,162,31,.48);
  background:transparent;color:#d8dee8
}
.employee-tabs button.active,
body.admin-dark .employee-tabs button.active,
body:not(.admin-dark) .employee-tabs button.active{
  border:0;border-bottom:3px solid #d6a21f;
  background:transparent;color:#edc452;font-weight:700
}
.employee-info-grid{gap:20px}
.employee-info-grid>section,
body.admin-dark .employee-info-grid>section{
  padding:26px 28px;border:1px solid #344153;border-radius:8px;
  background:#151c27;box-shadow:none
}
.employee-info-grid>section:hover,
body.admin-dark .employee-info-grid>section:hover{border-color:#435269}
.employee-info-grid h3{
  margin:0 0 26px;color:#eef2f8;font-size:18px;font-weight:700
}
.employee-info-grid dl{
  grid-template-columns:minmax(150px,1fr) minmax(145px,1fr);
  gap:18px 18px
}
.employee-info-grid dt{color:#8290a5;font-size:13px}
.employee-info-grid dd{color:#eef2f8;font-size:13px}
.employee-notes p{font-size:13px}
body:not(.admin-dark) .employee-tabs{border-bottom-color:#dce4ef}
body:not(.admin-dark) .employee-tabs button{color:#68778e}
body:not(.admin-dark) .employee-tabs button:hover{color:#946b08}
body:not(.admin-dark) .employee-tabs button.active{color:#a97908;border-bottom-color:#d6a21f}
body:not(.admin-dark) .employee-info-grid>section{
  border-color:#dce4ef;background:#fff
}
body:not(.admin-dark) .employee-info-grid h3,
body:not(.admin-dark) .employee-info-grid dd{color:#152238}
body:not(.admin-dark) .employee-info-grid dt{color:#68778e}
@media(max-width:900px){
  .employee-tabs{gap:4px;margin-bottom:20px}
  .employee-tabs button,body.admin-dark .employee-tabs button,body:not(.admin-dark) .employee-tabs button{
    min-height:48px;padding:13px 16px 11px;font-size:13px
  }
  .employee-info-grid>section{padding:20px}
}

/* Compact employee section transitions */
.employee-tabs button,
body.admin-dark .employee-tabs button,
body:not(.admin-dark) .employee-tabs button{
  min-height:44px;padding:11px 18px 10px;font-size:12px;line-height:1.15
}
@media(max-width:900px){
  .employee-tabs button,
  body.admin-dark .employee-tabs button,
  body:not(.admin-dark) .employee-tabs button{
    min-height:40px;padding:9px 13px 8px;font-size:11px
  }
}

/* Employee documents */
.employee-documents{display:grid;gap:18px;padding:22px;border:1px solid #344154;border-radius:8px;background:#1c2532}.employee-documents>header{display:flex;justify-content:space-between}.employee-documents h3{margin:0 0 4px}.employee-documents header p{margin:0;color:#8290a5}.employee-document-upload{display:grid;grid-template-columns:minmax(200px,1fr) minmax(260px,1.3fr) auto;gap:12px;align-items:end;padding:16px;border:1px solid #344154;border-radius:8px;background:#161e29}.employee-document-upload label{display:grid;gap:7px}.employee-document-upload label span{font-size:12px;color:#9aa7ba}.employee-document-upload input{width:100%;min-height:42px;padding:9px 11px;border:1px solid #405069;border-radius:6px;background:#111923;color:#eef2f8}.employee-document-list{display:grid;gap:8px}.employee-document-list article{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 14px;border:1px solid #344154;border-radius:7px;background:#161e29}.employee-document-type{width:38px;height:38px;display:grid;place-items:center;border-radius:7px;background:rgba(214,162,31,.12);color:#edc452}.employee-document-type i{width:20px}.employee-document-list article>div:nth-child(2){display:grid;gap:3px}.employee-document-list small{color:#8290a5}.employee-document-list a{color:#edc452;font-weight:700}.employee-document-empty{margin:0;padding:25px;text-align:center;color:#8290a5}.employee-document-notice{padding:10px 12px;border-radius:6px}.employee-document-notice.ok{background:rgba(73,190,119,.15);color:#71d899}.employee-document-notice.error{background:rgba(226,114,114,.15);color:#f08d8d}body:not(.admin-dark) .employee-documents{background:#fff;border-color:#dce4ef}body:not(.admin-dark) .employee-document-upload,body:not(.admin-dark) .employee-document-list article{background:#f7f9fb;border-color:#dce4ef}body:not(.admin-dark) .employee-document-upload input{background:#fff;border-color:#cfd8e5;color:#152238}@media(max-width:780px){.employee-document-upload{grid-template-columns:1fr}.employee-document-list article{grid-template-columns:40px minmax(0,1fr)}.employee-document-list article>a{grid-column:2}}

/* Employee documents  canonical B2B Potential controls */
.employee-documents{
  gap:14px;padding:16px;border:1px solid var(--line);border-radius:8px;
  background:rgba(20,28,39,.72);box-shadow:none
}
.employee-documents>header{min-height:44px;align-items:center}
.employee-documents h3{margin:0 0 3px;color:var(--text);font-size:16px;font-weight:700}
.employee-documents header p{margin:0;color:var(--muted);font-size:11px}
.employee-document-upload{
  grid-template-columns:minmax(190px,1fr) minmax(250px,1.3fr) max-content;
  gap:10px;align-items:end;padding:12px;border:1px solid var(--line);
  border-radius:7px;background:#111923
}
.employee-document-upload label{min-width:0;gap:5px;margin:0}
.employee-document-upload label span{color:#aeb7c4;font-size:11px}
.employee-document-upload input,
body.admin-dark .employee-document-upload input{
  width:100%;min-width:0;min-height:35px;height:35px;padding:7px 9px;
  border:1px solid #3b4655;border-radius:6px;background:#0d141d;
  color:#e5e9ef;font-size:12px;line-height:1.2;box-shadow:none
}
.employee-document-upload input:hover{border-color:#536174}
.employee-document-upload input:focus{
  border-color:rgba(214,162,31,.74);outline:none;box-shadow:0 0 0 3px rgba(214,162,31,.09)
}
.employee-document-upload input[type=file]{
  padding:0;overflow:hidden;color:#aeb7c4;cursor:pointer
}
.employee-document-upload input[type=file]::file-selector-button{
  height:33px;margin:0 10px 0 0;padding:6px 10px;border:0;
  border-right:1px solid rgba(214,162,31,.34);background:rgba(214,162,31,.09);
  color:#edc452;font:inherit;font-size:11px;font-weight:700;cursor:pointer
}
.employee-document-upload input[type=file]::file-selector-button:hover{
  background:rgba(214,162,31,.15)
}
.employee-document-upload .employee-primary{
  width:auto;min-width:92px;min-height:35px;height:35px;padding:6px 10px;
  border:1px solid rgba(214,162,31,.64);border-radius:6px;
  background:transparent;color:#edc452;font-size:11px;font-weight:700;box-shadow:none
}
.employee-document-upload .employee-primary:hover{
  border-color:#d6a21f;background:rgba(214,162,31,.08);color:#edc452
}
.employee-document-list{gap:7px}
.employee-document-list article{
  grid-template-columns:34px minmax(0,1fr) auto;gap:10px;padding:9px 11px;
  border:1px solid var(--line);border-radius:6px;background:#111923
}
.employee-document-list article:hover{border-color:rgba(214,162,31,.34);background:rgba(214,162,31,.04)}
.employee-document-type{
  width:32px;height:32px;border:1px solid rgba(214,162,31,.28);
  border-radius:6px;background:rgba(214,162,31,.08);color:#edc452
}
.employee-document-type i{width:16px;height:16px}
.employee-document-list strong{font-size:11px}.employee-document-list small{font-size:10px}
.employee-document-list a{
  min-height:30px;padding:5px 8px;display:inline-flex;align-items:center;
  border:1px solid rgba(214,162,31,.45);border-radius:5px;
  color:#edc452;font-size:10px;text-decoration:none
}
.employee-document-list a:hover{background:rgba(214,162,31,.08)}
.employee-document-empty{padding:20px;font-size:11px}
body:not(.admin-dark) .employee-documents{border-color:#dce4ef;background:#fff}
body:not(.admin-dark) .employee-document-upload,
body:not(.admin-dark) .employee-document-list article{border-color:#dce4ef;background:#f7f9fb}
body:not(.admin-dark) .employee-document-upload label span{color:#68778e}
body:not(.admin-dark) .employee-document-upload input{
  border-color:#cfd8e5;background:#fff;color:#152238
}
body:not(.admin-dark) .employee-document-upload input[type=file]::file-selector-button{
  border-right-color:rgba(184,133,13,.32);background:rgba(214,162,31,.08);color:#946b08
}
body:not(.admin-dark) .employee-document-upload .employee-primary{
  border-color:rgba(184,133,13,.55);color:#946b08
}
@media(max-width:900px){
  .employee-document-upload{grid-template-columns:1fr 1fr}
  .employee-document-upload .employee-primary{grid-column:1/-1;width:100%}
}
@media(max-width:620px){
  .employee-documents{padding:12px}
  .employee-document-upload{grid-template-columns:1fr}
  .employee-document-upload .employee-primary{grid-column:auto}
}

/* Align content inside employee document file control */
.employee-document-upload input[type=file],
body.admin-dark .employee-document-upload input[type=file],
body:not(.admin-dark) .employee-document-upload input[type=file]{
  box-sizing:border-box;height:35px;min-height:35px;padding:0;
  font-size:11px;line-height:33px;white-space:nowrap
}
.employee-document-upload input[type=file]::file-selector-button{
  box-sizing:border-box;height:33px;min-height:33px;margin:0 10px 0 0;
  padding:0 11px;vertical-align:top;line-height:33px
}
.employee-document-upload input[name=document_label]{
  box-sizing:border-box;height:35px;min-height:35px;padding-top:0;padding-bottom:0;line-height:33px
}
.employee-document-upload label{align-content:end}
.employee-document-upload label>span{min-height:14px;line-height:14px}

/* Employee document search and editor */
.employee-document-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px}.employee-document-toolbar>label{position:relative;display:block;min-width:260px;max-width:520px;flex:1}.employee-document-toolbar>label svg{position:absolute;left:11px;top:50%;width:15px;height:15px;transform:translateY(-50%);color:var(--muted);pointer-events:none}.employee-document-toolbar input{box-sizing:border-box;width:100%;height:35px;padding:0 12px 0 35px;border:1px solid var(--line);border-radius:6px;background:#111923;color:var(--text);outline:0}.employee-document-toolbar input:focus{border-color:rgba(214,162,31,.65);box-shadow:0 0 0 2px rgba(214,162,31,.08)}.employee-document-toolbar>span{color:var(--muted);font-size:10px;white-space:nowrap}.employee-document-list article[hidden]{display:none}.employee-document-list article nav{display:flex;align-items:center;gap:6px}.employee-document-list article nav a,.employee-document-list article nav button{box-sizing:border-box;min-width:32px;height:30px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:5px 8px;border:1px solid rgba(214,162,31,.4);border-radius:5px;background:transparent;color:#edc452;font:inherit;font-size:10px;cursor:pointer}.employee-document-list article nav svg{width:14px;height:14px}.employee-document-list article nav button{border-color:rgba(52,211,153,.38);color:#6ee7b7;background:rgba(16,185,129,.05)}.employee-document-dialog{width:min(520px,calc(100vw - 28px));padding:0;border:1px solid rgba(52,211,153,.35);border-radius:10px;background:#121b27;color:var(--text);box-shadow:0 24px 70px rgba(0,0,0,.5)}.employee-document-dialog::backdrop{background:rgba(3,8,15,.72);backdrop-filter:blur(4px)}.employee-document-dialog form{display:grid;gap:14px;padding:18px}.employee-document-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid var(--line)}.employee-document-dialog header small{color:#6ee7b7;font-size:9px;text-transform:uppercase;letter-spacing:.1em}.employee-document-dialog h3{margin:3px 0 0;font-size:18px}.employee-document-dialog header button{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--line);border-radius:7px;background:transparent;color:var(--muted);cursor:pointer}.employee-document-dialog header svg{width:16px}.employee-document-dialog label{display:grid;gap:6px}.employee-document-dialog label>span{color:var(--muted);font-size:11px;font-weight:700}.employee-document-dialog input{box-sizing:border-box;width:100%;min-height:40px;padding:8px 11px;border:1px solid var(--line);border-radius:6px;background:#0d1520;color:var(--text)}.employee-document-dialog label small{color:var(--muted);font-size:9px}.employee-document-dialog footer{display:flex;justify-content:flex-end;gap:8px;padding-top:4px}.employee-document-dialog footer button{min-height:36px;padding:7px 13px;border-radius:6px;font-weight:750;cursor:pointer}.employee-document-cancel{border:1px solid var(--line);background:transparent;color:var(--muted)}.employee-document-save{display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(52,211,153,.55);background:rgba(16,185,129,.09);color:#6ee7b7}.employee-document-save svg{width:15px}body:not(.admin-dark) .employee-document-toolbar input,body:not(.admin-dark) .employee-document-dialog input{background:#fff;color:#152238}@media(max-width:620px){.employee-document-toolbar{align-items:stretch;flex-direction:column}.employee-document-toolbar>label{min-width:0;max-width:none}.employee-document-list article nav a span{display:none}.employee-document-dialog footer button{flex:1}}

/* Remove legacy blue focus controls beneath employee tab links */
.employee-tabs button,
.employee-tabs button:hover,
.employee-tabs button:focus,
.employee-tabs button:focus-visible,
.employee-tabs button:active{
  outline:none!important;box-shadow:none!important;
  -webkit-tap-highlight-color:transparent
}
.employee-tabs button:focus-visible{
  color:#edc452!important;border-bottom-color:#d6a21f!important;
  background:transparent!important
}

/* Employee ERP access tree */
.employee-roles{border:1px solid var(--line);border-radius:8px;background:rgba(20,28,39,.72);overflow:hidden}
.employee-roles>header{min-height:56px;padding:10px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}
.employee-roles>header h3{margin:0 0 3px;font-size:16px}.employee-roles>header p{margin:0;color:var(--muted);font-size:10px}
.employee-role-account{padding:6px 8px;display:inline-flex;align-items:center;gap:6px;border:1px solid #465161;border-radius:5px;color:var(--muted);font-size:10px}.employee-role-account.linked{border-color:rgba(89,220,142,.42);color:#59dc8e}
.employee-role-tree{padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.employee-role-tree>section{border:1px solid var(--line);border-radius:7px;background:#111923;overflow:hidden}.employee-role-tree>section>header{min-height:38px;padding:8px 10px;display:flex;align-items:center;gap:7px;border-bottom:1px solid var(--line);color:#dce2ea;font-size:11px}.employee-role-tree>section>header svg{color:#edc452}
.employee-role-tree>section>div{padding:6px;display:grid;gap:4px}.employee-role-tree form{margin:0}.employee-role-tree button{width:100%;min-height:38px;padding:6px 8px;display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:7px;border:1px solid transparent;border-radius:5px;background:transparent;color:#dce2ea;text-align:left}.employee-role-tree button:hover{border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft)}.employee-role-tree button>span{width:22px;height:22px;display:grid;place-items:center;border:1px solid #465161;border-radius:4px;color:var(--muted)}.employee-role-tree button strong{font-size:10px}.employee-role-tree button small{color:var(--muted);font-size:9px}.employee-role-tree form.enabled button{border-color:rgba(214,162,31,.24);background:rgba(214,162,31,.05)}.employee-role-tree form.enabled button>span{border-color:rgba(214,162,31,.55);background:rgba(214,162,31,.12);color:#edc452}.employee-role-tree form.enabled button small{color:#edc452}
.employee-roles-lock{min-height:260px;padding:28px;display:grid;place-items:center;align-content:center;gap:8px;text-align:center}.employee-roles-lock>svg{width:34px;height:34px;color:#edc452}.employee-roles-lock h3,.employee-roles-lock p{margin:0}.employee-roles-lock p{color:var(--muted);font-size:11px}.employee-roles-lock>span{color:#ff8585;font-size:10px}.employee-roles-lock form{width:min(320px,100%);margin-top:8px;display:grid;grid-template-columns:1fr auto;gap:7px}.employee-roles-lock input{min-height:35px}.employee-roles-lock button{width:auto;min-height:35px;padding:6px 10px;border:1px solid rgba(214,162,31,.64);border-radius:6px;background:transparent;color:#edc452;font-size:11px}.employee-roles-lock button:hover{background:var(--fecor-gold-soft)}
body:not(.admin-dark) .employee-roles{background:#fff}body:not(.admin-dark) .employee-role-tree>section{background:#f7f9fb}body:not(.admin-dark) .employee-role-tree>section>header,body:not(.admin-dark) .employee-role-tree button{color:#17202c}
@media(max-width:850px){.employee-role-tree{grid-template-columns:1fr}}@media(max-width:560px){.employee-roles>header{align-items:flex-start;flex-direction:column}.employee-role-tree button{grid-template-columns:24px minmax(0,1fr)}.employee-role-tree button small{grid-column:2}.employee-roles-lock form{grid-template-columns:1fr}.employee-roles-lock button{width:100%}}

/* Compact complete ERP access tree */
.employee-role-tree{
  padding:9px;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px
}
.employee-role-tree>section{border-radius:6px}
.employee-role-tree>section>header{
  min-height:32px;padding:6px 8px;gap:6px;font-size:10px
}
.employee-role-tree>section>header svg{width:14px;height:14px}
.employee-role-tree>section>div{padding:4px;gap:2px}
.employee-role-tree button{
  min-height:30px;padding:4px 6px;grid-template-columns:19px minmax(0,1fr) auto;gap:5px
}
.employee-role-tree button>span{
  width:18px;height:18px;border-radius:3px
}
.employee-role-tree button>span svg{width:12px;height:12px}
.employee-role-tree button strong{font-size:9px;line-height:1.15}
.employee-role-tree button small{font-size:8px;white-space:nowrap}
.employee-roles>header{min-height:48px;padding:8px 11px}
.employee-roles>header h3{font-size:14px}
.employee-role-account{padding:4px 6px;font-size:9px}
@media(max-width:1150px){.employee-role-tree{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.employee-role-tree{grid-template-columns:1fr}.employee-role-tree button{grid-template-columns:19px minmax(0,1fr) auto}.employee-role-tree button small{grid-column:auto}}

/* Role access states: closed red, open green */
.employee-role-tree form:not(.enabled) button{
  border-color:rgba(224,75,75,.42);
  background:rgba(224,75,75,.09)
}
.employee-role-tree form:not(.enabled) button>span{
  border-color:rgba(224,75,75,.58);
  background:rgba(224,75,75,.13);
  color:#ff8585
}
.employee-role-tree form:not(.enabled) button small{color:#ff8585}
.employee-role-tree form:not(.enabled) button:hover{
  border-color:rgba(224,75,75,.72);
  background:rgba(224,75,75,.16)
}
.employee-role-tree form.enabled button{
  border-color:rgba(59,198,112,.48);
  background:rgba(59,198,112,.10)
}
.employee-role-tree form.enabled button>span{
  border-color:rgba(59,198,112,.62);
  background:rgba(59,198,112,.15);
  color:#59dc8e
}
.employee-role-tree form.enabled button small{color:#59dc8e}
.employee-role-tree form.enabled button:hover{
  border-color:rgba(59,198,112,.75);
  background:rgba(59,198,112,.17)
}
body:not(.admin-dark) .employee-role-tree form:not(.enabled) button{
  border-color:rgba(209,72,72,.40);background:rgba(224,75,75,.07)
}
body:not(.admin-dark) .employee-role-tree form.enabled button{
  border-color:rgba(45,164,91,.42);background:rgba(59,198,112,.08)
}
.employee-account-link{display:grid;grid-template-columns:minmax(150px,220px) auto;gap:6px;align-items:center}.employee-account-link select{min-height:30px;height:30px;padding:4px 7px;font-size:10px}.employee-account-link button{width:auto;min-height:30px;padding:4px 7px;border:1px solid rgba(214,162,31,.58);border-radius:5px;background:transparent;color:#edc452;font-size:9px}.employee-account-link button:hover{background:var(--fecor-gold-soft)}@media(max-width:700px){.employee-account-link{width:100%;grid-template-columns:1fr auto}}.erp-access-locked{min-height:100vh;display:grid;place-items:center;padding:24px;background:#0d131c;color:#e7edf6}.erp-access-locked section{width:min(420px,100%);padding:28px;border:1px solid rgba(214,162,31,.28);border-radius:8px;background:#151d28;text-align:center}.erp-access-locked strong{color:#edc452;font-size:11px;letter-spacing:.08em}.erp-access-locked h1{margin:10px 0 8px;font-size:22px}.erp-access-locked p{margin:0 0 18px;color:#9da8b7;font-size:12px}.erp-access-locked a{min-height:34px;padding:7px 12px;display:inline-flex;align-items:center;border:1px solid rgba(214,162,31,.58);border-radius:6px;color:#edc452;text-decoration:none;font-size:11px}
.site-sorber-support-grid{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(360px,1.2fr);gap:18px}.site-sorber-support-grid .site-fecor-card{padding:22px}.site-sorber-support-grid h3{margin:0 0 16px}.site-sorber-files{display:grid;gap:8px}.site-sorber-files article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line,#dfe5ec)}.site-sorber-files article div{display:grid;gap:3px}.site-sorber-files small{color:var(--muted,#6b7280)}.site-sorber-files a{color:#0874ff;font-weight:700}@media(max-width:900px){.site-sorber-support-grid{grid-template-columns:1fr}}
.employee-history{border:1px solid var(--line);border-radius:8px;background:rgba(20,28,39,.72);overflow:hidden}.employee-history>header{padding:9px 14px;display:flex;justify-content:space-between;border-bottom:1px solid var(--line)}.employee-history h3{margin:0;font-size:16px}.employee-history>header p{margin:3px 0 0;color:var(--muted);font-size:10px}.employee-history>header>span{color:#edc452;font-size:10px}.employee-history-list{padding:10px;display:grid;gap:7px}.employee-history-list>article{padding:9px;display:grid;grid-template-columns:30px 1fr;gap:9px;border:1px solid var(--line);border-radius:6px;background:#111923}.employee-history-icon{width:28px;height:28px;display:grid;place-items:center;border:1px solid var(--fecor-gold-line);border-radius:5px;color:#edc452}.employee-history-icon svg{width:14px}.employee-history-body>header{display:flex;justify-content:space-between}.employee-history-body>header strong{font-size:11px}.employee-history-body time,.employee-history-body>p{color:var(--muted);font-size:9px}.employee-history-body>p{margin:2px 0}.employee-history-changes{margin-top:6px;display:grid;gap:3px}.employee-history-changes>div{padding:5px;display:grid;grid-template-columns:100px 1fr 14px 1fr;gap:6px;align-items:center;background:rgba(255,255,255,.025);font-size:9px}.employee-history-changes svg{width:12px}.employee-history-changes .old{color:#ff9292;text-decoration:line-through}.employee-history-changes .new{color:#6bdb96}.employee-history-empty{min-height:180px;display:grid;place-items:center;align-content:center;gap:5px;color:var(--muted)}.employee-history-empty p{margin:0;font-size:10px}body:not(.admin-dark) .employee-history{background:#fff}body:not(.admin-dark) .employee-history-list>article{background:#f7f9fb}@media(max-width:700px){.employee-history-changes>div{grid-template-columns:1fr}}
/* Accounting / Accruals — canonical FECOR graphite-gold */
.accounting-workspace{background:#0c1118;border:1px solid #303b4b;border-radius:8px;overflow:hidden;color:#e8edf5}
.accounting-head{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:18px 22px;background:#121a26;border-bottom:1px solid #303b4b}.accounting-head p{margin:0 0 4px;color:#8794a8;font-size:10px}.accounting-head p span{color:#d6a21f;margin:0 5px}.accounting-head h2{margin:0;font-size:21px}.accounting-head-actions,.accounting-filters{display:flex;align-items:center;gap:8px}.accounting-filters select,.accounting-form input,.accounting-form select{height:36px;padding:0 11px;border:1px solid #39475b;border-radius:6px;background:#0d141e;color:#e8edf5;font:inherit;font-size:11px}.accounting-button,.accounting-secondary{min-height:36px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #d6a21f;border-radius:6px;background:#1f1d18;color:#f2c84b;font-weight:700;font-size:11px}.accounting-button svg,.accounting-secondary svg{width:15px}.accounting-button:hover,.accounting-secondary:hover{background:#2a2518}.accounting-tabs{height:44px;padding:0 22px;display:flex;align-items:flex-end;border-bottom:1px solid #303b4b}.accounting-tabs button{height:44px;padding:0 18px;border:0;border-bottom:2px solid #d6a21f;background:transparent;color:#f2c84b;font:inherit;font-size:12px;font-weight:700}
.accounting-notice{margin:12px 18px 0;padding:9px 12px;border-radius:5px;font-size:11px}.accounting-notice.ok{background:rgba(55,190,111,.12);color:#62d995}.accounting-notice.error{background:rgba(230,75,75,.12);color:#ff8585}.accounting-grid{display:grid;grid-template-columns:220px minmax(0,1fr);gap:14px;padding:14px}.accounting-sidebar{display:flex;flex-direction:column;gap:12px}.accounting-person,.accounting-source,.accounting-card,.accounting-stats article{background:#121a26;border:1px solid #303b4b;border-radius:7px}.accounting-person{padding:18px;text-align:center}.accounting-avatar{width:74px;height:74px;margin:0 auto 11px;display:grid;place-items:center;border:1px solid #8b681b;border-radius:50%;background:#28261f;color:#f3c74a;font-size:23px;font-weight:800}.accounting-person h3{margin:0;font-size:14px}.accounting-person>p{margin:4px 0 14px;color:#8896aa;font-size:10px}.accounting-person dl{margin:0 0 13px;text-align:left}.accounting-person dl div{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid #263244;font-size:10px}.accounting-person dt{color:#8492a6}.accounting-person dd{margin:0;font-weight:700}.accounting-person>a{display:block;padding:8px;border:1px solid #46546a;border-radius:5px;color:#dbe2ec;font-size:10px;text-decoration:none}.accounting-source{padding:14px}.accounting-source header,.accounting-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.accounting-source h3,.accounting-card h3{margin:0;font-size:12px}.accounting-source header svg{width:14px;color:#d6a21f}.accounting-source p{display:grid;grid-template-columns:16px 1fr;gap:2px 8px;margin:13px 0}.accounting-source p svg{grid-row:1/3;width:14px;color:#d6a21f}.accounting-source p span{font-size:10px}.accounting-source p strong{color:#7f8da1;font-size:9px;font-weight:500}
.accounting-main{min-width:0}.accounting-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}.accounting-stats article{padding:13px}.accounting-stats span,.accounting-stats small{display:block;color:#8492a6;font-size:9px}.accounting-stats strong{display:block;margin:7px 0 5px;font-size:18px}.accounting-stats .green strong{color:#55d48d}.accounting-stats .gold strong{color:#f0c447}.accounting-stats .red strong{color:#ff7373}.accounting-card{overflow:hidden;margin-top:12px}.accounting-card>header{padding:12px 14px;border-bottom:1px solid #303b4b}.accounting-card>header p{margin:3px 0 0;color:#7f8da1;font-size:9px}.accounting-card>header>span{color:#7f8da1;font-size:9px}.accounting-table,.accounting-detail-table{overflow:auto}.accounting-table table,.accounting-detail-table table{width:100%;border-collapse:collapse;white-space:nowrap}.accounting-table th,.accounting-table td,.accounting-detail-table th,.accounting-detail-table td{padding:8px 9px;border-bottom:1px solid #253142;text-align:right;font-size:9px}.accounting-table th,.accounting-detail-table th{background:#101823;color:#8390a4;font-weight:600}.accounting-table th:first-child,.accounting-table td:first-child,.accounting-detail-table th:first-child,.accounting-detail-table td:first-child,.accounting-detail-table th:nth-child(2),.accounting-detail-table td:nth-child(2){text-align:left}.accounting-table tbody tr{cursor:pointer}.accounting-table tbody tr:hover td,.accounting-table tbody tr.selected td{background:rgba(214,162,31,.08)}.accounting-table tbody tr.selected td:first-child{box-shadow:inset 2px 0 #d6a21f}.accounting-table tfoot td,.accounting-detail-table tfoot td{background:#101823;font-weight:800}.accounting-status{display:inline-flex;padding:3px 6px;border-radius:4px;font-size:8px;font-weight:700}.accounting-status.paid{background:rgba(52,193,108,.14);color:#59dc8e}.accounting-status.partial{background:rgba(214,162,31,.14);color:#f2c84b}.accounting-status.planned{background:rgba(64,143,227,.14);color:#67b4ff}.accounting-status.overdue{background:rgba(230,75,75,.14);color:#ff7777}.accounting-detail-table tr.payment td{color:#66d99a}.accounting-secondary{min-height:30px;background:transparent}.accounting-empty{padding:50px;text-align:center;color:#8492a6}
.accounting-dialog{width:min(680px,calc(100vw - 30px));padding:0;border:1px solid #435167;border-radius:8px;background:#121a26;color:#e8edf5}.accounting-dialog::backdrop{background:rgba(2,6,12,.78)}.accounting-dialog form>header{display:flex;justify-content:space-between;align-items:center;padding:15px 18px;border-bottom:1px solid #303b4b}.accounting-dialog small{color:#d6a21f}.accounting-dialog h3{margin:3px 0 0}.accounting-dialog header button{border:0;background:transparent;color:#9ba7b8;font-size:22px}.accounting-form{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;padding:18px}.accounting-form label{display:flex;flex-direction:column;gap:5px;color:#a4afbf;font-size:10px}.accounting-form .wide{grid-column:1/-1}.accounting-form input:focus,.accounting-form select:focus{border-color:#d6a21f;outline:0}.accounting-dialog footer{display:flex;justify-content:flex-end;gap:8px;padding:13px 18px;border-top:1px solid #303b4b}.accounting-dialog footer>button:not(.accounting-button){padding:0 13px;border:1px solid #3b485b;border-radius:6px;background:transparent;color:#aab4c3}
@media(max-width:1100px){.accounting-grid{grid-template-columns:1fr}.accounting-sidebar{display:grid;grid-template-columns:1fr 1fr}.accounting-stats{grid-template-columns:1fr 1fr}.accounting-head{align-items:flex-start;flex-direction:column}.accounting-head-actions{width:100%;flex-wrap:wrap}}@media(max-width:650px){.accounting-grid{padding:8px}.accounting-sidebar,.accounting-stats,.accounting-form{grid-template-columns:1fr}.accounting-head-actions,.accounting-filters{align-items:stretch;flex-direction:column;width:100%}.accounting-filters select,.accounting-button{width:100%}}

/* Accounting compact green controls */
body.admin-dark .accounting-workspace .accounting-head-actions .accounting-button,
body.admin-dark .accounting-workspace .accounting-secondary,
body.admin-dark .accounting-dialog .accounting-button{
  width:auto;min-width:0;min-height:32px;height:32px;padding:0 11px;
  border:1px solid rgba(74,210,134,.48);border-radius:6px;
  background:rgba(44,174,104,.10);color:#69dda0;
  box-shadow:none;font-size:10px;white-space:nowrap
}
body.admin-dark .accounting-workspace .accounting-head-actions .accounting-button:hover,
body.admin-dark .accounting-workspace .accounting-secondary:hover,
body.admin-dark .accounting-dialog .accounting-button:hover{
  border-color:rgba(82,220,144,.72);background:rgba(44,174,104,.18);color:#8aebb5
}
body.admin-dark .accounting-workspace .accounting-tabs{
  height:35px;padding:0 22px;align-items:center;gap:7px
}
body.admin-dark .accounting-workspace .accounting-tabs button{
  width:auto;height:27px;min-height:27px;padding:0 11px;
  border:1px solid rgba(74,210,134,.38);border-radius:5px;
  background:rgba(44,174,104,.08);color:#69dda0;
  box-shadow:none;font-size:10px
}
body.admin-dark .accounting-workspace .accounting-tabs button:hover,
body.admin-dark .accounting-workspace .accounting-tabs button.active{
  border-color:rgba(82,220,144,.65);background:rgba(44,174,104,.16);color:#8aebb5
}
.accounting-filters select[name="accounting_employee_id"]{width:300px;min-width:300px}
.accounting-filters select[name="accounting_year"]{width:112px;min-width:112px}
@media(max-width:650px){
  .accounting-filters select[name="accounting_employee_id"],
  .accounting-filters select[name="accounting_year"]{width:100%;min-width:0}
  body.admin-dark .accounting-workspace .accounting-head-actions .accounting-button{width:100%}
}

/* Accounting employee portrait */
.accounting-avatar{width:112px;height:112px;margin-bottom:15px;font-size:30px;overflow:hidden}
.accounting-avatar img{display:block;width:100%;height:100%;object-fit:cover}

/* Official and unofficial payroll visual separation */
.accounting-table th:nth-child(2),.accounting-table th:nth-child(3),.accounting-table th:nth-child(7){color:#75dfa5;background:rgba(43,170,101,.10)}
.accounting-table td:nth-child(2),.accounting-table td:nth-child(3),.accounting-table td:nth-child(7){background:rgba(43,170,101,.045);color:#8be6b2}
.accounting-table th:nth-child(4),.accounting-table th:nth-child(5),.accounting-table th:nth-child(8){color:#f0c95d;background:rgba(214,162,31,.11)}
.accounting-table td:nth-child(4),.accounting-table td:nth-child(5),.accounting-table td:nth-child(8){background:rgba(214,162,31,.05);color:#f0cf78}
.accounting-table tbody tr:hover td:nth-child(2),.accounting-table tbody tr:hover td:nth-child(3),.accounting-table tbody tr:hover td:nth-child(7){background:rgba(43,170,101,.12)}
.accounting-table tbody tr:hover td:nth-child(4),.accounting-table tbody tr:hover td:nth-child(5),.accounting-table tbody tr:hover td:nth-child(8){background:rgba(214,162,31,.13)}
.accounting-detail-table .unofficial-row td{background:rgba(214,162,31,.055);color:#f0cf78}

.accounting-payable-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:11px 13px;border-bottom:1px solid #303b4b;background:#0e151f}
.accounting-payable-grid article{position:relative;padding:11px;border:1px solid;border-radius:6px}
.accounting-payable-grid article.official{border-color:rgba(65,198,123,.34);background:rgba(43,170,101,.07)}
.accounting-payable-grid article.unofficial{border-color:rgba(214,162,31,.38);background:rgba(214,162,31,.07)}
.accounting-payable-grid article>header{display:flex;justify-content:space-between;gap:7px;padding:0;border:0}
.accounting-payable-grid article>header span{font-size:9px;font-weight:700}
.accounting-payable-grid article.official>header span,.accounting-payable-grid article.official>strong{color:#72dfa4}
.accounting-payable-grid article.unofficial>header span,.accounting-payable-grid article.unofficial>strong{color:#f0ca61}
.accounting-payable-grid article>header small{color:#7f8ca0;font-size:8px}
.accounting-payable-grid article>strong{display:block;margin:9px 0;font-size:17px}
.accounting-payable-grid dl{margin:0;display:grid;gap:3px}
.accounting-payable-grid dl div{display:flex;justify-content:space-between;font-size:8px}
.accounting-payable-grid dt{color:#7f8ca0}.accounting-payable-grid dd{margin:0;color:#dce3ed}
.accounting-payable-state{display:inline-flex;margin-top:8px;padding:3px 5px;border-radius:4px;font-size:7px;font-weight:800;text-transform:uppercase}
.accounting-payable-state.paid{background:rgba(55,190,111,.14);color:#69dda0}.accounting-payable-state.due{background:rgba(224,168,35,.14);color:#efc75c}
@media(max-width:1100px){.accounting-payable-grid{grid-template-columns:1fr 1fr}}@media(max-width:600px){.accounting-payable-grid{grid-template-columns:1fr}}

.accounting-month-dialog{width:min(1120px,calc(100vw - 34px));max-height:calc(100vh - 34px);padding:0;border:1px solid #405069;border-radius:8px;background:#101823;color:#e8edf5;box-shadow:0 28px 90px rgba(0,0,0,.64)}
.accounting-month-dialog::backdrop{background:rgba(2,7,13,.82);backdrop-filter:blur(3px)}
.accounting-month-dialog>header{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:13px 15px;border-bottom:1px solid #303b4b;background:#121a26}
.accounting-month-dialog>header h3{margin:0;font-size:15px}.accounting-month-dialog>header p{margin:3px 0 0;color:#8492a6;font-size:9px}
.accounting-month-actions{display:flex;align-items:center;gap:7px}
body.admin-dark .accounting-month-dialog .accounting-month-close{width:30px;height:30px;min-height:30px;padding:0;border:1px solid #3c495c;border-radius:6px;background:transparent;color:#aeb8c7;font-size:20px;font-weight:400}
body.admin-dark .accounting-month-dialog .accounting-month-close:hover{border-color:#d6a21f;background:rgba(214,162,31,.08);color:#efca62}
.accounting-month-dialog .accounting-payable-grid{padding:13px 15px}.accounting-month-dialog .accounting-detail-table{max-height:55vh}

.accounting-detail-table .accounting-editable-row{cursor:pointer}
.accounting-detail-table .accounting-editable-row:hover td{background:rgba(69,196,125,.11);color:#8ae8b5}
.accounting-detail-table .accounting-editable-row td:last-child::after{content:"  ✎";color:#61d898;font-size:9px}

.accounting-employee-search{position:relative;display:block;width:360px;min-width:360px;margin:0}
.accounting-employee-search>svg{position:absolute;z-index:2;left:11px;top:10px;width:16px;height:16px;color:#8794a8;pointer-events:none}
.accounting-employee-search input{width:100%;height:36px;padding:0 34px;border:1px solid #39475b;border-radius:6px;background:#0d141e;color:#e8edf5;font:inherit;font-size:12px;box-sizing:border-box}
.accounting-employee-search input:hover{border-color:#536178}
.accounting-employee-search input:focus{border-color:rgba(214,162,31,.8);outline:none;box-shadow:0 0 0 3px rgba(214,162,31,.1)}
.accounting-employee-results{position:absolute;z-index:80;top:calc(100% + 7px);left:0;right:0;max-height:360px;overflow:auto;padding:6px;border:1px solid #3b4656;border-radius:7px;background:#131d2b;box-shadow:0 18px 48px rgba(0,0,0,.45)}
.accounting-employee-results[hidden]{display:none}
.accounting-employee-results a{display:flex;align-items:center;gap:9px;padding:8px 9px;border:1px solid transparent;border-radius:5px;color:#dbe2ec;text-decoration:none}
.accounting-employee-results a:hover,.accounting-employee-results a:focus{border-color:rgba(214,162,31,.38);background:rgba(214,162,31,.09);outline:none}
.accounting-employee-results a>span:last-child{display:grid;min-width:0;gap:2px}
.accounting-employee-results strong,.accounting-employee-results small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.accounting-employee-results strong{font-size:11px}
.accounting-employee-results small{color:#8794a8;font-size:9px}
.accounting-employee-avatar{width:31px;height:31px;flex:0 0 31px;display:grid;place-items:center;border:1px solid rgba(214,162,31,.45);border-radius:50%;background:rgba(214,162,31,.1);color:#edc452;font-size:10px;font-weight:800}
.accounting-employee-empty{display:block;padding:14px;text-align:center;color:#8794a8;font-size:11px}
@media(max-width:650px){.accounting-employee-search{width:100%;min-width:0}}

.accounting-employee-search input{padding-left:42px}
.accounting-employee-search>svg{left:14px;top:10px;width:16px;height:16px}

.accounting-employee-search input{padding-left:12px}
.accounting-employee-search>svg{display:none}

.employee-page-head{grid-template-columns:1fr max-content 360px}
.employee-page-head .employee-search{width:360px;min-width:360px;justify-self:end}
.employee-page-head .employee-search input{width:100%;height:36px;min-height:36px;padding:0 12px;font-size:12px;box-sizing:border-box}
.employee-page-head .employee-search>svg,.employee-page-head .employee-search>i{display:none}
@media(max-width:820px){.employee-page-head{grid-template-columns:1fr max-content}.employee-page-head .employee-search{grid-column:1/-1;grid-row:2;width:100%;min-width:0}}

/* Employees: unified with Accounting / Accruals header */
.employee-page-head{display:flex;grid-template-columns:none;justify-content:space-between;align-items:center;gap:20px;min-height:0;padding:18px 22px;background:#121a26!important;border-bottom:1px solid #303b4b}
.employee-page-head-title p{margin:0 0 4px;color:#8794a8;font-size:10px}
.employee-page-head-title p span{margin:0 5px;color:#d6a21f;font-size:10px}
.employee-page-head-title h2{margin:0;color:#e8edf5;font-size:21px;line-height:1.2}
.employee-page-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto}
.employee-page-head .employee-add-button{order:2;min-height:36px;height:36px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #d6a21f;border-radius:6px;background:#1f1d18;color:#f2c84b;font-weight:700;font-size:11px;box-shadow:none}
.employee-page-head .employee-add-button:hover{background:#2a2518;border-color:#e2b635;color:#f5d36d}
.employee-page-head .employee-add-button svg{width:15px;height:15px}
.employee-page-head .employee-search{order:1;position:relative;width:360px;min-width:360px;margin:0}
.employee-page-head .employee-search input{width:100%;height:36px;min-height:36px;padding:0 12px;border:1px solid #39475b;border-radius:6px;background:#0d141e;color:#e8edf5;font:inherit;font-size:12px;box-sizing:border-box}
.employee-page-head .employee-search input:hover{border-color:#536178}
.employee-page-head .employee-search input:focus{border-color:rgba(214,162,31,.8);outline:none;box-shadow:0 0 0 3px rgba(214,162,31,.1)}
.employee-page-head .employee-search>svg,.employee-page-head .employee-search>i{display:none}
@media(max-width:820px){.employee-page-head{align-items:flex-start;flex-direction:column}.employee-page-head-actions{width:100%;margin-left:0}.employee-page-head .employee-search{width:100%;min-width:0}}
@media(max-width:560px){.employee-page-head{padding:14px 16px}.employee-page-head-actions{align-items:stretch;flex-direction:column}.employee-page-head .employee-add-button{order:1;width:100%}.employee-page-head .employee-search{order:2}.employee-page-head .employee-add-button span{display:inline}}

/* Marketplace communications — approved unified workspace */
body.admin-dark .communication-center{padding:0;border:1px solid #303b4b;border-radius:8px;background:#0c131d;overflow:hidden}
body.admin-dark .communication-head{min-height:68px;padding:14px 18px;border-bottom:1px solid #303b4b;background:#101823}
body.admin-dark .communication-head p{margin:0 0 5px;color:#8491a4;font-size:10px}
body.admin-dark .communication-head p span{margin:0 5px;color:#d6a21f}
body.admin-dark .communication-head h2{display:flex;align-items:center;gap:8px;margin:0;color:#e8edf5;font-size:21px}
body.admin-dark .communication-head h2 svg{width:20px;color:#d6a21f}
.communication-view-tabs{display:flex;gap:0;padding:0 14px;border-bottom:1px solid #303b4b;background:#0d141e}
.communication-view-tabs button{min-height:43px;padding:0 17px;display:inline-flex;align-items:center;gap:7px;border:0;border-bottom:2px solid transparent;background:transparent;color:#aab4c3;font:inherit;font-size:12px;font-weight:700}
.communication-view-tabs button svg{width:15px}.communication-view-tabs button strong{padding:2px 6px;border-radius:10px;background:#202a38;color:#dce4ef;font-size:9px}
.communication-view-tabs button:hover,.communication-view-tabs button.active{color:#f0c84f;background:rgba(214,162,31,.045);border-bottom-color:#d6a21f}
.communication-toolbar.communication-questions-only{grid-template-columns:max-content minmax(320px,1fr) 170px max-content;align-items:end;gap:9px;padding:11px 14px;background:#0f1722}
.communication-marketplace-filters{display:flex;gap:6px;align-items:center;min-height:36px}
.communication-marketplace-filters button,.communication-knowledge-toolbar>button{height:31px;padding:0 11px;border:1px solid #374356;border-radius:6px;background:transparent;color:#aeb7c5;font:inherit;font-size:10px}
.communication-marketplace-filters button:hover,.communication-marketplace-filters button.active,.communication-knowledge-toolbar>button:hover,.communication-knowledge-toolbar>button.active{border-color:#d6a21f;background:rgba(214,162,31,.08);color:#f0c84f}
.communication-marketplace-filters strong{margin-left:4px;color:inherit;font-size:9px}
.communication-toolbar label>span{display:block;margin-bottom:4px;color:#7f8ca0;font-size:9px}
.communication-toolbar input,.communication-toolbar select{width:100%;height:36px;border:1px solid #39475b;border-radius:6px;background:#0b121b;color:#e7edf5;font:inherit;font-size:11px}
.communication-refresh-form{margin:0}.communication-refresh-form .button{height:36px;display:inline-flex;align-items:center;gap:6px;border-color:#d6a21f;background:#1f1d18;color:#f2c84b}.communication-refresh-form svg{width:14px}
body.admin-dark .communication-metrics.communication-questions-only{gap:8px;padding:10px 14px}
body.admin-dark .communication-metrics article{padding:9px 11px;border-color:#303b4b;border-radius:6px;background:#111a26}
body.admin-dark .communication-metrics span{font-size:9px}body.admin-dark .communication-metrics strong{font-size:17px}
body.admin-dark .communication-layout{grid-template-columns:minmax(310px,.9fr) minmax(500px,1.65fr);gap:10px;padding:0 14px 12px}
body.admin-dark .communication-list,body.admin-dark .communication-card{border-color:#303b4b;border-radius:6px;background:#0f1722}
body.admin-dark .communication-list-head{background:#121b27;border-color:#303b4b}
body.admin-dark .communication-question-item:hover,body.admin-dark .communication-question-item.active{background:rgba(214,162,31,.07)}
body.admin-dark .communication-question-item.active{box-shadow:inset 3px 0 0 #d6a21f}
body.admin-dark .communication-card{padding:13px}
body.admin-dark .communication-message,body.admin-dark .communication-similar{border-color:#303b4b;border-radius:6px;background:#101923}
body.admin-dark .communication-message.ai{border-color:rgba(214,162,31,.38)}
body.admin-dark .communication-message.ai span,body.admin-dark .communication-similar span,body.admin-dark .communication-card-head span{color:#e1b53e}
body.admin-dark .communication-buttons .button{min-height:31px;border-radius:6px;font-size:10px}
.communication-view-panel[hidden],.communication-questions-only[hidden]{display:none!important}
.communication-chat-panel{display:grid;grid-template-columns:280px minmax(520px,1fr);min-height:560px;background:#0d141e}
.communication-chat-list{border-right:1px solid #303b4b;background:#101823}.communication-chat-list>header,.communication-chat-main>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border-bottom:1px solid #303b4b}
.communication-chat-list h3,.communication-chat-main h3,.communication-knowledge-panel h3{margin:0;font-size:14px}.communication-chat-list p,.communication-chat-main p,.communication-knowledge-panel p{margin:3px 0 0;color:#8491a4;font-size:9px}
.communication-chat-list>header button{width:29px;height:29px;border:1px solid #39475b;border-radius:6px;background:transparent;color:#7e8b9f}.communication-chat-list>header svg{width:14px}
.communication-chat-list>article{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #273241;color:#dfe5ee}.communication-chat-list>article.active{border-left:2px solid #d6a21f;background:rgba(214,162,31,.06)}
.communication-chat-list>article>svg{width:18px;color:#9eabbc}.communication-chat-list>article div{display:grid;gap:2px;min-width:0}.communication-chat-list>article small{color:#7f8ca0;font-size:9px}.communication-chat-list>article span{margin-left:auto;color:#d1a936;font-size:8px}
.communication-chat-main{display:grid;grid-template-rows:auto 1fr auto;min-width:0}.communication-agent-state{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border:1px solid rgba(214,162,31,.35);border-radius:5px;background:rgba(214,162,31,.07);color:#e2bd55;font-size:9px}.communication-agent-state svg{width:13px}
.communication-chat-empty{display:grid;place-items:center;align-content:center;text-align:center;padding:30px}.communication-chat-empty>svg{width:44px;height:44px;margin-bottom:12px;color:#d6a21f}.communication-chat-empty h3{font-size:16px}.communication-chat-empty p{max-width:420px;line-height:1.5}
.communication-chat-main>footer{display:grid;grid-template-columns:34px 1fr max-content;gap:8px;padding:12px 14px;border-top:1px solid #303b4b}.communication-chat-main>footer textarea{height:52px;min-height:52px;padding:10px;border:1px solid #39475b;border-radius:6px;background:#0a111a;color:#aab4c3;resize:none}.communication-chat-main>footer button{border:1px solid #39475b;border-radius:6px;background:transparent;color:#8290a4}.communication-chat-main>footer button svg{width:15px}.communication-chat-main>footer .communication-chat-send{padding:0 15px;border-color:#65541f;color:#8f7936}
.communication-knowledge-panel{min-height:480px;padding:14px;background:#0d141e}.communication-knowledge-panel>header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-bottom:12px;border-bottom:1px solid #303b4b}.communication-knowledge-panel form{margin:0}
.communication-knowledge-toolbar{display:flex;align-items:center;gap:7px;padding:12px 0}.communication-knowledge-toolbar label{position:relative;flex:1}.communication-knowledge-toolbar label svg{position:absolute;left:11px;top:10px;width:15px;color:#7d899b}.communication-knowledge-toolbar input{width:100%;height:35px;padding:0 12px 0 34px;border:1px solid #39475b;border-radius:6px;background:#0a111a;color:#e5ebf4}
.communication-knowledge-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.communication-knowledge-summary article{padding:12px;border:1px solid #303b4b;border-radius:6px;background:#111a26}.communication-knowledge-summary span,.communication-knowledge-summary small{display:block;color:#8491a4;font-size:9px}.communication-knowledge-summary strong{display:block;margin:6px 0;color:#e8edf5;font-size:16px}
.communication-knowledge-empty{display:grid;place-items:center;align-content:center;min-height:250px;text-align:center}.communication-knowledge-empty>svg{width:38px;height:38px;margin-bottom:10px;color:#d6a21f}.communication-knowledge-empty h3{font-size:15px}.communication-knowledge-empty p{max-width:450px;line-height:1.5}
@media(max-width:1050px){.communication-toolbar.communication-questions-only{grid-template-columns:1fr 1fr}.communication-marketplace-filters{grid-column:1/-1}.communication-chat-panel{grid-template-columns:230px 1fr}.communication-knowledge-summary{grid-template-columns:1fr}}
@media(max-width:760px){.communication-view-tabs{overflow-x:auto}.communication-view-tabs button{white-space:nowrap}.communication-toolbar.communication-questions-only{grid-template-columns:1fr}.communication-marketplace-filters{grid-column:auto;overflow-x:auto}.communication-layout{grid-template-columns:1fr!important}.communication-chat-panel{grid-template-columns:1fr}.communication-chat-list{display:none}.communication-knowledge-toolbar{align-items:stretch;flex-direction:column}.communication-knowledge-toolbar>button{width:100%}}

/* Communications screenshot parity — 2026-08-13 */
body.admin-dark .communication-center{border:0;border-radius:0;background:#0b121b}
body.admin-dark .communication-head{min-height:58px;padding:12px 20px;border-bottom:0;background:#0b121b}
body.admin-dark .communication-head h2{gap:10px;font-size:23px;line-height:1.15}
body.admin-dark .communication-head h2 svg{width:23px;height:23px;color:#dce3ec}
.communication-view-tabs{height:51px;padding:0 16px;border-bottom:1px solid #2d3745;background:#0b121b}
.communication-view-tabs button{height:51px;min-width:210px;padding:0 20px;justify-content:flex-start;border:1px solid #263241;border-bottom-color:#2d3745;border-radius:0;color:#aeb7c4;font-size:13px;font-weight:500}
.communication-view-tabs button:first-child{border-radius:6px 0 0 6px}.communication-view-tabs button:last-child{border-radius:0 6px 0 0}
.communication-view-tabs button+button{border-left:0}
.communication-view-tabs button:hover,.communication-view-tabs button.active{border-color:#d6a21f;background:rgba(214,162,31,.045);color:#f0c23f}
.communication-view-tabs button.active+button{border-left-color:#d6a21f}
.communication-view-tabs button svg{width:17px;height:17px}.communication-view-tabs button strong{margin-left:auto}
.communication-toolbar.communication-questions-only{display:grid;grid-template-columns:minmax(440px,1fr) 360px 216px;gap:10px;align-items:end;padding:20px 20px 15px;background:#0b121b}
.communication-marketplace-filters{grid-column:1/-1;min-height:34px;gap:18px}
.communication-marketplace-filters button{height:34px;min-width:65px;padding:0 16px;border-radius:6px;font-size:11px}
.communication-toolbar label>span{display:none}
.communication-toolbar input,.communication-toolbar select{height:43px;padding:0 16px;border-color:#344153;border-radius:6px;background:#0d151f;font-size:12px}
.communication-toolbar input:focus,.communication-toolbar select:focus{border-color:#d6a21f;outline:0;box-shadow:0 0 0 2px rgba(214,162,31,.08)}
.communication-refresh-form .button{width:216px;height:43px;padding:0 17px;border:1px solid #d6a21f;border-radius:6px;background:transparent;color:#e6ba3a;font-size:11px}
.communication-refresh-form .button:hover{background:rgba(214,162,31,.08)}
body.admin-dark .communication-metrics.communication-questions-only{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:0 20px 15px}
body.admin-dark .communication-metrics article{min-height:80px;padding:14px 16px;display:flex;align-items:center;gap:15px;border:1px solid #303c4d;border-radius:6px;background:#101925}
body.admin-dark .communication-metrics article>svg{width:38px;height:38px;flex:0 0 38px}
body.admin-dark .communication-metrics article.new>svg{color:#f05b5f}
body.admin-dark .communication-metrics article.work>svg{color:#e0ad27}
body.admin-dark .communication-metrics article.closed>svg{color:#66cb58}
body.admin-dark .communication-metrics article.knowledge>svg{color:#4d9df0}
body.admin-dark .communication-metrics article>div{display:grid;gap:4px}
body.admin-dark .communication-metrics span{font-size:11px;color:#9ca7b7}
body.admin-dark .communication-metrics strong{margin:0;font-size:20px;line-height:1;color:#e9eef6}
body.admin-dark .communication-layout{grid-template-columns:minmax(390px,42fr) minmax(530px,58fr);gap:15px;padding:0 20px 20px}
body.admin-dark .communication-list{height:598px;min-height:598px;max-height:598px;border-radius:6px;background:#0d151f}
body.admin-dark .communication-list-head{height:52px;padding:0 16px;align-items:center;background:#101925}
body.admin-dark .communication-list-head strong{font-size:12px}
body.admin-dark .communication-list-head span{display:inline-flex;align-items:center;gap:8px;font-size:9px}
body.admin-dark .communication-list-head span svg{width:14px}
body.admin-dark .communication-question-item{min-height:96px;padding:12px 15px 11px;gap:5px}
body.admin-dark .communication-question-item>div:first-child{justify-content:flex-start;align-items:center}
body.admin-dark .communication-question-item>div:first-child strong{min-width:39px;padding:4px 7px;border-radius:5px;background:#245dd9;color:#fff;font-size:9px;text-align:center}
body.admin-dark .communication-question-item[data-marketplace="wb"]>div:first-child strong,
body.admin-dark .communication-question-item[data-marketplace="wildberries"]>div:first-child strong{background:#58258c}
body.admin-dark .communication-question-item>div:first-child span{color:#9ca7b7;font-size:11px}
body.admin-dark .communication-question-item p{font-size:11px;line-height:1.35}
body.admin-dark .communication-question-item small{font-size:10px}
body.admin-dark .communication-question-flags{position:absolute;right:14px;bottom:14px}
body.admin-dark .communication-question-item b{padding:4px 8px;border:1px solid;border-radius:5px;background:transparent;font-size:9px}
body.admin-dark .communication-question-item b.new{border-color:#73363a;color:#f05d62;background:rgba(129,42,47,.08)}
body.admin-dark .communication-question-item b.in_work,body.admin-dark .communication-question-item b.waiting_answer{border-color:#735d1e;color:#e5b52d;background:rgba(129,96,24,.08)}
body.admin-dark .communication-question-item b.closed{border-color:#2b673f;color:#63c875;background:rgba(36,108,58,.08)}
body.admin-dark .communication-question-item.active{background:rgba(214,162,31,.035);box-shadow:inset 2px 0 0 #d6a21f}
body.admin-dark .communication-card{height:598px;min-height:598px;padding:0;display:flex;flex-direction:column;border-radius:6px;background:#0d151f;overflow:auto}
body.admin-dark .communication-card-head{min-height:58px;margin:0;padding:13px 16px;align-items:center;border-bottom:1px solid #303b4b}
body.admin-dark .communication-card-head>div{display:flex;align-items:center;gap:11px;min-width:0}
body.admin-dark .communication-card-head span{padding:4px 7px;border-radius:5px;background:#245dd9;color:#fff;font-size:9px;white-space:nowrap}
body.admin-dark .communication-card-head h3{margin:0;color:#aeb7c4;font-size:11px;font-weight:500;white-space:nowrap}
body.admin-dark .communication-card-head p{overflow:hidden;color:#aeb7c4;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
body.admin-dark .communication-card-head>strong{color:#aeb7c4;font-size:10px;font-weight:400;white-space:nowrap}
body.admin-dark .communication-message,body.admin-dark .communication-similar{margin:0 16px;padding:16px 0;border:0;border-bottom:1px solid #303b4b;border-radius:0;background:transparent}
body.admin-dark .communication-message span,body.admin-dark .communication-similar span{color:#e8edf5;font-size:11px;text-transform:none}
body.admin-dark .communication-message p{margin-top:8px;font-size:13px;line-height:1.45}
body.admin-dark .communication-answer-form{margin:0 16px}
body.admin-dark .communication-answer-form .communication-message{margin:0;padding-left:0;padding-right:0}
body.admin-dark .communication-message textarea{min-height:94px;margin-top:7px;padding:10px 12px;border:1px solid #344153;border-radius:6px;background:#0b121b;font-size:11px;line-height:1.55}
body.admin-dark .communication-message textarea[readonly]{border-color:#344153}
body.admin-dark .communication-similar{margin:0 16px;padding-bottom:11px}
body.admin-dark .communication-similar p{margin-top:9px;padding:10px 12px;border:1px solid #344153;border-radius:6px;background:#0b121b;color:#9da8b7;font-size:10px;line-height:1.45}
body.admin-dark .communication-buttons{margin-top:auto;padding:12px 16px;gap:9px;border-top:1px solid #303b4b;flex-wrap:nowrap}
body.admin-dark .communication-buttons .button{height:39px;min-height:39px;padding:0 13px;border:1px solid #344153;border-radius:6px;background:transparent;color:#b7c0cd;font-size:10px;white-space:nowrap}
body.admin-dark .communication-buttons form:first-child .button{border-color:#d6a21f;color:#e5b82f}
body.admin-dark .communication-buttons form:nth-last-child(1) .button{border-color:#2b673f;color:#65c878}
body.admin-dark .communication-bottom-grid.communication-questions-only{display:none}
@media(max-width:1180px){.communication-toolbar.communication-questions-only{grid-template-columns:minmax(300px,1fr) 220px max-content}.communication-refresh-form .button{width:auto}.communication-view-tabs button{min-width:0}.communication-layout{grid-template-columns:360px 1fr!important}}
@media(max-width:820px){.communication-toolbar.communication-questions-only{grid-template-columns:1fr}.communication-marketplace-filters{grid-column:auto}.communication-refresh-form .button{width:100%}.communication-metrics.communication-questions-only{grid-template-columns:1fr 1fr!important}.communication-layout{grid-template-columns:1fr!important}.communication-list,.communication-card{height:auto!important;min-height:420px!important;max-height:none!important}.communication-buttons{flex-wrap:wrap!important}}

/* Communication hard reset against legacy blue buttons */
body.admin-dark .communication-center .communication-view-tabs button{
  width:auto!important;min-width:210px!important;height:51px!important;min-height:51px!important;
  padding:0 20px!important;border:1px solid #263241!important;border-bottom-color:#2d3745!important;
  border-radius:0!important;background:transparent!important;color:#aeb7c4!important;
  box-shadow:none!important;font-size:13px!important;font-weight:500!important
}
body.admin-dark .communication-center .communication-view-tabs button:first-child{border-radius:6px 0 0 6px!important}
body.admin-dark .communication-center .communication-view-tabs button:last-child{border-radius:0 6px 0 0!important}
body.admin-dark .communication-center .communication-view-tabs button+button{border-left:0!important}
body.admin-dark .communication-center .communication-view-tabs button:hover,
body.admin-dark .communication-center .communication-view-tabs button.active{
  border-color:#d6a21f!important;background:rgba(214,162,31,.045)!important;color:#f0c23f!important
}
body.admin-dark .communication-center .communication-marketplace-filters button,
body.admin-dark .communication-center .communication-knowledge-toolbar>button{
  width:auto!important;min-width:65px!important;height:34px!important;min-height:34px!important;
  padding:0 16px!important;border:1px solid #374356!important;border-radius:6px!important;
  background:transparent!important;color:#aeb7c5!important;box-shadow:none!important;font-size:11px!important
}
body.admin-dark .communication-center .communication-marketplace-filters button:hover,
body.admin-dark .communication-center .communication-marketplace-filters button.active,
body.admin-dark .communication-center .communication-knowledge-toolbar>button:hover,
body.admin-dark .communication-center .communication-knowledge-toolbar>button.active{
  border-color:#d6a21f!important;background:rgba(214,162,31,.08)!important;color:#f0c84f!important
}
body.admin-dark .communication-center .communication-toolbar.communication-questions-only{
  grid-template-columns:minmax(280px,1fr) minmax(180px,360px) max-content!important
}
body.admin-dark .communication-center .communication-refresh-form .button{width:190px!important}
@media(max-width:1180px){
  body.admin-dark .communication-center .communication-view-tabs button{min-width:0!important}
  body.admin-dark .communication-center .communication-refresh-form .button{width:auto!important}
}

/* AI chat database and connection-ready states */
.communication-chat-list>a{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #273241;color:#dfe5ee;text-decoration:none}
.communication-chat-list>a.active{border-left:2px solid #d6a21f;background:rgba(214,162,31,.06)}
.communication-chat-list>a:hover{background:rgba(214,162,31,.045)}
.communication-chat-list>a>svg{width:18px;color:#9eabbc}.communication-chat-list>a div{display:grid;gap:2px;min-width:0}.communication-chat-list>a small{color:#7f8ca0;font-size:9px}.communication-chat-list>a span{margin-left:auto;color:#d1a936;font-size:8px}
.communication-agent-state.online{border-color:rgba(67,195,121,.42);background:rgba(43,170,101,.09);color:#71dda4}
.communication-ai-notice{margin:10px 14px 0;padding:8px 10px;border:1px solid;border-radius:6px;font-size:10px}
.communication-ai-notice.ok{border-color:rgba(67,195,121,.4);background:rgba(43,170,101,.08);color:#71dda4}
.communication-ai-notice.error{border-color:rgba(219,77,82,.42);background:rgba(175,47,52,.08);color:#ef8d91}
.communication-chat-history{min-height:0;overflow:auto;padding:16px;display:flex;flex-direction:column;gap:11px}
.communication-chat-history article{width:min(76%,680px);padding:11px 12px;border:1px solid #344153;border-radius:7px;background:#111a26}
.communication-chat-history article.user{align-self:flex-end;border-color:rgba(214,162,31,.35);background:rgba(214,162,31,.055)}
.communication-chat-history article.assistant{align-self:flex-start;border-color:rgba(67,195,121,.34);background:rgba(43,170,101,.05)}
.communication-chat-history article>header{display:flex;justify-content:space-between;gap:10px;padding:0;border:0}
.communication-chat-history article>header strong{color:#e5bd4b;font-size:9px}.communication-chat-history article.assistant>header strong{color:#72dda4}
.communication-chat-history article>header time{color:#788699;font-size:8px}.communication-chat-history article p{margin:7px 0;color:#e4eaf2;font-size:11px;line-height:1.5}
.communication-chat-history article>small{display:inline-flex;padding:3px 5px;border-radius:4px;background:#202b39;color:#93a0b2;font-size:7px}
.communication-chat-history article>small.completed{background:rgba(43,170,101,.12);color:#72dda4}.communication-chat-history article>small.error{background:rgba(175,47,52,.12);color:#ef8d91}.communication-chat-history article>small.processing,.communication-chat-history article>small.queued{background:rgba(214,162,31,.11);color:#e4bd4e}

.communication-chat-history article.assistant{position:relative}
.communication-chat-history article.assistant[data-parent-message-id]:not([data-parent-message-id="0"]){width:min(88%,820px);border-color:rgba(67,195,121,.48);box-shadow:0 0 0 1px rgba(67,195,121,.08)}
.communication-ai-parent{margin:8px 0 9px;padding:8px 10px;border-left:2px solid #d6a21f;border-radius:6px;background:rgba(214,162,31,.08)}
.communication-ai-parent span{display:block;margin-bottom:4px;color:#e5bd4b;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.communication-ai-parent p{margin:0!important;color:#aeb9c8!important;font-size:9px!important;line-height:1.45!important}
.communication-chat-composer{display:grid;grid-template-columns:42px minmax(0,1fr) max-content;gap:8px;margin:0;padding:10px 14px;border-top:1px solid #303b4b;align-items:center}
.communication-chat-composer textarea{height:42px;min-height:42px;padding:8px 12px;line-height:24px;border:1px solid #39475b;border-radius:6px;background:#0a111a;color:#e5ebf3;resize:none}
.communication-chat-composer textarea:disabled{color:#6f7b8e;cursor:not-allowed}.communication-chat-composer button{border:1px solid #39475b;border-radius:6px;background:transparent;color:#8290a4}.communication-chat-composer button svg{width:15px}
.communication-chat-composer .communication-chat-send{padding:0 15px;border-color:#d6a21f;color:#e6bd49}.communication-chat-composer .communication-chat-send:disabled{border-color:#4a432c;color:#73663c;cursor:not-allowed}

/* Communications: separated navigation keys + complete light theme */
body.admin-dark .communication-center .communication-view-tabs,
body:not(.admin-dark) .communication-center .communication-view-tabs{
  height:auto;min-height:51px;gap:10px;padding:0 16px 10px;border-bottom:1px solid #2d3745
}
body.admin-dark .communication-center .communication-view-tabs button,
body:not(.admin-dark) .communication-center .communication-view-tabs button{
  flex:0 1 260px;width:auto!important;min-width:190px!important;height:43px!important;min-height:43px!important;
  padding:0 18px!important;border:1px solid #344153!important;border-radius:7px!important;
  background:transparent!important;box-shadow:none!important
}
body.admin-dark .communication-center .communication-view-tabs button+button,
body:not(.admin-dark) .communication-center .communication-view-tabs button+button{border-left:1px solid #344153!important}
body.admin-dark .communication-center .communication-view-tabs button:hover,
body.admin-dark .communication-center .communication-view-tabs button.active,
body:not(.admin-dark) .communication-center .communication-view-tabs button:hover,
body:not(.admin-dark) .communication-center .communication-view-tabs button.active{
  border-color:#d6a21f!important;background:rgba(214,162,31,.07)!important;color:#b8860b!important
}
body:not(.admin-dark) .communication-center{background:#f5f7fa;color:#172238}
body:not(.admin-dark) .communication-head{background:#fff;border-bottom:0}
body:not(.admin-dark) .communication-head h2{color:#172238}
body:not(.admin-dark) .communication-head h2 svg{color:#66758a}
body:not(.admin-dark) .communication-view-tabs{background:#fff;border-color:#d7dfe9}
body:not(.admin-dark) .communication-center .communication-view-tabs button{border-color:#ccd6e3!important;background:#fff!important;color:#66758a!important}
body:not(.admin-dark) .communication-center .communication-view-tabs button+button{border-left-color:#ccd6e3!important}
body:not(.admin-dark) .communication-center .communication-view-tabs button:hover,
body:not(.admin-dark) .communication-center .communication-view-tabs button.active{border-color:#d6a21f!important;background:#fff9e9!important;color:#9a7007!important}
body:not(.admin-dark) .communication-view-tabs button strong{background:#e8edf4;color:#405069}
body:not(.admin-dark) .communication-toolbar.communication-questions-only{background:#f5f7fa}
body:not(.admin-dark) .communication-toolbar input,
body:not(.admin-dark) .communication-toolbar select,
body:not(.admin-dark) .communication-knowledge-toolbar input{border-color:#cbd6e3;background:#fff;color:#172238}
body:not(.admin-dark) .communication-center .communication-marketplace-filters button,
body:not(.admin-dark) .communication-center .communication-knowledge-toolbar>button{border-color:#cbd6e3!important;background:#fff!important;color:#607087!important}
body:not(.admin-dark) .communication-center .communication-marketplace-filters button:hover,
body:not(.admin-dark) .communication-center .communication-marketplace-filters button.active,
body:not(.admin-dark) .communication-center .communication-knowledge-toolbar>button:hover,
body:not(.admin-dark) .communication-center .communication-knowledge-toolbar>button.active{border-color:#d6a21f!important;background:#fff9e9!important;color:#9a7007!important}
body:not(.admin-dark) .communication-refresh-form .button{border-color:#c29317;background:#fff;color:#9a7007}
body:not(.admin-dark) .communication-metrics article{border-color:#d5dee9;background:#fff}
body:not(.admin-dark) .communication-metrics span{color:#718096}
body:not(.admin-dark) .communication-metrics strong{color:#172238}
body:not(.admin-dark) .communication-list,
body:not(.admin-dark) .communication-card,
body:not(.admin-dark) .communication-chat-list,
body:not(.admin-dark) .communication-chat-main,
body:not(.admin-dark) .communication-knowledge-panel{border-color:#d5dee9;background:#fff}
body:not(.admin-dark) .communication-list-head,
body:not(.admin-dark) .communication-chat-list>header,
body:not(.admin-dark) .communication-chat-main>header{border-color:#d5dee9;background:#f7f9fc}
body:not(.admin-dark) .communication-question-item{border-color:#e0e6ee;color:#172238}
body:not(.admin-dark) .communication-question-item:hover,
body:not(.admin-dark) .communication-question-item.active{background:#fff9e9}
body:not(.admin-dark) .communication-question-item p,
body:not(.admin-dark) .communication-card-head h3,
body:not(.admin-dark) .communication-message p,
body:not(.admin-dark) .communication-message span,
body:not(.admin-dark) .communication-similar span,
body:not(.admin-dark) .communication-chat-list h3,
body:not(.admin-dark) .communication-chat-main h3,
body:not(.admin-dark) .communication-knowledge-panel h3{color:#172238}
body:not(.admin-dark) .communication-question-item small,
body:not(.admin-dark) .communication-card-head p,
body:not(.admin-dark) .communication-card-head>strong,
body:not(.admin-dark) .communication-chat-list p,
body:not(.admin-dark) .communication-chat-main p,
body:not(.admin-dark) .communication-knowledge-panel p{color:#718096}
body:not(.admin-dark) .communication-card-head,
body:not(.admin-dark) .communication-message,
body:not(.admin-dark) .communication-similar,
body:not(.admin-dark) .communication-buttons{border-color:#d5dee9;background:transparent}
body:not(.admin-dark) .communication-message textarea,
body:not(.admin-dark) .communication-similar p{border-color:#cbd6e3;background:#f8fafc;color:#172238}
body:not(.admin-dark) .communication-buttons .button{border-color:#c5d0dd;background:#fff;color:#435269}
body:not(.admin-dark) .communication-chat-list>a{border-color:#e0e6ee;color:#172238}
body:not(.admin-dark) .communication-chat-list>a:hover,
body:not(.admin-dark) .communication-chat-list>a.active{background:#fff9e9}
body:not(.admin-dark) .communication-chat-history article{border-color:#d5dee9;background:#f7f9fc}
body:not(.admin-dark) .communication-chat-history article.user{border-color:#e1bd5c;background:#fff9e9}
body:not(.admin-dark) .communication-chat-history article.assistant{border-color:#82cfa2;background:#f0fbf5}
body:not(.admin-dark) .communication-chat-history article p{color:#172238}
body:not(.admin-dark) .communication-chat-composer{border-color:#d5dee9;background:#fff}
body:not(.admin-dark) .communication-chat-composer textarea{border-color:#cbd6e3;background:#f8fafc;color:#172238}
body:not(.admin-dark) .communication-knowledge-summary article{border-color:#d5dee9;background:#fff}
body:not(.admin-dark) .communication-knowledge-summary strong{color:#172238}
@media(max-width:760px){
  body.admin-dark .communication-center .communication-view-tabs,
  body:not(.admin-dark) .communication-center .communication-view-tabs{gap:7px;padding-bottom:8px}
  body.admin-dark .communication-center .communication-view-tabs button,
  body:not(.admin-dark) .communication-center .communication-view-tabs button{flex:0 0 auto;min-width:max-content!important}
}

/* Communications: remove the full-width divider below the filters. */
.communication-center .communication-toolbar.communication-questions-only{
  border-bottom:0!important;
}

/* Friendly styling scoped only to the Communications AI chat. */
.communication-center .communication-chat-panel{margin:16px 0 4px;border:1px solid #344256;border-radius:18px;overflow:hidden;box-shadow:0 16px 42px rgba(0,0,0,.16)}
.communication-center .communication-chat-list>header,.communication-center .communication-chat-main>header{padding:16px 18px}
.communication-center .communication-chat-list>a{margin:10px;border:1px solid transparent;border-radius:13px;padding:13px 14px}
.communication-center .communication-chat-list>a.active{border:1px solid rgba(214,162,31,.32);border-left:3px solid #d6a21f;background:linear-gradient(135deg,rgba(214,162,31,.12),rgba(214,162,31,.035))}
.communication-center .communication-agent-state{border-radius:999px;padding:7px 11px}
.communication-center .communication-chat-empty>svg{width:52px;height:52px;padding:11px;border-radius:18px;background:rgba(214,162,31,.1);box-shadow:0 0 0 7px rgba(214,162,31,.035)}
.communication-center .communication-chat-empty h3{margin-top:7px}
.communication-center .communication-chat-composer{gap:10px;padding:9px 14px;background:rgba(10,17,26,.7)}
.communication-center .communication-chat-composer textarea{height:42px;min-height:42px;border-radius:11px;padding:8px 14px;line-height:24px;transition:border-color .18s,box-shadow .18s}
.communication-center .communication-chat-composer textarea:focus{border-color:#d6a21f;box-shadow:0 0 0 3px rgba(214,162,31,.12);outline:0}
.communication-center .communication-chat-composer button{height:42px;min-height:42px;border-radius:11px}
.communication-center .communication-chat-composer .communication-chat-send{height:42px;min-height:42px;min-width:116px;background:linear-gradient(135deg,rgba(214,162,31,.18),rgba(214,162,31,.06));font-weight:700}
body:not(.admin-dark) .communication-center .communication-chat-panel{border-color:#d5dee9;box-shadow:0 16px 42px rgba(38,55,77,.1)}
body:not(.admin-dark) .communication-center .communication-chat-composer{background:#f7f9fc}
@media(max-width:760px){.communication-center .communication-chat-panel{margin:10px 0;border-radius:14px}.communication-center .communication-chat-composer{grid-template-columns:42px minmax(0,1fr) max-content;padding:9px 10px}.communication-center .communication-chat-composer .communication-chat-send{grid-column:auto;height:42px;min-height:42px}}

.communication-center .communication-chat-history article p{white-space:pre-wrap}

/* Keep the AI chat inside the viewport; only the message history scrolls. */
.communication-center .communication-chat-panel{height:min(680px,calc(100dvh - 250px));min-height:460px}
.communication-center .communication-chat-list,.communication-center .communication-chat-main{min-height:0;overflow:hidden}
.communication-center .communication-chat-history{height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.communication-center .communication-chat-empty{min-height:0;overflow:hidden}
.communication-center .communication-chat-main>header,.communication-center .communication-chat-composer{flex-shrink:0}
@media(max-width:760px){.communication-center .communication-chat-panel{height:calc(100dvh - 190px);min-height:400px}}

.communication-center .communication-chat-file-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.communication-center .communication-chat-attach{display:grid;place-items:center;align-self:center;width:42px;height:42px;margin:0;border:1px solid #39475b;border-radius:13px;color:#93a1b5;cursor:pointer;transition:.18s}
.communication-center .communication-chat-attach:hover{border-color:#d6a21f;color:#e6bd49;background:rgba(214,162,31,.08)}
.communication-center .communication-chat-attach svg{width:17px}
.communication-center .communication-chat-attachment-preview{grid-column:2/-1;display:flex;flex-wrap:wrap;gap:7px}
.communication-center .communication-chat-attachment-preview[hidden]{display:none}
.communication-center .communication-chat-attachment-preview span{max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:6px 9px;border:1px solid rgba(214,162,31,.28);border-radius:999px;background:rgba(214,162,31,.07);color:#d8c078;font-size:10px}
body:not(.admin-dark) .communication-center .communication-chat-attach{border-color:#cbd6e3;color:#65758b}
body:not(.admin-dark) .communication-center .communication-chat-attachment-preview span{color:#82610a;background:#fff8df}

.communication-knowledge-list{display:grid;gap:10px;max-height:520px;overflow-y:auto;padding-right:4px;scrollbar-gutter:stable}
.communication-knowledge-list>article{padding:15px 16px;border:1px solid #303b4b;border-radius:13px;background:#111a26}
.communication-knowledge-list article>header{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.communication-knowledge-list article>header span{color:#e2bd55;font-weight:700;font-size:10px}
.communication-knowledge-list article>header small{padding:4px 7px;border-radius:999px;background:#202b39;color:#9eabbc;font-size:9px}
.communication-knowledge-list article>header time{margin-left:auto;color:#718096;font-size:9px}
.communication-knowledge-list h4{margin:0 0 12px;color:#e8edf5;font-size:14px}
.communication-knowledge-list article>div{display:grid;grid-template-columns:64px 1fr;gap:10px;padding:9px 0;border-top:1px solid #273241}
.communication-knowledge-list article>div strong{color:#8d9aab;font-size:9px;text-transform:uppercase}
.communication-knowledge-list article>div p{margin:0;color:#dce3ed;font-size:11px;line-height:1.5}
body:not(.admin-dark) .communication-knowledge-list>article{border-color:#d5dee9;background:#fff}
body:not(.admin-dark) .communication-knowledge-list h4,body:not(.admin-dark) .communication-knowledge-list article>div p{color:#172238}
body:not(.admin-dark) .communication-knowledge-list article>div{border-color:#e0e6ee}

/* Accounting detail: align both money columns without changing table widths. */
.accounting-detail-table th:nth-child(3),
.accounting-detail-table td:nth-child(3),
.accounting-detail-table th:nth-child(4),
.accounting-detail-table td:nth-child(4){
  text-align:right!important;
  font-variant-numeric:tabular-nums;
}

/* The first footer cell spans two columns, so Accrued is the second DOM cell. */
.accounting-detail-table tfoot td:nth-child(2){
  text-align:right!important;
  font-variant-numeric:tabular-nums;
}

/* Employees: employee picker mirrors Accounting selector. */
.employee-page-head .employee-picker{width:min(520px,42vw);min-width:420px}
.employee-page-head .employee-picker input{height:42px;min-height:42px;padding:0 16px;border-radius:8px;font-size:14px}
.employee-page-head .employee-picker .employee-search-results{top:calc(100% + 8px);max-height:520px;padding:8px;border-radius:9px}
.employee-page-head .employee-picker .employee-search-results a{gap:13px;padding:11px 12px;border-radius:7px}
.employee-page-head .employee-picker .employee-search-results strong{color:#f2c84b;font-size:13px}
.employee-page-head .employee-picker .employee-search-results small{color:#91a0b5;font-size:11px}
.employee-page-head .employee-picker .employee-search-avatar{width:38px;height:38px;flex-basis:38px;border-color:rgba(214,162,31,.55);background:rgba(214,162,31,.1);color:#f2c84b;font-size:12px}
@media(max-width:820px){.employee-page-head .employee-picker{width:100%;min-width:0}}

/* Accounting: always expose the actual monthly balance beside the month. */
.accounting-table .accounting-month-name{min-width:118px}
.accounting-table .accounting-month-name>strong{display:block}
.accounting-month-balance{display:inline-flex;margin-top:4px;padding:2px 5px;border:1px solid transparent;border-radius:4px;font-size:8px;font-weight:700;line-height:1.2}
.accounting-month-balance.settled{border-color:rgba(52,193,108,.24);background:rgba(52,193,108,.10);color:#63d996}
.accounting-month-balance.due{border-color:rgba(214,162,31,.34);background:rgba(214,162,31,.13);color:#f2c84b}

.accounting-month-balance.credit{border-color:rgba(68,143,227,.35);background:rgba(68,143,227,.13);color:#78b9ff}

.module-access-control{display:none!important}

/* Accounting PDF statement import */
.accounting-statement-preview{margin:14px 14px 0;border:1px solid #303b4b;border-radius:7px;background:#121a26;overflow:hidden}
.accounting-statement-preview>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid #303b4b}
.accounting-statement-preview>header small{color:#69dda0;font-size:9px;font-weight:700}
.accounting-statement-preview>header h3{margin:3px 0 0;font-size:13px}
.accounting-statement-preview>header p{margin:3px 0 0;color:#8492a6;font-size:9px}
.accounting-statement-state,.accounting-statement-row-state{display:inline-flex;padding:4px 7px;border:1px solid rgba(214,162,31,.38);border-radius:5px;background:rgba(214,162,31,.08);color:#f0c95d;font-size:8px;font-weight:700;white-space:nowrap}
.accounting-statement-state.confirmed,.accounting-statement-row-state.imported,.accounting-statement-row-state.matched{border-color:rgba(74,210,134,.42);background:rgba(44,174,104,.09);color:#69dda0}
.accounting-statement-row-state.duplicate{border-color:rgba(64,143,227,.38);background:rgba(64,143,227,.09);color:#78b9ff}
.accounting-statement-row-state.unmatched{border-color:rgba(230,75,75,.4);background:rgba(230,75,75,.08);color:#ff8585}
.accounting-statement-table{overflow:auto}
.accounting-statement-table table{width:100%;min-width:980px;border-collapse:collapse}
.accounting-statement-table th,.accounting-statement-table td{padding:8px 7px;border-bottom:1px solid #253142;text-align:left;font-size:9px}
.accounting-statement-table th{background:#101823;color:#8390a4;font-weight:600}
.accounting-statement-table td:first-child,.accounting-statement-table th:first-child{text-align:center;width:56px}
.accounting-statement-table input:not([type="checkbox"]),.accounting-statement-table select{width:100%;height:30px;min-height:30px;padding:0 7px;border:1px solid #39475b;border-radius:5px;background:#0d141e;color:#e8edf5;font-size:9px}
.accounting-statement-table input[type="checkbox"]{width:15px;height:15px;accent-color:#38b978}
.accounting-statement-table td:nth-child(2){min-width:210px}.accounting-statement-table td:nth-child(5){min-width:155px}.accounting-statement-table td:nth-child(7){min-width:120px}
.accounting-statement-table td small{display:block;margin-top:4px;color:#7f8da1;font-size:8px}
.accounting-statement-table tr.duplicate td{background:rgba(64,143,227,.025)}.accounting-statement-table tr.unmatched td{background:rgba(230,75,75,.025)}
.accounting-statement-preview form>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px}
.accounting-statement-preview form>footer>span{color:#8492a6;font-size:9px}
.accounting-statement-upload{display:grid;gap:12px;padding:18px}
.accounting-statement-upload>label{position:relative;display:flex;align-items:center;gap:12px;min-height:94px;padding:16px;border:1px dashed rgba(74,210,134,.48);border-radius:7px;background:rgba(44,174,104,.06);cursor:pointer}
.accounting-statement-upload>label:hover{background:rgba(44,174,104,.11)}
.accounting-statement-upload>label>svg{width:25px;color:#69dda0}.accounting-statement-upload>label span{display:grid;gap:4px}.accounting-statement-upload>label strong{font-size:12px}.accounting-statement-upload>label small{color:#8492a6;font-size:9px}
.accounting-statement-upload>label input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.accounting-statement-upload>div{display:flex;gap:10px;padding:10px;border:1px solid #303b4b;border-radius:6px}.accounting-statement-upload>div svg{width:18px;color:#f0c95d}.accounting-statement-upload>div p{display:grid;gap:3px;margin:0}.accounting-statement-upload>div strong{font-size:10px}.accounting-statement-upload>div span{color:#8492a6;font-size:9px;line-height:1.45}
.accounting-statement-upload>section{display:grid;gap:6px}.accounting-statement-upload>section h4{margin:0 0 2px;font-size:10px}.accounting-statement-upload>section a{display:flex;justify-content:space-between;gap:10px;padding:8px;border:1px solid #303b4b;border-radius:5px;color:#dce3ed;text-decoration:none;font-size:9px}.accounting-statement-upload>section a:hover{border-color:rgba(214,162,31,.4);background:rgba(214,162,31,.05)}.accounting-statement-upload>section a small{color:#8492a6}
body:not(.admin-dark) .accounting-statement-preview,body:not(.admin-dark) .accounting-statement-upload>div,body:not(.admin-dark) .accounting-statement-upload>section a{border-color:#d5dee9;background:#fff}
body:not(.admin-dark) .accounting-statement-table th{background:#eef2f7;color:#647287}body:not(.admin-dark) .accounting-statement-table td{border-color:#dce3eb}body:not(.admin-dark) .accounting-statement-table input:not([type="checkbox"]),body:not(.admin-dark) .accounting-statement-table select{border-color:#cbd6e3;background:#fff;color:#172238}
@media(max-width:760px){.accounting-statement-preview{margin:8px 8px 0}.accounting-statement-preview>header,.accounting-statement-preview form>footer{align-items:flex-start;flex-direction:column}.accounting-statement-upload>section a{flex-direction:column}}
/* Compact accounting dialog actions */
.accounting-dialog footer{align-items:center;flex-wrap:nowrap}
.accounting-dialog footer>[data-accounting-close]{flex:0 0 auto;min-height:30px;height:30px;padding:0 9px!important;font-size:10px;white-space:nowrap}
.accounting-dialog footer>.accounting-button{flex:0 1 auto;width:auto!important;min-width:0;white-space:nowrap}
.accounting-dialog footer>.accounting-delete-button{flex:0 1 auto;min-height:32px;padding:0 10px!important;font-size:10px;white-space:nowrap}
@media(max-width:520px){.accounting-dialog footer{gap:6px;padding:10px}.accounting-dialog footer>.accounting-button{padding:0 10px;font-size:10px}.accounting-dialog footer>.accounting-delete-button{font-size:0}.accounting-dialog footer>.accounting-delete-button svg{width:15px}}
/* Rebuilt accrual editor */
.accounting-accrual-edit-dialog{width:min(720px,calc(100vw - 32px));max-width:720px;max-height:calc(100vh - 32px);overflow:auto;border-radius:14px}
.accounting-accrual-edit-dialog form{position:relative;min-width:0}
.accounting-accrual-edit-dialog form>header{position:relative;min-height:76px;padding:18px 64px 16px 22px}
.accounting-accrual-edit-dialog form>header h3{font-size:20px;line-height:1.2}
.accounting-accrual-edit-dialog form>header .accounting-accrual-close{position:absolute;z-index:2;top:12px;right:12px;display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid rgba(248,113,113,.55);border-radius:9px;background:rgba(239,68,68,.12);color:#ff7373;font-size:24px;font-weight:700;line-height:1;cursor:pointer}
.accounting-accrual-edit-dialog form>header .accounting-accrual-close:hover{border-color:#ff7373;background:rgba(239,68,68,.22);color:#ff9a9a}
.accounting-accrual-edit-dialog .accounting-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:20px 22px 22px}
.accounting-accrual-edit-dialog .accounting-form input{width:100%;min-width:0;height:42px;font-size:14px}
.accounting-accrual-edit-dialog .accounting-accrual-actions{display:grid;grid-template-columns:auto 72px minmax(170px,auto);align-items:center;justify-content:end;gap:10px;padding:14px 22px}
.accounting-accrual-edit-dialog .accounting-accrual-actions .accounting-delete-button{justify-self:start;min-height:36px;padding:0 12px!important;border-color:rgba(248,113,113,.45)!important;background:rgba(239,68,68,.08)!important;color:#ff8585!important;font-size:11px}
.accounting-accrual-edit-dialog .accounting-accrual-actions .accounting-accrual-cancel{width:72px!important;height:34px!important;min-height:34px;padding:0 8px!important;font-size:10px}
.accounting-accrual-edit-dialog .accounting-accrual-actions .accounting-button{width:auto!important;min-height:38px;padding:0 15px;white-space:nowrap}
@media(max-width:620px){.accounting-accrual-edit-dialog{width:calc(100vw - 18px)}.accounting-accrual-edit-dialog .accounting-form{grid-template-columns:1fr;padding:16px}.accounting-accrual-edit-dialog .accounting-accrual-actions{grid-template-columns:36px 60px minmax(0,1fr);gap:6px;padding:10px}.accounting-accrual-edit-dialog .accounting-accrual-actions .accounting-delete-button{width:36px;padding:0!important;font-size:0}.accounting-accrual-edit-dialog .accounting-accrual-actions .accounting-delete-button svg{width:16px}.accounting-accrual-edit-dialog .accounting-accrual-actions .accounting-accrual-cancel{width:60px!important}.accounting-accrual-edit-dialog .accounting-accrual-actions .accounting-button{width:100%!important;padding:0 8px;font-size:10px}}

/* ==========================================================
   FECOR ERP daylight theme — high contrast user application
   Dark theme is intentionally untouched.
   ========================================================== */
body:not(.admin-dark){
  --bg:#f4f7fb;--card:#ffffff;--text:#162033;--muted:#657287;--line:#d7e0ea;
  --accent:#1769e0;--accent-dark:#0d54bd;--fecor-gold-text:#8a6300;
  background:#f4f7fb;color:#162033;
}
body:not(.admin-dark) .topbar{background:#fff;border-color:#d6e0eb;box-shadow:0 1px 3px rgba(27,43,65,.06)}
body:not(.admin-dark) .topbar h1,body:not(.admin-dark) .topbar h1 span{color:#172238;text-shadow:none}
body:not(.admin-dark) .topbar p,body:not(.admin-dark) .userbar{color:#5f6e83}
body:not(.admin-dark) .app-layout,body:not(.admin-dark) main.page{background:#f4f7fb}
body:not(.admin-dark) .side-nav{background:#fff;border-color:#d6e0eb;color:#26344a;box-shadow:1px 0 3px rgba(27,43,65,.04)}
body:not(.admin-dark) .side-nav nav a,body:not(.admin-dark) .side-nav-tree summary,body:not(.admin-dark) .side-nav-subtree summary{color:#405069}
body:not(.admin-dark) .side-nav nav a:hover,body:not(.admin-dark) .side-nav nav a.active,body:not(.admin-dark) .side-nav-tree.active>summary,body:not(.admin-dark) .side-nav-tree summary:hover,body:not(.admin-dark) .side-nav-tree div a.active{border-color:#d7b449;background:#fff8df;color:#765504}
body:not(.admin-dark) .side-nav-bottom{border-color:#d6e0eb}
body:not(.admin-dark) .table-section,body:not(.admin-dark) .panel,body:not(.admin-dark) .card,body:not(.admin-dark) .admin-command-panel,body:not(.admin-dark) .site-fecor-card{background:#fff;border-color:#d5dee9;color:#162033;box-shadow:0 2px 8px rgba(37,55,78,.045)}
body:not(.admin-dark) .section-head,body:not(.admin-dark) .panel>header,body:not(.admin-dark) .table-section>header{border-color:#d7e0ea}
body:not(.admin-dark) h1,body:not(.admin-dark) h2,body:not(.admin-dark) h3,body:not(.admin-dark) h4,body:not(.admin-dark) strong{color:#162033}
body:not(.admin-dark) p,body:not(.admin-dark) small,body:not(.admin-dark) label>span,body:not(.admin-dark) .muted{color:#657287}
body:not(.admin-dark) main.page input:not([type=checkbox]):not([type=radio]):not([type=file]),body:not(.admin-dark) main.page select,body:not(.admin-dark) main.page textarea{border-color:#bfcbd9;background:#fff;color:#162033;box-shadow:inset 0 1px 2px rgba(33,49,71,.025)}
body:not(.admin-dark) main.page input::placeholder,body:not(.admin-dark) main.page textarea::placeholder{color:#7b889a;opacity:1}
body:not(.admin-dark) main.page input:focus,body:not(.admin-dark) main.page select:focus,body:not(.admin-dark) main.page textarea:focus{border-color:#2374df;box-shadow:0 0 0 3px rgba(35,116,223,.12)}
body:not(.admin-dark) .button,body:not(.admin-dark) .mini-link,body:not(.admin-dark) .export-link,body:not(.admin-dark) .filter-reset{border-color:#b99120;background:#fff8df;color:#765504}
body:not(.admin-dark) .button:hover,body:not(.admin-dark) .mini-link:hover,body:not(.admin-dark) .export-link:hover,body:not(.admin-dark) .filter-reset:hover{border-color:#96700c;background:#fff1bd;color:#614600}
body:not(.admin-dark) table{color:#1d293b}
body:not(.admin-dark) table thead th{background:#edf2f7!important;color:#3f4d61!important;border-color:#cfd9e5!important;font-weight:750}
body:not(.admin-dark) table tbody td{border-color:#dce4ed;color:#243146}
body:not(.admin-dark) table tbody tr:nth-child(even) td{background:#fafbfd}
body:not(.admin-dark) table tbody tr:hover td{background:#fff8e6!important}
body:not(.admin-dark) .badge.ok,body:not(.admin-dark) .status.ok{border-color:#83c99f;background:#eefaf3;color:#187344}
body:not(.admin-dark) .badge.warn,body:not(.admin-dark) .status.warn{border-color:#e7c464;background:#fff8df;color:#805d00}
body:not(.admin-dark) .badge.danger,body:not(.admin-dark) .status.error{border-color:#e8a0a5;background:#fff1f2;color:#b4232c}
body:not(.admin-dark) dialog,body:not(.admin-dark) .modal,body:not(.admin-dark) .accounting-dialog{background:#fff;color:#162033;border-color:#cbd6e3}

/* AI analytics follows the supplied daylight reference. */
body:not(.admin-dark) .marketplace-ai-analytics{background:#f8fafc;border-color:#d5dee9;color:#162033;box-shadow:0 2px 10px rgba(35,52,76,.05)}
body:not(.admin-dark) .marketplace-ai-query,body:not(.admin-dark) .marketplace-ai-analytics-head{background:#fff;border-color:#d5dee9}
body:not(.admin-dark) .marketplace-ai-query input{background:#fff;border-color:#bdc9d7;color:#172238}
body:not(.admin-dark) .marketplace-ai-query button{border-color:#1769e0;background:#1769e0;color:#fff;box-shadow:0 4px 10px rgba(23,105,224,.16)}
body:not(.admin-dark) .marketplace-ai-query button:hover{background:#0d5cc9;border-color:#0d5cc9}
body:not(.admin-dark) .marketplace-ai-overview>article,body:not(.admin-dark) .marketplace-ai-score-grid article,body:not(.admin-dark) .marketplace-ai-card,body:not(.admin-dark) .marketplace-ai-history a{background:#fff;border-color:#d8e1eb;box-shadow:0 1px 5px rgba(34,52,76,.04)}
body:not(.admin-dark) .marketplace-ai-score{background:radial-gradient(closest-side,#fff 78%,transparent 80% 99%),conic-gradient(#34a853 calc(var(--score)*1%),#e6ebf1 0)}
body:not(.admin-dark) .marketplace-ai-score-grid article>span,body:not(.admin-dark) .marketplace-ai-total span,body:not(.admin-dark) .marketplace-ai-product p,body:not(.admin-dark) .marketplace-ai-recommendations small,body:not(.admin-dark) .marketplace-ai-seo>span,body:not(.admin-dark) .marketplace-ai-facts p span{color:#657287}
body:not(.admin-dark) .marketplace-ai-seo>p{background:#f1f5f9;color:#26344a}
body:not(.admin-dark) .marketplace-ai-seo>p.recommended{background:#edf9f1;color:#176f3d}
body:not(.admin-dark) .marketplace-ai-reviews .positive{background:#edf9f1;color:#176f3d}
body:not(.admin-dark) .marketplace-ai-reviews .negative{background:#fff0f1;color:#b4232c}
body:not(.admin-dark) .marketplace-ai-keywords b{background:#fff;border-color:#cfd9e5;color:#344258}
body:not(.admin-dark) .marketplace-ai-analytics-head>strong{border-color:#7fc79e;background:#edf9f2;color:#187344}

/* AI analytics: compact Mac/Desktop overview. */
.marketplace-ai-overview{
  grid-template-columns:minmax(280px,1.05fr) minmax(300px,.9fr) minmax(0,2.35fr);
  align-items:stretch;
  gap:10px;
}
.marketplace-ai-overview>.marketplace-ai-product,
.marketplace-ai-overview>.marketplace-ai-total{min-height:172px;height:172px;overflow:hidden}
.marketplace-ai-product{grid-template-columns:92px minmax(0,1fr);gap:11px;padding:12px}
.marketplace-ai-product-image{height:92px}
.marketplace-ai-product h3{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}
.marketplace-ai-product p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.marketplace-ai-total{align-items:center;gap:12px;padding:12px}
.marketplace-ai-total>div:last-child{min-width:0;align-self:center}
.marketplace-ai-score{flex-basis:76px;width:76px;height:76px}
.marketplace-ai-score strong{font-size:23px}
.marketplace-ai-total h3{
  display:-webkit-box;
  margin:5px 0;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:5;
  font-size:11px;
  line-height:1.42;
}
.marketplace-ai-total p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}
.marketplace-ai-score-grid{grid-template-columns:repeat(6,minmax(86px,1fr));gap:7px;min-width:0}
.marketplace-ai-score-grid article{
  min-width:0;
  min-height:172px;
  height:172px;
  align-content:center;
  padding:10px 8px;
}
.marketplace-ai-score-grid article>span{min-height:28px;line-height:1.35}
.marketplace-ai-score-grid article>strong{align-self:end;font-size:18px}
.marketplace-ai-dashboard{align-items:start}
.marketplace-ai-card{min-width:0}
@media(max-width:1680px){
  .marketplace-ai-overview{grid-template-columns:minmax(260px,1fr) minmax(280px,.9fr) minmax(0,1.8fr)}
  .marketplace-ai-score-grid{grid-template-columns:repeat(3,minmax(105px,1fr))}
  .marketplace-ai-overview>.marketplace-ai-product,.marketplace-ai-overview>.marketplace-ai-total,
  .marketplace-ai-score-grid article{height:172px;min-height:172px}
}
@media(max-width:1180px){
  .marketplace-ai-overview{grid-template-columns:1fr 1fr}
  .marketplace-ai-score-grid{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr))}
  .marketplace-ai-score-grid article{height:124px;min-height:124px}
}
@media(max-width:720px){
  .marketplace-ai-overview{grid-template-columns:1fr}
  .marketplace-ai-overview>.marketplace-ai-product,.marketplace-ai-overview>.marketplace-ai-total{height:auto;min-height:150px}
  .marketplace-ai-score-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* WB report: compact result header, optional article list. */
.marketplace-report-human-result{
  display:grid;
  gap:16px;
  padding:18px;
}
.marketplace-report-human-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.marketplace-report-human-head>div{
  display:grid;
  gap:4px;
  min-width:0;
}
.marketplace-report-human-head strong{
  color:#f8fafc;
  font-size:22px;
  line-height:1.15;
}
.marketplace-report-human-head small{
  color:#94a3b8;
  font-size:14px;
}
.marketplace-report-csv-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:38px;
  padding:0 14px!important;
  white-space:nowrap;
}
.marketplace-report-summary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(140px,1fr));
  gap:10px;
}
.marketplace-report-summary-grid>div{
  display:grid;
  gap:6px;
  min-height:74px;
  padding:12px 14px;
  border:1px solid rgba(148,163,184,.24);
  border-radius:12px;
  background:rgba(15,23,42,.38);
}
.marketplace-report-summary-grid>div.ok{
  border-color:rgba(52,211,153,.5);
  background:rgba(16,185,129,.12);
}
.marketplace-report-summary-grid>div.warn{
  border-color:rgba(250,204,21,.5);
  background:rgba(250,204,21,.10);
}
.marketplace-report-summary-grid span{
  color:#94a3b8;
  font-size:12px;
}
.marketplace-report-summary-grid strong{
  color:#f8fafc;
  font-size:20px;
  line-height:1.1;
  font-variant-numeric:tabular-nums;
}
.marketplace-report-rows-details{
  border-top:1px solid rgba(148,163,184,.18);
  padding-top:12px;
}
.marketplace-report-rows-details>summary{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:36px;
  padding:0 13px;
  border:1px solid rgba(148,163,184,.35);
  border-radius:10px;
  color:#cbd5e1;
  background:rgba(15,23,42,.45);
  cursor:pointer;
  list-style:none;
}
.marketplace-report-rows-details>summary::-webkit-details-marker{display:none}
.marketplace-report-rows-details>summary svg{width:16px;height:16px}
.marketplace-report-table-wrap{
  max-height:420px;
  margin-top:12px;
  overflow:auto;
  border:1px solid rgba(148,163,184,.22);
  border-radius:12px;
}
.marketplace-report-table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}
.marketplace-report-table th,.marketplace-report-table td{
  padding:10px 12px;
  border-bottom:1px solid rgba(148,163,184,.14);
  text-align:left;
}
.marketplace-report-table th{
  position:sticky;
  top:0;
  background:#101926;
  color:#94a3b8;
  font-size:11px;
  text-transform:uppercase;
}
.marketplace-report-table td:nth-child(2),.marketplace-report-table td:nth-child(3),.marketplace-report-table td:nth-child(4){
  text-align:right;
  font-variant-numeric:tabular-nums;
}
@media(max-width:980px){
  .marketplace-report-human-head{align-items:stretch;flex-direction:column}
  .marketplace-report-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .marketplace-report-summary-grid{grid-template-columns:1fr}
}

/* Reports AI: equal Ozon/WB upload panels in the WB 1C result style. */
.marketplace-report-grid{align-items:stretch}
.marketplace-report-card{
  display:flex;
  min-width:0;
  flex-direction:column;
  border-color:rgba(52,211,153,.30);
  border-radius:12px;
  background:rgba(15,23,42,.38);
}
.marketplace-report-card:hover{border-color:rgba(52,211,153,.52)}
.marketplace-report-card>header{min-height:48px}
.marketplace-report-upload{
  display:flex;
  min-height:260px;
  padding:14px;
  flex-direction:column;
  gap:10px;
  border:1px solid rgba(148,163,184,.24);
  border-radius:12px;
  background:rgba(15,23,42,.38);
}
.marketplace-report-upload label{
  width:100%;
  min-height:58px;
  border:1px solid rgba(52,211,153,.34);
  border-radius:10px;
  background:rgba(16,185,129,.07);
}
.marketplace-report-upload label:hover{
  border-color:rgba(52,211,153,.60);
  background:rgba(16,185,129,.12);
}
.marketplace-report-upload label:has(>input:not([type="file"])){
  display:block;
  min-height:42px;
  padding:0;
  border:0;
  background:transparent;
}
.marketplace-report-upload input:not([type="file"]){
  position:static;
  width:100%;
  height:42px;
  padding:0 12px;
  opacity:1;
  border:1px solid rgba(148,163,184,.30);
  border-radius:10px;
  background:rgba(15,23,42,.46);
  color:var(--text);
  font:inherit;
}
.marketplace-report-upload input:not([type="file"]):focus{
  border-color:rgba(52,211,153,.62);
  outline:none;
  box-shadow:0 0 0 3px rgba(16,185,129,.10);
}
.marketplace-report-upload button{
  width:100%;
  min-height:42px;
  margin-top:auto;
  border-color:rgba(52,211,153,.52);
  border-radius:10px;
  background:rgba(16,185,129,.10);
  color:#6ee7b7;
}
.marketplace-report-upload button:hover{
  border-color:rgba(52,211,153,.76);
  background:rgba(16,185,129,.17);
  color:#a7f3d0;
}
body:not(.admin-dark) .marketplace-report-card,
body:not(.admin-dark) .marketplace-report-upload{background:#f8fbfa}
body:not(.admin-dark) .marketplace-report-upload input:not([type="file"]){background:#fff;color:#17202c}

/* Keep the WB result inside its half-width card. */
.marketplace-report-card .marketplace-report-human-result{
  width:100%;
  min-width:0;
  max-width:100%;
  overflow:hidden;
}
.marketplace-report-card .marketplace-report-human-head{
  align-items:flex-start;
  flex-wrap:wrap;
}
.marketplace-report-card .marketplace-report-csv-link{
  max-width:100%;
  min-width:0;
  flex:0 1 auto;
  white-space:normal;
  text-align:center;
}
.marketplace-report-card .marketplace-report-summary-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.marketplace-report-card .marketplace-report-summary-grid>div{min-width:0}
.marketplace-report-card .marketplace-report-summary-grid strong{
  min-width:0;
  overflow:hidden;
  font-size:clamp(16px,1.35vw,20px);
  text-overflow:ellipsis;
  white-space:nowrap;
}
.marketplace-report-card .marketplace-report-table-wrap{max-width:100%}
.marketplace-report-upload>button{
  border:1px solid rgba(52,211,153,.58)!important;
  background:linear-gradient(135deg,rgba(16,185,129,.16),rgba(52,211,153,.07))!important;
  color:#7ee7b2!important;
  box-shadow:0 8px 22px rgba(4,120,87,.08);
}
.marketplace-report-upload>button:hover{
  border-color:rgba(52,211,153,.82)!important;
  background:linear-gradient(135deg,rgba(16,185,129,.24),rgba(52,211,153,.12))!important;
  color:#b7f7d7!important;
  transform:translateY(-1px);
}
@media(max-width:560px){
  .marketplace-report-card .marketplace-report-summary-grid{grid-template-columns:1fr}
}
body[data-os-section="supplies-ai"] main.page>.stock-cards{display:none!important}
.marketplace-supplies-ai-panel .marketplace-report-logo svg{width:18px;height:18px}
body[data-os-section="fecor-site"] main.page>.stock-cards{display:none!important}

body[data-os-section]:not([data-os-section="home"]) main.page>.stock-cards{display:none!important}
.site-fecor-price-export{position:relative;margin-left:auto}
.site-fecor-price-export[hidden]{display:none!important}
.site-fecor-price-export summary{list-style:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:8px 14px;border:1px solid rgba(214,162,31,.52);border-radius:10px;background:rgba(214,162,31,.09);color:var(--fecor-gold-text,#a87900);font-size:13px;font-weight:800;cursor:pointer;user-select:none}
.site-fecor-price-export summary::-webkit-details-marker{display:none}
.site-fecor-price-export summary svg{width:17px;height:17px}
body.admin-dark .site-fecor-price-export summary{color:var(--fecor-gold-bright,#f2c94c);background:rgba(214,162,31,.1)}
.site-fecor-price-export[open] summary{border-color:rgba(214,162,31,.82);background:rgba(214,162,31,.16)}
.site-fecor-price-export form{position:absolute;z-index:80;top:calc(100% + 9px);right:0;width:min(700px,calc(100vw - 76px));display:grid;grid-template-columns:1fr 1.35fr 1fr auto;align-items:end;gap:10px;padding:16px;border:1px solid rgba(214,162,31,.42);border-radius:14px;background:#fff;box-shadow:0 18px 48px rgba(20,28,40,.22)}
body.admin-dark .site-fecor-price-export form{background:#121a25;border-color:rgba(214,162,31,.42);box-shadow:0 20px 54px rgba(0,0,0,.5)}
.site-fecor-price-export label{display:grid;gap:6px;min-width:0}
.site-fecor-price-export label>span{color:var(--muted);font-size:11px;font-weight:700}
.site-fecor-price-export select{width:100%;min-height:40px;padding:8px 32px 8px 10px;border:1px solid var(--line);border-radius:9px;background:var(--surface,#fff);color:var(--text);font:inherit}
body.admin-dark .site-fecor-price-export select{background:#0d1520}
.site-fecor-price-export button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 14px;border:1px solid rgba(52,211,153,.65);border-radius:9px;background:rgba(16,185,129,.12);color:#087c56;font-weight:800;white-space:nowrap}
body.admin-dark .site-fecor-price-export button{color:#76e6b4;background:rgba(16,185,129,.12)}
.site-fecor-price-export button:hover{background:rgba(16,185,129,.2);border-color:rgba(52,211,153,.9)}
.site-fecor-price-export button svg{width:16px;height:16px}
.site-fecor-price-export form>small{grid-column:1/-1;color:var(--muted);font-size:11px}
@media(max-width:760px){.site-fecor-admin>.panel-title-row{align-items:center;gap:10px}.site-fecor-price-export summary span{display:none}.site-fecor-price-export summary{width:40px;padding:8px}.site-fecor-price-export form{position:fixed;top:72px;right:12px;left:12px;width:auto;grid-template-columns:1fr}.site-fecor-price-export form>small{grid-column:1}}
.site-fecor-admin>.panel-title-row{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;width:auto}
.site-fecor-admin>.panel-title-row>div{display:flex;align-items:center;min-width:0}
.site-fecor-admin>.panel-title-row h2{margin:0}
.site-fecor-admin>.panel-title-row .site-fecor-price-export{margin-left:auto;align-self:center;flex:0 0 auto}
.site-fecor-admin>.panel-title-row{min-height:64px!important;margin:0!important;padding:10px 28px!important;box-sizing:border-box}
.site-fecor-admin>.panel-title-row>div,.site-fecor-admin>.panel-title-row .site-fecor-price-export{height:42px;display:flex;align-items:center}
.site-fecor-admin>.panel-title-row h2{display:flex;align-items:center;height:42px;line-height:1}
.site-fecor-admin>.panel-title-row .site-fecor-price-export summary{min-height:42px;height:42px;box-sizing:border-box}
@media(max-width:760px){.site-fecor-admin>.panel-title-row{min-height:58px!important;padding:8px 14px!important}.site-fecor-admin>.panel-title-row>div,.site-fecor-admin>.panel-title-row h2,.site-fecor-admin>.panel-title-row .site-fecor-price-export,.site-fecor-admin>.panel-title-row .site-fecor-price-export summary{height:40px;min-height:40px}}
/* Compact FECOR price export popover */.site-fecor-price-export summary:focus{outline:none}.site-fecor-price-export summary:focus-visible{outline:2px solid rgba(214,162,31,.68);outline-offset:2px}.site-fecor-price-export form{width:min(560px,calc(100vw - 52px));grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:12px;padding:16px;align-items:end;max-height:calc(100vh - 110px);overflow:auto}.site-fecor-price-export-head{grid-column:1/-1;display:flex;align-items:center;padding-bottom:11px;border-bottom:1px solid var(--line)}.site-fecor-price-export-head>div{display:grid;gap:3px}.site-fecor-price-export-head strong{font-size:15px;color:var(--text)}.site-fecor-price-export-head small{font-size:11px;color:var(--muted)}.site-fecor-price-export form>label{align-self:end}.site-fecor-price-export form>button{width:100%;align-self:end}.site-fecor-price-export form>small{padding-top:2px;line-height:1.4}@media(max-width:640px){.site-fecor-price-export form{top:68px;grid-template-columns:1fr;padding:14px;gap:10px}.site-fecor-price-export-head,.site-fecor-price-export form>small{grid-column:1}}
.ozon-fbo{overflow:hidden}.ozon-fbo-notice{margin:14px 24px 0;padding:10px 14px;border-radius:10px;font-weight:700}.ozon-fbo-notice.ok{color:#6ee7b7;background:rgba(16,185,129,.12);border:1px solid rgba(52,211,153,.4)}.ozon-fbo-notice.error{color:#fda4af;background:rgba(244,63,94,.1);border:1px solid rgba(244,63,94,.38)}.ozon-fbo-layout{display:grid;grid-template-columns:330px minmax(0,1fr);min-height:690px;border-top:1px solid var(--line)}.ozon-fbo-sidebar{padding:18px;border-right:1px solid var(--line);background:rgba(8,15,24,.26)}.ozon-fbo-new,.ozon-fbo-plan{display:grid;gap:12px}.ozon-fbo-new h3,.ozon-fbo-log h3,.ozon-fbo-history h3{display:flex;align-items:center;gap:8px;margin:0 0 4px}.ozon-fbo-new h3 svg{width:19px}.ozon-fbo label{display:grid;gap:6px}.ozon-fbo label>span{font-size:12px;font-weight:700;color:var(--muted)}.ozon-fbo input,.ozon-fbo select,.ozon-fbo textarea{width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text);padding:10px 12px;font:inherit}.admin-dark .ozon-fbo input,.admin-dark .ozon-fbo select,.admin-dark .ozon-fbo textarea{background:#0c1520}.ozon-fbo textarea{resize:vertical;line-height:1.45}.ozon-fbo label small{color:var(--muted);font-size:11px}.ozon-fbo-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ozon-fbo button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:39px;border:1px solid var(--line);border-radius:9px;background:rgba(148,163,184,.07);color:var(--text);padding:8px 12px;font-weight:750;cursor:pointer}.ozon-fbo button:hover{border-color:rgba(214,162,31,.65);background:rgba(214,162,31,.1)}.ozon-fbo button:disabled{opacity:.42;cursor:not-allowed}.ozon-fbo-primary{border-color:rgba(52,211,153,.6)!important;background:rgba(16,185,129,.13)!important;color:#6ee7b7!important}.ozon-fbo-history{display:grid;gap:7px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}.ozon-fbo-history a{position:relative;display:grid;gap:3px;padding:10px 11px;border:1px solid transparent;border-radius:9px;color:var(--text);text-decoration:none;background:rgba(148,163,184,.04)}.ozon-fbo-history a:hover,.ozon-fbo-history a.active{border-color:rgba(214,162,31,.45);background:rgba(214,162,31,.09)}.ozon-fbo-history a span,.ozon-fbo-history a time,.ozon-fbo-history p{font-size:11px;color:var(--muted)}.ozon-fbo-history a time{position:absolute;right:9px;top:10px}.ozon-fbo-main{min-width:0;padding:20px}.ozon-fbo-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.ozon-fbo-title h3{margin:2px 0 0;font-size:22px}.ozon-fbo-title small{color:var(--muted)}.ozon-fbo-mode{padding:6px 10px;border:1px solid rgba(52,211,153,.4);border-radius:999px;color:#6ee7b7;background:rgba(16,185,129,.1);font-size:11px;font-weight:800}.ozon-fbo-mode.live{color:#fda4af;border-color:rgba(244,63,94,.45);background:rgba(244,63,94,.1)}.ozon-fbo-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.ozon-fbo-kpis article{display:grid;gap:6px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:10px;background:rgba(148,163,184,.04)}.ozon-fbo-kpis span{font-size:11px;color:var(--muted)}.ozon-fbo-kpis strong{overflow:hidden;text-overflow:ellipsis}.ozon-fbo-plan{grid-template-columns:repeat(3,minmax(0,1fr));padding:14px;border:1px solid var(--line);border-radius:12px}.ozon-fbo-plan button{align-self:end}.ozon-fbo-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.ozon-fbo-actions form{display:inline-flex}.ozon-fbo-danger{margin:12px 0;border:1px solid rgba(244,63,94,.3);border-radius:10px}.ozon-fbo-danger summary{padding:11px 13px;color:#fda4af;font-weight:800;cursor:pointer}.ozon-fbo-danger>div{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0 13px 13px}.ozon-fbo-danger form{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end}.ozon-fbo-danger form label{grid-column:1}.ozon-fbo-danger .danger{border-color:rgba(244,63,94,.5);color:#fda4af}.ozon-fbo-table{overflow:auto;margin-top:14px;border:1px solid var(--line);border-radius:11px}.ozon-fbo-table table{width:100%;border-collapse:collapse;min-width:850px}.ozon-fbo-table th,.ozon-fbo-table td{padding:10px 11px;border-bottom:1px solid var(--line);text-align:left;font-size:12px}.ozon-fbo-table th{background:rgba(148,163,184,.06);color:var(--muted)}.ozon-fbo-table td small{display:block;margin-top:4px;color:#fda4af}.ozon-fbo-item-status{display:inline-flex;padding:3px 7px;border-radius:999px;background:rgba(214,162,31,.1);color:#f2c94c;font-size:10px;font-weight:800}.ozon-fbo-log{margin-top:16px}.ozon-fbo-log article{display:grid;grid-template-columns:20px 1fr auto;gap:9px;align-items:center;padding:9px 2px;border-bottom:1px solid var(--line)}.ozon-fbo-log article svg{width:17px;color:var(--muted)}.ozon-fbo-log article div{display:grid;gap:2px}.ozon-fbo-log article span,.ozon-fbo-log article time{font-size:11px;color:var(--muted)}.ozon-fbo-empty{display:grid;place-items:center;align-content:center;min-height:580px;text-align:center}.ozon-fbo-empty svg{width:46px;height:46px;color:#f2c94c}.ozon-fbo-empty h3{margin:14px 0 5px}.ozon-fbo-empty p{max-width:500px;color:var(--muted)}@media(max-width:1100px){.ozon-fbo-layout{grid-template-columns:1fr}.ozon-fbo-sidebar{border-right:0;border-bottom:1px solid var(--line)}.ozon-fbo-kpis{grid-template-columns:1fr 1fr}}@media(max-width:700px){.ozon-fbo-main,.ozon-fbo-sidebar{padding:12px}.ozon-fbo-two,.ozon-fbo-plan,.ozon-fbo-danger>div{grid-template-columns:1fr}.ozon-fbo-kpis{grid-template-columns:1fr}.ozon-fbo-danger form{grid-template-columns:1fr}.ozon-fbo-danger form button{grid-column:1}}
.side-nav a.ai-agent-link{position:relative}.side-nav a.ai-agent-link::after{content:"";position:absolute;right:10px;top:50%;width:7px;height:7px;border-radius:50%;transform:translateY(-50%);box-shadow:0 0 0 3px transparent}.side-nav a.ai-agent-link.online,.side-nav a.ai-agent-link.online strong,.side-nav a.ai-agent-link.online>svg{color:#43d695!important}.side-nav a.ai-agent-link.online::after{background:#34d399;box-shadow:0 0 0 3px rgba(52,211,153,.13),0 0 10px rgba(52,211,153,.55)}.side-nav a.ai-agent-link.offline,.side-nav a.ai-agent-link.offline strong,.side-nav a.ai-agent-link.offline>svg{color:#f87171!important}.side-nav a.ai-agent-link.offline::after{background:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.12),0 0 10px rgba(239,68,68,.45)}body:not(.admin-dark) .side-nav a.ai-agent-link.online,body:not(.admin-dark) .side-nav a.ai-agent-link.online strong,body:not(.admin-dark) .side-nav a.ai-agent-link.online>svg{color:#078348!important}body:not(.admin-dark) .side-nav a.ai-agent-link.offline,body:not(.admin-dark) .side-nav a.ai-agent-link.offline strong,body:not(.admin-dark) .side-nav a.ai-agent-link.offline>svg{color:#c62828!important}.side-nav.collapsed a.ai-agent-link::after{right:5px;top:7px;transform:none}
.side-nav:not(.collapsed) a.ai-agent-link::after{right:-18px}.side-nav:not(.collapsed) a.ai-agent-link strong{padding-right:10px}
.side-nav:not(.collapsed) a.ai-agent-link::after{right:2px}.side-nav:not(.collapsed) a.ai-agent-link strong{padding-right:20px}.side-nav nav{scrollbar-width:none;-ms-overflow-style:none}.side-nav nav::-webkit-scrollbar{display:none;width:0;height:0}
.side-nav:not(.collapsed) a.ai-agent-link::after{right:10px}.side-nav:not(.collapsed) a.ai-agent-link strong{padding-right:24px}
.side-nav:not(.collapsed) a.ai-agent-link::after{right:18px}.side-nav:not(.collapsed) a.ai-agent-link strong{padding-right:32px}.side-nav nav,.side-nav-tree,.side-nav-subtree{min-width:0;max-width:100%}.side-nav-tree>summary,.side-nav-subtree>summary,.side-nav-tree>div,.side-nav-tree>div>a,.side-nav-subtree>a{width:100%;max-width:100%;box-sizing:border-box}.side-nav-tree,.side-nav-subtree{overflow:hidden}
.side-nav a.ai-agent-link::after{position:static;top:auto;right:auto;transform:none;margin-left:auto;flex:0 0 7px}.side-nav:not(.collapsed) a.ai-agent-link strong{padding-right:0}.side-nav-tree,.side-nav-subtree{overflow:visible}.side-nav-tree>summary,.side-nav-subtree>summary,.side-nav-tree>div>a{width:100%;max-width:100%;box-sizing:border-box}
.side-nav-tree>summary,.side-nav-subtree>summary,.side-nav a.ai-agent-link{padding-right:10px!important}.side-nav-tree>summary::after,.side-nav-subtree>summary::after{width:11px;flex:0 0 11px;text-align:center;margin-left:auto}.side-nav a.ai-agent-link::after{margin-left:auto;margin-right:2px}
.side-nav-tree>summary,.side-nav-subtree>summary{position:relative;overflow:visible}.side-nav-tree>summary::after,.side-nav-subtree>summary::after{position:absolute;right:-24px;top:50%;width:11px;height:12px;line-height:12px;margin:0;margin-top:-6px;flex:none;text-align:center}
.side-nav-tree>summary::after,.side-nav-subtree>summary::after{right:-10px}

/* Sidebar alignment grid: desktop and Mac widths */
.side-nav nav{scrollbar-width:none;-ms-overflow-style:none}
.side-nav nav::-webkit-scrollbar{display:none;width:0;height:0}
@media(min-width:1101px){
 body:not(.side-menu-collapsed) .side-nav nav{padding-right:12px}
 body:not(.side-menu-collapsed) .side-nav-tree,
 body:not(.side-menu-collapsed) .side-nav-subtree{width:100%;min-width:0;max-width:100%;overflow:visible;box-sizing:border-box}
 body:not(.side-menu-collapsed) .side-nav-tree>summary,
 body:not(.side-menu-collapsed) .side-nav-subtree>summary{
  display:grid;grid-template-columns:18px minmax(0,1fr) 11px;column-gap:10px;align-items:center;
  width:100%;max-width:100%;box-sizing:border-box;padding-right:9px!important
 }
 body:not(.side-menu-collapsed) .side-nav-tree>summary>svg,
 body:not(.side-menu-collapsed) .side-nav-subtree>summary>svg{grid-column:1}
 body:not(.side-menu-collapsed) .side-nav-tree>summary>strong,
 body:not(.side-menu-collapsed) .side-nav-subtree>summary>strong{grid-column:2;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body:not(.side-menu-collapsed) .side-nav-tree>summary::after,
 body:not(.side-menu-collapsed) .side-nav-subtree>summary::after{
  position:static;grid-column:3;grid-row:1;align-self:center;justify-self:center;
  width:11px;height:12px;line-height:12px;margin:0;text-align:center
 }
 body:not(.side-menu-collapsed) .side-nav-tree>div{width:100%;min-width:0;box-sizing:border-box;padding-left:12px}
 body:not(.side-menu-collapsed) .side-nav-tree>div>a{
  display:grid;grid-template-columns:18px minmax(0,1fr) 11px;column-gap:10px;align-items:center;
  width:calc(100% + 12px);max-width:calc(100% + 12px);margin-right:-12px;box-sizing:border-box;padding-right:9px!important
 }
 body:not(.side-menu-collapsed) .side-nav-tree>div>a>svg{grid-column:1}
 body:not(.side-menu-collapsed) .side-nav-tree>div>a>strong{grid-column:2;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:0}
 body:not(.side-menu-collapsed) .side-nav a.ai-agent-link::after{
  position:static;grid-column:3;grid-row:1;align-self:center;justify-self:center;
  width:7px;height:7px;margin:0;transform:none
 }
}

/* Reports AI responsive layout: prevent horizontal overflow on Mac. */
.marketplace-report-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:100%;overflow:hidden}
.marketplace-report-card,.marketplace-report-latest,.marketplace-report-entry{min-width:0;max-width:100%;box-sizing:border-box}
.marketplace-report-card .marketplace-report-human-result{width:100%;min-width:0;max-width:100%;box-sizing:border-box;overflow:hidden}
.marketplace-report-card .marketplace-report-summary-grid{width:100%;min-width:0;max-width:100%}
.marketplace-report-card .marketplace-report-summary-grid>div{min-width:0;max-width:100%;box-sizing:border-box}
.marketplace-report-card .marketplace-report-summary-grid strong{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1500px){
 .marketplace-report-grid{grid-template-columns:minmax(0,1fr)}
 .marketplace-report-card .marketplace-report-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:900px){
 .marketplace-report-card .marketplace-report-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
 .marketplace-report-card .marketplace-report-summary-grid{grid-template-columns:minmax(0,1fr)}
 .marketplace-report-human-result{padding:12px}
}

/* Employee attendance tab */
.employee-attendance{overflow:hidden;border:1px solid var(--line);border-radius:10px;background:rgba(20,28,39,.72)}
.employee-attendance>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border-bottom:1px solid var(--line)}
.employee-attendance>header h3,.employee-attendance>header p{margin:0}.employee-attendance>header p{margin-top:3px;color:var(--muted);font-size:11px}
.employee-attendance>header select{min-height:36px;padding:7px 30px 7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);font:inherit}
body.admin-dark .employee-attendance>header select{background:#0d1520}
.employee-attendance-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:14px 16px}
.employee-attendance-summary article{display:grid;gap:5px;min-width:0;padding:11px 12px;border:1px solid var(--line);border-radius:9px;background:rgba(148,163,184,.04)}
.employee-attendance-summary article.sick{border-color:rgba(96,165,250,.34);background:rgba(59,130,246,.07)}
.employee-attendance-summary article.admin{border-color:rgba(245,190,45,.34);background:rgba(245,190,45,.07)}
.employee-attendance-summary article.absence{border-color:rgba(248,113,113,.32);background:rgba(239,68,68,.06)}
.employee-attendance-summary span{color:var(--muted);font-size:10px}.employee-attendance-summary strong{color:var(--text);font-size:19px;font-variant-numeric:tabular-nums}
.employee-attendance-table{overflow:auto;border-top:1px solid var(--line)}
.employee-attendance-table table{width:100%;min-width:850px;border-collapse:collapse}
.employee-attendance-table th,.employee-attendance-table td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;font-size:11px}
.employee-attendance-table th{background:rgba(148,163,184,.06);color:var(--muted);font-weight:750}.employee-attendance-table td{color:var(--text)}
.employee-attendance-table tr.cancelled{opacity:.48}.employee-attendance-table tbody tr:hover td{background:rgba(214,162,31,.045)}
.employee-attendance-type,.employee-attendance-status,.attendance-payroll{display:inline-flex;align-items:center;padding:4px 7px;border:1px solid var(--line);border-radius:999px;white-space:nowrap;font-size:9px;font-weight:800}
.employee-attendance-type.sick{color:#7db7ff;border-color:rgba(96,165,250,.35)}.employee-attendance-type.administrative{color:#edc452;border-color:rgba(245,190,45,.38)}.employee-attendance-type.absence{color:#ff9292;border-color:rgba(248,113,113,.38)}
.employee-attendance-status.confirmed,.attendance-payroll.yes{color:#6ee7b7;border-color:rgba(52,211,153,.35);background:rgba(16,185,129,.07)}
.employee-attendance-status.draft{color:#edc452;border-color:rgba(245,190,45,.35)}.employee-attendance-status.cancelled{color:#ff9292;border-color:rgba(248,113,113,.35)}
.attendance-payroll.no{color:var(--muted)}
.employee-attendance-empty{padding:34px!important;text-align:center!important;color:var(--muted)!important}
.employee-attendance>footer{display:flex;align-items:center;gap:8px;padding:11px 15px;color:var(--muted);font-size:10px}.employee-attendance>footer svg{width:15px;color:#edc452}
body:not(.admin-dark) .employee-attendance{background:#fff}.employee-attendance[hidden]{display:none!important}
@media(max-width:900px){.employee-attendance-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.employee-attendance>header{align-items:flex-start;flex-direction:column}.employee-attendance-summary{grid-template-columns:1fr 1fr;padding:10px}.employee-attendance>header{padding:12px}}
.employee-attendance-actions{display:flex;align-items:center;gap:8px}.employee-attendance-actions button,.employee-attendance-period button,.employee-attendance-check-form footer button,.employee-attendance-overview button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 11px;border:1px solid rgba(52,211,153,.45);border-radius:8px;background:rgba(16,185,129,.09);color:#6ee7b7;font-weight:800;cursor:pointer}.employee-attendance-actions svg,.employee-attendance-check-form footer svg{width:16px;height:16px}.employee-attendance-icon-button{width:36px;padding:7px!important;color:#edc452!important;border-color:rgba(214,162,31,.45)!important;background:rgba(214,162,31,.08)!important}.employee-attendance-notice{margin:10px 16px 0;padding:8px 11px;border:1px solid rgba(52,211,153,.35);border-radius:8px;color:#6ee7b7;background:rgba(16,185,129,.07);font-size:11px;font-weight:700}.employee-attendance-notice.error{color:#fda4af;border-color:rgba(244,63,94,.35);background:rgba(244,63,94,.07)}.employee-attendance-check-panel{margin:14px 16px;border:1px solid rgba(214,162,31,.34);border-radius:11px;background:rgba(8,15,24,.25);overflow:hidden}.employee-attendance-check-panel[hidden],.employee-attendance-overview[hidden]{display:none!important}.employee-attendance-period{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid var(--line)}.employee-attendance-period form{display:flex;align-items:center;gap:8px}.employee-attendance-period select,.employee-attendance-period input,.employee-attendance-check-row>input{min-height:35px;box-sizing:border-box;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);padding:6px 9px;font:inherit}.admin-dark .employee-attendance-period select,.admin-dark .employee-attendance-period input,.admin-dark .employee-attendance-check-row>input{background:#0d1520}.employee-attendance-period>strong{font-size:11px;color:#edc452;white-space:nowrap}.employee-attendance-check-form{padding:8px 12px 12px}.employee-attendance-check-head,.employee-attendance-check-row{display:grid;grid-template-columns:80px repeat(4,minmax(100px,1fr));gap:8px;align-items:center}.employee-attendance-check-head{padding:4px 0 7px;color:var(--muted);font-size:10px;font-weight:750}.employee-attendance-check-row{padding:6px 0;border-top:1px solid rgba(148,163,184,.12)}.employee-attendance-check-row label{display:flex;align-items:baseline;gap:6px}.employee-attendance-check-row label small{color:var(--muted)}.employee-attendance-check-form footer{display:flex;align-items:center;justify-content:space-between;padding-top:10px;color:var(--muted);font-size:10px}.employee-attendance-overview{margin:14px 16px;border:1px solid rgba(52,211,153,.35);border-radius:11px;background:rgba(16,185,129,.05);overflow:hidden}.employee-attendance-overview>header{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid var(--line)}.employee-attendance-overview>header div{display:grid;gap:2px}.employee-attendance-overview>header small{color:var(--muted)}.employee-attendance-overview>header button{min-height:30px;width:30px;padding:5px;color:#fda4af;border-color:rgba(244,63,94,.35);background:rgba(244,63,94,.07)}.employee-attendance-overview>div{display:grid;gap:8px;padding:12px}.employee-attendance-overview article{display:grid;grid-template-columns:minmax(150px,1.25fr) minmax(160px,2fr) 90px 55px;gap:10px;align-items:center;font-size:11px}.employee-attendance-overview article>div{height:7px;border-radius:99px;background:rgba(148,163,184,.14);overflow:hidden}.employee-attendance-overview article i{display:block;height:100%;border-radius:99px;background:#34d399}.employee-attendance-overview article small{color:var(--muted)}.employee-attendance-subhead{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px 0;border-top:1px solid var(--line)}.employee-attendance-subhead>div{display:grid;gap:2px}.employee-attendance-subhead small{color:var(--muted);font-size:10px}.employee-attendance-subhead select{min-height:34px;padding:6px 28px 6px 9px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text)}.admin-dark .employee-attendance-subhead select{background:#0d1520}@media(max-width:760px){.employee-attendance-period{align-items:flex-start;flex-direction:column}.employee-attendance-period form{width:100%;flex-wrap:wrap}.employee-attendance-check-form{overflow:auto}.employee-attendance-check-head,.employee-attendance-check-row{min-width:600px}.employee-attendance-overview article{grid-template-columns:1fr 1.4fr 75px}.employee-attendance-overview article small{display:none}}
.employee-attendance-overview>.employee-attendance-overview-list{display:block;padding:0;overflow-x:auto}.employee-attendance-overview-list>article{display:grid;grid-template-columns:minmax(190px,1fr) minmax(430px,2fr);gap:20px;align-items:center;padding:14px 16px;border-bottom:1px solid var(--line);font-size:11px}.employee-attendance-overview-list>article:last-child{border-bottom:0}.employee-attendance-overview-list>article>.employee-attendance-person{display:grid;height:auto;border-radius:0;background:none;overflow:visible;gap:4px}.employee-attendance-person strong{font-size:13px;color:var(--text)}.employee-attendance-person small{color:var(--muted)}.employee-attendance-overview-list>article>.employee-attendance-days{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(46px,1fr);gap:12px;height:auto;border-radius:0;background:none;overflow:visible}.employee-attendance-day{display:grid;justify-items:center;gap:5px;min-width:42px;color:var(--muted)}.employee-attendance-day span{font-size:10px}.employee-attendance-day small{font-size:8px;color:var(--muted)}.employee-attendance-overview .employee-attendance-day i{display:block;width:100%;height:8px;border-radius:999px;background:#3b4658}.employee-attendance-day.complete i{background:#34d399}.employee-attendance-day.late i,.employee-attendance-day.partial i{background:#f5c84c}.employee-attendance-day.missed i{background:#f87171}.employee-attendance-day:hover i{filter:brightness(1.2);transform:scaleY(1.22)}.employee-attendance-overview>.employee-attendance-legend{display:flex;flex-wrap:wrap;gap:14px;padding:10px 16px;border-top:1px solid var(--line);color:var(--muted);font-size:9px}.employee-attendance-legend span{display:inline-flex;align-items:center;gap:6px}.employee-attendance-legend span::before{content:"";width:16px;height:6px;border-radius:99px;background:#3b4658}.employee-attendance-legend .complete::before{background:#34d399}.employee-attendance-legend .late::before,.employee-attendance-legend .partial::before{background:#f5c84c}.employee-attendance-legend .missed::before{background:#f87171}@media(max-width:760px){.employee-attendance-overview-list>article{grid-template-columns:150px minmax(430px,1fr);gap:12px}.employee-attendance-overview article small{display:block}}
.employee-work-schedule{margin-bottom:12px;border:1px solid rgba(214,162,31,.34);border-radius:10px;background:rgba(20,28,39,.72);overflow:hidden}.employee-work-schedule>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border-bottom:1px solid var(--line)}.employee-work-schedule>header>div{display:flex;align-items:center;gap:10px}.employee-work-schedule>header svg{width:19px;color:#edc452}.employee-work-schedule h3,.employee-work-schedule p{margin:0}.employee-work-schedule p{margin-top:2px;color:var(--muted);font-size:10px}.employee-work-schedule>header>strong{padding:5px 9px;border:1px solid rgba(214,162,31,.35);border-radius:999px;color:#edc452;background:rgba(214,162,31,.07);font-size:10px}.employee-work-schedule>form{padding:12px 14px}.employee-work-days{display:grid;grid-template-columns:repeat(7,minmax(44px,1fr));gap:7px}.employee-work-days input{position:absolute;opacity:0;pointer-events:none}.employee-work-days span{display:flex;align-items:center;justify-content:center;min-height:34px;border:1px solid var(--line);border-radius:8px;color:var(--muted);background:rgba(148,163,184,.04);font-size:10px;font-weight:800;cursor:pointer}.employee-work-days input:checked+span{border-color:rgba(52,211,153,.5);color:#6ee7b7;background:rgba(16,185,129,.1)}.employee-work-times{display:grid;grid-template-columns:repeat(4,minmax(105px,1fr));gap:9px;margin-top:10px}.employee-work-times label{display:grid;gap:5px}.employee-work-times label>span{color:var(--muted);font-size:9px;font-weight:700}.employee-work-times input{width:100%;min-height:35px;box-sizing:border-box;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);padding:6px 9px;font:inherit}.admin-dark .employee-work-times input{background:#0d1520}.employee-work-schedule form>footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:11px}.employee-work-schedule form>footer>span{color:var(--muted);font-size:9px}.employee-work-schedule form>footer button{display:inline-flex;align-items:center;gap:7px;min-height:35px;padding:7px 11px;border:1px solid rgba(52,211,153,.5);border-radius:8px;background:rgba(16,185,129,.1);color:#6ee7b7;font-weight:800;cursor:pointer}.employee-work-schedule form>footer svg{width:15px}.employee-work-schedule-notice{margin:9px 14px 0;padding:7px 10px;border-radius:7px;color:#6ee7b7;background:rgba(16,185,129,.09);font-size:10px}.employee-work-schedule-notice.error{color:#fda4af;background:rgba(244,63,94,.09)}body:not(.admin-dark) .employee-work-schedule{background:#fff}@media(max-width:700px){.employee-work-days{grid-template-columns:repeat(4,1fr)}.employee-work-times{grid-template-columns:repeat(2,1fr)}.employee-work-schedule>header{align-items:flex-start;flex-direction:column}}

/* Employee work schedule: ultra-compact layout */
.employee-work-schedule>header{min-height:42px;padding:7px 12px;gap:10px}
.employee-work-schedule>header>div{gap:8px}
.employee-work-schedule>header>div>div{display:flex;align-items:baseline;min-width:0}
.employee-work-schedule>header svg{width:17px;height:17px}
.employee-work-schedule h3{font-size:14px;line-height:1.1}
.employee-work-schedule p{display:inline;margin:0 0 0 7px;font-size:9px}
.employee-work-schedule h3,.employee-work-schedule h3+p{vertical-align:middle}
.employee-work-schedule>header>strong{padding:3px 8px;font-size:9px}
.employee-work-schedule>form{display:grid;grid-template-columns:minmax(250px,.72fr) minmax(480px,1.45fr) auto;align-items:end;gap:9px;padding:8px 12px}
.employee-work-days{gap:4px}
.employee-work-days span{min-height:30px;border-radius:6px;font-size:9px}
.employee-work-times{gap:6px;margin-top:0}
.employee-work-times label{gap:3px}
.employee-work-times label>span{font-size:8px;line-height:1}
.employee-work-times input{min-height:30px;padding:4px 7px;border-radius:6px;font-size:12px}
.employee-work-schedule form>footer{display:block;margin-top:0}
.employee-work-schedule form>footer>span{display:none}
.employee-work-schedule form>footer button{min-height:30px;white-space:nowrap;padding:5px 10px;border-radius:6px;font-size:10px}
.employee-work-schedule form>footer svg{width:13px;height:13px}
@media(max-width:1450px){.employee-work-schedule>form{grid-template-columns:minmax(0,1fr) auto}.employee-work-days{grid-column:1/-1}.employee-work-times{grid-column:1}.employee-work-schedule form>footer{grid-column:2}}
@media(max-width:700px){.employee-work-schedule>header{flex-direction:row;align-items:center}.employee-work-schedule p{display:none}.employee-work-schedule>form{grid-template-columns:1fr;padding:8px}.employee-work-days{grid-template-columns:repeat(7,1fr)}.employee-work-times{grid-column:1;grid-template-columns:repeat(2,1fr)}.employee-work-schedule form>footer{grid-column:1}.employee-work-schedule form>footer button{width:100%;justify-content:center}}

/* Align schedule save button with time inputs */
.employee-work-schedule form>footer{align-self:start;padding-top:11px}
@media(max-width:700px){.employee-work-schedule form>footer{padding-top:0}}

/* Attendance documents */
.attendance-documents>header{padding:11px 14px}
.attendance-document-add{text-decoration:none}
.attendance-document-list{border-top:1px solid var(--line)}
.attendance-document-list-head,.attendance-document-list>article{display:grid;grid-template-columns:minmax(260px,1.6fr) 90px 90px 130px 82px;gap:12px;align-items:center;padding:9px 14px}
.attendance-document-list-head{color:var(--muted);background:rgba(148,163,184,.05);font-size:9px;font-weight:800}
.attendance-document-list>article{border-top:1px solid rgba(148,163,184,.12);font-size:10px}
.attendance-document-list>article:first-of-type{border-top:0}
.attendance-document-list>article>div{display:flex;align-items:center;gap:9px;min-width:0}
.attendance-document-list>article>div svg{width:16px;color:#edc452}
.attendance-document-list>article strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.attendance-document-list>article>span,.attendance-document-list>article>time{color:var(--muted)}
.attendance-document-list nav{display:flex;justify-content:flex-end;gap:6px}
.attendance-document-list nav a,.attendance-document-graph>header>a{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid var(--line);border-radius:7px;color:var(--muted)}
.attendance-document-list nav a.graph{color:#6ee7b7;border-color:rgba(52,211,153,.36);background:rgba(16,185,129,.07)}
.attendance-document-list nav svg,.attendance-document-graph>header>a svg{width:14px}
.attendance-document-empty{display:grid;justify-items:center;gap:4px;padding:30px;color:var(--muted)}
.attendance-document-empty svg{width:24px;color:#edc452}.attendance-document-empty strong{color:var(--text)}
.attendance-document-editor{margin:12px 14px}
.attendance-document-editor .employee-attendance-period>div{display:grid;justify-items:end;gap:2px}.attendance-document-editor .employee-attendance-period small{color:var(--muted);font-size:9px}
.attendance-document-editor .employee-attendance-check-form footer a{color:var(--muted);text-decoration:none}
.attendance-document-graph{margin:12px 14px;border:1px solid rgba(52,211,153,.34);border-radius:9px;background:rgba(16,185,129,.045);overflow:hidden}
.attendance-document-graph>header{display:flex;align-items:center;justify-content:space-between;padding:9px 11px;border-bottom:1px solid var(--line)}
.attendance-document-graph>header>div{display:grid;gap:2px}.attendance-document-graph>header small{color:var(--muted);font-size:9px}
.attendance-document-graph>div{display:flex;gap:7px;padding:11px;overflow-x:auto}
.attendance-document-graph article{display:grid;grid-template-columns:45px 70px 72px;align-items:center;gap:7px;min-width:205px;padding:7px 9px;border:1px solid var(--line);border-radius:7px;font-size:9px}
.attendance-document-graph article i{height:7px;border-radius:99px;background:#3b4658}.attendance-document-graph article.complete i{background:#34d399}.attendance-document-graph article.late i,.attendance-document-graph article.partial i{background:#f5c84c}
.attendance-document-graph article span{color:var(--muted)}
@media(max-width:900px){.attendance-document-list-head{display:none}.attendance-document-list>article{grid-template-columns:minmax(220px,1fr) 70px 75px}.attendance-document-list>article>time{display:none}.attendance-document-list nav{grid-column:3}.attendance-document-editor .employee-attendance-period{align-items:flex-start;flex-direction:column}.attendance-document-editor .employee-attendance-period>div{justify-items:start}}
@media(max-width:600px){.attendance-document-list>article{grid-template-columns:1fr auto}.attendance-document-list>article>span{display:none}.attendance-document-list nav{grid-column:2}.attendance-document-editor{margin:8px}.attendance-documents>header{align-items:center;flex-direction:row}.attendance-document-add span{display:none}}

.employee-attendance-check-head,.employee-attendance-check-row{grid-template-columns:80px repeat(4,minmax(100px,1fr)) 32px}
.attendance-check-delete{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:1px solid rgba(248,113,113,.38);border-radius:7px;background:rgba(248,113,113,.08);color:#f87171;cursor:pointer}
.attendance-check-delete:hover{background:rgba(248,113,113,.16);border-color:#f87171}.attendance-check-delete svg{width:14px;height:14px}.attendance-check-delete-placeholder{width:30px}

.attendance-graph-bar{display:flex;width:70px;height:18px;padding:5px 0;border:0;background:transparent;cursor:pointer}
.attendance-graph-bar i{display:block;width:100%;height:7px;border-radius:99px;background:#3b4658;transition:transform .15s,filter .15s}
.attendance-document-graph article.complete .attendance-graph-bar i{background:#34d399}.attendance-document-graph article.late .attendance-graph-bar i,.attendance-document-graph article.partial .attendance-graph-bar i{background:#f5c84c}
.attendance-graph-bar:hover i,.attendance-graph-bar[aria-expanded="true"] i{filter:brightness(1.2);transform:scaleY(1.45)}
.attendance-document-graph article.details-open{min-width:315px}
.attendance-graph-details{grid-column:1/-1;grid-template-columns:repeat(4,1fr);gap:5px;padding-top:7px;border-top:1px solid var(--line)}
.attendance-graph-details:not([hidden]){display:grid}.attendance-graph-details span{display:grid;gap:2px}.attendance-graph-details small{color:var(--muted);font-size:7px}.attendance-graph-details strong{color:var(--text);font-size:9px}

/* Keep attendance graph interactive without button highlight */
.attendance-document-graph .attendance-graph-bar,.attendance-document-graph .attendance-graph-bar:hover,.attendance-document-graph .attendance-graph-bar:focus,.attendance-document-graph .attendance-graph-bar:active{background:transparent!important;border:0!important;box-shadow:none!important;outline:0!important;color:inherit!important}

.attendance-document-list nav form{margin:0}.attendance-document-delete{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:1px solid rgba(248,113,113,.4);border-radius:7px;background:rgba(248,113,113,.08);color:#f87171;cursor:pointer}.attendance-document-delete:hover{border-color:#f87171;background:rgba(248,113,113,.16)}.attendance-document-delete svg{width:14px;height:14px}

.attendance-document-list-head,.attendance-document-list>article{grid-template-columns:minmax(260px,1.6fr) 90px 90px 130px 112px}
@media(max-width:900px){.attendance-document-list>article{grid-template-columns:minmax(220px,1fr) 70px 112px}}
@media(max-width:600px){.attendance-document-list>article{grid-template-columns:1fr 112px}}

/* Compact attendance document actions */
.attendance-document-editor .employee-attendance-check-form>footer{display:flex!important;align-items:center;justify-content:space-between!important;gap:10px}
.attendance-document-editor .employee-attendance-check-form>footer button[type=submit]{width:auto!important;min-width:0!important;max-width:max-content!important;margin-left:auto;padding:7px 12px!important}

.attendance-document-editor .employee-attendance-check-form>footer{padding-right:41px!important}
@media(max-width:600px){.attendance-document-editor .employee-attendance-check-form>footer{padding-right:0!important}}

/* Plain attendance notifications */
.attendance-documents .employee-attendance-notice,.attendance-documents .employee-attendance-notice.ok,.attendance-documents .employee-attendance-notice.error{margin:7px 14px;padding:3px 0;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important}

/* Align and emphasize attendance editor actions */
.attendance-document-editor .employee-attendance-check-form>footer{padding-left:88px!important;padding-right:41px!important}
.attendance-document-editor .employee-attendance-check-form>footer>a{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 11px;border:1px solid var(--line);border-radius:7px;background:rgba(148,163,184,.06);color:var(--text)!important;font-weight:750}
.attendance-document-editor .employee-attendance-check-form>footer>a:hover{border-color:rgba(248,113,113,.45);background:rgba(248,113,113,.08);color:#fda4af!important}
@media(max-width:600px){.attendance-document-editor .employee-attendance-check-form>footer{padding-left:0!important;padding-right:0!important}}
.employee-attendance-header-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.employee-timeoff-add{text-decoration:none}.employee-timeoff-block{margin:10px 14px 12px;border:1px solid rgba(214,162,31,.30);border-radius:9px;background:rgba(214,162,31,.035);overflow:hidden}.employee-timeoff-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-bottom:1px solid var(--line)}.employee-timeoff-head>div{display:grid;gap:2px}.employee-timeoff-head strong{font-size:12px;color:var(--text)}.employee-timeoff-head small,.employee-timeoff-head span{font-size:10px;color:var(--muted)}.employee-timeoff-form{display:grid;grid-template-columns:140px 100px 100px 100px minmax(220px,1fr);gap:9px;padding:12px;border-bottom:1px solid var(--line)}.employee-timeoff-form label{display:grid;gap:5px;margin:0}.employee-timeoff-form label span{font-size:10px;color:var(--muted);font-weight:750}.employee-timeoff-form .wide{grid-column:span 2}.employee-timeoff-form input,.employee-timeoff-form textarea,.employee-timeoff-row details input{width:100%;min-height:34px;box-sizing:border-box;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);padding:6px 9px;font:inherit;font-size:11px}.admin-dark .employee-timeoff-form input,.admin-dark .employee-timeoff-form textarea,.admin-dark .employee-timeoff-row details input{background:#0d1520}.employee-timeoff-form footer{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px}.employee-timeoff-form footer a,.employee-timeoff-form footer button,.employee-timeoff-row details button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:6px 10px;border:1px solid rgba(52,211,153,.42);border-radius:7px;background:rgba(16,185,129,.08);color:#6ee7b7;font-weight:800;text-decoration:none;cursor:pointer}.employee-timeoff-form footer a{border-color:var(--line);background:rgba(148,163,184,.06);color:var(--muted)}.employee-timeoff-table{overflow-x:auto}.employee-timeoff-row{display:grid;grid-template-columns:110px minmax(220px,1fr) 82px 92px 88px 120px 72px 120px;gap:10px;align-items:center;padding:9px 12px;border-top:1px solid rgba(148,163,184,.12);font-size:10px;min-width:930px}.employee-timeoff-row.head{border-top:0;background:rgba(148,163,184,.045);color:var(--muted);font-weight:800}.employee-timeoff-row time{display:grid;gap:2px;color:var(--text)}.employee-timeoff-row time small{color:var(--muted);font-size:9px}.employee-timeoff-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:var(--text)}.employee-timeoff-row span{color:var(--muted)}.employee-timeoff-row span:nth-child(5){color:#edc452;font-weight:900}.employee-timeoff-row.closed span:nth-child(5){color:#6ee7b7}.employee-timeoff-row.cancelled{opacity:.55}.employee-timeoff-row mark{display:inline-flex;padding:4px 7px;border-radius:999px;border:1px solid rgba(214,162,31,.32);background:rgba(214,162,31,.07);color:#edc452;font-size:9px;font-weight:850}.employee-timeoff-row.closed mark{border-color:rgba(52,211,153,.35);background:rgba(16,185,129,.08);color:#6ee7b7}.employee-timeoff-row.cancelled mark{border-color:rgba(248,113,113,.35);background:rgba(248,113,113,.08);color:#fca5a5}.employee-timeoff-row a{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid rgba(214,162,31,.38);border-radius:7px;color:#edc452}.employee-timeoff-row a svg{width:14px}.employee-timeoff-row details{position:relative}.employee-timeoff-row summary{cursor:pointer;color:#edc452;font-weight:800;list-style:none}.employee-timeoff-row details[open]{z-index:4}.employee-timeoff-row details[open] summary{margin-bottom:7px}.employee-timeoff-row details ul{margin:0 0 8px;padding-left:15px;color:var(--muted)}.employee-timeoff-row details form{display:grid;grid-template-columns:120px 70px minmax(130px,1fr) auto;gap:6px;margin-top:6px}.employee-timeoff-row details button.danger{border-color:rgba(248,113,113,.42);background:rgba(248,113,113,.08);color:#fca5a5}.employee-timeoff-empty{display:grid;justify-items:center;gap:4px;padding:26px;color:var(--muted);font-size:11px}.employee-timeoff-empty svg{width:22px;color:#edc452}.employee-timeoff-empty strong{color:var(--text)}body:not(.admin-dark) .employee-timeoff-block{background:#fff;border-color:#dce4ef}body:not(.admin-dark) .employee-timeoff-form input,body:not(.admin-dark) .employee-timeoff-form textarea,body:not(.admin-dark) .employee-timeoff-row details input{background:#fff;border-color:#cfd8e5;color:#152238}@media(max-width:900px){.employee-attendance-header-actions{width:100%;justify-content:flex-start}.employee-timeoff-form{grid-template-columns:1fr 1fr}.employee-timeoff-form .wide{grid-column:1/-1}}@media(max-width:600px){.employee-timeoff-block{margin:8px}.employee-timeoff-form{grid-template-columns:1fr}.employee-timeoff-form .wide{grid-column:auto}.employee-timeoff-form footer{justify-content:stretch}.employee-timeoff-form footer a,.employee-timeoff-form footer button{flex:1}.employee-timeoff-add span{display:inline!important}}
.employee-timeoff-card{min-width:930px;border-top:1px solid rgba(148,163,184,.12)}.employee-timeoff-card>.employee-timeoff-row{border-top:0}.employee-timeoff-card.closed .employee-timeoff-row span:nth-child(5){color:#6ee7b7}.employee-timeoff-card.cancelled{opacity:.55}.employee-timeoff-row.head,.employee-timeoff-card>.employee-timeoff-row{grid-template-columns:110px minmax(220px,1fr) 82px 92px 88px 120px 72px 58px;min-width:930px}.employee-timeoff-work{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(520px,2fr) auto;gap:10px;align-items:end;padding:0 12px 11px 132px}.employee-timeoff-work>div:first-child{display:grid;gap:4px;min-height:34px;color:var(--muted);font-size:10px}.employee-timeoff-work>div:first-child strong{color:var(--text);font-size:10px}.employee-timeoff-work ul{display:flex;flex-wrap:wrap;gap:6px 12px;margin:0;padding:0;list-style:none}.employee-timeoff-work li{color:var(--muted)}.employee-timeoff-work form{display:grid;gap:7px;margin:0}.employee-timeoff-work form:first-of-type{grid-template-columns:130px 76px minmax(170px,1fr) auto}.employee-timeoff-work label{display:grid;gap:4px;margin:0}.employee-timeoff-work label span{color:var(--muted);font-size:9px;font-weight:800}.employee-timeoff-work input{width:100%;min-height:32px;box-sizing:border-box;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);padding:6px 8px;font:inherit;font-size:10px}.admin-dark .employee-timeoff-work input{background:#0d1520}.employee-timeoff-work button{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 10px;border:1px solid rgba(52,211,153,.42);border-radius:7px;background:rgba(16,185,129,.08);color:#6ee7b7;font-size:10px;font-weight:850;white-space:nowrap;cursor:pointer}.employee-timeoff-work button.danger{border-color:rgba(248,113,113,.42);background:rgba(248,113,113,.08);color:#fca5a5}.employee-timeoff-cancel{align-self:end}.employee-timeoff-card.closed .employee-timeoff-work,.employee-timeoff-card.cancelled .employee-timeoff-work{grid-template-columns:1fr;padding-left:132px}.employee-timeoff-card.closed .employee-timeoff-cancel,.employee-timeoff-card.cancelled .employee-timeoff-cancel{display:none}body:not(.admin-dark) .employee-timeoff-work input{background:#fff;border-color:#cfd8e5;color:#152238}@media(max-width:900px){.employee-timeoff-work{grid-template-columns:1fr;padding-left:12px}.employee-timeoff-work form:first-of-type{grid-template-columns:1fr 90px 1fr auto}}@media(max-width:600px){.employee-timeoff-work form:first-of-type{grid-template-columns:1fr}.employee-timeoff-cancel button,.employee-timeoff-work form:first-of-type button{width:100%}}

/* Foreign trade */
.foreign-trade-panel{min-height:520px;border:1px solid var(--line);border-radius:14px;background:var(--panel,var(--card));overflow:hidden}
.foreign-trade-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding:24px 28px;border-bottom:1px solid var(--line)}
.foreign-trade-mark{width:48px;height:48px;display:grid;place-items:center;border:1px solid rgba(214,162,31,.5);border-radius:12px;background:rgba(214,162,31,.1);color:var(--accent)}
.foreign-trade-mark svg{width:25px;height:25px}
.foreign-trade-head>div>span{color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.foreign-trade-head h2{margin:5px 0 4px;font-size:25px}.foreign-trade-head p{margin:0;color:var(--muted)}
.foreign-trade-head>strong{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid rgba(52,211,153,.42);border-radius:999px;background:rgba(16,185,129,.09);color:#55d9a4;font-size:11px;white-space:nowrap}
.foreign-trade-head>strong svg{width:15px;height:15px}
.foreign-trade-empty{min-height:360px;display:grid;place-content:center;justify-items:center;padding:42px;text-align:center}
.foreign-trade-empty>span{width:76px;height:76px;display:grid;place-items:center;border:1px solid rgba(214,162,31,.4);border-radius:50%;background:rgba(214,162,31,.08);color:var(--accent)}
.foreign-trade-empty>span svg{width:36px;height:36px}.foreign-trade-empty h3{margin:18px 0 6px;font-size:20px}.foreign-trade-empty p{max-width:560px;margin:0;color:var(--muted);line-height:1.55}
body:not(.admin-dark) .foreign-trade-panel{background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.05)}
@media(max-width:720px){.foreign-trade-head{grid-template-columns:auto 1fr;padding:18px}.foreign-trade-head>strong{grid-column:1/-1;justify-self:start}.foreign-trade-head h2{font-size:21px}.foreign-trade-empty{min-height:300px;padding:28px 18px}}

/* VED / Honest Sign batch labels */
.chz-workspace{--chz-green:#42dca6;--chz-green-rgb:66,220,166;--chz-red:#ff737b;--chz-red-rgb:255,115,123;--chz-gold:#f6c43f;display:grid;gap:18px;padding:20px;background:linear-gradient(180deg,rgba(52,211,153,.025),transparent 300px)}
.chz-notice{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid rgba(var(--chz-green-rgb),.38);border-radius:10px;background:rgba(var(--chz-green-rgb),.08);color:var(--chz-green);font-size:12px;font-weight:750}.chz-notice svg{width:18px;height:18px;flex:none}.chz-notice.error{border-color:rgba(var(--chz-red-rgb),.44);background:rgba(var(--chz-red-rgb),.08);color:var(--chz-red)}
.chz-principles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.chz-principles article{display:flex;align-items:center;gap:11px;min-width:0;padding:13px 14px;border:1px solid rgba(var(--chz-green-rgb),.21);border-radius:11px;background:rgba(var(--chz-green-rgb),.035)}.chz-principles>article>svg{width:22px;height:22px;flex:0 0 22px;color:var(--chz-green)}.chz-principles span{display:grid;min-width:0;gap:3px}.chz-principles strong{font-size:12px}.chz-principles small{color:var(--muted);font-size:10px;line-height:1.35}
.chz-primary-grid{display:grid;grid-template-columns:minmax(0,1.14fr) minmax(360px,.86fr);align-items:start;gap:18px}.chz-card{min-width:0;border:1px solid rgba(var(--chz-green-rgb),.30);border-radius:13px;background:rgba(9,17,28,.28);overflow:hidden;box-shadow:inset 0 1px rgba(255,255,255,.015)}.chz-card-head{display:flex;align-items:center;gap:11px;min-height:68px;padding:14px 16px;border-bottom:1px solid var(--line)}.chz-card-head>span{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border:1px solid rgba(var(--chz-green-rgb),.36);border-radius:10px;background:rgba(var(--chz-green-rgb),.08);color:var(--chz-green)}.chz-card-head>span svg{width:19px;height:19px}.chz-card-head>div{min-width:0;margin-right:auto}.chz-card-head small{display:block;margin-bottom:3px;color:var(--muted);font-size:9px;font-weight:750;letter-spacing:.05em;text-transform:uppercase}.chz-card-head h3{margin:0;font-size:16px}.chz-card-head em,.chz-card-head>b{padding:6px 9px;border:1px solid rgba(var(--chz-green-rgb),.25);border-radius:999px;background:rgba(var(--chz-green-rgb),.055);color:var(--chz-green);font-size:9px;font-style:normal;white-space:nowrap}.chz-card-head>a{display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border:1px solid rgba(var(--chz-green-rgb),.34);border-radius:8px;color:var(--chz-green);font-size:10px;font-weight:800;text-decoration:none}.chz-card-head>a:hover{background:rgba(var(--chz-green-rgb),.09)}.chz-card-head>a svg{width:14px;height:14px}
.chz-card-head>.chz-pdf-mark{border-color:rgba(var(--chz-red-rgb),.48);background:rgba(var(--chz-red-rgb),.09);color:var(--chz-red)}.chz-pdf-mark>b{font-size:10px;font-weight:900;letter-spacing:.04em}.chz-card-head>a.chz-original-pdf-download{border-color:rgba(var(--chz-red-rgb),.44);background:rgba(var(--chz-red-rgb),.055);color:var(--chz-red)}.chz-card-head>a.chz-original-pdf-download:hover{background:rgba(var(--chz-red-rgb),.13)}
.chz-form{padding:16px}.chz-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.chz-form label:not(.chz-file-field):not(.chz-approval):not(.chz-confirm){display:grid;align-content:start;gap:6px;min-width:0}.chz-form label>span,.chz-fieldset label>span,.chz-reprint label>span{color:var(--muted);font-size:10px;font-weight:750}.chz-wide{grid-column:1/-1}.chz-form input:not([type="hidden"]):not([type="file"]):not([type="checkbox"]),.chz-form select,.chz-form textarea,.chz-reprint textarea{box-sizing:border-box;width:100%;min-width:0;height:40px;padding:0 11px;border:1px solid rgba(125,151,180,.38);border-radius:8px;outline:0;background:rgba(3,11,20,.42);color:var(--text);font:inherit;font-size:12px}.chz-form textarea,.chz-reprint textarea{height:auto;min-height:58px;padding-top:9px;resize:vertical}.chz-form input:focus,.chz-form select:focus,.chz-form textarea:focus,.chz-reprint textarea:focus{border-color:rgba(var(--chz-green-rgb),.72);box-shadow:0 0 0 3px rgba(var(--chz-green-rgb),.08)}.chz-form input::placeholder,.chz-form textarea::placeholder{color:var(--muted);opacity:.75}
.chz-form label>small{color:var(--muted);font-size:9px;line-height:1.35}
.chz-article-field{position:relative;display:grid;gap:6px;min-width:0}.chz-article-field>label{display:grid;gap:6px;min-width:0}.chz-article-search-control{position:relative;display:block!important;color:inherit!important;font-size:inherit!important;font-weight:inherit!important} .chz-article-search-control::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 12px;
  top: 50%;
  width: var(--fecor-icon, 15px);
  height: var(--fecor-icon, 15px);
  transform: translateY(-50%);
  background: var(--muted);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m17 17 4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}
.chz-form .chz-article-search-control>input{padding-left:38px!important}
.chz-article-results{position:absolute;z-index:40;top:60px;right:0;left:0;display:grid;max-height:320px;overflow:auto;border:1px solid rgba(var(--chz-green-rgb),.48);border-radius:10px;background:var(--panel,#101a28);box-shadow:0 18px 40px rgba(0,0,0,.34)}.chz-article-results[hidden],.chz-article-option[hidden],.chz-article-empty[hidden]{display:none!important}.chz-form .chz-article-option{display:grid;grid-template-columns:minmax(90px,140px) minmax(0,1fr);align-items:center;gap:12px;width:100%;min-height:44px;padding:8px 12px;border:0;border-bottom:1px solid rgba(125,151,180,.16);border-radius:0;background:transparent;color:var(--text);text-align:left;white-space:normal;cursor:pointer}.chz-form .chz-article-option:last-of-type{border-bottom:0}.chz-form .chz-article-option:hover,.chz-form .chz-article-option.is-active{background:rgba(var(--chz-green-rgb),.10);color:var(--text)}.chz-article-option strong{overflow:hidden;color:var(--chz-green);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.chz-article-option small{overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.chz-article-empty{margin:0;padding:15px;color:var(--muted);font-size:10px;text-align:center}body:not(.admin-dark) .chz-article-results{background:#fff;box-shadow:0 16px 34px rgba(15,23,42,.16)}
.chz-article-template-block{position:relative;display:grid;gap:6px;min-width:0}.chz-article-entry-row{display:grid;grid-template-columns:minmax(0,1fr) 42px 42px;align-items:end;gap:8px;min-width:0}.chz-article-template-input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}.chz-form .chz-article-template-action{box-sizing:border-box;display:grid;place-items:center;align-self:end;width:42px;height:40px;min-height:40px;padding:0;border:1px solid rgba(var(--chz-green-rgb),.52);border-radius:8px;background:rgba(var(--chz-green-rgb),.07);color:var(--chz-green);text-decoration:none;cursor:pointer}.chz-form .chz-article-template-action:hover,.chz-form .chz-article-template-action.has-file{background:rgba(var(--chz-green-rgb),.16)}.chz-form .chz-article-template-action.is-download{border-color:rgba(var(--chz-red-rgb),.48);background:rgba(var(--chz-red-rgb),.06);color:var(--chz-red)}.chz-form .chz-article-template-action.is-download:hover{background:rgba(var(--chz-red-rgb),.14)}.chz-form .chz-article-template-action.is-disabled{border-color:rgba(125,151,180,.24);background:rgba(125,151,180,.035);color:var(--muted);cursor:not-allowed;filter:grayscale(1);opacity:.46}.chz-article-template-action svg{width:18px;height:18px}.chz-article-template-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted)}.chz-article-template-meta small{overflow:hidden;font-size:9px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.chz-article-template-meta [data-chz-template-file-name]{max-width:46%;font-weight:750;text-align:right}.chz-article-template-meta [data-chz-template-file-name].is-selected{color:var(--chz-green)}.chz-article-field>label{margin:0}.chz-form .chz-article-entry-row>.chz-article-template-action{margin:0;height:40px;min-height:40px;padding:0;border:1px solid rgba(125,151,180,.38);border-radius:8px}
.chz-file-field{position:relative;display:flex;align-items:center;gap:12px;min-height:64px;padding:10px 13px;border:1px dashed rgba(var(--chz-green-rgb),.48);border-radius:10px;background:rgba(var(--chz-green-rgb),.035);cursor:pointer}.chz-file-field:hover{border-color:var(--chz-green);background:rgba(var(--chz-green-rgb),.07)}.chz-file-field>input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.chz-file-field>svg{width:23px;height:23px;flex:none;color:var(--chz-green)}.chz-file-field>span{display:grid;min-width:0;gap:3px}.chz-file-field strong{color:var(--text);font-size:12px}.chz-file-field small{max-width:100%;overflow:hidden;color:var(--muted);font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.chz-codes-template-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:max-content;max-width:100%;padding:7px 10px;border:1px solid rgba(var(--chz-green-rgb),.4);border-radius:8px;color:var(--chz-green);font-size:11px;font-weight:700;text-decoration:none}.chz-codes-template-link:hover{background:rgba(var(--chz-green-rgb),.08)}.chz-codes-template-link svg{width:15px;height:15px}
.chz-fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0;padding:10px 11px 11px;border:1px solid rgba(125,151,180,.25);border-radius:10px}.chz-fieldset legend{padding:0 6px;color:var(--muted);font-size:10px;font-weight:750}.chz-coordinate-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.chz-approval{display:flex;align-items:flex-start;gap:10px;padding:11px;border:1px solid rgba(var(--chz-green-rgb),.3);border-radius:10px;background:rgba(var(--chz-green-rgb),.045);cursor:pointer}.chz-approval>input[type="checkbox"],.chz-confirm>input{width:17px;height:17px;flex:none;margin:1px 0 0;accent-color:var(--chz-green)}.chz-approval>span{display:grid;gap:3px}.chz-approval strong{color:var(--chz-green);font-size:11px}.chz-approval small{color:var(--muted);font-size:9px;line-height:1.35}.chz-readonly-note{display:flex;align-items:center;gap:8px;margin:0;padding:10px 11px;border-radius:8px;background:rgba(148,163,184,.06);color:var(--muted);font-size:10px}.chz-readonly-note svg{width:15px;height:15px}
.chz-form>footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:15px -16px -16px;padding:13px 16px;border-top:1px solid var(--line)}.chz-form>footer p{display:flex;align-items:center;gap:7px;margin:0;color:var(--muted);font-size:9px;line-height:1.35}.chz-form>footer p svg{width:14px;height:14px;flex:none}.chz-form button,.chz-primary-button,.chz-reprint button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:39px;padding:9px 13px;border:1px solid rgba(var(--chz-green-rgb),.64);border-radius:8px;background:rgba(var(--chz-green-rgb),.09);color:var(--chz-green);font-weight:850;white-space:nowrap}.chz-form button:hover,.chz-primary-button:hover,.chz-reprint button:hover{background:rgba(var(--chz-green-rgb),.17)}.chz-form button svg,.chz-primary-button svg,.chz-reprint button svg{width:16px;height:16px}
.chz-process-warning{display:flex;align-items:flex-start;gap:10px;margin:14px 0;padding:11px 12px;border:1px solid rgba(246,196,63,.30);border-radius:9px;background:rgba(246,196,63,.055);color:var(--chz-gold)}.chz-process-warning>svg{width:18px;height:18px;flex:none}.chz-process-warning p{display:grid;gap:4px;margin:0}.chz-process-warning strong{font-size:10px;line-height:1.45}.chz-process-warning span{color:var(--muted);font-size:9px;line-height:1.4}.chz-primary-button{width:100%}.chz-primary-button:disabled{cursor:not-allowed;filter:grayscale(1);opacity:.45}
.chz-production-approval{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.85fr) auto;align-items:center;gap:12px;margin:16px 16px 0;padding:12px;border:1px solid rgba(var(--chz-green-rgb),.38);border-radius:10px;background:rgba(var(--chz-green-rgb),.065)}.chz-production-approval[hidden],.chz-approval[hidden]{display:none!important}.chz-production-approval>div{display:flex;align-items:center;gap:9px;min-width:0}.chz-production-approval>div>svg{width:22px;height:22px;flex:none;color:var(--chz-green)}.chz-production-approval p{display:grid;gap:3px;margin:0;min-width:0}.chz-production-approval p strong{font-size:11px}.chz-production-approval p span{overflow:hidden;color:var(--muted);font-size:9px;text-overflow:ellipsis;white-space:nowrap}.chz-production-approval .chz-confirm{display:flex;align-items:flex-start;gap:8px;color:var(--muted);font-size:9px;line-height:1.35;cursor:pointer}.chz-production-approval .chz-confirm input{width:17px;height:17px;flex:none;margin:0;accent-color:var(--chz-green)}.chz-production-approval button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 12px;border:1px solid rgba(var(--chz-green-rgb),.62);border-radius:8px;background:rgba(var(--chz-green-rgb),.1);color:var(--chz-green);font-weight:850;white-space:nowrap}.chz-production-approval button svg{width:16px;height:16px}
.chz-empty-state{display:grid;place-items:center;min-height:330px;padding:28px;text-align:center}.chz-empty-state>svg{width:38px;height:38px;color:var(--muted)}.chz-empty-state h4{margin:13px 0 5px}.chz-empty-state p{max-width:380px;margin:0;color:var(--muted);font-size:11px;line-height:1.5}.chz-empty-state.compact{min-height:160px}.chz-preview-card,.chz-history-card,.chz-audit-card{grid-column:1/-1}.chz-preview-layout{display:grid;grid-template-columns:minmax(380px,1.6fr) minmax(220px,.4fr);gap:0;min-height:360px}.chz-preview-layout iframe{box-sizing:border-box;width:100%;height:100%;min-height:360px;border:0;border-right:1px solid var(--line);background:#fff}.chz-template-facts{display:grid;align-content:start;margin:0;padding:16px}.chz-template-facts>div{display:grid;gap:4px;padding:11px 0;border-bottom:1px solid var(--line)}.chz-template-facts>div:last-child{border-bottom:0}.chz-template-facts dt{color:var(--muted);font-size:9px;text-transform:uppercase}.chz-template-facts dd{margin:0;overflow-wrap:anywhere;font-size:11px;font-weight:800}.chz-preview-empty{display:flex;align-items:center;justify-content:center;gap:10px;min-height:210px;color:var(--muted);font-size:11px}.chz-preview-empty svg{width:24px;height:24px}
.chz-table-wrap{width:100%;overflow:auto}.chz-history-table{width:100%;min-width:940px;border-collapse:collapse}.chz-history-table th{padding:10px 12px;border-bottom:1px solid var(--line);background:rgba(125,151,180,.045);color:var(--muted);font-size:9px;letter-spacing:.04em;text-align:left;text-transform:uppercase}.chz-history-table td{padding:11px 12px;border-bottom:1px solid var(--line);vertical-align:top;font-size:11px}.chz-history-table tr:last-child td{border-bottom:0}.chz-history-table tr.is-blocked{background:rgba(var(--chz-red-rgb),.025)}.chz-history-table td>strong,.chz-history-table td>small,.chz-batch-link strong,.chz-batch-link small{display:block}.chz-history-table td>small,.chz-batch-link small{margin-top:3px;color:var(--muted);font-size:9px}.chz-batch-link{color:var(--text);text-decoration:none}.chz-batch-link:hover strong{color:var(--chz-green)}.chz-mode,.chz-status{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border:1px solid rgba(var(--chz-green-rgb),.32);border-radius:999px;background:rgba(var(--chz-green-rgb),.065);color:var(--chz-green);font-size:9px;font-weight:850}.chz-mode.test{border-color:rgba(246,196,63,.34);background:rgba(246,196,63,.06);color:var(--chz-gold)}.chz-status i{width:6px;height:6px;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px rgba(var(--chz-green-rgb),.08)}.chz-status.blocked{border-color:rgba(var(--chz-red-rgb),.42);background:rgba(var(--chz-red-rgb),.08);color:var(--chz-red)}.chz-status.blocked i{box-shadow:0 0 0 4px rgba(var(--chz-red-rgb),.08)}.chz-status.queued,.chz-status.processing{border-color:rgba(246,196,63,.38);background:rgba(246,196,63,.07);color:var(--chz-gold)}.chz-error-caption{display:block;max-width:300px;margin-top:5px;color:var(--chz-red)!important;line-height:1.35}.chz-sha{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.chz-file-actions{display:flex;flex-wrap:wrap;gap:5px}.chz-file-actions>a{display:inline-flex;align-items:center;gap:4px;padding:5px 6px;border:1px solid rgba(125,151,180,.26);border-radius:6px;color:var(--muted);font-size:8px;font-weight:800;text-decoration:none}.chz-file-actions>a:hover,.chz-file-actions>a.verified{border-color:rgba(var(--chz-green-rgb),.4);color:var(--chz-green);background:rgba(var(--chz-green-rgb),.055)}.chz-file-actions svg{width:12px;height:12px}
.chz-file-actions>a.chz-original-pdf-action{border-color:rgba(var(--chz-red-rgb),.40);background:rgba(var(--chz-red-rgb),.045);color:var(--chz-red)}.chz-file-actions>a.chz-original-pdf-action:hover{border-color:rgba(var(--chz-red-rgb),.68);background:rgba(var(--chz-red-rgb),.12);color:var(--chz-red)}
.chz-history-search{display:flex;align-items:center;gap:6px;margin-left:auto}.chz-history-search label{display:flex;align-items:center;gap:7px;width:min(240px,24vw);height:34px;padding:0 9px;border:1px solid rgba(125,151,180,.34);border-radius:8px;background:rgba(3,11,20,.34)}.chz-history-search label>svg{width:14px;height:14px;flex:none;color:var(--muted)}.chz-history-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--text);font:inherit;font-size:10px}.chz-history-search input::placeholder{color:var(--muted)}.chz-history-search button,.chz-history-search a{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid rgba(var(--chz-green-rgb),.35);border-radius:8px;background:rgba(var(--chz-green-rgb),.06);color:var(--chz-green)}.chz-history-search button{cursor:pointer}.chz-history-search svg{width:14px;height:14px}.chz-history-table .chz-delete-column,.chz-history-table .chz-delete-cell{box-sizing:border-box;width:54px;padding-left:6px;padding-right:12px;text-align:right}.chz-delete-cell form{display:flex;justify-content:flex-end}.chz-delete-cell button{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid rgba(var(--chz-red-rgb),.38);border-radius:8px;background:rgba(var(--chz-red-rgb),.055);color:var(--chz-red);cursor:pointer}.chz-delete-cell button:hover{background:rgba(var(--chz-red-rgb),.13)}.chz-delete-cell button svg,.chz-delete-cell>span svg{width:15px;height:15px}.chz-delete-cell>span{display:inline-grid;place-items:center;width:34px;height:34px;color:var(--muted);opacity:.55}
.chz-reprint{position:relative;margin-top:8px}.chz-reprint>summary{display:inline-flex;align-items:center;gap:5px;color:var(--muted);font-size:9px;cursor:pointer;list-style:none}.chz-reprint>summary::-webkit-details-marker{display:none}.chz-reprint>summary svg{width:13px;height:13px}.chz-reprint>form{position:absolute;z-index:20;right:0;top:calc(100% + 7px);width:290px;padding:12px;border:1px solid rgba(var(--chz-green-rgb),.35);border-radius:10px;background:var(--panel,#101a28);box-shadow:0 16px 38px rgba(0,0,0,.35)}.chz-reprint label{display:grid;gap:5px}.chz-reprint .chz-confirm{display:flex;align-items:flex-start;gap:7px;margin:9px 0}.chz-reprint .chz-confirm>span{line-height:1.35}.chz-reprint button{width:100%;font-size:10px}.chz-audit-card.is-blocked{border-color:rgba(var(--chz-red-rgb),.42)}.chz-error-list{display:grid;gap:7px;margin:0;padding:14px 16px;list-style:none}.chz-error-list li{display:grid;grid-template-columns:110px 1fr;gap:10px;padding:9px 11px;border:1px solid rgba(var(--chz-red-rgb),.23);border-radius:8px;background:rgba(var(--chz-red-rgb),.045)}.chz-error-list span{color:var(--chz-red);font-size:9px;font-weight:850;text-transform:uppercase}.chz-error-list strong{font-size:11px}.chz-audit-ok{display:flex;align-items:center;gap:11px;padding:18px;color:var(--chz-green)}.chz-audit-ok>svg{width:28px;height:28px;flex:none}.chz-audit-ok p{display:grid;gap:3px;margin:0}.chz-audit-ok strong{font-size:12px}.chz-audit-ok span{color:var(--muted);font-size:10px}
body:not(.admin-dark) .chz-workspace{background:linear-gradient(180deg,rgba(16,185,129,.025),transparent 300px)}body:not(.admin-dark) .chz-card{background:#fff;box-shadow:0 7px 22px rgba(15,23,42,.045)}body:not(.admin-dark) .chz-form input:not([type="hidden"]):not([type="file"]):not([type="checkbox"]),body:not(.admin-dark) .chz-form select,body:not(.admin-dark) .chz-form textarea,body:not(.admin-dark) .chz-reprint textarea{background:#fff}body:not(.admin-dark) .chz-reprint>form,body:not(.admin-dark) .chz-history-search label{background:#fff}
@media(max-width:1180px){.chz-primary-grid{grid-template-columns:1fr}.chz-preview-layout{grid-template-columns:minmax(0,1fr) 260px}.chz-principles{grid-template-columns:1fr}.chz-empty-state{min-height:200px}}
@media(max-width:720px){.chz-workspace{gap:12px;padding:12px}.chz-card-head{align-items:flex-start;min-height:0;padding:12px}.chz-card-head em{display:none}.chz-primary-grid{gap:12px}.chz-form{padding:12px}.chz-form-grid{grid-template-columns:1fr}.chz-wide{grid-column:auto}.chz-coordinate-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.chz-form>footer{align-items:stretch;flex-direction:column;margin:13px -12px -12px;padding:12px}.chz-form>footer button{width:100%}.chz-production-approval{grid-template-columns:1fr;margin:12px 12px 0}.chz-production-approval button{width:100%}.chz-preview-layout{grid-template-columns:1fr}.chz-preview-layout iframe{min-height:300px;border-right:0;border-bottom:1px solid var(--line)}.chz-template-facts{grid-template-columns:1fr 1fr;gap:0 14px}.chz-reprint>form{position:static;width:auto;margin-top:8px}.chz-principles article{padding:11px}.chz-history-search{width:100%;margin:8px 0 0}.chz-history-search label{width:auto;flex:1}.chz-history-table{min-width:900px}.chz-article-results{max-height:240px}.chz-form .chz-article-option{grid-template-columns:90px minmax(0,1fr)}}
@media(max-width:720px){.chz-article-entry-row{grid-template-columns:42px 42px minmax(0,1fr)}.chz-article-entry-row>.chz-article-field{grid-column:1/-1}.chz-article-template-meta{align-items:flex-start;flex-direction:column;gap:3px}.chz-article-template-meta [data-chz-template-file-name]{max-width:100%;text-align:left}}

/* System diagnostics */
.side-diagnostics-link{display:flex;align-items:center;gap:10px;min-height:38px;margin:0 0 8px;padding:8px 12px;border:1px solid rgba(246,196,63,.28);border-radius:9px;color:var(--text);text-decoration:none}
.side-diagnostics-link:hover,.side-diagnostics-link.active{border-color:rgba(246,196,63,.65);background:rgba(246,196,63,.08);color:var(--accent)}
.side-diagnostics-link svg{width:17px;height:17px}
.system-diagnostics{border:1px solid var(--line);border-radius:14px;background:var(--panel);overflow:hidden}
.diagnostics-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 28px;border-bottom:1px solid var(--line)}
.diagnostics-head>div>span{color:var(--muted);font-size:12px}.diagnostics-head h2{display:flex;align-items:center;gap:10px;margin:5px 0;font-size:26px}.diagnostics-head h2 svg{width:24px;color:var(--accent)}.diagnostics-head p{margin:0;color:var(--muted)}
.diagnostics-head button{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:9px 15px;border:1px solid rgba(52,211,153,.55);border-radius:9px;background:rgba(52,211,153,.1);color:#63e6ae;font-weight:800}.diagnostics-head button svg{width:17px}
.diagnostics-summary{display:grid;grid-template-columns:1.5fr repeat(3,1fr) auto;align-items:center;gap:12px;margin:18px 22px;padding:14px 18px;border:1px solid var(--line);border-radius:12px;background:rgba(148,163,184,.035)}
.diagnostics-summary>div{display:flex;flex-direction:column;gap:2px}.diagnostics-summary>div:first-child{flex-direction:row;align-items:baseline;gap:12px}.diagnostics-summary>div:first-child strong{font-size:30px}.diagnostics-summary b{font-size:19px}.diagnostics-summary small,.diagnostics-summary span,.diagnostics-summary time{color:var(--muted);font-size:11px}.diagnostics-summary.ok>div:first-child strong{color:#52dca5}.diagnostics-summary.warning>div:first-child strong{color:#f6c43f}.diagnostics-summary.error>div:first-child strong{color:#ff6b72}
.diagnostics-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:4px 22px 22px}.diagnostic-card{position:relative;min-height:138px;padding:14px;border:1px solid var(--line);border-radius:11px;background:rgba(148,163,184,.025)}.diagnostic-card>span{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em}.diagnostic-card h3{margin:7px 0 14px;font-size:14px}.diagnostic-card strong{display:flex;align-items:center;gap:7px;font-size:12px}.diagnostic-card strong i{width:8px;height:8px;border-radius:50%;background:#52dca5;box-shadow:0 0 0 5px rgba(52,211,153,.1)}.diagnostic-card.warning strong{color:#f6c43f}.diagnostic-card.warning strong i{background:#f6c43f;box-shadow:0 0 0 5px rgba(246,196,63,.1)}.diagnostic-card.error strong{color:#ff6b72}.diagnostic-card.error strong i{background:#ff6b72;box-shadow:0 0 0 5px rgba(255,107,114,.1)}.diagnostic-card p{margin:8px 0 18px;color:var(--muted);font-size:11px;line-height:1.45}.diagnostic-card>small{position:absolute;right:12px;bottom:10px;color:var(--muted);font-size:9px}
.diagnostics-empty{display:grid;place-items:center;min-height:360px;text-align:center}.diagnostics-empty svg{width:42px;height:42px;color:var(--accent)}.diagnostics-empty h3{margin:14px 0 5px}.diagnostics-empty p{margin:0;color:var(--muted)}
.diagnostics-history{margin:0 22px 22px;padding-top:17px;border-top:1px solid var(--line)}.diagnostics-history h3{margin:0 0 10px;font-size:14px}.diagnostics-history>a{display:grid;grid-template-columns:10px 130px 45px 1fr;align-items:center;gap:10px;padding:8px 10px;border-radius:7px;color:var(--text);text-decoration:none}.diagnostics-history>a:hover,.diagnostics-history>a.active{background:rgba(246,196,63,.06)}.diagnostics-history>a>i{width:7px;height:7px;border-radius:50%;background:#52dca5}.diagnostics-history>a>i.warning{background:#f6c43f}.diagnostics-history>a>i.error{background:#ff6b72}.diagnostics-history>a span{font-weight:800}.diagnostics-history>a small{color:var(--muted)}
body:not(.admin-dark) .diagnostic-card,body:not(.admin-dark) .diagnostics-summary{background:#fff;box-shadow:0 5px 16px rgba(15,23,42,.04)}
@media(max-width:1500px){.diagnostics-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){.diagnostics-head{align-items:flex-start;flex-direction:column}.diagnostics-summary{grid-template-columns:repeat(3,1fr)}.diagnostics-summary>div:first-child,.diagnostics-summary time{grid-column:1/-1}.diagnostics-grid{grid-template-columns:1fr 1fr}}

/* Compact FECOR settings control */
.side-nav-bottom,.side-settings{min-width:0;max-width:100%;box-sizing:border-box}
.side-settings{width:100%;overflow:visible}
.side-settings>summary{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-height:32px!important;
  height:32px!important;
  gap:7px!important;
  padding:0 9px!important;
  border:1px solid rgba(214,162,31,.34)!important;
  border-radius:8px!important;
  background:linear-gradient(135deg,rgba(214,162,31,.09),rgba(214,162,31,.025))!important;
  color:var(--accent)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
}
.side-settings>summary span{width:18px!important;height:18px!important;font-size:15px!important;color:var(--accent)!important}
.side-settings>summary strong{min-width:0;overflow:hidden;color:var(--text)!important;font-size:12px!important;font-weight:700!important;letter-spacing:.01em;text-overflow:ellipsis;white-space:nowrap}
.side-settings>summary:hover,.side-settings[open]>summary{border-color:rgba(214,162,31,.62)!important;background:linear-gradient(135deg,rgba(214,162,31,.15),rgba(214,162,31,.045))!important;color:var(--accent)!important}
body.side-menu-collapsed .side-settings{width:32px}
body.side-menu-collapsed .side-settings>summary{width:32px!important;min-width:32px;padding:0!important}
@media(max-width:900px){.side-settings{width:32px}.side-settings>summary{width:32px!important;min-width:32px;padding:0!important}.side-settings>summary strong{display:none}}

/* Equal-size Diagnostics and Settings controls */
.side-nav-bottom>.side-diagnostics-link,
.side-nav-bottom>.side-settings>summary{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-height:32px!important;
  height:32px!important;
  margin:0!important;
  gap:7px!important;
  padding:0 9px!important;
  border-radius:8px!important;
  font-size:12px!important;
  line-height:1!important;
}
.side-nav-bottom>.side-diagnostics-link svg,
.side-nav-bottom>.side-settings>summary span{
  flex:0 0 18px!important;
  width:18px!important;
  height:18px!important;
}
.side-nav-bottom>.side-diagnostics-link strong,
.side-nav-bottom>.side-settings>summary strong{
  min-width:0;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1!important;
}
body.side-menu-collapsed .side-nav-bottom>.side-diagnostics-link,
body.side-menu-collapsed .side-nav-bottom>.side-settings,
body.side-menu-collapsed .side-nav-bottom>.side-settings>summary{width:32px!important;min-width:32px!important;padding:0!important}

/* Settings popover: compact and constrained to the expanded sidebar. */
body:not(.side-menu-collapsed) .side-settings .settings-menu{
  left:0;
  right:auto;
  width:100%;
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
  gap:7px;
  padding:10px;
  border-radius:10px;
}
body:not(.side-menu-collapsed) .side-settings .settings-account-row{
  grid-template-columns:28px minmax(0,1fr);
  gap:8px;
  padding:2px 4px 8px;
}
body:not(.side-menu-collapsed) .side-settings .settings-account-row span{
  width:26px;
  height:26px;
  font-size:12px;
}
body:not(.side-menu-collapsed) .side-settings .settings-account-row strong{
  font-size:12px;
}
body:not(.side-menu-collapsed) .side-settings .settings-password-form{
  gap:7px;
}
body:not(.side-menu-collapsed) .side-settings .settings-password-form label{
  gap:4px;
  font-size:10px;
}
body:not(.side-menu-collapsed) .side-settings .settings-password-form label strong{
  font-size:10px;
}
body:not(.side-menu-collapsed) .side-settings .settings-password-form select,
body:not(.side-menu-collapsed) .side-settings .settings-password-form input{
  min-height:34px;
  height:34px;
  padding:6px 9px;
  border-radius:8px;
  font-size:11px;
}
body:not(.side-menu-collapsed) .side-settings .settings-password-form button,
body:not(.side-menu-collapsed) .side-settings .settings-menu a{
  min-height:34px;
  padding:7px 9px;
  gap:8px;
  border-radius:8px;
  font-size:11px;
}
.employee-timeoff-card.plus .employee-timeoff-row span:nth-child(5),.employee-timeoff-card.closed .employee-timeoff-row span:nth-child(5){color:#6ee7b7}.employee-timeoff-card.plus mark{border-color:rgba(52,211,153,.35);background:rgba(16,185,129,.08);color:#6ee7b7}.employee-timeoff-card.plus .employee-timeoff-work{display:grid}.employee-timeoff-card.closed .employee-timeoff-work{display:grid}.employee-timeoff-card.closed .employee-timeoff-cancel,.employee-timeoff-card.cancelled .employee-timeoff-cancel{display:none}
.employee-attendance-check-head,.employee-attendance-check-row{grid-template-columns:80px repeat(4,minmax(92px,1fr)) minmax(180px,1.4fr) 32px!important}.employee-attendance-check-row>.attendance-note-input{min-height:35px;box-sizing:border-box;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);padding:6px 9px;font:inherit}.admin-dark .employee-attendance-check-row>.attendance-note-input{background:#0d1520}.attendance-graph-details{grid-template-columns:repeat(4,1fr)!important}.attendance-graph-details .attendance-graph-note{grid-column:1/-1}.attendance-graph-details .attendance-graph-note strong{white-space:normal;line-height:1.35}@media(max-width:760px){.employee-attendance-check-head,.employee-attendance-check-row{min-width:780px!important}}

/* Time-off actions: compact FECOR controls aligned with the form fields. */
.employee-timeoff-work form:first-of-type>button[type="submit"],
.employee-timeoff-work .employee-timeoff-cancel>button[type="submit"]{
  box-sizing:border-box!important;
  width:auto!important;
  min-width:0!important;
  max-width:max-content!important;
  min-height:34px!important;
  height:34px!important;
  align-self:end!important;
  padding:0 12px!important;
  border-radius:8px!important;
  box-shadow:none!important;
  font-size:10px!important;
  line-height:1!important;
  white-space:nowrap!important;
}
.employee-timeoff-work form:first-of-type>button[type="submit"]{
  border:1px solid rgba(52,211,153,.52)!important;
  background:linear-gradient(135deg,rgba(16,185,129,.14),rgba(52,211,153,.055))!important;
  color:#6ee7b7!important;
}
.employee-timeoff-work form:first-of-type>button[type="submit"]:hover{
  border-color:rgba(52,211,153,.78)!important;
  background:linear-gradient(135deg,rgba(16,185,129,.22),rgba(52,211,153,.10))!important;
}
.employee-timeoff-work .employee-timeoff-cancel>button[type="submit"]{
  border:1px solid rgba(248,113,113,.45)!important;
  background:rgba(248,113,113,.08)!important;
  color:#fca5a5!important;
}
@media(max-width:600px){
  .employee-timeoff-work form:first-of-type>button[type="submit"],
  .employee-timeoff-work .employee-timeoff-cancel>button[type="submit"]{
    width:100%!important;
    max-width:none!important;
  }
}

/* Time-off editing: compact FECOR pencil and inline editor. */
.employee-timeoff-edit-cell{display:flex;align-items:center;justify-content:center}
.employee-timeoff-row .employee-timeoff-edit-button{
  display:inline-flex;align-items:center;justify-content:center;
  width:30px;height:30px;padding:0;box-sizing:border-box;
  border:1px solid rgba(214,162,31,.46);border-radius:8px;
  background:linear-gradient(135deg,rgba(214,162,31,.13),rgba(214,162,31,.045));
  color:#edc452;transition:border-color .18s ease,background .18s ease,transform .18s ease;
}
.employee-timeoff-row .employee-timeoff-edit-button:hover{border-color:rgba(237,196,82,.8);background:rgba(214,162,31,.16);transform:translateY(-1px)}
.employee-timeoff-row .employee-timeoff-edit-button svg{width:14px;height:14px}
.employee-timeoff-edit-form{
  display:grid;grid-template-columns:140px 90px 90px 90px minmax(220px,1fr);gap:9px;
  margin:0 12px 10px;padding:12px;border:1px solid rgba(214,162,31,.28);
  border-radius:9px;background:rgba(214,162,31,.035);
}
.employee-timeoff-edit-form label{display:grid;gap:5px;margin:0}
.employee-timeoff-edit-form label span{font-size:9px;color:var(--muted);font-weight:800}
.employee-timeoff-edit-form .wide{grid-column:span 2}
.employee-timeoff-edit-form input{
  width:100%;min-height:34px;box-sizing:border-box;border:1px solid var(--line);border-radius:7px;
  background:var(--surface);color:var(--text);padding:6px 9px;font:inherit;font-size:10px;
}
.admin-dark .employee-timeoff-edit-form input{background:#0d1520}
.employee-timeoff-edit-form footer{grid-column:1/-1;display:flex;justify-content:flex-end;align-items:center;gap:8px}
.employee-timeoff-edit-form footer a,.employee-timeoff-edit-form footer button{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;
  padding:6px 11px;border-radius:8px;text-decoration:none;font-size:10px;font-weight:850;
}
.employee-timeoff-edit-form footer a{border:1px solid var(--line);background:rgba(148,163,184,.06);color:var(--muted)}
.employee-timeoff-edit-form footer button{border:1px solid rgba(52,211,153,.48);background:rgba(16,185,129,.09);color:#6ee7b7;cursor:pointer}
.employee-timeoff-edit-form footer svg{width:14px;height:14px}
body:not(.admin-dark) .employee-timeoff-edit-form{background:#fff}
body:not(.admin-dark) .employee-timeoff-edit-form input{background:#fff;border-color:#cfd8e5;color:#152238}
@media(max-width:900px){.employee-timeoff-edit-form{grid-template-columns:1fr 1fr}.employee-timeoff-edit-form .wide{grid-column:1/-1}}
@media(max-width:600px){.employee-timeoff-edit-form{grid-template-columns:1fr}.employee-timeoff-edit-form .wide{grid-column:auto}.employee-timeoff-edit-form footer{justify-content:stretch}.employee-timeoff-edit-form footer a,.employee-timeoff-edit-form footer button{flex:1}}

/* Employee time-off aggregate balance. */
.employee-timeoff-summary{display:flex!important;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.employee-timeoff-summary>span{display:grid;grid-template-columns:auto auto;align-items:baseline;gap:4px 7px;min-height:32px;padding:5px 9px;box-sizing:border-box;border:1px solid var(--line);border-radius:8px;background:rgba(148,163,184,.045)}
.employee-timeoff-summary small{font-size:8px!important;color:var(--muted)!important;font-weight:750}
.employee-timeoff-summary b{font-size:11px;color:var(--text);white-space:nowrap}
.employee-timeoff-summary .negative{border-color:rgba(248,113,113,.38);background:rgba(248,113,113,.07)}
.employee-timeoff-summary .negative b{color:#fca5a5}
.employee-timeoff-summary .positive{border-color:rgba(52,211,153,.4);background:rgba(16,185,129,.08)}
.employee-timeoff-summary .positive b,.employee-timeoff-summary .zero b{color:#6ee7b7}
body:not(.admin-dark) .employee-timeoff-summary>span{background:#f8fafc;border-color:#dce4ef}
@media(max-width:700px){.employee-timeoff-head{align-items:flex-start}.employee-timeoff-summary{width:100%;justify-content:flex-start}.employee-timeoff-summary>span{flex:1;min-width:95px}}

/* Marketplace AI: hybrid product analytics input. */
.marketplace-ai-query-hybrid{grid-template-columns:minmax(360px,1fr) 190px minmax(250px,.75fr);align-items:end}
.marketplace-ai-query-hybrid .marketplace-ai-hybrid{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:12px;margin-top:4px;padding-top:12px;border-top:1px solid rgba(148,163,184,.16)}
.marketplace-ai-slides{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:8px}
.marketplace-ai-slides label{position:relative;min-height:72px;padding:10px 12px;display:grid;grid-template-columns:24px minmax(0,1fr);align-content:center;gap:2px 9px;border:1px dashed #4b5869;border-radius:7px;background:#0d141e;cursor:pointer}
.marketplace-ai-slides label:hover{border-color:rgba(214,162,31,.7);background:rgba(214,162,31,.06)}
.marketplace-ai-slides label svg{grid-row:1/3;width:20px;height:20px;color:#edc452}
.marketplace-ai-slides label span{overflow:hidden;color:#dce2ea;font-size:11px;font-weight:850;text-overflow:ellipsis;white-space:nowrap}
.marketplace-ai-slides label small{color:var(--muted);font-size:9px}
.marketplace-ai-slides input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.marketplace-ai-extra{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.marketplace-ai-query .marketplace-ai-extra label{gap:5px}
.marketplace-ai-extra textarea{width:100%;min-height:74px;padding:9px 11px;border:1px solid #344258;border-radius:6px;background:#0b131e;color:var(--text);font:inherit;font-size:11px;resize:vertical}
.marketplace-ai-extra textarea:focus{border-color:#d6a21f;outline:0;box-shadow:0 0 0 2px rgba(214,162,31,.12)}
body:not(.admin-dark) .marketplace-ai-slides label,body:not(.admin-dark) .marketplace-ai-extra textarea{background:#fff;border-color:#bdc9d7;color:#172238}
@media(max-width:1180px){.marketplace-ai-query-hybrid{grid-template-columns:1fr 190px}.marketplace-ai-query-hybrid>small{grid-column:1/-1}.marketplace-ai-query-hybrid .marketplace-ai-hybrid{grid-template-columns:1fr}.marketplace-ai-slides{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.marketplace-ai-slides,.marketplace-ai-extra{grid-template-columns:1fr}.marketplace-ai-query-hybrid{grid-template-columns:1fr}}

.marketplace-ai-add-slide{margin-top:8px;width:100%;height:34px;border:1px solid rgba(214,162,31,.48);border-radius:7px;background:rgba(214,162,31,.08);color:#f4c542;font-size:11px;font-weight:850;display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer}
.marketplace-ai-add-slide:hover{border-color:#d6a21f;background:rgba(214,162,31,.14)}
.marketplace-ai-add-slide svg{width:15px;height:15px}
.marketplace-ai-slide-input.filled{border-style:solid;border-color:rgba(74,222,128,.55);background:rgba(34,197,94,.07)}
.marketplace-ai-slide-preview{grid-row:1/3;width:42px;height:42px;border-radius:6px;object-fit:cover;background:#fff}
.marketplace-ai-slide-input.filled>svg{display:none}
.marketplace-ai-slide-input.filled{grid-template-columns:42px minmax(0,1fr)}
body:not(.admin-dark) .marketplace-ai-add-slide{background:#fff;color:#9b7417}

/* Marketplace AI analytics: modern FECOR action states. */
.marketplace-ai-query.marketplace-ai-query-hybrid>button[type=submit],.marketplace-ai-query.marketplace-ai-query-hybrid .marketplace-ai-add-slide{border:1px solid rgba(52,211,153,.52)!important;background:rgba(16,185,129,.10)!important;color:#6ee7b7!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.03),0 8px 24px rgba(16,185,129,.06)!important;transition:border-color .18s ease,background-color .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease}
.marketplace-ai-query.marketplace-ai-query-hybrid>button[type=submit]:hover,.marketplace-ai-query.marketplace-ai-query-hybrid .marketplace-ai-add-slide:hover{border-color:rgba(52,211,153,.82)!important;background:rgba(16,185,129,.17)!important;color:#a7f3d0!important;box-shadow:0 9px 26px rgba(16,185,129,.12)!important;transform:translateY(-1px)}
.marketplace-ai-query.marketplace-ai-query-hybrid>button[type=submit]:focus-visible,.marketplace-ai-query.marketplace-ai-query-hybrid .marketplace-ai-add-slide:focus-visible{outline:2px solid rgba(52,211,153,.62);outline-offset:2px}
.marketplace-ai-query.marketplace-ai-query-hybrid>button[type=submit]:disabled,.marketplace-ai-query.marketplace-ai-query-hybrid .marketplace-ai-add-slide:disabled{border-color:rgba(248,113,113,.42)!important;background:rgba(248,113,113,.08)!important;color:#fca5a5!important;box-shadow:none!important;transform:none!important;cursor:not-allowed}
body:not(.admin-dark) .marketplace-ai-query.marketplace-ai-query-hybrid>button[type=submit],body:not(.admin-dark) .marketplace-ai-query.marketplace-ai-query-hybrid .marketplace-ai-add-slide{border-color:#56b987!important;background:#eaf8f0!important;color:#167347!important;box-shadow:0 5px 16px rgba(22,115,71,.08)!important}
body:not(.admin-dark) .marketplace-ai-query.marketplace-ai-query-hybrid>button[type=submit]:hover,body:not(.admin-dark) .marketplace-ai-query.marketplace-ai-query-hybrid .marketplace-ai-add-slide:hover{border-color:#2f9963!important;background:#ddf4e7!important;color:#0f633c!important}

/* FECOR product editor progressive UI v2 */
#site-fecor-catalog .site-fecor-grid{
  grid-template-columns:minmax(250px,.68fr) minmax(0,1.32fr);
  gap:14px;
  align-items:stretch;
}
#site-fecor-catalog .site-fecor-card{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(52,211,153,.28);
  border-radius:10px;
  background:linear-gradient(145deg,rgba(18,28,41,.96),rgba(13,21,32,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 12px 32px rgba(0,0,0,.10);
  padding:14px;
}
#site-fecor-catalog .site-fecor-card::before{
  content:"";position:absolute;inset:0 auto 0 0;width:2px;
  background:linear-gradient(180deg,rgba(52,211,153,.75),rgba(52,211,153,0));
  pointer-events:none;
}
#site-fecor-catalog .site-fecor-card h3{
  margin:0 0 12px;color:#e9eef6!important;font-size:16px;font-weight:850;letter-spacing:-.01em;
}
#site-fecor-catalog .site-fecor-form{gap:9px}
#site-fecor-catalog .site-fecor-product-form .site-fecor-form{grid-template-columns:repeat(3,minmax(0,1fr))}
#site-fecor-catalog .site-fecor-core-fields{grid-template-columns:minmax(110px,.7fr) minmax(170px,1.25fr) minmax(135px,.8fr)}
#site-fecor-catalog .site-fecor-price-fields{grid-template-columns:repeat(5,minmax(0,1fr))}
#site-fecor-catalog .site-fecor-price-rules{grid-template-columns:repeat(3,minmax(0,1fr)) minmax(170px,1.25fr) 38px}
#site-fecor-catalog .site-fecor-marketplace-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
#site-fecor-catalog .site-fecor-form input,
#site-fecor-catalog .site-fecor-form select,
#site-fecor-catalog .site-fecor-form textarea{
  width:100%;min-width:0;box-sizing:border-box;
  border:1px solid #344256;border-radius:7px;
  background:#0b141f;color:#e8edf5;
  transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease;
}
#site-fecor-catalog .site-fecor-form input,
#site-fecor-catalog .site-fecor-form select{height:36px;min-height:36px;padding:7px 10px}
#site-fecor-catalog .site-fecor-form textarea{min-height:62px;padding:9px 10px}
#site-fecor-catalog .site-fecor-form input:hover,
#site-fecor-catalog .site-fecor-form select:hover,
#site-fecor-catalog .site-fecor-form textarea:hover{border-color:#526176;background:#0d1723}
#site-fecor-catalog .site-fecor-form input:focus,
#site-fecor-catalog .site-fecor-form select:focus,
#site-fecor-catalog .site-fecor-form textarea:focus{
  outline:0;border-color:rgba(52,211,153,.78);background:#0d1824;
  box-shadow:0 0 0 3px rgba(16,185,129,.10);
}
#site-fecor-catalog .site-fecor-form input::placeholder,
#site-fecor-catalog .site-fecor-form textarea::placeholder{color:#748197;opacity:1}
#site-fecor-catalog .site-fecor-certificate-field>span{
  display:flex;align-items:center;gap:7px;color:#69e5b3;font-size:11px;font-weight:800;
}
#site-fecor-catalog .site-fecor-certificate-field>span svg{width:16px;height:16px;color:#69e5b3}
#site-fecor-catalog .site-fecor-certificate-field input{
  border-color:rgba(52,211,153,.35)!important;background:rgba(16,185,129,.045)!important;
}
#site-fecor-catalog .site-fecor-price-rules button{
  width:38px;height:36px;border:1px solid rgba(52,211,153,.48);border-radius:7px;
  background:rgba(16,185,129,.08);color:#6ee7b7;box-shadow:none;
}
#site-fecor-catalog .site-fecor-price-rules button:hover{
  border-color:rgba(52,211,153,.82);background:rgba(16,185,129,.16);color:#a7f3d0;
}
#site-fecor-catalog .site-fecor-upload span{
  min-height:38px;display:flex;align-items:center;justify-content:center;gap:8px;
  border:1px dashed rgba(52,211,153,.46)!important;border-radius:7px;
  background:rgba(16,185,129,.06)!important;color:#6ee7b7!important;
  transition:border-color .18s ease,background-color .18s ease,color .18s ease,transform .18s ease;
}
#site-fecor-catalog .site-fecor-upload span:hover{
  border-color:rgba(52,211,153,.84)!important;background:rgba(16,185,129,.14)!important;
  color:#a7f3d0!important;transform:translateY(-1px);
}
#site-fecor-catalog .site-fecor-upload span svg{width:17px;height:17px}
#site-fecor-catalog .site-product-save,
#site-fecor-catalog .site-fecor-category-form .button.compact{
  min-height:38px;padding:8px 14px!important;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border:1px solid rgba(52,211,153,.52)!important;border-radius:7px!important;
  background:rgba(16,185,129,.09)!important;color:#6ee7b7!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 8px 22px rgba(16,185,129,.06)!important;
}
#site-fecor-catalog .site-product-save:hover,
#site-fecor-catalog .site-fecor-category-form .button.compact:hover{
  border-color:rgba(52,211,153,.84)!important;background:rgba(16,185,129,.17)!important;
  color:#a7f3d0!important;transform:translateY(-1px);
}
#site-fecor-catalog .site-fecor-form .checkline{
  width:max-content;max-width:100%;min-height:38px;padding:7px 12px;
  border:1px solid rgba(52,211,153,.38);border-radius:999px;
  background:rgba(16,185,129,.05);color:#8ea0b6;
}
#site-fecor-catalog .site-fecor-form .checkline:has(input:checked){
  border-color:rgba(52,211,153,.68);background:rgba(16,185,129,.12);color:#6ee7b7;
}
#site-fecor-catalog .site-fecor-list button{
  min-height:32px;padding:6px 10px;border-radius:7px;border-color:#344256;background:rgba(255,255,255,.015);
}
#site-fecor-catalog .site-fecor-list button:hover,
#site-fecor-catalog .site-fecor-list button.active{
  border-color:rgba(52,211,153,.58);background:rgba(16,185,129,.09);color:#6ee7b7;
}
#site-fecor-catalog+.site-fecor-product-list .site-fecor-delete{
  width:30px;height:30px;border:1px solid rgba(248,113,113,.45)!important;border-radius:7px;
  background:rgba(239,68,68,.07)!important;color:#f87171!important;
}
#site-fecor-catalog+.site-fecor-product-list .site-fecor-delete:hover{
  border-color:rgba(248,113,113,.82)!important;background:rgba(239,68,68,.15)!important;color:#fca5a5!important;
}
body:not(.admin-dark) #site-fecor-catalog .site-fecor-card{
  border-color:#cfe9dc;background:linear-gradient(145deg,#fff,#f8fbfa);box-shadow:0 7px 22px rgba(25,65,48,.06);
}
body:not(.admin-dark) #site-fecor-catalog .site-fecor-card h3{color:#172238!important}
body:not(.admin-dark) #site-fecor-catalog .site-fecor-form input,
body:not(.admin-dark) #site-fecor-catalog .site-fecor-form select,
body:not(.admin-dark) #site-fecor-catalog .site-fecor-form textarea{border-color:#c8d4df;background:#fff;color:#172238}
body:not(.admin-dark) #site-fecor-catalog .site-fecor-form input:focus,
body:not(.admin-dark) #site-fecor-catalog .site-fecor-form select:focus,
body:not(.admin-dark) #site-fecor-catalog .site-fecor-form textarea:focus{border-color:#34a875;box-shadow:0 0 0 3px rgba(22,163,99,.10)}
body:not(.admin-dark) #site-fecor-catalog .site-product-save,
body:not(.admin-dark) #site-fecor-catalog .site-fecor-category-form .button.compact{border-color:#57b889!important;background:#eaf8f0!important;color:#167347!important}
@media(max-width:1450px){
  #site-fecor-catalog .site-fecor-grid{grid-template-columns:minmax(230px,.55fr) minmax(0,1.45fr)}
  #site-fecor-catalog .site-fecor-marketplace-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
  #site-fecor-catalog .site-fecor-price-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:1120px){
  #site-fecor-catalog .site-fecor-grid{grid-template-columns:1fr}
  #site-fecor-catalog .site-fecor-core-fields,
  #site-fecor-catalog .site-fecor-price-fields,
  #site-fecor-catalog .site-fecor-price-rules,
  #site-fecor-catalog .site-fecor-marketplace-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  #site-fecor-catalog .site-fecor-price-rules button{width:100%}
}
@media(max-width:680px){
  #site-fecor-catalog .site-fecor-product-form .site-fecor-form,
  #site-fecor-catalog .site-fecor-core-fields,
  #site-fecor-catalog .site-fecor-price-fields,
  #site-fecor-catalog .site-fecor-price-rules,
  #site-fecor-catalog .site-fecor-marketplace-fields{grid-template-columns:1fr}
  #site-fecor-catalog .site-product-save{grid-column:1/-1;justify-self:stretch}
}

#site-fecor-catalog [data-site-category-form] .button.compact{border-color:rgba(52,211,153,.52)!important;background:rgba(16,185,129,.09)!important;color:#6ee7b7!important}
#site-fecor-catalog [data-site-category-form] .button.compact:hover{border-color:rgba(52,211,153,.84)!important;background:rgba(16,185,129,.17)!important;color:#a7f3d0!important}

/* FECOR product title and certificate placement */
#site-fecor-catalog .site-fecor-product-title-row{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;
}
#site-fecor-catalog .site-fecor-product-title-row>label:first-child{min-width:0}
#site-fecor-catalog .site-fecor-product-title-row .checkline{
  min-width:128px;margin:0;justify-content:center;white-space:nowrap;
}
#site-fecor-catalog .site-fecor-certificate-footer{
  grid-column:1/3;align-self:end;min-width:0;
}
#site-fecor-catalog .site-fecor-certificate-footer input{height:38px;min-height:38px}
#site-fecor-catalog .site-fecor-certificate-footer+.site-product-save{
  grid-column:3/4;align-self:end;height:38px;min-height:38px;white-space:nowrap;
}
@media(max-width:1120px){
  #site-fecor-catalog .site-fecor-certificate-footer{grid-column:1/2}
  #site-fecor-catalog .site-fecor-certificate-footer+.site-product-save{grid-column:2/3;width:100%}
}
@media(max-width:680px){
  #site-fecor-catalog .site-fecor-product-title-row{grid-template-columns:1fr}
  #site-fecor-catalog .site-fecor-product-title-row .checkline{width:100%}
  #site-fecor-catalog .site-fecor-certificate-footer,
  #site-fecor-catalog .site-fecor-certificate-footer+.site-product-save{grid-column:1/-1;width:100%}
}

/* FECOR compact state lights and certificate alignment */
#site-fecor-catalog [data-site-category-form] .checkline,
#site-fecor-catalog .site-fecor-product-title-row .checkline{
  position:relative;width:auto;min-width:0;max-width:100%;height:36px;min-height:36px;
  margin:0;padding:7px 12px 7px 30px;display:inline-flex;align-items:center;justify-content:flex-start;
  border:0!important;border-radius:7px;background:rgba(148,163,184,.045)!important;
  color:#9aa7ba!important;box-shadow:none!important;cursor:pointer;overflow:hidden;
}
#site-fecor-catalog [data-site-category-form] .checkline::before,
#site-fecor-catalog .site-fecor-product-title-row .checkline::before{
  content:"";position:absolute;left:12px;top:50%;width:8px;height:8px;border-radius:50%;
  background:#657386;box-shadow:0 0 0 5px rgba(100,116,139,.08);transform:translateY(-50%);
  transition:background-color .18s ease,box-shadow .18s ease;
}
#site-fecor-catalog [data-site-category-form] .checkline:has(input:checked),
#site-fecor-catalog .site-fecor-product-title-row .checkline:has(input:checked){
  border:0!important;background:rgba(16,185,129,.075)!important;color:#6ee7b7!important;
}
#site-fecor-catalog [data-site-category-form] .checkline:has(input:checked)::before,
#site-fecor-catalog .site-fecor-product-title-row .checkline:has(input:checked)::before{
  background:#34d399;box-shadow:0 0 0 5px rgba(52,211,153,.11),0 0 14px rgba(52,211,153,.58);
}
#site-fecor-catalog [data-site-category-form] .checkline input[type=checkbox],
#site-fecor-catalog .site-fecor-product-title-row .checkline input[type=checkbox]{
  position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;
  margin:0!important;padding:0!important;opacity:0!important;pointer-events:none;
}
#site-fecor-catalog [data-site-category-form]{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
}
#site-fecor-catalog [data-site-category-form] .button.compact{grid-column:1/-1;justify-self:start}
#site-fecor-catalog .site-fecor-certificate-footer{
  display:grid;grid-template-rows:20px 38px;gap:4px;
}
#site-fecor-catalog .site-fecor-certificate-footer>span{height:20px;align-self:center}
#site-fecor-catalog .site-fecor-certificate-footer>span svg{
  width:21px!important;height:21px!important;stroke-width:1.9;
  filter:drop-shadow(0 0 7px rgba(52,211,153,.26));
}
#site-fecor-catalog .site-fecor-certificate-footer input{height:38px!important;min-height:38px!important}
#site-fecor-catalog .site-fecor-certificate-footer+.site-product-save{
  align-self:start!important;height:38px!important;min-height:38px!important;margin-top:24px!important;
}
@media(max-width:680px){
  #site-fecor-catalog [data-site-category-form]{grid-template-columns:1fr}
  #site-fecor-catalog [data-site-category-form] .checkline{width:100%}
  #site-fecor-catalog .site-fecor-certificate-footer+.site-product-save{margin-top:0!important}
}

/* FECOR red-green inline state switches */
#site-fecor-catalog [data-site-category-form] .checkline,
#site-fecor-catalog .site-fecor-product-title-row .checkline{
  position:relative;height:36px;min-height:36px;padding:0 10px 0 56px;
  display:inline-flex;align-items:center;justify-content:flex-start;align-self:center;
  border:0!important;border-radius:7px;background:transparent!important;
  color:#9ca9ba!important;box-shadow:none!important;line-height:1;white-space:nowrap;
}
#site-fecor-catalog [data-site-category-form] .checkline::before,
#site-fecor-catalog .site-fecor-product-title-row .checkline::before{
  content:"";position:absolute;left:8px;top:50%;width:36px;height:20px;border-radius:999px;
  border:1px solid rgba(248,113,113,.58);background:rgba(239,68,68,.16);
  box-shadow:inset 0 0 0 1px rgba(239,68,68,.035),0 0 12px rgba(239,68,68,.10);
  transform:translateY(-50%);transition:border-color .2s ease,background-color .2s ease,box-shadow .2s ease;
}
#site-fecor-catalog [data-site-category-form] .checkline::after,
#site-fecor-catalog .site-fecor-product-title-row .checkline::after{
  content:"";position:absolute;left:12px;top:50%;width:12px;height:12px;border-radius:50%;
  background:#fb7185;box-shadow:0 0 7px rgba(251,113,133,.42);
  transform:translateY(-50%);transition:left .2s ease,background-color .2s ease,box-shadow .2s ease;
}
#site-fecor-catalog [data-site-category-form] .checkline:has(input:checked),
#site-fecor-catalog .site-fecor-product-title-row .checkline:has(input:checked){
  border:0!important;background:transparent!important;color:#6ee7b7!important;
}
#site-fecor-catalog [data-site-category-form] .checkline:has(input:checked)::before,
#site-fecor-catalog .site-fecor-product-title-row .checkline:has(input:checked)::before{
  border-color:rgba(52,211,153,.68);background:rgba(16,185,129,.18);
  box-shadow:inset 0 0 0 1px rgba(52,211,153,.04),0 0 12px rgba(52,211,153,.13);
}
#site-fecor-catalog [data-site-category-form] .checkline:has(input:checked)::after,
#site-fecor-catalog .site-fecor-product-title-row .checkline:has(input:checked)::after{
  left:28px;background:#34d399;box-shadow:0 0 8px rgba(52,211,153,.56);
}
#site-fecor-catalog [data-site-category-form] .checkline:hover::before,
#site-fecor-catalog .site-fecor-product-title-row .checkline:hover::before{filter:brightness(1.12)}
#site-fecor-catalog [data-site-category-form],
#site-fecor-catalog .site-fecor-product-title-row{align-items:center}
#site-fecor-catalog [data-site-category-form]>label,
#site-fecor-catalog .site-fecor-product-title-row>label{align-self:center}
body:not(.admin-dark) #site-fecor-catalog [data-site-category-form] .checkline,
body:not(.admin-dark) #site-fecor-catalog .site-fecor-product-title-row .checkline{color:#6d7888!important}
body:not(.admin-dark) #site-fecor-catalog [data-site-category-form] .checkline:has(input:checked),
body:not(.admin-dark) #site-fecor-catalog .site-fecor-product-title-row .checkline:has(input:checked){color:#167347!important}

/* FECOR exact control-axis alignment */
#site-fecor-catalog [data-site-category-form]{
  grid-template-columns:minmax(0,1fr) auto;
  grid-auto-rows:auto;column-gap:10px;row-gap:9px;align-items:start;
}
#site-fecor-catalog [data-site-category-form]>label:first-of-type,
#site-fecor-catalog .site-fecor-product-title-row>label:first-child{
  height:36px;min-height:36px;margin:0;padding:0;align-self:start;
}
#site-fecor-catalog [data-site-category-form]>label:first-of-type>input,
#site-fecor-catalog .site-fecor-product-title-row>label:first-child>input{
  display:block;height:36px!important;min-height:36px!important;margin:0;
}
#site-fecor-catalog [data-site-category-form] .checkline,
#site-fecor-catalog .site-fecor-product-title-row .checkline{
  height:36px!important;min-height:36px!important;margin:0!important;align-self:start!important;
  box-sizing:border-box;
}
#site-fecor-catalog .site-fecor-product-title-row{
  height:36px;min-height:36px;align-items:start!important;
}
#site-fecor-catalog .site-fecor-price-rules{
  align-items:start!important;
}
#site-fecor-catalog .site-fecor-price-rules>label{
  height:36px;min-height:36px;margin:0;padding:0;
}
#site-fecor-catalog .site-fecor-price-rules>label>input,
#site-fecor-catalog .site-fecor-price-rules>label>select{
  display:block;height:36px!important;min-height:36px!important;margin:0;
}
#site-fecor-catalog .site-fecor-price-rules>button[data-site-price-calculate]{
  width:38px!important;height:36px!important;min-height:36px!important;margin:0!important;padding:0!important;
  align-self:start!important;display:grid!important;place-items:center!important;line-height:0;
}
#site-fecor-catalog .site-fecor-price-rules>button[data-site-price-calculate] svg{
  display:block;width:17px!important;height:17px!important;margin:0;
}
@media(max-width:1120px){
  #site-fecor-catalog .site-fecor-price-rules>button[data-site-price-calculate]{width:100%!important}
}
@media(max-width:680px){
  #site-fecor-catalog [data-site-category-form],
  #site-fecor-catalog .site-fecor-product-title-row{height:auto;min-height:0}
}

/* FECOR final optical axis correction */
#site-fecor-catalog [data-site-category-form] .checkline,
#site-fecor-catalog .site-fecor-product-title-row .checkline,
#site-fecor-catalog .site-fecor-price-rules>button[data-site-price-calculate]{
  transform:translateY(-6px)!important;
}
#site-fecor-catalog [data-site-category-form] .checkline:hover,
#site-fecor-catalog .site-fecor-product-title-row .checkline:hover,
#site-fecor-catalog .site-fecor-price-rules>button[data-site-price-calculate]:hover{
  transform:translateY(-6px)!important;
}
@media(max-width:680px){
  #site-fecor-catalog [data-site-category-form] .checkline,
  #site-fecor-catalog .site-fecor-product-title-row .checkline,
  #site-fecor-catalog .site-fecor-price-rules>button[data-site-price-calculate]{transform:none!important}
}

/* FECOR true geometric axis reset */
#site-fecor-catalog [data-site-category-form] .checkline,
#site-fecor-catalog .site-fecor-product-title-row .checkline,
#site-fecor-catalog .site-fecor-price-rules>button[data-site-price-calculate],
#site-fecor-catalog [data-site-category-form] .checkline:hover,
#site-fecor-catalog .site-fecor-product-title-row .checkline:hover,
#site-fecor-catalog .site-fecor-price-rules>button[data-site-price-calculate]:hover{
  transform:none!important;
}
#site-fecor-catalog [data-site-category-form],
#site-fecor-catalog .site-fecor-product-title-row,
#site-fecor-catalog .site-fecor-price-rules{
  align-items:center!important;
}
#site-fecor-catalog [data-site-category-form]>label:first-of-type,
#site-fecor-catalog .site-fecor-product-title-row>label:first-child,
#site-fecor-catalog [data-site-category-form] .checkline,
#site-fecor-catalog .site-fecor-product-title-row .checkline,
#site-fecor-catalog .site-fecor-price-rules>label,
#site-fecor-catalog .site-fecor-price-rules>button[data-site-price-calculate]{
  align-self:center!important;
}

/* Accounting: unofficial Excel workflow */
.accounting-import-actions{display:flex;align-items:center;gap:8px}
.accounting-import-actions form{display:flex;margin:0}
.accounting-import-actions .accounting-excel-button{border-color:rgba(51,211,153,.58);background:rgba(24,112,82,.14);color:#63e6b1}
.accounting-import-actions .accounting-excel-button:hover{background:rgba(24,112,82,.26);border-color:#35cb91}
.accounting-unofficial-dialog .accounting-statement-upload>div{border-color:rgba(51,211,153,.32);background:rgba(21,91,69,.10)}
.accounting-unofficial-dialog .accounting-statement-upload>div>svg{color:#54dda6}
@media(max-width:1100px){.accounting-import-actions{flex-wrap:wrap}}
@media(max-width:650px){.accounting-import-actions,.accounting-import-actions form,.accounting-import-actions button{width:100%}}

/* Economics ledger */
.economics-ledger-section {
  overflow: hidden;
  border-color: rgba(214, 162, 31, .28);
  background: var(--card);
  box-shadow: none;
}
.economics-ledger-section .section-head {
  border-bottom: 1px solid var(--line);
}
.economics-ledger-head {
  min-height: 60px;
  padding: 12px 18px;
}
.economics-ledger-head h2 {
  font-size: 18px;
  line-height: 1.2;
}
.economics-ledger-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 18px 14px;
}
.economics-ledger-kpi {
  min-width: 0;
  min-height: 82px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .02);
}
.economics-ledger-kpi > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.economics-ledger-kpi strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.economics-ledger-kpi small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}
.economics-ledger-kpi.positive strong { color: #69dfa9; }
.economics-ledger-kpi.warning strong { color: #eac45f; }
.economics-ledger-kpi.negative strong { color: #ff8993; }
#product-economics .economics-ledger-wrap {
  max-width: 100%;
  overflow: auto;
  margin: 0 18px 18px;
  border: 1px solid var(--fecor-gold-line);
  border-radius: 9px;
  background: var(--card);
  scrollbar-color: rgba(214, 162, 31, .42) transparent;
  scrollbar-width: thin;
}
#product-economics .economics-ledger-wrap:focus {
  outline: 2px solid rgba(214, 162, 31, .42);
  outline-offset: -2px;
}
.economics-ledger-table {
  width: 100%;
  min-width: 1280px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
.economics-ledger-table .col-channel { width: 140px; }
.economics-ledger-table .col-product { width: 300px; }
.economics-ledger-table .col-orders { width: 70px; }
.economics-ledger-table .col-revenue { width: 125px; }
.economics-ledger-table .col-cost { width: 150px; }
.economics-ledger-table .col-commission { width: 110px; }
.economics-ledger-table .col-logistics { width: 145px; }
.economics-ledger-table .col-profit { width: 150px; }
.economics-ledger-table .col-margin { width: 90px; }
.economics-ledger-table th,
.economics-ledger-table td {
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 13px;
  line-height: 1.3;
}
.economics-ledger-table th:last-child,
.economics-ledger-table td:last-child { border-right: 0; }
.economics-ledger-table tbody tr:last-child td { border-bottom: 0; }
.economics-ledger-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 52px;
  background: #131d2b;
  color: #cad2de;
  font-size: 11px;
  font-weight: 700;
  white-space: normal;
}
.economics-ledger-table tbody td { height: 56px; }
.economics-ledger-table tbody tr:hover { background: rgba(214, 162, 31, .06); }
.economics-ledger-table .numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.economics-channel-cell,
.economics-product-cell { line-height: 1.25; }
.economics-channel-cell small,
.economics-product-cell small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.economics-product-cell strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.economics-revenue-cell { font-weight: 700; }
.economics-empty-value,
.economics-result.missing,
.economics-margin.missing { color: var(--muted); }
.economics-result { font-weight: 700; }
.economics-result.positive,
.economics-margin.positive { color: #69dfa9; }
.economics-result.negative,
.economics-margin.negative { color: #ff8993; }
body:not(.admin-dark) .economics-ledger-section {
  border-color: rgba(184, 133, 13, .28);
  background: #fff;
}
body:not(.admin-dark) .economics-ledger-kpi { background: #f9fbfd; }
body:not(.admin-dark) .economics-ledger-kpi.positive strong { color: #128454; }
body:not(.admin-dark) .economics-ledger-kpi.warning strong { color: #946c08; }
body:not(.admin-dark) .economics-ledger-kpi.negative strong { color: #bf3545; }
body:not(.admin-dark) .economics-ledger-table thead th {
  background: #edf2f7;
  color: #354154;
}
body:not(.admin-dark) .economics-ledger-table tbody tr:hover { background: #fff9e8; }
body:not(.admin-dark) .economics-ledger-table th,
body:not(.admin-dark) .economics-ledger-table td { border-color: #dce3eb; }
body:not(.admin-dark) .economics-result.positive,
body:not(.admin-dark) .economics-margin.positive { color: #128454; }
body:not(.admin-dark) .economics-result.negative,
body:not(.admin-dark) .economics-margin.negative { color: #bf3545; }
@media (max-width: 1200px) {
  .economics-ledger-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .economics-ledger-head { flex-wrap: wrap; }
  .economics-ledger-kpis { grid-template-columns: 1fr; padding: 12px; }
  #product-economics .economics-ledger-wrap { margin: 0 12px 12px; }
}
.chart-day-link { color: inherit; text-decoration: none; cursor: pointer; border-radius: 8px; transition: background 140ms ease, transform 140ms ease; }
.chart-day-link:hover { background: rgba(212, 163, 32, 0.07); transform: translateY(-2px); }
.chart-day-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* FECOR client mailing */
.site-mailing-status-row{display:grid;grid-template-columns:130px 130px 130px minmax(280px,1fr);gap:9px;margin-bottom:10px}.site-mailing-status-row>article,.site-mailing-smtp{min-height:64px;padding:11px 13px;border:1px solid var(--line);border-radius:7px;background:var(--card)}.site-mailing-status-row article{display:flex;flex-direction:column;justify-content:center}.site-mailing-status-row article span{color:var(--muted);font-size:10px}.site-mailing-status-row article strong{font-size:20px}.site-mailing-status-row article.ok strong{color:#55d690}.site-mailing-status-row article.danger strong{color:#ef6a72}.site-mailing-smtp{display:flex;align-items:center;gap:10px}.site-mailing-smtp>svg{width:24px;height:24px}.site-mailing-smtp div{display:grid;gap:3px}.site-mailing-smtp small{color:var(--muted);font-size:10px}.site-mailing-smtp.ready{border-color:rgba(59,198,112,.42);background:rgba(59,198,112,.06);color:#55d690}.site-mailing-smtp.waiting{border-color:rgba(214,162,31,.42);background:rgba(214,162,31,.06);color:var(--fecor-gold-text)}
.site-mailing-notice{margin:0 0 10px;padding:8px 11px;border-radius:6px;font-weight:700}.site-mailing-notice.ok{background:rgba(59,198,112,.08);color:#55d690}.site-mailing-notice.danger{background:rgba(224,75,75,.08);color:#ef6a72}.site-mailing-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(310px,.6fr);gap:10px}.site-mailing-compose>header,.site-mailing-history>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.site-mailing-compose header small,.site-mailing-history header small{color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.1em}.site-mailing-compose header h3,.site-mailing-history header h3{margin:3px 0 0}.site-mailing-compose>header>span{color:var(--muted);font-size:10px}.site-mailing-compose form{display:grid;gap:10px}.site-mailing-compose label{display:grid;gap:5px}.site-mailing-compose label>span{color:var(--muted);font-weight:700}.site-mailing-row{display:grid;grid-template-columns:1fr 1fr;gap:9px}.site-mailing-recipient-box{padding:10px;border:1px solid var(--line);border-radius:7px;background:rgba(8,14,22,.28)}.site-mailing-recipient-box>div:first-child{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.site-mailing-recipient-box button{min-height:28px;padding:4px 8px;border:1px solid var(--fecor-gold-line);border-radius:5px;background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font-size:10px;font-weight:700}.site-mailing-search{position:relative}.site-mailing-search>svg{position:absolute;left:9px;top:9px;width:15px;color:var(--muted)}.site-mailing-search input{padding-left:31px!important}.site-mailing-recipient-list{max-height:250px;overflow:auto;margin-top:8px;border-top:1px solid var(--line)}.site-mailing-recipient-list>label{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 5px;border-bottom:1px solid var(--line);cursor:pointer}.site-mailing-recipient-list>label:hover{background:var(--fecor-gold-soft)}.site-mailing-recipient-list input{width:16px;height:16px;accent-color:#2fbd7c}.site-mailing-recipient-list span{display:grid;gap:2px}.site-mailing-recipient-list span strong{color:var(--text);font-size:11px}.site-mailing-recipient-list span small{color:var(--muted);font-size:9px}.site-mailing-recipient-list em{padding:3px 5px;border:1px solid var(--line);border-radius:4px;color:var(--muted);font-size:8px;font-style:normal}.site-mailing-actions{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,240px) auto auto;align-items:end;gap:8px}.site-mailing-attachment{min-height:35px;display:grid!important;grid-template-columns:18px 1fr auto;align-items:center;gap:6px;padding:7px 9px;border:1px dashed var(--fecor-gold-line);border-radius:6px;color:var(--fecor-gold-text);cursor:pointer}.site-mailing-attachment input{display:none}.site-mailing-attachment svg{width:16px}.site-mailing-attachment small{color:var(--muted);font-size:8px}.site-mailing-test-button,.site-mailing-send{min-height:35px;display:flex;align-items:center;justify-content:center;gap:6px;padding:7px 10px;border-radius:6px;font-size:10px;font-weight:800;white-space:nowrap}.site-mailing-test-button{border:1px solid var(--fecor-gold-line);background:transparent;color:var(--fecor-gold-text)}.site-mailing-send{border:1px solid rgba(59,198,112,.55);background:rgba(59,198,112,.08);color:#55d690}.site-mailing-test-button:disabled,.site-mailing-send:disabled{opacity:.42;cursor:not-allowed}.site-mailing-history-list{display:grid;gap:7px}.site-mailing-history-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;padding:10px;border:1px solid var(--line);border-radius:6px;background:rgba(8,14,22,.26)}.site-mailing-history-list article>div{display:grid;gap:3px}.site-mailing-history-list article small{color:var(--muted);font-size:9px}.site-mailing-history-list article p{grid-column:1/-1;margin:0;color:var(--muted);font-size:9px}.site-mailing-history-list article p b{color:var(--text)}
@media(max-width:1180px){.site-mailing-status-row{grid-template-columns:repeat(3,1fr)}.site-mailing-smtp{grid-column:1/-1}.site-mailing-grid{grid-template-columns:1fr}.site-mailing-actions{grid-template-columns:1fr 1fr}.site-mailing-test-button,.site-mailing-send{width:100%}}@media(max-width:700px){.site-mailing-status-row,.site-mailing-row,.site-mailing-actions{grid-template-columns:1fr}.site-mailing-recipient-list>label{grid-template-columns:20px 1fr}.site-mailing-recipient-list em{grid-column:2}}

/* Mailing attachment feedback and exact action alignment */
.site-mailing-attachment{height:35px;min-width:0;grid-template-columns:18px minmax(0,1fr) auto;align-self:end}.site-mailing-attachment span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.site-mailing-attachment small{white-space:nowrap}.site-mailing-attachment.has-file{border-style:solid;border-color:rgba(59,198,112,.55);background:rgba(59,198,112,.06);color:#55d690}.site-mailing-test{align-self:end}.site-mailing-test input{height:35px}.site-mailing-test-button,.site-mailing-send{height:35px;min-height:35px;align-self:end;margin:0;padding-top:0;padding-bottom:0;line-height:1}

/* Keep mailing actions exactly as tall as the rendered e-mail field. */
.site-mailing-attachment,.site-mailing-test-button,.site-mailing-send{height:var(--mailing-control-height,35px);min-height:var(--mailing-control-height,35px);box-sizing:border-box}
.site-mailing-test-button,.site-mailing-send{transform:translateY(var(--mailing-action-shift,0));}

.site-attribution-cell{min-width:175px}.site-attribution summary{cursor:pointer;color:#69c7ee;font-weight:700}.site-attribution a{display:block;margin:6px 0;color:#69c7ee;font-size:12px}.site-attribution small,.site-attribution-inline small{display:block;max-width:300px;margin-top:4px;overflow-wrap:anywhere;color:var(--muted);font-size:11px;line-height:1.35}.site-attribution small b,.site-attribution-inline small b{color:var(--text)}.site-attribution-inline{margin-top:7px;padding-top:5px;border-top:1px solid var(--line)}

/* FECOR orders: 11-column layout after advertising attribution */
.site-fecor-products-wrap:has(table[data-order-search-table="fecor"]){
  max-width:100%;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
}
table[data-order-search-table="fecor"]{
  width:100%;
  min-width:1740px!important;
  max-width:none;
  table-layout:fixed;
}
table[data-order-search-table="fecor"] th:nth-child(1){width:135px}
table[data-order-search-table="fecor"] th:nth-child(2){width:90px}
table[data-order-search-table="fecor"] th:nth-child(3){width:190px}
table[data-order-search-table="fecor"] th:nth-child(4){width:175px}
table[data-order-search-table="fecor"] th:nth-child(5){width:300px}
table[data-order-search-table="fecor"] th:nth-child(6){width:130px}
table[data-order-search-table="fecor"] th:nth-child(7){width:110px}
table[data-order-search-table="fecor"] th:nth-child(8){width:150px}
table[data-order-search-table="fecor"] th:nth-child(9){width:190px}
table[data-order-search-table="fecor"] th:nth-child(10){width:220px}
table[data-order-search-table="fecor"] th:nth-child(11){width:50px}
table[data-order-search-table="fecor"] td:nth-child(5)>div[style]{
  min-width:0!important;
  white-space:pre-line!important;
}
table[data-order-search-table="fecor"] .site-attribution-cell{
  min-width:0;
  overflow-wrap:anywhere;
}

/* Keep ERP navigation and FECOR order workspace inside the application grid */
.app-layout>main.page{
  min-width:0;
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}
#fecor-site-panel,
#site-fecor-orders,
#site-fecor-orders>.site-fecor-product-list{
  min-width:0;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}
#site-fecor-orders .site-fecor-products-wrap{
  display:block;
  min-width:0;
  width:100%;
  max-width:100%;
  overflow-x:auto!important;
  overflow-y:hidden;
  box-sizing:border-box;
}
#site-fecor-orders .site-order-invoice-form{
  max-width:100%;
  box-sizing:border-box;
}


/* Minimal gap between the ERP side navigation and all workspace blocks */
.app-layout>main.page{
  padding-left:6px;
}
@media(max-width:900px){
  .app-layout>main.page{padding-left:8px;padding-right:8px}
}

/* Match the workspace left gap to the gap below the top header */
.app-layout>main.page{
  padding-left:16px;
}


/* Equal workspace outer spacing around every ERP tab */
.app-layout>main.page{
  padding:16px 16px 48px;
}

/* Collapsed navigation: diagnostics icon only */
body.side-menu-collapsed .side-nav-bottom>.side-diagnostics-link{
  justify-content:center!important;
  gap:0!important;
}
body.side-menu-collapsed .side-nav-bottom>.side-diagnostics-link>strong{
  display:none!important;
}


/* Collapsed navigation: preserve the primary section icons */
body.side-menu-collapsed .side-nav nav{
  display:grid!important;
  flex:1 1 auto;
  min-height:0;
  align-content:start;
  gap:5px;
  overflow-x:hidden;
  overflow-y:auto;
}
body.side-menu-collapsed .side-nav nav>a,
body.side-menu-collapsed .side-nav-tree>summary{
  position:relative;
  display:flex!important;
  align-items:center;
  justify-content:center!important;
  width:32px!important;
  min-width:32px!important;
  height:32px!important;
  min-height:32px!important;
  margin:0 auto;
  padding:0!important;
  box-sizing:border-box;
}
body.side-menu-collapsed .side-nav nav>a>strong,
body.side-menu-collapsed .side-nav-tree>summary>strong,
body.side-menu-collapsed .side-nav-tree>summary::after,
body.side-menu-collapsed .side-nav-tree>div{
  display:none!important;
}
body.side-menu-collapsed .side-nav nav>a>svg,
body.side-menu-collapsed .side-nav-tree>summary>svg{
  flex:0 0 18px!important;
  width:18px!important;
  height:18px!important;
  margin:0!important;
}
body.side-menu-collapsed .side-nav-tree{
  width:32px!important;
  margin:0 auto!important;
}
body.side-menu-collapsed .side-nav nav>a .site-order-new-dot{
  position:absolute;
  top:2px;
  right:2px;
  width:6px;
  height:6px;
  margin:0;
}

/* Shared horizontal navigation for ERP section groups */
.erp-horizontal-tabs{
  width:100%;
  box-sizing:border-box;
  align-items:center;
  padding:14px 16px;
  margin:0 0 14px;
  border:1px solid rgba(214,162,31,.18);
  border-radius:8px;
  background:var(--card);
}
body.admin-dark .erp-horizontal-tabs{
  border-color:rgba(214,162,31,.22);
  background:linear-gradient(180deg,rgba(22,29,39,.98),rgba(14,19,27,.98));
}
.site-sorber-admin>.site-sorber-tabs{
  padding-left:28px;
  padding-right:28px;
}
@media (max-width:760px){
  .erp-horizontal-tabs{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding:10px;
  }
  .erp-horizontal-tabs a{
    flex:0 0 auto;
  }
  .site-sorber-admin>.site-sorber-tabs{
    padding-left:14px;
    padding-right:14px;
  }
}

/* Keep the first navigation item below the floating collapse control */
.side-nav>nav{
  padding-top:30px;
}

/* Unified section tabs: Marketplaces, FECOR, SORBER, B2B and Accounting */
.os-context-tabs{
  min-width:0;
  margin-bottom:12px;
  padding:14px 22px;
  border:1px solid rgba(214,162,31,.28);
  border-radius:10px;
  background:linear-gradient(180deg,rgba(22,29,39,.98),rgba(14,19,27,.98));
  box-shadow:0 10px 30px rgba(0,0,0,.18);
}
.os-context-tabs[hidden],.os-context-tabs nav[hidden]{display:none!important}
.os-context-tabs nav{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  overflow-x:auto;
  scrollbar-width:thin;
  scrollbar-color:rgba(214,162,31,.35) transparent;
}
.os-context-tabs a{
  min-height:40px;
  padding:0 14px;
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:1px solid rgba(214,162,31,.28);
  border-radius:8px;
  background:rgba(214,162,31,.035);
  color:#d9b74f;
  font-size:13px;
  font-weight:700;
  line-height:1;
  text-decoration:none;
  transition:border-color 140ms ease,background 140ms ease,color 140ms ease,transform 140ms ease;
}
.os-context-tabs a:hover,.os-context-tabs a.active{
  border-color:rgba(214,162,31,.68);
  background:rgba(214,162,31,.11);
  color:#f2c84b;
}
.os-context-tabs a:active{transform:translateY(1px)}
.os-context-tabs a strong{color:#f2c84b;font:inherit}
.os-context-tabs a[data-header-subnav]::after{content:"";flex:none;width:5px;height:5px;margin-left:3px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.os-context-tabs a[data-header-subnav][aria-expanded=true]::after{transform:translateY(1px) rotate(225deg)}
.erp-header-submenu{position:fixed;z-index:300;display:grid;gap:3px;box-sizing:border-box;width:max-content;max-width:min(320px,calc(100vw - 20px));max-height:min(55vh,420px);padding:6px;border:1px solid rgba(214,162,31,.42);border-radius:9px;background:#19212b;box-shadow:0 18px 45px rgba(0,0,0,.38);overflow:auto}
.erp-header-submenu button,body.admin-dark .erp-header-submenu button{display:block;width:100%;min-height:35px;padding:8px 11px;border:1px solid transparent;border-radius:6px;background:transparent;color:#e7eaf0;font:inherit;font-size:12px;font-weight:700;text-align:left;white-space:normal;cursor:pointer}
.erp-header-submenu button:hover,.erp-header-submenu button:focus-visible,.erp-header-submenu button.active,body.admin-dark .erp-header-submenu button:hover,body.admin-dark .erp-header-submenu button:focus-visible,body.admin-dark .erp-header-submenu button.active{outline:none;border-color:rgba(214,162,31,.42);background:rgba(214,162,31,.12);color:#f2c84b}
body.erp-theme-light .erp-header-submenu {
  border-color: var(--fecor-gold-line);
  background: var(--card);
  box-shadow: 0 12px 32px rgba(31,41,55,.16);
}
body.erp-theme-light .erp-header-submenu button { color: var(--text); }
body.erp-theme-light .erp-header-submenu button:is(:hover,:focus-visible,.active) {
  border-color: var(--fecor-gold-line);
  background: var(--fecor-gold-soft);
  color: var(--accent-dark);
}
#fecor-site-panel>.site-fecor-tabs{display:none}
#b2b-sales-panel>[data-b2b-section-view][hidden],.site-b2b-warehouse-dialog [hidden]{display:none!important}
.site-b2b-directories{display:grid;gap:14px;padding:4px 18px 16px}
#b2b-sales-panel:has(#b2b-counterparties:not([hidden])){padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
#b2b-sales-panel:has(#b2b-counterparties:not([hidden])) #b2b-directories{gap:0;padding:0}
.site-b2b-directory-tabs{max-width:100%}
.site-b2b-directories>.site-b2b-directory-tabs{display:none}
.site-b2b-directories>[data-b2b-directory-view][hidden]{display:none!important}
.site-b2b-directories .site-b2b-placeholder{padding:0}
#b2b-product-history{display:grid;align-content:start;gap:12px;min-width:0;min-height:220px}
.site-b2b-history-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border:1px solid var(--fecor-gold-line);border-radius:8px;background:var(--card)}
.site-b2b-history-head>div{display:grid;gap:3px}.site-b2b-history-head strong{color:var(--text);font-size:14px}.site-b2b-history-head small{color:var(--muted);font-size:11px}
.site-b2b-history-head form{display:flex;align-items:center;gap:8px;min-width:0}.site-b2b-history-head .site-b2b-product-search{flex:0 1 280px;width:280px;min-width:160px;height:30px;margin:0}
#b2b-product-history .site-b2b-product-search input[type=search]{box-sizing:border-box;flex:1;width:100%;min-width:0;height:28px;min-height:0;margin:0;padding:0;border:0;outline:0;border-radius:0;box-shadow:none;background:transparent;color:#1f2937;font:inherit;font-size:11px}
#b2b-product-history .site-b2b-product-search input[type=search]::placeholder{color:#687586;opacity:1}
.site-b2b-history-head form>button,.site-b2b-history-pages a{min-height:30px;padding:5px 10px;border:1px solid var(--fecor-gold-line);border-radius:7px;background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font:inherit;font-size:11px;font-weight:700;text-decoration:none;cursor:pointer}
.site-b2b-history-table{min-width:900px}.site-b2b-history-table td{vertical-align:top}.site-b2b-history-table td small{color:var(--muted)}
.site-b2b-history-details{min-width:110px}.site-b2b-history-details summary{color:var(--fecor-gold-text);font-weight:700;cursor:pointer}.site-b2b-history-details dl{display:grid;gap:7px;min-width:320px;max-width:620px;margin:8px 0 0}.site-b2b-history-details dl>div{padding:6px 8px;border:1px solid var(--line);border-radius:6px;background:var(--card)}.site-b2b-history-details dt{margin-bottom:3px;color:var(--text);font-weight:700}.site-b2b-history-details dd{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:7px;margin:0;color:var(--muted)}.site-b2b-history-details dd span{overflow-wrap:anywhere;white-space:pre-wrap}.site-b2b-history-details dd b{color:var(--fecor-gold-text)}
.site-b2b-history-pages{display:flex;align-items:center;justify-content:flex-end;gap:9px;color:var(--muted);font-size:11px}
@media(max-width:700px){.site-b2b-history-head{align-items:stretch;flex-direction:column}.site-b2b-history-head form{width:100%}.site-b2b-history-head .site-b2b-product-search{flex:1;width:auto}}
.site-b2b-storage-locations{display:grid;gap:14px;min-height:120px}
.site-b2b-location-header{display:flex;justify-content:flex-end}
.site-b2b-location-notice{margin:0;padding:10px 12px;border:1px solid var(--fecor-gold-line);border-radius:7px;background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}
.site-b2b-subsections{display:grid;gap:14px;padding:4px 18px 16px}
.site-b2b-subsection-tabs{max-width:560px}
.site-b2b-subsections>.site-b2b-subsection-tabs{display:none}
.site-b2b-subsections>[data-b2b-sales-view][hidden]{display:none!important}
.site-b2b-subsections .site-b2b-placeholder{padding:0}
.site-b2b-documents{display:grid;align-content:start;gap:14px;box-sizing:border-box;min-width:0;min-height:220px;padding:12px 12px 16px}
.site-b2b-documents>.site-b2b-document-tabs{display:none}
.site-b2b-documents>[data-b2b-document-view][hidden]{display:none!important}
.site-b2b-documents>.site-b2b-placeholder{padding:0}
.site-b2b-documents .site-b2b-warehouse-table-wrap{min-width:0}
.site-b2b-documents .site-b2b-warehouse-table{min-width:760px}
.site-b2b-reports{display:grid;align-content:start;gap:14px;box-sizing:border-box;min-width:0;min-height:220px;padding:12px 12px 16px}
.site-b2b-reports>.site-b2b-report-tabs{display:none}
.site-b2b-reports>[data-b2b-report-view][hidden]{display:none!important}
.site-b2b-reports [data-b2b-report-view]{display:grid;gap:14px;min-width:0}
.site-b2b-gross-profit-filters{display:grid;grid-template-columns:repeat(2,minmax(145px,180px)) minmax(190px,1fr) minmax(220px,1.2fr) auto;align-items:end;gap:10px;margin:0}
.site-b2b-gross-profit-filters label{display:grid;gap:5px;min-width:0;margin:0;color:var(--muted);font-size:12px;font-weight:600}
.site-b2b-gross-profit-filters :is(input,select){width:100%;height:40px;min-width:0;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--text);font:inherit;font-size:13px}
.site-b2b-gross-profit-filters button,body.admin-dark .site-b2b-gross-profit-filters button{height:40px;padding:7px 17px;border:1px solid var(--fecor-gold-line);border-radius:8px;background:rgba(214,162,31,.06);color:var(--fecor-gold-text);font:inherit;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap}
.site-b2b-gross-profit-filters button:hover,body.admin-dark .site-b2b-gross-profit-filters button:hover{border-color:var(--fecor-gold);background:var(--fecor-gold-soft)}
.site-b2b-gross-profit-filters button:disabled{opacity:.6;cursor:wait}
.site-b2b-gross-profit-filters :is(input,select,button):focus-visible{outline:2px solid var(--fecor-gold);outline-offset:2px}
[data-b2b-gross-profit-status][hidden]{display:none!important}
.site-b2b-gross-profit-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.site-b2b-gross-profit-summary[hidden]{display:none!important}
.site-b2b-gross-profit-summary>div{display:grid;gap:8px;padding:16px;border:1px solid var(--line);border-radius:9px;background:var(--card)}
.site-b2b-gross-profit-summary span{color:var(--muted)}
.site-b2b-gross-profit-summary strong{color:var(--fecor-gold-text);font-size:clamp(20px,2vw,28px);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.site-b2b-gross-profit-summary small{color:var(--muted);font-size:11px}
.site-b2b-gross-profit-table{min-width:1100px;table-layout:fixed}
.site-b2b-gross-profit-table :is(th,td){overflow:hidden;padding:9px 10px;text-overflow:ellipsis;white-space:nowrap}
.site-b2b-gross-profit-table :is(th,td):nth-child(3 of :where(:not(.b2b-row-number))){text-align:right;font-variant-numeric:tabular-nums}
.site-b2b-gross-profit-table :is(th,td):nth-child(n+4 of :where(:not(.b2b-row-number))){text-align:right;font-variant-numeric:tabular-nums}
.site-b2b-gross-profit-table tfoot[hidden]{display:none!important}
.site-b2b-gross-profit-table tfoot :is(th,td){border-top:1px solid var(--line);background:var(--card);color:var(--text);font-weight:700}
.site-b2b-gross-profit-table tfoot th{text-align:left}
.site-b2b-gross-profit-table tfoot td:nth-child(n+4 of :where(:not(.b2b-row-number))){text-align:right;font-variant-numeric:tabular-nums}
.site-b2b-stock-report-filters{display:grid;grid-template-columns:minmax(145px,165px) minmax(160px,210px) minmax(145px,180px) minmax(180px,1fr) auto auto;align-items:end;gap:10px;margin:0}
.site-b2b-stock-report-filters label{display:grid;gap:5px;min-width:0;margin:0;color:var(--muted);font-size:12px;font-weight:600}
.site-b2b-stock-report-filters :is(input,select){width:100%;height:40px;min-width:0;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--text);font:inherit;font-size:13px}
.site-b2b-stock-report-filters button,body.admin-dark .site-b2b-stock-report-filters button{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:40px;padding:7px 12px;border:1px solid var(--fecor-gold-line);border-radius:8px;background:rgba(214,162,31,.06);color:var(--fecor-gold-text);font:inherit;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap}
.site-b2b-stock-report-filters button svg{width:16px;height:16px}
.site-b2b-stock-report-filters button:hover,body.admin-dark .site-b2b-stock-report-filters button:hover{border-color:var(--fecor-gold);background:var(--fecor-gold-soft)}
.site-b2b-stock-report-filters button:disabled{opacity:.6;cursor:wait}
.site-b2b-stock-report-filters :is(input,select,button):focus-visible{outline:2px solid var(--fecor-gold);outline-offset:2px}
.site-b2b-stock-report-note{display:block;margin:-4px 0 2px;color:var(--muted);font-size:11px}
.site-b2b-stock-report-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.site-b2b-stock-report-summary[hidden],[data-b2b-stock-report-status][hidden]{display:none!important}
.site-b2b-stock-report-summary>div{display:grid;gap:8px;padding:16px;border:1px solid var(--line);border-radius:9px;background:var(--card)}
.site-b2b-stock-report-summary span{color:var(--muted)}
.site-b2b-stock-report-summary strong{color:var(--fecor-gold-text);font-size:clamp(20px,2vw,28px);font-variant-numeric:tabular-nums}
.site-b2b-stock-report-table{min-width:900px;table-layout:fixed}
.site-b2b-stock-report-table :is(th,td){overflow:hidden;padding:9px 10px;text-overflow:ellipsis;white-space:nowrap}
.site-b2b-stock-report-table :is(th,td):nth-child(1 of :where(:not(.b2b-row-number))){width:17%}
.site-b2b-stock-report-table :is(th,td):nth-child(2 of :where(:not(.b2b-row-number))){width:11%}
.site-b2b-stock-report-table :is(th,td):nth-child(3 of :where(:not(.b2b-row-number))){width:35%}
.site-b2b-stock-report-table :is(th,td):nth-child(4 of :where(:not(.b2b-row-number))),.site-b2b-stock-report-table :is(th,td):nth-child(5 of :where(:not(.b2b-row-number))){width:10%;text-align:right;font-variant-numeric:tabular-nums}
.site-b2b-stock-report-table :is(th,td):nth-child(6 of :where(:not(.b2b-row-number))){width:5%}
.site-b2b-stock-report-table :is(th,td):nth-child(7 of :where(:not(.b2b-row-number))){width:12%;text-align:right;font-variant-numeric:tabular-nums}
.site-b2b-stock-report-print-dialog{box-sizing:border-box;width:min(1100px,calc(100vw - 24px));height:min(92dvh,900px);max-width:none;max-height:none;padding:0;border:1px solid var(--fecor-gold-line);border-radius:10px;background:var(--card);color:var(--text);box-shadow:0 24px 70px rgba(0,0,0,.4)}
.site-b2b-stock-report-print-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.site-b2b-stock-report-print-dialog::backdrop{background:rgba(4,9,17,.76)}
.site-b2b-stock-report-print-dialog header,.site-b2b-stock-report-print-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px}
.site-b2b-stock-report-print-dialog header{border-bottom:1px solid var(--line)}
.site-b2b-stock-report-print-dialog footer{justify-content:flex-end;border-top:1px solid var(--line)}
.site-b2b-stock-report-print-dialog iframe{display:block;width:100%;height:100%;min-height:0;border:0;background:#fff}
.site-b2b-stock-report-print-dialog :is(button,a){display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 10px;border:1px solid var(--fecor-gold-line);border-radius:7px;background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font:inherit;font-size:12px;font-weight:700;text-decoration:none;cursor:pointer}
.site-b2b-stock-report-print-dialog header button{width:32px;padding:0;font-size:22px}
@media(max-width:1200px){.site-b2b-stock-report-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Keep one-time messages in their original place, then fade them away. */
.erp-temporary-notice{transition:opacity .24s ease}
.erp-temporary-notice.is-dismissing{opacity:0}
.erp-temporary-notice[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){.erp-temporary-notice{transition:none}}
@media(max-width:1050px){.site-b2b-gross-profit-filters,.site-b2b-gross-profit-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.site-b2b-gross-profit-filters button{justify-self:start}}
@media(max-width:700px){.site-b2b-gross-profit-summary,.site-b2b-gross-profit-filters{grid-template-columns:1fr}.site-b2b-gross-profit-filters button{width:100%}}
@media(max-width:700px){.site-b2b-stock-report-filters,.site-b2b-stock-report-summary{grid-template-columns:1fr}.site-b2b-stock-report-filters button{width:100%}}
.site-b2b-placeholder{min-height:120px;padding:4px 18px 16px}
.site-b2b-placeholder h3{margin:0;color:var(--text);font-size:18px}
.site-b2b-warehouse-view,.site-b2b-purchases{display:grid;gap:14px;box-sizing:border-box;min-width:0;padding:12px 12px 16px}
.site-b2b-warehouse-tabs{max-width:100%}
.site-b2b-warehouse-view>.site-b2b-warehouse-tabs{display:none}
.site-b2b-purchase-tabs{max-width:100%}
.site-b2b-purchases>.site-b2b-purchase-tabs{display:none}
.site-b2b-warehouse-view>[data-b2b-warehouse-view][hidden]{display:none!important}
.site-b2b-purchases>[data-b2b-purchase-view][hidden]{display:none!important}
.site-b2b-purchases>[data-b2b-purchase-view]{display:grid;align-content:start;gap:0;min-width:0;min-height:220px}
.site-b2b-purchases>.site-b2b-placeholder{padding:0}
.site-b2b-purchase-toolbar{width:calc(100% + 24px);margin:-12px -12px 9px}
.site-b2b-purchases .site-b2b-warehouse-table-wrap{min-width:0}
.site-b2b-purchases .site-b2b-warehouse-table{min-width:820px}
.site-b2b-warehouse-view>.site-b2b-placeholder{padding:0}
.site-b2b-warehouse-view>.site-b2b-warehouse-operation{display:grid;align-content:start;gap:0;min-width:0;min-height:220px}
.site-b2b-warehouse-operation-toolbar{width:calc(100% + 24px);margin:-12px -12px 9px}
.site-b2b-warehouse-operation .site-b2b-warehouse-table-wrap{min-width:0}
.site-b2b-warehouse-operation-table{min-width:760px}
.site-b2b-warehouse-operation-delete{color:#df7777}
#b2b-warehouses .site-b2b-warehouse-operation .site-b2b-product-search input[type=search]{box-sizing:border-box;flex:1;width:100%;min-width:0;height:26px;min-height:0;margin:0;padding:0;border:0;outline:0;border-radius:0;box-shadow:none;background:transparent;color:#1f2937;font:inherit;font-size:11px}
#b2b-warehouses .site-b2b-warehouse-operation .site-b2b-product-search input[type=search]::placeholder{color:#687586;opacity:1}
#b2b-warehouses .site-b2b-warehouse-operation .site-b2b-product-search:focus-within{border-color:var(--fecor-gold);box-shadow:0 0 0 2px rgba(214,162,31,.12)}
.site-b2b-warehouse-header{display:flex;align-items:center;justify-content:flex-end;gap:12px}
.site-b2b-warehouse-header h3{margin:0;color:var(--text);font-size:18px}
:is(.site-b2b-warehouse-header,.site-b2b-location-header) .site-b2b-add{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:auto;min-height:36px;padding:7px 12px;border:1px solid var(--fecor-gold-line);border-radius:8px;background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font:inherit;font-size:12px;font-weight:700;white-space:nowrap}
:is(.site-b2b-warehouse-header,.site-b2b-location-header) .site-b2b-add:hover,:is(.site-b2b-warehouse-header,.site-b2b-location-header) .site-b2b-add:focus-visible{border-color:var(--fecor-gold);background:rgba(214,162,31,.14);color:var(--fecor-gold-text)}
:is(.site-b2b-warehouse-header,.site-b2b-location-header) .site-b2b-add svg{width:16px;height:16px}
:is(.site-b2b-warehouse-header,.site-b2b-location-header) .site-b2b-add:disabled{opacity:.5;cursor:not-allowed}
.site-b2b-warehouse-table-wrap{overflow-x:auto;border:1px solid var(--fecor-gold-line);border-radius:9px;background:var(--card)}
.site-b2b-warehouse-table{width:100%;border-collapse:collapse}
.site-b2b-warehouse-table th,.site-b2b-warehouse-table td{padding:11px 14px;border-bottom:1px solid var(--line);text-align:left}
.site-b2b-warehouse-table tr:last-child td{border-bottom:0}
.site-b2b-warehouse-table th{color:var(--muted);background:var(--fecor-gold-soft);font-size:11px}
.site-b2b-warehouse-table td{color:var(--text);font-size:12px}
.site-b2b-warehouse-table tbody tr:hover td{background:var(--fecor-gold-soft)}
.site-b2b-warehouse-table td button{padding:0;border:0;background:none;color:var(--fecor-gold-text,#d6a21f);font:inherit;font-weight:750;cursor:pointer}
.site-b2b-receipt-toolbar-row td{padding:4px 8px!important;background:var(--card)}
.site-b2b-warehouse-table tbody .site-b2b-receipt-toolbar-row:hover td{background:var(--card)}
.site-b2b-receipt-toolbar{display:flex;align-items:center;gap:5px;min-height:30px}
.site-b2b-warehouse-table .site-b2b-receipt-toolbar button{display:inline-grid;place-items:center;flex:none;width:29px;height:29px;padding:0;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--fecor-gold-text);font:inherit;cursor:pointer}
.site-b2b-warehouse-table .site-b2b-receipt-toolbar button:hover:not(:disabled),.site-b2b-warehouse-table .site-b2b-receipt-toolbar button:focus-visible{border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft);outline:none}
.site-b2b-warehouse-table .site-b2b-receipt-toolbar button:disabled{opacity:.38;cursor:not-allowed}
.site-b2b-warehouse-table .site-b2b-receipt-toolbar [data-b2b-receipt-delete]{color:#df7777}
.site-b2b-receipt-toolbar svg{width:15px;height:15px}
.site-b2b-receipt-filter{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:7px 0 5px;border-top:1px solid var(--line)}
.site-b2b-receipt-filter[hidden]{display:none!important}
.site-b2b-receipt-filter label{display:grid;gap:4px;min-width:170px;color:var(--muted);font-size:10px}
.site-b2b-receipt-filter :is(input,select){height:32px;min-height:32px;padding:5px 8px;border:1px solid var(--line);border-radius:6px;background:var(--card);color:var(--text);font:inherit;font-size:11px}
.site-b2b-receipt-table [data-b2b-receipt-row]{cursor:pointer}
.site-b2b-receipt-table [data-b2b-receipt-row]:focus-visible{outline:2px solid var(--fecor-gold);outline-offset:-2px}
.site-b2b-receipt-table [data-b2b-receipt-row].is-selected td{background:rgba(214,162,31,.16)}
.site-b2b-receipt-table [data-b2b-receipt-row].is-selected td:first-child{box-shadow:inset 3px 0 var(--fecor-gold)}
.site-b2b-warehouse-empty{padding:24px!important;color:var(--muted)!important;text-align:center!important}
.site-b2b-warehouse-notice{margin:0;padding:10px 12px;border:1px solid #b45b5b;border-radius:7px;color:#f09999}
.site-b2b-warehouse-dialog{width:min(480px,calc(100vw - 24px));padding:0;border:1px solid var(--fecor-gold-line);border-radius:12px;background:var(--card);color:var(--text);box-shadow:0 20px 60px rgba(0,0,0,.35)}
.site-b2b-warehouse-dialog::backdrop{background:rgba(6,12,22,.62)}
.site-b2b-warehouse-dialog form{padding:18px}
.site-b2b-warehouse-dialog header,.site-b2b-warehouse-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:10px}
.site-b2b-warehouse-dialog h3{margin:0;font-size:18px}
.site-b2b-warehouse-dialog header button{width:auto;padding:0;border:0;background:none;color:var(--muted);font-size:24px;cursor:pointer}
.site-b2b-warehouse-dialog p{margin:18px 0;color:var(--muted);line-height:1.45}
.site-b2b-warehouse-dialog footer{justify-content:flex-end}
.site-b2b-warehouse-dialog footer button{width:auto;min-height:34px;padding:6px 12px;border:1px solid var(--line);border-radius:7px;background:transparent;color:var(--text);cursor:pointer}
.site-b2b-warehouse-dialog footer button:hover{border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}
.site-b2b-warehouse-dialog footer button[type=submit]{border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font-weight:750}
.site-b2b-warehouse-dialog footer button[type=submit]:hover{border-color:var(--fecor-gold);background:rgba(214,162,31,.14)}
.site-b2b-contract-toolbar{display:flex;align-items:center;gap:6px;margin-bottom:10px}
.site-b2b-contract-toolbar button{display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid var(--fecor-gold-line);border-radius:7px;background:var(--fecor-gold-soft);color:var(--fecor-gold-text);cursor:pointer}
.site-b2b-contract-toolbar button:disabled{opacity:.4;cursor:not-allowed}
.site-b2b-contract-toolbar svg{width:16px;height:16px}
.site-b2b-contract-toolbar span{margin-left:8px;color:var(--muted);font-size:11px}
#b2b-contracts [data-b2b-contract-row]{cursor:pointer}
#b2b-contracts [data-b2b-contract-row][aria-selected=true] td{background:rgba(214,162,31,.13)}
.site-b2b-contract-dialog{width:min(600px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto}
.site-b2b-contract-dialog form{display:grid;gap:16px}
.site-b2b-contract-dialog .site-b2b-contract-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.site-b2b-contract-dialog .site-b2b-contract-fields label{display:grid;gap:5px;min-width:0;color:var(--text);font-size:12px;font-weight:700}
.site-b2b-contract-dialog .site-b2b-contract-fields :is(input,select){box-sizing:border-box;width:100%;min-height:38px;padding:8px 10px;border:1px solid var(--line);border-radius:7px;background:var(--card);color:var(--text);font:inherit;font-size:12px;font-weight:400}
.site-b2b-contract-dialog p{margin:0;font-size:11px}
.site-b2b-contract-dialog [data-b2b-contract-error][hidden]{display:none}
@media(max-width:560px){.site-b2b-contract-dialog .site-b2b-contract-fields{grid-template-columns:1fr}.site-b2b-contract-toolbar span{display:none}}
#b2b-contracts.is-document-open>.site-b2b-contract-toolbar,#b2b-contracts.is-document-open>.site-b2b-warehouse-table-wrap,#b2b-contracts.is-document-open>.site-b2b-warehouse-notice{display:none!important}
#b2b-contracts>[data-b2b-contract-dialog][open]{position:relative;inset:auto;display:block;box-sizing:border-box;width:100%;max-width:none;min-width:0;max-height:none;min-height:180px;margin:0;overflow:hidden;border-color:var(--fecor-gold-line)}
#b2b-contracts>[data-b2b-contract-dialog] form{box-sizing:border-box;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:10px;width:100%;height:100%;padding:12px;overflow:hidden}
.site-b2b-contract-dialog .site-b2b-contract-body{display:flex;flex-direction:column;gap:7px;min-height:0;overflow:hidden}
#b2b-contracts>[data-b2b-contract-dialog] .site-b2b-contract-tabs{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:6px;min-height:29px}
#b2b-contracts>[data-b2b-contract-dialog] .site-b2b-contract-tabs button,#b2b-contracts>[data-b2b-contract-dialog] .site-b2b-contract-print-actions :is(a,button){box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto;min-width:88px;min-height:29px;padding:5px 12px;border:1px solid var(--fecor-gold-line);border-radius:7px;background:rgba(214,162,31,.035);color:var(--fecor-gold-text);font:inherit;font-size:11px;font-weight:700;line-height:1.2;white-space:nowrap;text-decoration:none;cursor:pointer}
#b2b-contracts>[data-b2b-contract-dialog] .site-b2b-contract-tabs button:is(:hover,[aria-selected=true]),#b2b-contracts>[data-b2b-contract-dialog] .site-b2b-contract-print-actions :is(a,button):hover{border-color:var(--fecor-gold);background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}
#b2b-contracts>[data-b2b-contract-dialog] .site-b2b-contract-tabs button:focus-visible{outline:2px solid var(--fecor-gold);outline-offset:1px}
.site-b2b-contract-dialog .site-b2b-contract-panel{min-height:0;overflow:auto}
.site-b2b-contract-dialog .site-b2b-contract-panel[hidden]{display:none}
.site-b2b-contract-dialog .site-b2b-contract-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 10px;max-width:1100px}
.site-b2b-contract-dialog .site-b2b-contract-fields label{position:relative;display:block;min-width:0;height:44px;margin:0}
.site-b2b-contract-dialog .site-b2b-contract-fields label>span{position:absolute;z-index:1;top:5px;right:32px;left:11px;overflow:hidden;color:var(--muted);font-size:10px;font-weight:600;line-height:12px;white-space:nowrap;text-overflow:ellipsis;pointer-events:none}
.site-b2b-contract-dialog .site-b2b-contract-fields :is(input,select){display:block;width:100%;height:44px;min-height:44px;margin:0;padding:17px 10px 4px;font-size:13px;line-height:18px}
.site-b2b-contract-dialog .site-b2b-contract-panel>p{margin:8px 0;color:var(--muted);font-size:11px}
.site-b2b-contract-dialog .site-b2b-contract-print{display:flex;flex-direction:column;height:100%;overflow:hidden}
.site-b2b-contract-dialog .site-b2b-contract-print-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.site-b2b-contract-dialog .site-b2b-contract-print-actions label{display:flex;align-items:center;gap:6px;margin-right:auto;color:var(--text);font-size:12px}
.site-b2b-contract-dialog .site-b2b-contract-print-actions a[aria-disabled=true],.site-b2b-contract-dialog .site-b2b-contract-print-actions button:disabled{opacity:.45;pointer-events:none}
.site-b2b-contract-dialog .site-b2b-contract-print>iframe{display:block;flex:1;box-sizing:border-box;width:100%;min-height:260px;border:1px solid var(--line);border-radius:7px;background:#fff}
.site-b2b-contract-dialog [data-b2b-contract-error]{margin:0;padding:8px 10px}
.site-b2b-contract-dialog footer{justify-content:flex-end}
@media(max-width:560px){.site-b2b-contract-dialog .site-b2b-contract-fields{grid-template-columns:minmax(0,1fr)}.site-b2b-contract-dialog .site-b2b-contract-print-actions label{flex:1 0 100%}}
.site-b2b-location-dialog{box-sizing:border-box;width:min(680px,calc(100vw - 24px));max-height:min(720px,calc(100dvh - 24px));overflow:auto}
.site-b2b-location-dialog form{display:grid;gap:16px;padding:20px}
.site-b2b-location-dialog header small{display:block;margin-bottom:4px;color:var(--muted);font-size:11px}
.site-b2b-location-dialog header button{display:grid;place-items:center;flex:none;width:34px;height:34px;border:1px solid rgba(225,92,92,.55);border-radius:8px;background:rgba(225,92,92,.08);color:#ef7777;font-size:24px;line-height:1}
.site-b2b-location-dialog header button:focus-visible{outline:2px solid #ef7777;outline-offset:2px;box-shadow:none}
.site-b2b-location-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0}
.site-b2b-location-fields .wide{grid-column:1/-1}
.site-b2b-location-fields label{display:grid;align-content:start;gap:6px;min-width:0;color:var(--text);font-size:12px;font-weight:700}
.site-b2b-location-fields :is(input,select,textarea){box-sizing:border-box;width:100%;min-width:0;min-height:38px;padding:8px 10px;border:1px solid var(--line);border-radius:7px;background:var(--card);color:var(--text);font:inherit;font-weight:400}
.site-b2b-location-fields textarea{min-height:92px;resize:vertical}
.site-b2b-location-fields :is(input,select,textarea):focus-visible{outline:2px solid var(--fecor-gold);outline-offset:1px}
.site-b2b-location-dialog [data-b2b-location-error]{margin:0 0 14px}
:is(.site-b2b-nomenclature,#b2b-counterparties){position:fixed;inset:0;z-index:120;display:flex;flex-direction:column;min-width:0;height:100vh;height:100dvh;padding:0;background:var(--bg);overflow:hidden}
.site-b2b-scan-status{position:absolute;bottom:18px;left:50%;z-index:2;max-width:min(540px,calc(100% - 36px));margin:0;padding:10px 14px;transform:translateX(-50%);border:1px solid var(--fecor-gold-line);border-radius:8px;background:var(--card);box-shadow:0 12px 30px rgba(0,0,0,.3);color:var(--fecor-gold-text);text-align:center;pointer-events:none}
.site-b2b-scan-status[hidden]{display:none}
.erp-compact-topbar{position:sticky;top:0;z-index:140;display:grid;grid-template-columns:max-content 22px minmax(0,1fr) 240px auto;align-items:center;gap:10px;box-sizing:border-box;min-height:52px;padding:7px clamp(14px,2vw,28px)}
.erp-compact-topbar+.app-layout>.side-nav{top:var(--b2b-shell-topbar-height,52px);z-index:125;height:calc(100dvh - var(--b2b-shell-topbar-height,52px))}
@media(max-width:1100px){.erp-compact-topbar+.app-layout>.side-nav{height:auto;max-height:calc(100dvh - var(--b2b-shell-topbar-height,52px))}}
.side-nav>.erp-header-menu{flex:none;align-self:flex-start}
body.side-menu-collapsed .side-nav>.erp-header-menu{align-self:center}
.erp-brand-home,.erp-brand-home:hover{color:inherit;text-decoration:none}
.erp-compact-topbar .erp-header-brand h1{margin:0;font-size:20px;line-height:1.15;white-space:nowrap}
.erp-header-brand-rule{grid-column:2;display:block;justify-self:center;width:1px;height:24px;background:var(--line)}
.erp-header-menu,.erp-header-notifications summary{display:grid;place-items:center;box-sizing:border-box;width:34px;height:34px;padding:0;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--fecor-gold-text);cursor:pointer}
.erp-header-menu:hover,.erp-header-notifications summary:hover{border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft)}
.erp-header-menu svg,.erp-header-notifications svg{width:17px;height:17px}
.erp-header-search{position:relative;display:flex;align-items:center;gap:8px;box-sizing:border-box;width:100%;height:28px;padding:0 9px;border:1px solid #cbd3dd;border-radius:7px;background:#e9edf2;color:#647184}
.erp-compact-topbar .os-context-tabs{grid-column:3;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.erp-compact-topbar .os-context-tabs nav{gap:5px;overflow-x:auto}
.erp-compact-topbar .os-context-tabs a{min-height:30px;padding:0 9px;border-radius:6px;font-size:11px;white-space:nowrap}
.erp-compact-topbar .erp-header-search{position:relative;grid-column:4;justify-self:end;width:240px;margin-right:-4px}
.erp-header-search:focus-within{border-color:var(--fecor-gold);box-shadow:0 0 0 2px var(--fecor-gold-soft)}
.erp-header-search>svg{width:15px;height:15px;flex:none}
.erp-header-search input[type=search]{flex:1;box-sizing:border-box;width:100%;min-width:0;height:26px;margin:0;padding:0;border:0!important;outline:0!important;background:transparent!important;color:#1f2937;box-shadow:none!important;font:inherit;font-size:11px}
.erp-header-search input[type=search]::placeholder{color:#667487;opacity:1}
.erp-header-search-results{position:absolute;top:calc(100% + 6px);right:0;left:0;z-index:180;display:grid;gap:2px;max-height:min(55vh,360px);padding:5px;border:1px solid var(--line);border-radius:9px;background:var(--card);box-shadow:0 16px 40px rgba(0,0,0,.32);overflow:auto}
.erp-header-search-results[hidden]{display:none!important}
.erp-header-search-results button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:8px 9px;border:0;border-radius:6px;background:transparent;color:var(--text);font:inherit;font-size:12px;text-align:left;cursor:pointer}
.erp-header-search-results button:hover,.erp-header-search-results button:focus-visible{outline:0;background:var(--fecor-gold-soft)}
.erp-header-search-results button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.erp-header-search-results button small{flex:none;color:var(--muted);font-size:10px}
.erp-header-search-results p{margin:0;padding:9px;color:var(--muted);font-size:11px}
.erp-compact-topbar{border-bottom:1px solid var(--line)}
.erp-compact-topbar .userbar{grid-column:5;grid-row:1;justify-self:end;gap:8px;min-width:0;white-space:nowrap}
.erp-compact-topbar .erp-account-name{overflow:hidden;max-width:210px;text-overflow:ellipsis;color:var(--text);font-size:12px;font-weight:700}
.erp-header-notifications{position:relative}
.erp-compact-topbar .erp-header-notifications summary{list-style:none;border:0;border-radius:50%;background:transparent;color:var(--text)}
.erp-header-notifications summary::-webkit-details-marker{display:none}
.erp-header-notifications-panel{position:absolute;top:calc(100% + 8px);right:0;z-index:180;width:min(270px,80vw);padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--card);box-shadow:0 16px 40px rgba(0,0,0,.3)}
.erp-header-notifications-panel strong{font-size:12px;color:var(--text)}
.erp-header-notifications-panel p{margin:7px 0 0;color:var(--muted);font-size:11px}
.erp-compact-topbar .erp-theme-button,.erp-compact-topbar .erp-theme-button[aria-pressed=true]{display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--text);box-shadow:none;cursor:pointer}
.erp-compact-topbar .erp-theme-button:hover{background:var(--fecor-gold-soft)}
.erp-compact-topbar .erp-theme-button svg{position:static;width:18px;height:18px;color:var(--text)}
.erp-compact-topbar .erp-theme-button .theme-icon-moon,.erp-compact-topbar .erp-theme-button[aria-pressed=true] .theme-icon-sun{display:none}
.erp-compact-topbar .erp-theme-button[aria-pressed=true] .theme-icon-moon{display:block;color:var(--text)}
.erp-header-divider{display:block;flex:none;width:1px;height:26px;margin:0 5px;background:var(--line)}
.erp-compact-topbar .erp-header-account summary,.erp-header-account-static{display:inline-flex;align-items:center;gap:9px;width:auto;height:36px;padding:0 3px;border:0;border-radius:7px;background:transparent;color:var(--text);font-size:12px;font-weight:700}
.erp-compact-topbar .erp-header-account summary:hover{background:var(--fecor-gold-soft)}
.erp-account-avatar{display:grid;place-items:center;flex:none;box-sizing:border-box;width:32px;height:32px;border:1px solid #607082;border-radius:50%;background:#334252;color:#fff;font-size:15px;font-weight:800;line-height:1}
.erp-header-account summary>svg{flex:none;width:15px;height:15px;margin-left:3px;color:var(--muted)}
.erp-header-account .account-switcher-menu{box-sizing:border-box;width:min(310px,calc(100vw - 24px));min-width:0;max-height:min(440px,calc(100dvh - 100px));gap:3px;padding:6px;border:1px solid var(--fecor-gold-line);border-radius:10px;background:var(--card)}
body.admin-dark .erp-header-account .account-switcher-menu{background:#171d27}
.erp-header-account .account-switcher-menu form{min-width:0}
.erp-header-account .account-switcher-row,body.admin-dark .erp-header-account .account-switcher-row{display:flex;align-items:center;justify-content:space-between;gap:9px;box-sizing:border-box;width:100%;min-height:39px;padding:7px 10px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--text);font:inherit;text-align:left;box-shadow:none}
.erp-header-account .account-switcher-row strong{min-width:0;overflow:hidden;font-size:11px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}
.erp-header-account .account-switcher-row span{flex:none;max-width:43%;overflow:hidden;color:var(--muted);font-size:10px;font-weight:550;text-overflow:ellipsis;white-space:nowrap}
.erp-header-account .account-switcher-row:is(:hover,:focus-visible,.active),body.admin-dark .erp-header-account .account-switcher-row:is(:hover,:focus-visible,.active){border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft);color:var(--text)}
.erp-header-account .account-switcher-row:is(:hover,:focus-visible,.active) strong{color:var(--fecor-gold-text)}
body.admin-dark .erp-header-account .account-switcher-row:is(:hover,:focus-visible,.active) strong{color:var(--fecor-gold-bright)}
.erp-header-account .account-switcher-row:focus-visible{outline:2px solid var(--fecor-gold);outline-offset:-2px}
.erp-header-account .account-switcher-row.admin-return{border-color:transparent}
@media(max-width:1100px){.erp-compact-topbar{grid-template-columns:max-content 18px minmax(0,1fr) auto;gap:7px 10px;padding:7px 12px}.erp-compact-topbar .os-context-tabs{grid-column:3;grid-row:1}.erp-compact-topbar .erp-header-search{grid-column:1/-1;grid-row:2;width:100%;margin-right:0}.erp-compact-topbar .userbar{grid-column:4;grid-row:1}.erp-compact-topbar .erp-account-name{max-width:120px}}
@media(max-width:700px){.erp-compact-topbar{grid-template-columns:max-content minmax(0,1fr)}.erp-header-brand-rule{display:none}.erp-compact-topbar .os-context-tabs{grid-column:1/-1;grid-row:2}.erp-compact-topbar .erp-header-search{grid-row:3}.erp-compact-topbar .userbar{grid-column:2;grid-row:1}}
@media(max-width:560px){.erp-compact-topbar .erp-header-brand h1{font-size:17px}.erp-compact-topbar .erp-account-name{max-width:68px}.erp-header-divider{margin:0 2px}}
body:has(#b2b-sales-panel:not([hidden]) #b2b-directories:not([hidden]) :is(#b2b-nomenclature,#b2b-counterparties):not([hidden]))>.topbar{position:fixed;top:0;right:0;left:0;z-index:140;box-sizing:border-box}
body:has(#b2b-sales-panel:not([hidden]) #b2b-directories:not([hidden]) :is(#b2b-nomenclature,#b2b-counterparties):not([hidden])) .app-layout>.side-nav{position:fixed;top:var(--b2b-shell-topbar-height,83px);bottom:0;left:0;z-index:125;box-sizing:border-box;width:216px;height:auto}
body.side-menu-collapsed:has(#b2b-sales-panel:not([hidden]) #b2b-directories:not([hidden]) :is(#b2b-nomenclature,#b2b-counterparties):not([hidden])) .app-layout>.side-nav{width:56px}
body:has(#b2b-sales-panel:not([hidden]) #b2b-directories:not([hidden]) :is(#b2b-nomenclature,#b2b-counterparties):not([hidden])) :is(#b2b-nomenclature,#b2b-counterparties){top:calc(var(--b2b-shell-topbar-height,83px) + 8px);right:8px;bottom:8px;left:224px;box-sizing:border-box;width:auto;height:auto}
body.side-menu-collapsed:has(#b2b-sales-panel:not([hidden]) #b2b-directories:not([hidden]) :is(#b2b-nomenclature,#b2b-counterparties):not([hidden])) :is(#b2b-nomenclature,#b2b-counterparties){left:64px}
@media(max-width:1100px){body:has(#b2b-sales-panel:not([hidden]) #b2b-directories:not([hidden]) :is(#b2b-nomenclature,#b2b-counterparties):not([hidden])) .app-layout>.side-nav{display:none}body:has(#b2b-sales-panel:not([hidden]) #b2b-directories:not([hidden]) :is(#b2b-nomenclature,#b2b-counterparties):not([hidden])) :is(#b2b-nomenclature,#b2b-counterparties),body.side-menu-collapsed:has(#b2b-sales-panel:not([hidden]) #b2b-directories:not([hidden]) :is(#b2b-nomenclature,#b2b-counterparties):not([hidden])) :is(#b2b-nomenclature,#b2b-counterparties){left:8px}}
.site-b2b-product-toolbar{flex:none;margin:0}
.site-b2b-product-toolbar .site-b2b-receipt-toolbar button{display:inline-grid;place-items:center;flex:none;width:29px;height:29px;padding:0;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--fecor-gold-text);font:inherit;cursor:pointer}
.site-b2b-product-toolbar .site-b2b-receipt-toolbar button:hover:not(:disabled),.site-b2b-product-toolbar .site-b2b-receipt-toolbar button:focus-visible{border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft);outline:none}
.site-b2b-product-toolbar .site-b2b-receipt-toolbar button:disabled{opacity:.38;cursor:not-allowed}
.site-b2b-product-toolbar .site-b2b-receipt-toolbar [data-b2b-product-delete]{color:#df7777}
.site-b2b-product-search{box-sizing:border-box;display:flex;align-items:center;gap:8px;flex:0 1 480px;min-width:200px;height:36px;margin-left:auto;padding:0 10px;border:1px solid #d3d9e1;border-radius:8px;background:#e9edf2;color:#647184}
body.admin-dark .site-b2b-product-search{border-color:#414a56;background:#303742;color:#b5bfcc}
.site-b2b-product-search svg{width:16px;height:16px;flex:none}
#b2b-nomenclature .site-b2b-product-search input[type=search]{box-sizing:border-box;flex:1;width:100%;min-width:0;height:34px;min-height:0;margin:0;padding:0;border:0;outline:0;border-radius:0;box-shadow:none;background:transparent;color:var(--text);font:inherit;font-size:12px}
#b2b-nomenclature .site-b2b-product-search:focus-within{border-color:var(--fecor-gold);box-shadow:0 0 0 2px rgba(214,162,31,.12)}
.site-b2b-product-workspace{display:grid;grid-template-columns:210px minmax(0,1fr);flex:1;min-height:0;border:1px solid var(--fecor-gold-line);border-radius:9px;background:var(--card);overflow:hidden}
.site-b2b-product-categories{display:grid;align-content:start;gap:4px;min-height:0;padding:14px 10px;border-right:1px solid var(--line);overflow:auto}
.site-b2b-product-list-title h3,.site-b2b-product-summary h3{margin:0;color:var(--text);font-size:13px;font-weight:700}
.site-b2b-product-categories h2{margin:0;padding:0 8px 8px;color:var(--text);font-size:19px;line-height:1.2;font-weight:700}
:is(#b2b-nomenclature .site-b2b-product-categories button,#b2b-counterparties .site-b2b-counterparty-tabs a){display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;min-height:34px;padding:7px 8px;border:1px solid rgba(214,162,31,.24);border-radius:7px;background:rgba(214,162,31,.035);color:var(--fecor-gold-text);font:inherit;font-size:12px;font-weight:700;text-align:left;cursor:pointer;box-shadow:none}
:is(#b2b-nomenclature .site-b2b-product-categories button,#b2b-counterparties .site-b2b-counterparty-tabs a):hover,:is(#b2b-nomenclature .site-b2b-product-categories button,#b2b-counterparties .site-b2b-counterparty-tabs a).active{border-color:rgba(214,162,31,.62);background:rgba(214,162,31,.12);color:var(--fecor-gold-text);box-shadow:none}
body.admin-dark :is(#b2b-nomenclature .site-b2b-product-categories button,#b2b-counterparties .site-b2b-counterparty-tabs a),body.admin-dark :is(#b2b-nomenclature .site-b2b-product-categories button,#b2b-counterparties .site-b2b-counterparty-tabs a):hover,body.admin-dark :is(#b2b-nomenclature .site-b2b-product-categories button,#b2b-counterparties .site-b2b-counterparty-tabs a).active{color:var(--fecor-gold-bright)}
:is(#b2b-nomenclature .site-b2b-product-categories button,#b2b-counterparties .site-b2b-counterparty-tabs a):focus-visible{outline:2px solid var(--fecor-gold);outline-offset:2px}
.site-b2b-product-categories :is(button,a) span{font-size:11px;opacity:.75;background:transparent;color:inherit}
.site-b2b-product-main{display:flex;flex-direction:column;min-width:0;min-height:0;padding:12px}
.site-b2b-product-list-title{box-sizing:border-box;display:flex;flex:0 0 44px;align-items:center;gap:8px;height:44px;margin:-12px -12px 9px;padding:8px 19px;border:0;border-radius:0;background:rgba(148,163,184,.08);color:var(--muted);font-size:11px}
.site-b2b-product-list-title .site-b2b-receipt-toolbar{min-height:24px}
.site-b2b-product-list-title .site-b2b-receipt-toolbar button{width:24px;height:24px}
.site-b2b-product-list-title .site-b2b-product-search{flex:0 0 320px;width:320px;min-width:320px;max-width:320px;height:28px;margin:0;padding:0 9px;border-color:#cbd3dd;border-radius:7px;background:#e9edf2;color:#647184}
body.admin-dark .site-b2b-product-list-title .site-b2b-product-search{border-color:#cbd3dd;background:#e9edf2;color:#647184}
.site-b2b-product-list-title .site-b2b-product-search svg{width:15px;height:15px}
#b2b-nomenclature .site-b2b-product-list-title .site-b2b-product-search input[type=search]{height:26px;color:#1f2937;font-size:11px}
#b2b-nomenclature .site-b2b-product-list-title .site-b2b-product-search input[type=search]::placeholder{color:#687586;opacity:1}
#b2b-organizations .site-b2b-organization-toolbar{width:calc(100% + 36px);margin:-4px -18px 9px}
#b2b-realization.site-b2b-realization{display:grid;align-content:start;gap:14px;min-height:220px}
#b2b-invoices.site-b2b-invoices{display:grid;align-content:start;gap:14px;min-height:220px}
#b2b-invoices .site-b2b-invoices-toolbar{width:calc(100% + 36px);margin:-4px -18px 9px}
#b2b-invoices .site-b2b-invoices-table{min-width:820px}
#b2b-invoices .site-b2b-invoices-delete{color:#df7777}
#b2b-invoices .site-b2b-product-search input[type=search]{box-sizing:border-box;flex:1;width:100%;min-width:0;height:26px;min-height:0;margin:0;padding:0;border:0;outline:0;border-radius:0;box-shadow:none;background:transparent;color:#1f2937;font:inherit;font-size:11px}
#b2b-invoices .site-b2b-product-search input[type=search]::placeholder{color:#687586;opacity:1}
#b2b-realization .site-b2b-realization-toolbar{width:calc(100% + 36px);margin:-4px -18px 9px}
#b2b-realization .site-b2b-realization-table{min-width:900px}
#b2b-realization .site-b2b-realization-delete{color:#df7777}
#b2b-realization .site-b2b-product-search input[type=search]{box-sizing:border-box;flex:1;width:100%;min-width:0;height:26px;min-height:0;margin:0;padding:0;border:0;outline:0;border-radius:0;box-shadow:none;background:transparent;color:#1f2937;font:inherit;font-size:11px}
#b2b-realization .site-b2b-product-search input[type=search]::placeholder{color:#687586;opacity:1}
#b2b-realization .site-b2b-product-search{position:relative;z-index:5}
#b2b-realization .site-b2b-realization-register-results{position:absolute;top:calc(100% + 4px);right:0;left:0;max-height:240px;overflow:auto;border:1px solid var(--fecor-gold-line);border-radius:7px;background:var(--card);box-shadow:0 12px 28px rgba(0,0,0,.3)}
#b2b-realization .site-b2b-realization-register-results[hidden]{display:none}
#b2b-realization .site-b2b-realization-register-results button,body.admin-dark #b2b-realization .site-b2b-realization-register-results button{display:block;box-sizing:border-box;width:100%;min-height:32px;margin:0;padding:7px 10px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--text);font:inherit;font-size:11px;font-weight:400;line-height:1.3;text-align:left;cursor:pointer}
#b2b-realization .site-b2b-realization-register-results button:last-child{border-bottom:0}
#b2b-realization .site-b2b-realization-register-results button:is(:hover,.is-active),body.admin-dark #b2b-realization .site-b2b-realization-register-results button:is(:hover,.is-active){background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}
.site-b2b-view .site-b2b-counterparty-toolbar{display:flex;flex:0 0 auto;align-items:center;gap:8px;box-sizing:border-box;width:100%;height:auto;min-height:44px;margin:0;padding:8px 16px;flex-wrap:wrap}
.site-b2b-view .site-b2b-counterparty-toolbar .site-b2b-product-search{flex:0 1 320px;width:320px;min-width:180px;max-width:320px;margin:0}
#b2b-counterparties .site-b2b-product-search{background:#fff}
#b2b-counterparties .site-b2b-product-search > [data-b2b-counterparty-search]{box-sizing:border-box;flex:1;width:100%;min-width:0;height:26px;min-height:0;margin:0;padding:0;border:0;outline:0;border-radius:0;box-shadow:none;background:transparent;color:#1f2937;font:inherit;font-size:11px}
#b2b-counterparties .site-b2b-product-search > [data-b2b-counterparty-search]::placeholder{color:#687586;opacity:1}
.site-b2b-view .site-b2b-counterparty-toolbar .site-b2b-product-search:focus-within{border-color:var(--fecor-gold);box-shadow:0 0 0 2px rgba(214,162,31,.12)}
#b2b-counterparties .site-b2b-product-workspace{grid-template-rows:minmax(0,1fr)}
#b2b-counterparties .site-b2b-counterparty-tabs{display:grid;gap:4px;margin:0}
#b2b-counterparties .site-b2b-counterparty-tabs a{text-decoration:none}
#b2b-counterparties .site-b2b-counterparty-toolbar{width:auto;margin:-12px -12px 9px}
#b2b-counterparties .site-b2b-table-wrap{min-height:0}
#b2b-counterparties .site-b2b-table th.b2b-column-resizable{position:sticky}
@media(max-width:700px){
  #b2b-counterparties .site-b2b-product-workspace{grid-template-rows:auto minmax(0,1fr)}
  #b2b-counterparties .site-b2b-counterparty-tabs{display:flex;flex-wrap:nowrap}
  #b2b-counterparties .site-b2b-counterparty-tabs a{width:auto;flex:none}
}
.site-b2b-view .site-b2b-counterparty-toolbar .site-b2b-counterparty-delete{color:#df7777}
.site-b2b-view .site-b2b-counterparty-toolbar [data-b2b-counterparty-sort][aria-pressed=true]{border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft)}
.site-b2b-view .site-b2b-counterparty-toolbar [data-b2b-counterparty-mail] span{font:500 16px/1 Arial,Helvetica,sans-serif;letter-spacing:-.03em}
.site-b2b-counterparty-excel{display:flex;align-items:center;gap:4px;margin-left:auto}
.site-b2b-counterparty-excel form{display:flex;align-items:center;gap:4px;margin:0}
.site-b2b-view .site-b2b-counterparty-excel :is(button,label),body.admin-dark .site-b2b-view .site-b2b-counterparty-excel :is(button,label){display:inline-grid;place-items:center;box-sizing:border-box;flex:none;width:24px;height:24px;min-height:24px;margin:0;padding:0;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--fecor-gold-text);cursor:pointer}
.site-b2b-view .site-b2b-counterparty-excel :is(button,label):hover,body.admin-dark .site-b2b-view .site-b2b-counterparty-excel :is(button,label):hover{border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft)}
.site-b2b-counterparty-excel :is(button,label) svg{width:16px;height:16px}
.site-b2b-counterparty-excel button:disabled{opacity:.38;cursor:not-allowed}
.site-b2b-counterparty-excel label{position:relative}
.site-b2b-counterparty-excel label input[type=file]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.site-b2b-counterparty-excel label span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:650px){.site-b2b-view .site-b2b-counterparty-toolbar .site-b2b-product-search{flex:1 1 180px;width:auto;max-width:none}.site-b2b-counterparty-excel{margin-left:0}}
#b2b-purchase-orders.site-b2b-purchase-orders{display:grid;align-content:start;gap:0;min-height:220px}
#b2b-purchase-orders .site-b2b-purchase-orders-delete{color:#df7777}
#b2b-purchases .site-b2b-product-search input[type=search]{box-sizing:border-box;flex:1;width:100%;min-width:0;height:26px;min-height:0;margin:0;padding:0;border:0;outline:0;border-radius:0;box-shadow:none;background:transparent;color:#1f2937;font:inherit;font-size:11px}
#b2b-purchases .site-b2b-product-search input[type=search]::placeholder{color:#687586;opacity:1}
#b2b-purchases .site-b2b-product-search:focus-within{border-color:var(--fecor-gold);box-shadow:0 0 0 2px rgba(214,162,31,.12)}
#b2b-storage-locations .site-b2b-location-toolbar{width:calc(100% + 36px);margin:-4px -18px 9px}
#b2b-storage-locations .site-b2b-product-search input[type=search]{box-sizing:border-box;flex:1;width:100%;min-width:0;height:26px;min-height:0;margin:0;padding:0;border:0;outline:0;border-radius:0;box-shadow:none;background:transparent;color:#1f2937;font:inherit;font-size:11px}
#b2b-storage-locations .site-b2b-product-search input[type=search]::placeholder{color:#687586;opacity:1}
#b2b-storage-locations .site-b2b-location-table{min-width:900px}
#b2b-storage-locations [data-b2b-location-row]{cursor:pointer}
#b2b-storage-locations [data-b2b-location-row][aria-selected=true] td{background:rgba(214,162,31,.13)}
#b2b-storage-locations [data-b2b-location-row][aria-selected=true] td:first-child{box-shadow:inset 3px 0 var(--fecor-gold)}
#b2b-storage-locations [data-b2b-location-row]:focus-visible{outline:2px solid var(--fecor-gold);outline-offset:-2px}
#b2b-storage-locations .site-b2b-location-toolbar [data-b2b-location-delete-selected]{color:#df7777}
#b2b-bank-accounts .site-b2b-bank-toolbar{width:calc(100% + 36px);margin:-4px -18px 9px}
#b2b-bank-accounts .site-b2b-product-search input[type=search]{box-sizing:border-box;flex:1;width:100%;min-width:0;height:26px;min-height:0;margin:0;padding:0;border:0;outline:0;border-radius:0;box-shadow:none;background:transparent;color:#1f2937;font:inherit;font-size:11px}
#b2b-bank-accounts .site-b2b-product-search input[type=search]::placeholder{color:#687586;opacity:1}
#b2b-bank-accounts .site-b2b-bank-table{min-width:820px}
#b2b-bank-accounts [data-b2b-bank-row]{cursor:pointer}
#b2b-bank-accounts [data-b2b-bank-row]:hover td{background:var(--fecor-gold-soft)}
#b2b-bank-accounts [data-b2b-bank-row][aria-selected=true] td{background:rgba(214,162,31,.13)}
#b2b-bank-accounts [data-b2b-bank-row][aria-selected=true] td:first-child{box-shadow:inset 3px 0 var(--fecor-gold)}
#b2b-bank-accounts [data-b2b-bank-row]:focus-visible{outline:2px solid var(--fecor-gold);outline-offset:-2px}
.site-b2b-bank-dialog{box-sizing:border-box;width:min(620px,calc(100vw - 24px));max-height:94vh;overflow:visible}
.site-b2b-bank-dialog form{display:grid;gap:12px;padding:18px}
.site-b2b-bank-dialog header small{display:block;margin-bottom:3px;color:var(--muted);font-size:11px}
.site-b2b-bank-dialog header button{display:grid;place-items:center;flex:none;width:30px;height:30px;border:1px solid rgba(225,92,92,.55);border-radius:7px;background:rgba(225,92,92,.08);color:#ef7777;font-size:23px;line-height:1}
.site-b2b-bank-dialog header button:focus-visible{outline:2px solid #ef7777;outline-offset:2px;box-shadow:none}
.site-b2b-bank-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}
.site-b2b-bank-fields .wide{grid-column:1/-1}
.site-b2b-bank-fields label{display:grid;gap:4px;min-width:0;margin:0;color:var(--text);font-size:12px;font-weight:700}
.site-b2b-bank-fields :is(input:not([type=checkbox]),select){box-sizing:border-box;width:100%;min-width:0;height:36px;padding:6px 10px;border:1px solid var(--line);border-radius:7px;background:var(--card);color:var(--text);font:inherit;font-weight:400}
.site-b2b-bank-fields :is(input,select):focus-visible{outline:2px solid var(--fecor-gold);outline-offset:1px}
.site-b2b-bank-fields .site-b2b-bank-primary{display:flex;align-items:center;gap:8px;padding-top:16px;font-weight:600}
.site-b2b-bank-primary input{width:17px;height:17px;accent-color:var(--fecor-gold)}
.site-b2b-bank-lookup{position:relative;display:grid;gap:4px;min-width:0;color:var(--text);font-size:12px;font-weight:700}
.site-b2b-bank-suggestions{position:absolute;z-index:5;top:100%;right:0;left:0;max-height:178px;overflow:auto;border:1px solid var(--fecor-gold-line);border-radius:0 0 8px 8px;background:var(--card);box-shadow:0 14px 30px rgba(0,0,0,.32)}
.site-b2b-bank-suggestions[hidden]{display:none}
.site-b2b-bank-suggestions button{display:block;width:100%;padding:8px 10px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--text);text-align:left;cursor:pointer}
.site-b2b-bank-suggestions button:hover,.site-b2b-bank-suggestions button:focus-visible{background:var(--fecor-gold-soft);outline:none}
.site-b2b-bank-suggestions button small{display:block;margin-top:2px;color:var(--muted)}
.site-b2b-bank-hint{color:var(--muted);font-size:11px}
.site-b2b-bank-dialog [data-b2b-bank-error]{margin:0}
@media(max-width:520px){.site-b2b-bank-dialog{overflow:auto}.site-b2b-bank-fields{grid-template-columns:1fr}.site-b2b-bank-fields .wide{grid-column:1}}
#b2b-organizations .site-b2b-organization-delete{color:#df7777}
#b2b-organizations .site-b2b-product-search input[type=search]{box-sizing:border-box;flex:1;width:100%;min-width:0;height:26px;min-height:0;margin:0;padding:0;border:0;outline:0;border-radius:0;box-shadow:none;background:transparent;color:#1f2937;font:inherit;font-size:11px}
#b2b-organizations .site-b2b-product-search input[type=search]::placeholder{color:#687586;opacity:1}
#b2b-organizations .site-b2b-organization-table{min-width:660px}
#b2b-organizations [data-b2b-organization-row]{cursor:pointer}
#b2b-organizations [data-b2b-organization-row]:hover td{background:var(--fecor-gold-soft)}
#b2b-organizations [data-b2b-organization-row][aria-selected=true] td{background:rgba(214,162,31,.13)}
#b2b-organizations [data-b2b-organization-row][aria-selected=true] td:first-child{box-shadow:inset 3px 0 var(--fecor-gold)}
#b2b-organizations [data-b2b-organization-row]:focus-visible{outline:2px solid var(--fecor-gold);outline-offset:-2px}
#b2b-suppliers .site-b2b-product-search input[type=search]{box-sizing:border-box;flex:1;width:100%;min-width:0;height:26px;min-height:0;margin:0;padding:0;border:0;outline:0;border-radius:0;box-shadow:none;background:transparent;color:#1f2937;font:inherit;font-size:11px}
#b2b-suppliers .site-b2b-product-search input[type=search]::placeholder{color:#687586;opacity:1}
#b2b-suppliers .site-b2b-supplier-table{min-width:660px}
#b2b-suppliers [data-b2b-supplier-row]{cursor:pointer}
#b2b-suppliers [data-b2b-supplier-row]:hover td{background:var(--fecor-gold-soft)}
#b2b-suppliers [data-b2b-supplier-row][aria-selected=true] td{background:rgba(214,162,31,.13)}
#b2b-suppliers [data-b2b-supplier-row][aria-selected=true] td:first-child{box-shadow:inset 3px 0 var(--fecor-gold)}
#b2b-suppliers [data-b2b-supplier-row]:focus-visible{outline:2px solid var(--fecor-gold);outline-offset:-2px}
.site-b2b-organization-dialog{box-sizing:border-box;width:min(900px,calc(100vw - 24px));height:min(650px,96vh);max-height:96vh}
.site-b2b-organization-dialog form{box-sizing:border-box;display:flex;flex-direction:column;gap:7px;height:100%;padding:14px}
.site-b2b-organization-dialog header small{display:block;margin-bottom:4px;color:var(--muted);font-size:11px}
.site-b2b-organization-dialog header button{display:grid;place-items:center;flex:none;width:30px;height:30px;border:1px solid rgba(225,92,92,.55);border-radius:7px;background:rgba(225,92,92,.08);color:#ef7777;font-size:23px;line-height:1}
.site-b2b-organization-dialog header button:focus-visible{outline:2px solid #ef7777;outline-offset:2px;box-shadow:none}
.site-b2b-organization-content{display:flex;flex:1;flex-direction:column;gap:6px;min-height:0;padding:1px 2px 3px;overflow:auto}
.site-b2b-organization-content>*{flex:none}
.site-b2b-organization-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px 10px;min-height:0}
.site-b2b-organization-fields .wide{grid-column:1/-1}
.site-b2b-organization-fields .org-name{grid-column:span 3}
.site-b2b-organization-fields .org-entity,.site-b2b-organization-fields .org-half{grid-column:span 2}
.site-b2b-organization-fields label{display:grid;align-content:start;gap:3px;min-width:0;margin:0;color:var(--text);font-size:11px;font-weight:700}
.site-b2b-organization-fields :is(input:not([type=checkbox]),select){box-sizing:border-box;width:100%;min-width:0;height:30px;padding:4px 8px;border:1px solid var(--line);border-radius:7px;background:var(--card);color:var(--text);font:inherit;font-weight:400}
.site-b2b-organization-fields :is(input,select):focus-visible{outline:2px solid var(--fecor-gold);outline-offset:1px}
.site-b2b-organization-fields h4{margin:0;padding:2px 0 4px;border-bottom:1px solid var(--fecor-gold-line);color:var(--fecor-gold-text);font-size:12px}
.site-b2b-organization-requisite-fields{row-gap:8px}
.site-b2b-organization-fields .site-b2b-organization-check{display:flex;align-items:end;gap:7px;padding-bottom:7px;font-weight:600}
.site-b2b-organization-check input{width:16px;height:16px;accent-color:var(--fecor-gold)}
.site-b2b-organization-tabs{display:flex;gap:5px;min-height:30px;margin-top:8px;overflow-x:auto;border-bottom:1px solid var(--line)}
.site-b2b-organization-tabs button,body.admin-dark .site-b2b-organization-tabs button{flex:none;width:auto;min-height:28px;padding:4px 10px;border:1px solid var(--fecor-gold-line);border-radius:7px 7px 0 0;background:rgba(214,162,31,.04);color:var(--fecor-gold-text);font:inherit;font-size:11px;font-weight:700;white-space:nowrap;cursor:pointer}
.site-b2b-organization-tabs button[aria-selected=true],body.admin-dark .site-b2b-organization-tabs button[aria-selected=true]{border-color:var(--fecor-gold);border-bottom-color:var(--card);background:var(--fecor-gold-soft);color:var(--fecor-gold-bright)}
.site-b2b-organization-tabs button:hover,.site-b2b-organization-tabs button:focus-visible,body.admin-dark .site-b2b-organization-tabs button:hover,body.admin-dark .site-b2b-organization-tabs button:focus-visible{outline:none;border-color:var(--fecor-gold);background:var(--fecor-gold-soft)}
.site-b2b-organization-tab-panel{min-height:100px;padding-top:4px}
.site-b2b-organization-tab-panel[hidden]{display:none}
.site-b2b-organization-tab-panel>p{margin:14px 0;color:var(--muted);font-size:12px}
.site-b2b-organization-dialog [data-b2b-organization-error]{margin:0}
.site-b2b-supplier-dialog [data-b2b-supplier-error]{margin:0}
.site-b2b-organization-dialog footer{flex:none;padding-top:3px}
.site-b2b-supplier-dialog{width:min(740px,calc(100vw - 24px));height:min(600px,96vh)}
.site-b2b-supplier-dialog .site-b2b-organization-content{gap:4px}
.site-b2b-supplier-dialog .site-b2b-organization-fields{row-gap:7px}
.site-b2b-supplier-dialog .site-b2b-organization-fields label:not(.site-b2b-organization-check):not(:has(input[type=date])){gap:0;font-size:0}
.site-b2b-supplier-dialog .site-b2b-organization-fields label:has(input[type=date]){gap:2px;font-size:10px}
.site-b2b-supplier-dialog .site-b2b-organization-fields :is(input:not([type=checkbox]),select){font-size:11px}
.site-b2b-supplier-dialog .site-b2b-organization-fields input::placeholder{color:var(--muted);opacity:1}
.site-b2b-supplier-dialog .site-b2b-organization-tabs{margin-top:6px}
@media(min-height:680px){.site-b2b-organization-tabs{margin-top:14px}.site-b2b-organization-requisite-fields{row-gap:11px}.site-b2b-organization-tab-panel{padding-top:6px}}
.site-b2b-supplier-dialog .site-b2b-organization-tabs{margin-top:6px}
.site-b2b-supplier-dialog .site-b2b-organization-requisite-fields{row-gap:7px}
.site-b2b-supplier-contracts{display:grid;gap:10px;align-content:start}
.site-b2b-supplier-contracts[hidden]{display:none}
.site-b2b-supplier-contracts>p{margin:0;color:var(--muted);font-size:11px}
.site-b2b-supplier-contract-list{display:grid;gap:5px;max-height:150px;overflow:auto}
.site-b2b-supplier-contract-row{padding:7px 9px;border:1px solid var(--line);border-radius:6px;color:var(--text);font-size:11px}
.site-b2b-supplier-contract-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:end;gap:8px}
.site-b2b-supplier-contract-fields label{display:grid;gap:4px;min-width:0;color:var(--muted);font-size:10px}
.site-b2b-supplier-contract-fields :is(input,select){box-sizing:border-box;width:100%;min-width:0;height:32px;padding:5px 7px;border:1px solid var(--line);border-radius:6px;background:var(--card);color:var(--text);font-size:11px}
.site-b2b-supplier-contract-fields button{height:32px;padding:0 10px;border:1px solid var(--fecor-gold-line);border-radius:6px;background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font-weight:700;cursor:pointer}
@media(max-width:650px){.site-b2b-supplier-contract-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.site-b2b-supplier-contract-fields button{grid-column:1/-1}}
.site-b2b-supplier-dialog .site-b2b-supplier-lookup{position:relative;min-width:0}
.site-b2b-supplier-dialog .site-b2b-supplier-lookup>label{width:100%}
.site-b2b-supplier-dialog .site-b2b-supplier-suggestions{position:absolute;z-index:30;top:calc(100% + 3px);left:0;right:0;max-height:180px;overflow:auto;border:1px solid var(--fecor-gold-line);border-radius:8px;background:var(--card);box-shadow:0 12px 24px rgba(0,0,0,.35)}
.site-b2b-supplier-dialog .site-b2b-supplier-suggestions[hidden]{display:none}
.site-b2b-supplier-dialog .site-b2b-supplier-suggestions button,body.admin-dark .site-b2b-supplier-dialog .site-b2b-supplier-suggestions button{box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;min-height:0;margin:0;padding:7px 9px;border:0;border-radius:0;border-bottom:1px solid var(--line);background:var(--card);color:var(--text);text-align:left;font:inherit;font-size:11px;cursor:pointer}
.site-b2b-supplier-dialog .site-b2b-supplier-suggestions button:last-child{border-bottom:0}
.site-b2b-supplier-dialog .site-b2b-supplier-suggestions button:is(:hover,:focus-visible,[aria-selected=true]),body.admin-dark .site-b2b-supplier-dialog .site-b2b-supplier-suggestions button:is(:hover,:focus-visible,[aria-selected=true]){outline:0;background:var(--fecor-gold-soft)}
.site-b2b-supplier-dialog .site-b2b-supplier-suggestions strong{font-size:11px;font-weight:700;line-height:1.3}
.site-b2b-supplier-dialog .site-b2b-supplier-suggestions small{color:var(--muted);font-size:10px;line-height:1.3}
.site-b2b-supplier-dialog .site-b2b-supplier-lookup-hint{display:block;min-height:13px;color:var(--muted);font-size:10px;line-height:1.3}
.site-b2b-counterparty-dialog .site-b2b-supplier-lookup{position:relative;min-width:0}
.site-b2b-counterparty-dialog .site-b2b-supplier-lookup>label{width:100%}
.site-b2b-counterparty-dialog .site-b2b-supplier-suggestions{position:absolute;z-index:30;top:calc(100% + 3px);left:0;right:0;max-height:180px;overflow:auto;border:1px solid var(--fecor-gold-line);border-radius:8px;background:var(--card);box-shadow:0 12px 24px rgba(0,0,0,.35)}
.site-b2b-counterparty-dialog .site-b2b-supplier-suggestions[hidden]{display:none}
.site-b2b-counterparty-dialog .site-b2b-supplier-suggestions button,body.admin-dark .site-b2b-counterparty-dialog .site-b2b-supplier-suggestions button{box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;min-height:0;margin:0;padding:7px 9px;border:0;border-radius:0;border-bottom:1px solid var(--line);background:var(--card);color:var(--text);text-align:left;font:inherit;font-size:11px;cursor:pointer}
.site-b2b-counterparty-dialog .site-b2b-supplier-suggestions button:last-child{border-bottom:0}
.site-b2b-counterparty-dialog .site-b2b-supplier-suggestions button:is(:hover,:focus-visible,[aria-selected=true]),body.admin-dark .site-b2b-counterparty-dialog .site-b2b-supplier-suggestions button:is(:hover,:focus-visible,[aria-selected=true]){outline:0;background:var(--fecor-gold-soft)}
.site-b2b-counterparty-dialog .site-b2b-supplier-suggestions strong{font-size:11px;font-weight:700;line-height:1.3}
.site-b2b-counterparty-dialog .site-b2b-supplier-suggestions small{color:var(--muted);font-size:10px;line-height:1.3}
.site-b2b-counterparty-dialog .site-b2b-supplier-lookup-hint{display:block;min-height:13px;color:var(--muted);font-size:10px;line-height:1.3}
.site-b2b-counterparty-dialog .site-b2b-counterparty-notes{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.site-b2b-counterparty-dialog .site-b2b-counterparty-notes label{display:grid;gap:5px;color:var(--text);font-size:11px;font-weight:700}
.site-b2b-counterparty-dialog .site-b2b-counterparty-notes textarea{box-sizing:border-box;width:100%;min-height:120px;padding:8px;border:1px solid var(--line);border-radius:7px;background:var(--card);color:var(--text);font:inherit;resize:vertical}
.site-b2b-counterparty-contracts-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:2px 0 8px}
.site-b2b-counterparty-contracts-toolbar button,.site-b2b-counterparty-contracts-list button{font:inherit;cursor:pointer}
.site-b2b-counterparty-contracts-toolbar button{min-height:30px;padding:5px 10px;border:1px solid var(--fecor-gold-line);border-radius:7px;background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font-size:11px;font-weight:700}
.site-b2b-counterparty-contracts-toolbar button:disabled{opacity:.45;cursor:not-allowed}
.site-b2b-counterparty-contracts-toolbar span,.site-b2b-counterparty-contracts-list p{margin:0;color:var(--muted);font-size:11px}
.site-b2b-counterparty-contracts-list{display:grid;gap:5px;max-height:180px;overflow:auto}
.site-b2b-counterparty-contracts-list button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:34px;padding:6px 9px;border:1px solid var(--line);border-radius:7px;background:var(--card);color:var(--text);text-align:left;font-size:11px}
.site-b2b-counterparty-contracts-list button:hover,.site-b2b-counterparty-contracts-list button:focus-visible{border-color:var(--fecor-gold);outline:none;background:var(--fecor-gold-soft)}
.site-b2b-counterparty-contracts-list button span{color:var(--muted)}
@media(max-width:520px){.site-b2b-counterparty-dialog .site-b2b-counterparty-notes{grid-template-columns:1fr}}
@media(max-width:620px){.site-b2b-organization-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.site-b2b-organization-fields .org-name{grid-column:1/-1}}
@media(max-width:430px){.site-b2b-organization-fields{grid-template-columns:1fr}.site-b2b-organization-fields .org-name,.site-b2b-organization-fields .wide,.site-b2b-organization-fields .org-entity,.site-b2b-organization-fields .org-half{grid-column:1}}
@media(max-width:520px){.site-b2b-product-list-title{gap:4px;padding-right:8px;padding-left:8px}.site-b2b-product-list-title .site-b2b-product-search{flex:1 1 120px;width:auto;min-width:100px}}
.site-b2b-product-main .site-b2b-warehouse-table-wrap{flex:1;min-height:0;max-height:none;overflow:auto;border-color:var(--line)}
.site-b2b-product-table{table-layout:fixed;min-width:990px}
.site-b2b-product-table th,.site-b2b-product-table td{padding:8px 9px}
.site-b2b-product-table th:nth-child(-n+3 of :where(:not(.b2b-row-number))),.site-b2b-product-table td:nth-child(-n+3 of :where(:not(.b2b-row-number))){padding-right:6px;padding-left:6px}
.site-b2b-product-table th:nth-child(1 of :where(:not(.b2b-row-number))){width:58px}
.site-b2b-product-table th:nth-child(2 of :where(:not(.b2b-row-number))){width:74px}
.site-b2b-product-table th:nth-child(3 of :where(:not(.b2b-row-number))){width:86px}
.site-b2b-product-table th:nth-child(5 of :where(:not(.b2b-row-number))){width:145px}
.site-b2b-product-table th:nth-child(6 of :where(:not(.b2b-row-number))){width:65px}
.site-b2b-product-table th:nth-child(7 of :where(:not(.b2b-row-number))){width:120px}
.site-b2b-product-table th:nth-child(8 of :where(:not(.b2b-row-number))){width:80px}
.site-b2b-product-table th:nth-child(4 of :where(:not(.b2b-row-number))),.site-b2b-product-table td:nth-child(4 of :where(:not(.b2b-row-number))){padding-left:4px}
.site-b2b-product-table td:nth-child(4 of :where(:not(.b2b-row-number))){overflow-wrap:anywhere}
.site-b2b-product-label-status{display:inline-block;font-size:11px;font-weight:700;white-space:nowrap}
.site-b2b-product-label-status.is-present{color:#55d690}
.site-b2b-product-label-status.is-missing{color:var(--muted)}
.site-b2b-product-table [data-b2b-product-row] td{height:var(--b2b-body-row-height,36px);padding-top:4px;padding-bottom:4px}
.site-b2b-product-table [data-b2b-product-edit]{display:block;max-width:100%;overflow:hidden;color:#fff;font-weight:750;text-align:left;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
body:not(.admin-dark) .site-b2b-product-table [data-b2b-product-edit]{color:inherit}
.site-b2b-product-photo-status{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:5px}
.site-b2b-product-photo-status svg{display:none;width:17px;height:17px}
.site-b2b-product-photo-status.is-checking{color:var(--muted)}
.site-b2b-product-photo-status.is-present{color:#55d690}
.site-b2b-product-photo-status.is-missing{color:var(--muted)}
.site-b2b-product-photo-status.is-checking .status-checking,.site-b2b-product-photo-status.is-present .status-present,.site-b2b-product-photo-status.is-missing .status-missing{display:block}
.site-b2b-product-main .site-b2b-product-table thead th{position:sticky;top:0;z-index:1}
.site-b2b-nomenclature [data-b2b-product-filter][hidden],.site-b2b-product-image img[hidden]{display:none}
.site-b2b-product-table [data-b2b-product-row]{cursor:pointer;-webkit-user-select:none;user-select:none}
.site-b2b-product-table [data-b2b-product-row]::selection,.site-b2b-product-table [data-b2b-product-row] *::selection{background:transparent;color:inherit}
.site-b2b-product-table [data-b2b-product-row][aria-selected=true] td{background:rgba(70,130,200,.14)}
.site-b2b-product-table [data-b2b-product-row][aria-selected=true] td:nth-child(1 of :where(:not(.b2b-row-number))){box-shadow:inset 3px 0 #6b9fd5}
.site-b2b-product-table [data-b2b-product-row]:focus-visible{outline:2px solid var(--fecor-gold);outline-offset:-2px}
.site-b2b-product-table img[data-b2b-photo-probe]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.site-b2b-product-summary{display:grid;grid-template-columns:190px minmax(0,.8fr) minmax(0,1.2fr);flex:none;max-height:min(32vh,250px);margin-top:10px;border:1px solid var(--fecor-gold-line);border-radius:9px;background:var(--card);overflow:hidden}
.site-b2b-product-summary-image{min-width:0;padding:12px;border-right:1px solid var(--line)}
#b2b-nomenclature>.site-b2b-product-summary{grid-template-columns:210px minmax(0,.8fr) minmax(0,1.2fr)}
#b2b-nomenclature>.site-b2b-product-summary .site-b2b-product-summary-image{display:flex;min-height:0;padding:0}
#b2b-nomenclature>.site-b2b-product-summary .site-b2b-product-photo-frame{flex:1;width:100%;height:auto;border:0;border-radius:0}
.site-b2b-product-summary-image>h3,.site-b2b-product-image>h3{display:none}
.site-b2b-product-prices,.site-b2b-product-stocks{min-width:0;padding:12px 16px}
.site-b2b-product-prices{border-right:1px solid var(--line)}
.site-b2b-product-summary h3{margin-bottom:7px}
.site-b2b-product-summary h3 small{color:var(--muted);font-size:11px;font-weight:400}
.site-b2b-product-prices>div{display:flex;justify-content:space-between;gap:8px;padding:5px 0;border-bottom:1px solid var(--line);font-size:12px}
.site-b2b-product-prices>div:last-child{border-bottom:0}
.site-b2b-product-prices span{color:var(--muted)}
.site-b2b-product-prices strong{color:var(--text);font-weight:700;white-space:nowrap}
.site-b2b-product-stocks table{width:100%;border-collapse:collapse;font-size:12px}
.site-b2b-product-stocks th,.site-b2b-product-stocks td{padding:5px 6px;border-bottom:1px solid var(--line);text-align:right}
.site-b2b-product-stocks th:first-child,.site-b2b-product-stocks td:first-child{text-align:left}
.site-b2b-product-stocks th{color:var(--muted);font-weight:400}
.site-b2b-product-stock-total td{border-bottom:0;background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font-weight:700}
.site-b2b-product-stocks{overflow:auto}
.site-b2b-product-stocks>small{display:block;margin-top:7px;color:var(--muted);font-size:10px}
:is(.site-b2b-product-dialog,.site-b2b-counterparty-dialog){width:min(780px,calc(100vw - 32px));max-width:none}
.site-b2b-product-dialog{box-sizing:border-box;height:min(720px,calc(100vh - 32px));max-height:none;overflow:hidden}
.site-b2b-product-dialog form{box-sizing:border-box;display:flex;flex-direction:column;height:100%;min-height:0;gap:10px;overflow:auto}
.site-b2b-product-dialog header{padding-bottom:8px;border-bottom:0}
.site-b2b-product-dialog header small{display:block;margin-bottom:3px;color:var(--muted);font-size:11px}
.site-b2b-product-card-body{display:grid;grid-template-columns:160px minmax(0,1fr);gap:12px;min-height:0;overflow:auto}
.site-b2b-product-details{display:grid;align-content:start;gap:8px;min-width:0}
.site-b2b-product-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;min-width:0}
.site-b2b-product-fields label,.site-b2b-product-tab-panel>label,.site-b2b-product-default-row>label:first-child{display:grid;align-content:start;gap:4px;color:var(--text);font-size:11px;font-weight:700}
.site-b2b-product-fields :is(input:not([type=checkbox]):not([type=file]),select,textarea),.site-b2b-product-tab-panel :is(input:not([type=checkbox]),select,textarea){box-sizing:border-box;width:100%;min-width:0;min-height:30px;padding:5px 8px;border:1px solid var(--line);border-radius:7px;background:var(--card);color:var(--text);font:inherit;font-size:12px;font-weight:400}
.site-b2b-product-fields textarea{resize:vertical}
.site-b2b-product-fields small{color:var(--muted);font-size:10px;font-weight:400}
.site-b2b-product-fields .site-b2b-product-wide{grid-column:1/-1}
.site-b2b-product-okpd2-lookup{position:relative;grid-column:1/-1;display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:0;color:var(--text);font-size:11px;font-weight:700}
.site-b2b-product-okpd2-lookup>label{display:block;margin:0;line-height:1.2}
.site-b2b-product-okpd2-lookup>input[type=hidden]{display:none}
.site-b2b-product-okpd2-lookup>input[type=search]{box-sizing:border-box;width:100%;min-height:30px;padding:5px 8px;border:1px solid var(--line);border-radius:7px;background:var(--card);color:var(--text);font:inherit;font-size:12px;font-weight:400}
.site-b2b-product-okpd2-lookup>small{color:var(--muted);font-size:10px;font-weight:400}
.site-b2b-product-okpd2-suggestions{position:fixed;z-index:30;max-height:180px;overflow:auto;border:1px solid var(--fecor-gold-line);border-radius:7px;background:var(--card);box-shadow:0 12px 24px rgba(0,0,0,.35)}
.site-b2b-product-okpd2-suggestions[hidden]{display:none}
.site-b2b-product-okpd2-suggestions button{display:flex;align-items:baseline;gap:8px;width:100%;min-height:28px;padding:6px 8px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:var(--card);color:var(--text);font:inherit;font-size:11px;text-align:left;cursor:pointer}
.site-b2b-product-okpd2-suggestions button:last-child{border-bottom:0}
.site-b2b-product-okpd2-suggestions button:hover,.site-b2b-product-okpd2-suggestions button:focus-visible{outline:none;background:var(--fecor-gold-soft)}
.site-b2b-product-okpd2-suggestions strong{flex:none;color:var(--fecor-gold-text)}
.site-b2b-product-code-row{grid-column:1/-1;display:flex;align-items:end;gap:10px;min-width:0}
.site-b2b-product-code-row>label{min-width:0;flex:1;margin:0}
.site-b2b-product-code-row>.site-b2b-product-unit{flex:0 0 100px}
.site-b2b-product-code-row>.site-b2b-product-marking{display:flex;align-items:center;align-self:end;gap:7px;flex:0 0 190px;min-height:30px;white-space:normal;line-height:1.15}
.site-b2b-product-lower{display:grid;grid-template-rows:auto minmax(0,1fr);flex:1 1 auto;gap:8px;min-width:0;min-height:95px;padding-top:10px;border-top:1px solid var(--line)}
.site-b2b-product-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;min-width:0}
.site-b2b-product-tabs button{box-sizing:border-box;display:grid;place-items:center;width:100%;min-width:0;min-height:34px;padding:6px 8px;border:1px solid var(--fecor-gold-line);border-radius:7px;background:rgba(214,162,31,.035);color:var(--fecor-gold-text);font:inherit;font-size:11px;font-weight:700;white-space:nowrap;cursor:pointer}
.site-b2b-product-tabs button:hover,.site-b2b-product-tabs button[aria-selected=true]{border-color:var(--fecor-gold);background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}
.site-b2b-counterparty-dialog>form{padding-inline:16px;gap:10px}
.site-b2b-counterparty-dialog>form>header{padding-bottom:6px}
.site-b2b-counterparty-dialog .site-b2b-organization-content{padding-top:8px}
.site-b2b-counterparty-dialog :is(.site-b2b-organization-content,.site-b2b-organization-fields,.site-b2b-product-tabs,.site-b2b-counterparty-notes){gap:10px}
.site-b2b-counterparty-dialog .site-b2b-organization-tab-panel{padding-top:0}
.site-b2b-counterparty-dialog .site-b2b-product-tabs button{padding-block:4px;line-height:1.08;text-align:center;white-space:normal}
.site-b2b-product-tabs button:focus-visible{outline:2px solid var(--fecor-gold);outline-offset:1px}
.site-b2b-product-dialog.site-b2b-product-dialog .site-b2b-product-tabs button,body.admin-dark .site-b2b-product-tabs button{border-color:var(--fecor-gold-line);background:rgba(214,162,31,.035);color:var(--fecor-gold-text)}
.site-b2b-product-dialog.site-b2b-product-dialog .site-b2b-product-tabs button:hover,.site-b2b-product-dialog.site-b2b-product-dialog .site-b2b-product-tabs button[aria-selected=true],body.admin-dark .site-b2b-product-tabs button:hover,body.admin-dark .site-b2b-product-tabs button[aria-selected=true]{border-color:var(--fecor-gold);background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}
.site-b2b-product-tab-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;min-height:66px}
.site-b2b-product-tab-panel[hidden]{display:none}
.site-b2b-product-tab-panel>label,.site-b2b-product-switch{margin:0}
.site-b2b-product-tab-panel>small{grid-column:1/-1;color:var(--muted);font-size:10px}
.site-b2b-product-tab-panel:has(>label:only-child),.site-b2b-product-tab-panel:has(.site-b2b-product-tab-prices){grid-template-columns:minmax(0,1fr)}
.site-b2b-product-tab-panel textarea{min-height:82px;resize:vertical}
.site-b2b-product-tab-panel.site-b2b-product-breakdown {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding-block: 0 8px;
  align-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
}
.site-b2b-warehouse-map {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.site-b2b-warehouse-map h3 {
  margin: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--text);
  font-size: 12px;
}
.site-b2b-warehouse-map-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  container-type: size;
}
.site-b2b-product-tab-panel[data-b2b-product-tab-panel="default"]{grid-template-columns:minmax(0,1fr);align-content:start;min-height:0}
.site-b2b-product-default-fields{display:grid;gap:10px;min-width:0}
.site-b2b-product-default-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:20px;min-width:0}
.site-b2b-product-default-row>label{min-width:0;margin:0}
.site-b2b-product-default-row .site-b2b-product-field-name{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.site-b2b-product-default-fields select{box-sizing:border-box;width:100%;min-height:34px;padding:6px 9px;border:1px solid var(--line);border-radius:7px;background:var(--card);color:var(--text);font:inherit;font-size:12px;font-weight:400}
.site-b2b-product-default-row>label:first-child{position:relative}
.site-b2b-product-default-fields select{appearance:none;-webkit-appearance:none;padding-right:34px}
.site-b2b-product-select-arrow{position:absolute;right:12px;bottom:9px;display:block;width:16px;height:16px;color:var(--muted);pointer-events:none}
.site-b2b-product-select-arrow svg{display:block;width:16px;height:16px}
.site-b2b-product-tab-panel[data-b2b-product-tab-panel="description"]{min-height:0;align-items:stretch}
.site-b2b-product-tab-panel[data-b2b-product-tab-panel="description"]>label{grid-template-rows:auto minmax(0,1fr);height:100%;min-height:0}
.site-b2b-product-tab-panel[data-b2b-product-tab-panel="description"] textarea {
  grid-row: 2;
  height: 100%;
  min-height: 0;
  resize: none;
}
.site-b2b-product-default-row .site-b2b-product-switch{min-height:30px;align-self:end}
.site-b2b-product-tab-panel[data-b2b-product-tab-panel="barcode"]{grid-template-columns:minmax(0,1fr);align-content:start;justify-items:start;gap:10px;min-height:0}
.site-b2b-product-tab-panel[data-b2b-product-tab-panel="barcode"]>label{width:100%}
.site-b2b-product-characteristics{grid-template-columns:minmax(0,1fr);align-content:start;align-items:stretch;gap:10px}
.site-b2b-product-characteristics>label{grid-template-columns:110px minmax(0,1fr);align-items:center;gap:12px;max-width:520px}
.site-b2b-product-switch{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:32px;color:var(--text);font-size:11px;font-weight:600;white-space:nowrap;cursor:pointer;user-select:none}
.site-b2b-product-switch input{position:absolute;width:1px;height:1px;margin:0;opacity:0;clip-path:inset(50%)}
.site-b2b-product-switch-track{position:relative;box-sizing:border-box;display:grid;grid-template-columns:1fr 1fr;align-items:center;width:82px;height:30px;flex:none;padding:3px;border:1px solid var(--line);border-radius:8px;background:rgba(148,163,184,.12);overflow:hidden;transition:border-color .18s,background .18s}
.site-b2b-product-switch-track::before{position:absolute;top:3px;left:3px;width:36px;height:22px;border-radius:5px;background:rgba(148,163,184,.34);box-shadow:0 1px 3px rgba(0,0,0,.16);content:"";transition:transform .18s,background .18s}
.site-b2b-product-switch-track>span{position:relative;z-index:1;color:var(--muted);font-size:10px;font-weight:750;line-height:1;text-align:center;transition:color .18s}
.site-b2b-product-switch input:not(:checked)+.site-b2b-product-switch-track>span:first-child{color:var(--text)}
.site-b2b-product-switch input:checked+.site-b2b-product-switch-track{border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft)}
.site-b2b-product-switch input:checked+.site-b2b-product-switch-track::before{transform:translateX(39px);background:var(--fecor-gold)}
.site-b2b-product-switch input:checked+.site-b2b-product-switch-track>span:last-child{color:#111923}
.site-b2b-product-switch:hover .site-b2b-product-switch-track{border-color:var(--fecor-gold-line)}
.site-b2b-product-switch input:focus-visible+.site-b2b-product-switch-track{outline:2px solid var(--fecor-gold);outline-offset:2px}
@media(prefers-reduced-motion:reduce){.site-b2b-product-switch-track,.site-b2b-product-switch-track::before,.site-b2b-product-switch-track>span{transition:none}}
@media(forced-colors:active){.site-b2b-product-switch input{position:static;width:20px;height:20px;opacity:1;clip-path:none;accent-color:Highlight}.site-b2b-product-switch-track{display:none}}
#b2b-product-panel-prices {
  grid-template-rows: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  overflow: hidden;
}
#b2b-product-panel-prices > .site-b2b-product-stocks {
  min-height: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}
#b2b-product-panel-prices .site-b2b-product-stocks table {
  table-layout: fixed;
  min-width: 0;
}
#b2b-product-panel-prices .site-b2b-product-stocks th:first-child {
  box-sizing: border-box;
  width: 40%;
}
#b2b-product-panel-prices .site-b2b-product-stocks :is(th, td) {
  white-space: normal;
  overflow-wrap: anywhere;
}
#b2b-product-panel-prices .site-b2b-product-stocks :is(th, td):last-child {
  padding-inline-end: 16px;
}
#b2b-product-panel-prices > .site-b2b-product-stocks > h3 {
  display: none;
}
.site-b2b-product-tab-prices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.site-b2b-product-tab-prices>div{display:grid;gap:4px;min-width:0;padding:7px 9px;border:1px solid var(--line);border-radius:7px}
.site-b2b-product-tab-prices span{color:var(--muted);font-size:10px}
.site-b2b-product-tab-prices strong{overflow:hidden;color:var(--text);font-size:11px;text-overflow:ellipsis;white-space:nowrap;cursor:text}
.site-b2b-product-tab-prices strong:focus-visible{outline:2px solid var(--fecor-gold);outline-offset:2px}
.site-b2b-product-tab-prices input{max-width:100%}
.site-b2b-product-image{display:grid;align-content:start;gap:5px;min-width:0;padding:12px;border-right:1px solid var(--line);color:var(--text);font-size:12px;font-weight:700}
.site-b2b-product-dialog .site-b2b-product-image{padding:0 14px 0 0}
.site-b2b-product-dialog .site-b2b-product-photo-frame{height:160px}
.site-b2b-product-dialog .site-b2b-product-photo-frame img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;cursor:zoom-in}
.site-b2b-product-dialog .site-b2b-product-photo-frame img[hidden]{display:none}
.site-b2b-product-image label{display:grid;gap:3px;color:var(--muted);font-size:10px;font-weight:400}
.site-b2b-product-image input{max-width:100%;font-size:10px}
.site-b2b-product-image>small{color:var(--muted);font-size:10px;font-weight:400}
.site-b2b-product-label-control{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 29px 29px;gap:4px;min-width:0;margin-top:5px}
.site-b2b-product-dialog .site-b2b-product-label-control>button,.site-b2b-product-dialog .site-b2b-product-label-control>a,body.admin-dark .site-b2b-product-dialog .site-b2b-product-label-control>button,body.admin-dark .site-b2b-product-dialog .site-b2b-product-label-control>a{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:3px;min-width:0;width:100%;height:29px;min-height:29px;margin:0;padding:3px;border:1px solid var(--fecor-gold-line);border-radius:6px;background:rgba(214,162,31,.035);color:var(--fecor-gold-text);font:inherit;font-size:10px;font-weight:700;line-height:1.2;text-decoration:none;box-shadow:none;cursor:pointer}
.site-b2b-product-dialog .site-b2b-product-label-control>button:hover:not(:disabled),.site-b2b-product-dialog .site-b2b-product-label-control>a:hover:not([aria-disabled="true"]),body.admin-dark .site-b2b-product-dialog .site-b2b-product-label-control>button:hover:not(:disabled),body.admin-dark .site-b2b-product-dialog .site-b2b-product-label-control>a:hover:not([aria-disabled="true"]){border-color:var(--fecor-gold);background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}
.site-b2b-product-dialog .site-b2b-product-label-control>[data-b2b-label-toggle][aria-pressed="true"],body.admin-dark .site-b2b-product-dialog .site-b2b-product-label-control>[data-b2b-label-toggle][aria-pressed="true"]{border-color:var(--fecor-gold);background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}
.site-b2b-product-label-control button:disabled,.site-b2b-product-label-control a[aria-disabled="true"]{opacity:.45;cursor:not-allowed}
.site-b2b-product-label-control svg{flex:none;width:13px;height:13px}
.site-b2b-product-label-control [data-b2b-label-toggle] span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-b2b-product-label-control [data-b2b-label-file][hidden],.site-b2b-product-label-control [data-b2b-label-note][hidden]{display:none}
.site-b2b-product-label-control [data-b2b-label-note]:not([hidden]){position:absolute;top:calc(100% + 5px);left:0;z-index:5;box-sizing:border-box;width:max-content;max-width:220px;padding:6px 8px;border:1px solid var(--fecor-gold-line);border-radius:6px;background:var(--card);color:var(--text);font-size:10px;font-weight:400;line-height:1.35;box-shadow:0 8px 20px rgba(0,0,0,.25)}
.site-b2b-product-label-control [data-b2b-label-note].is-error{border-color:#c25b5b;color:#e9a3a3}
.site-b2b-product-photo-frame{position:relative;display:grid;place-items:center;height:132px;min-height:0;border:1px solid var(--line);border-radius:7px;background:var(--fecor-gold-soft);color:var(--muted);overflow:hidden}
.site-b2b-product-photo-frame>svg{width:28px;height:28px}
.site-b2b-product-photo-frame:has(img:not([hidden]))>svg{display:none}
.site-b2b-product-photo-frame .site-b2b-product-photo-add,.site-b2b-product-image .site-b2b-product-photo-add{position:absolute;right:7px;bottom:7px;z-index:1;display:grid;place-items:center;width:31px;height:31px;min-height:31px;margin:0;padding:0;border:1px solid var(--fecor-gold-line);border-radius:7px;background:var(--card);color:var(--fecor-gold-text);cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.16)}
.site-b2b-product-photo-add svg{width:17px;height:17px}
.site-b2b-product-photo-add:hover,.site-b2b-product-photo-add:focus-within{border-color:var(--fecor-gold);background:var(--fecor-gold-soft)}
.site-b2b-product-photo-add:disabled{opacity:.45;cursor:not-allowed}
.site-b2b-product-photo-add input[type=file]{position:absolute;width:1px;height:1px;min-height:0;margin:0;padding:0;opacity:0;pointer-events:none}
.site-b2b-product-image img,.site-b2b-product-summary-image img{max-width:100%;max-height:132px;object-fit:contain}
#b2b-nomenclature .site-b2b-product-photo-frame img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;object-position:center;cursor:zoom-in}
#b2b-nomenclature .site-b2b-product-photo-frame img[hidden]{display:none}
#b2b-nomenclature .site-b2b-product-photo-frame img:focus-visible{outline:2px solid var(--fecor-gold);outline-offset:-3px}
.site-b2b-product-photo-viewer{box-sizing:border-box;width:min(96vw,1600px);max-width:none;height:min(94vh,1200px);max-height:none;margin:auto;padding:12px;border:1px solid var(--line);border-radius:12px;background:#0d1520;color:#fff;box-shadow:0 24px 80px rgba(0,0,0,.55)}
.site-b2b-product-photo-viewer::backdrop{background:rgba(3,8,15,.84)}
.site-b2b-product-photo-viewer img{display:block;width:100%;height:100%;object-fit:contain}
.site-b2b-product-photo-viewer>button{position:absolute;top:14px;right:14px;z-index:1;display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid rgba(255,255,255,.28);border-radius:8px;background:rgba(13,21,32,.9);color:#fff;font-size:25px;line-height:1;cursor:pointer}
.site-b2b-product-fields .site-b2b-product-check{display:flex;align-items:center;gap:8px}
.site-b2b-product-dialog footer{flex:none;margin-top:auto;padding-top:12px;border-top:0}
@media(max-width:900px){.site-b2b-product-summary{grid-template-columns:145px minmax(0,.8fr) minmax(0,1.2fr)}.site-b2b-product-photo-frame{height:110px}.site-b2b-product-image img,.site-b2b-product-summary-image img{max-height:110px}}
@media(max-width:700px){.site-b2b-product-workspace{grid-template-columns:1fr}.site-b2b-product-categories{display:flex;align-items:center;gap:6px;min-height:56px;padding:8px;white-space:nowrap;border-right:0;border-bottom:1px solid var(--line);overflow-x:auto}.site-b2b-product-categories h3{margin:0;flex:none}.site-b2b-product-categories button{width:auto;flex:none}.site-b2b-product-summary{grid-template-columns:100px minmax(0,1fr);max-height:36vh}.site-b2b-product-prices{border-right:0}.site-b2b-product-stocks{grid-column:1/-1;border-top:1px solid var(--line)}}
@media(max-width:700px){#b2b-nomenclature>.site-b2b-product-summary{grid-template-columns:100px minmax(0,1fr)}}
@media(max-width:700px){.site-b2b-product-card-body{grid-template-columns:1fr}.site-b2b-product-dialog .site-b2b-product-image{display:flex;align-items:center;gap:12px;padding:0 0 12px;border-right:0;border-bottom:1px solid var(--line)}.site-b2b-product-dialog .site-b2b-product-photo-frame{width:140px;height:110px;flex:none}.site-b2b-product-tab-panel{grid-template-columns:1fr}.site-b2b-product-tab-prices{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.site-b2b-product-dialog .site-b2b-product-image{display:grid;grid-template-columns:140px minmax(0,1fr);gap:5px 10px;align-items:start}.site-b2b-product-dialog .site-b2b-product-photo-frame{grid-row:span 2}.site-b2b-product-dialog .site-b2b-product-label-control{margin-top:0}}
@media(max-width:700px){.site-b2b-product-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:480px){.site-b2b-product-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.site-b2b-product-default-fields{gap:10px}.site-b2b-product-default-row{grid-template-columns:minmax(0,1fr);gap:5px}.site-b2b-product-default-row .site-b2b-product-switch{min-height:36px}.site-b2b-product-characteristics>label{grid-template-columns:minmax(0,1fr);gap:5px}}
@media(max-width:560px){.site-b2b-product-fields{grid-template-columns:1fr}.site-b2b-product-code-row{flex-wrap:wrap}.site-b2b-product-code-row>.site-b2b-product-marking{flex:1 1 100%}:is(.site-b2b-product-dialog,.site-b2b-counterparty-dialog){width:calc(100vw - 12px)}.site-b2b-product-dialog{height:calc(100vh - 12px)}}
@media(max-width:560px){.site-b2b-location-fields{grid-template-columns:1fr}}
@media (max-width:760px){
  .os-context-tabs{padding:10px 12px}
  .os-context-tabs a{min-height:36px;padding:0 11px;font-size:12px}
}

/* Accounting workspace follows the global daylight theme; context navigation stays graphite */
body:not(.admin-dark) .accounting-workspace{
  background:#f4f7fb;
  border-color:#cbd6e3;
  color:#172033;
}
body:not(.admin-dark) .accounting-head{
  background:#fff;
  border-color:#d7e0ea;
}
body:not(.admin-dark) .accounting-head h2,
body:not(.admin-dark) .accounting-person h3,
body:not(.admin-dark) .accounting-source h3,
body:not(.admin-dark) .accounting-card h3{color:#172033}
body:not(.admin-dark) .accounting-head p,
body:not(.admin-dark) .accounting-person>p,
body:not(.admin-dark) .accounting-stats span,
body:not(.admin-dark) .accounting-stats small,
body:not(.admin-dark) .accounting-card>header p,
body:not(.admin-dark) .accounting-card>header>span,
body:not(.admin-dark) .accounting-source p strong{color:#68768a}
body:not(.admin-dark) .accounting-person,
body:not(.admin-dark) .accounting-source,
body:not(.admin-dark) .accounting-card,
body:not(.admin-dark) .accounting-stats article{
  background:#fff;
  border-color:#cbd6e3;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
}
body:not(.admin-dark) .accounting-avatar{
  background:#fff8df;
  border-color:#d4a51d;
  color:#9a6c00;
}
body:not(.admin-dark) .accounting-person dl div,
body:not(.admin-dark) .accounting-card>header{
  border-color:#dce4ed;
}
body:not(.admin-dark) .accounting-person dt{color:#68768a}
body:not(.admin-dark) .accounting-person dd{color:#172033}
body:not(.admin-dark) .accounting-person>a{
  border-color:#b9c6d5;
  background:#f8fafc;
  color:#263449;
}
body:not(.admin-dark) .accounting-filters select,
body:not(.admin-dark) .accounting-form input,
body:not(.admin-dark) .accounting-form select,
body:not(.admin-dark) .accounting-form textarea,
body:not(.admin-dark) .accounting-employee-search input{
  border-color:#b9c6d5;
  background:#fff;
  color:#172033;
}
body:not(.admin-dark) .accounting-form label{color:#526176}
body:not(.admin-dark) .accounting-table th,
body:not(.admin-dark) .accounting-detail-table th,
body:not(.admin-dark) .accounting-table tfoot td,
body:not(.admin-dark) .accounting-detail-table tfoot td{
  background:#eaf0f6;
  color:#46556b;
}
body:not(.admin-dark) .accounting-table td,
body:not(.admin-dark) .accounting-detail-table td{
  background:#fff;
  border-color:#dce4ed;
  color:#263449;
}
body:not(.admin-dark) .accounting-table td:nth-child(2),
body:not(.admin-dark) .accounting-table td:nth-child(3),
body:not(.admin-dark) .accounting-table td:nth-child(7){background:#f1fbf6;color:#187447}
body:not(.admin-dark) .accounting-table td:nth-child(4),
body:not(.admin-dark) .accounting-table td:nth-child(5),
body:not(.admin-dark) .accounting-table td:nth-child(8),
body:not(.admin-dark) .accounting-detail-table .unofficial-row td{background:#fff9e8;color:#8a6300}
body:not(.admin-dark) .accounting-table tbody tr:hover td,
body:not(.admin-dark) .accounting-table tbody tr.selected td{background:#fff7dc}
body:not(.admin-dark) .accounting-payable-grid{
  background:#f7f9fc;
  border-color:#dce4ed;
}
body:not(.admin-dark) .accounting-payable-grid article.official{background:#f0fbf5}
body:not(.admin-dark) .accounting-payable-grid article.unofficial{background:#fff9e8}
body:not(.admin-dark) .accounting-payable-grid dt,
body:not(.admin-dark) .accounting-payable-grid article>header small{color:#68768a}
body:not(.admin-dark) .accounting-payable-grid dd{color:#263449}
body:not(.admin-dark) .accounting-secondary{
  background:#fff;
  color:#8a6300;
}

/* Stable labels for SORBER order/message links beside independent counters */
.side-nav-tree>div>a>.side-nav-link-label{
  grid-column:2;
  min-width:0;
  overflow:hidden;
  color:var(--muted);
  font-size:13px;
  font-weight:400;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.side-menu-collapsed .side-nav-tree>div>a>.side-nav-link-label{
  display:none!important;
}

.chz-history-card>.chz-card-head{flex-wrap:wrap}

/* VED / Honest Sign: one content axis and equal distance from panel edges. */
#ved.foreign-trade-panel{--ved-content-gutter:24px}
#ved .foreign-trade-head{padding:24px var(--ved-content-gutter)}
#ved .chz-workspace{gap:16px;padding:24px var(--ved-content-gutter)}
#ved .chz-workspace>*{min-width:0}
@media(max-width:720px){
  #ved.foreign-trade-panel{--ved-content-gutter:12px}
  #ved .foreign-trade-head{padding:16px var(--ved-content-gutter)}
  #ved .chz-workspace{gap:12px;padding:12px var(--ved-content-gutter)}
}

/* ChZ history delete action follows the compact ERP cross-button style. */
#ved .chz-history-table .chz-delete-column,
#ved .chz-history-table .chz-delete-cell{width:46px;min-width:46px;padding:0 7px;text-align:center;vertical-align:middle}
#ved .chz-delete-cell form{display:flex;align-items:center;justify-content:center;width:100%;margin:0}
#ved .chz-delete-cell .chz-delete-button{display:grid!important;width:32px!important;height:32px!important;min-height:32px!important;margin:0!important;padding:0!important;place-items:center;border:0!important;border-radius:0!important;background:transparent!important;color:#ef4444!important;font-size:25px!important;font-weight:400;line-height:1;box-shadow:none!important}
#ved .chz-delete-cell .chz-delete-button:hover{background:transparent!important;color:#ff6b6b!important}
#ved .chz-delete-cell .chz-delete-button:focus-visible{outline:2px solid rgba(239,68,68,.45);outline-offset:2px}
#ved .chz-delete-cell .chz-delete-button>span{display:block;line-height:1;transform:translateY(-1px)}

/* ChZ controls: keep module-specific geometry above the global blue button theme. */
#ved .chz-production-approval{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.85fr) auto;align-items:center;gap:12px;margin:16px 16px 0;padding:12px;border:1px solid rgba(var(--chz-green-rgb),.38);border-radius:10px;background:rgba(var(--chz-green-rgb),.065)}
#ved .chz-production-approval[hidden],#ved .chz-approval[hidden]{display:none!important}
#ved .chz-production-approval>div{display:flex;align-items:center;gap:9px;min-width:0}
#ved .chz-production-approval>div>svg{width:22px;height:22px;flex:none;color:var(--chz-green)}
#ved .chz-production-approval p{display:grid;gap:3px;margin:0;min-width:0}
#ved .chz-production-approval p strong{font-size:11px}
#ved .chz-production-approval p span{overflow:hidden;color:var(--muted);font-size:9px;text-overflow:ellipsis;white-space:nowrap}
#ved .chz-production-approval .chz-confirm{display:flex;align-items:flex-start;gap:8px;color:var(--muted);font-size:9px;line-height:1.35;cursor:pointer}
#ved .chz-production-approval .chz-confirm input{width:17px;height:17px;flex:none;margin:0;accent-color:var(--chz-green)}
#ved .chz-production-approval button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 12px;border:1px solid rgba(var(--chz-green-rgb),.62);border-radius:8px;background:rgba(var(--chz-green-rgb),.1);color:var(--chz-green);font-weight:850;white-space:nowrap}
#ved .chz-production-approval button:hover{background:rgba(var(--chz-green-rgb),.18);color:var(--chz-green)}
#ved .chz-production-approval button svg{width:16px;height:16px}
#ved .chz-history-card>.chz-card-head{flex-wrap:wrap}
#ved .chz-history-search{display:flex;align-items:center;gap:6px;margin-left:auto}
#ved .chz-history-search label{box-sizing:border-box;display:flex;align-items:center;gap:7px;width:min(240px,24vw);height:34px;min-height:34px;margin:0;padding:0 9px;border:1px solid rgba(125,151,180,.34);border-radius:8px;background:rgba(3,11,20,.34)}
#ved .chz-history-search label>svg{width:14px;height:14px;flex:none;color:var(--muted)}
#ved .chz-history-search input{box-sizing:border-box;width:100%;min-width:0;height:100%;min-height:0;margin:0;padding:0;border:0;outline:0;background:transparent;color:var(--text);font:inherit;font-size:10px;line-height:normal;box-shadow:none}
#ved .chz-history-search input::placeholder{color:var(--muted)}
#ved .chz-history-search button,#ved .chz-history-search a{box-sizing:border-box;display:grid;place-items:center;flex:0 0 34px;align-self:center;width:34px;height:34px;min-height:34px;margin:0;padding:0;border:1px solid rgba(var(--chz-green-rgb),.35);border-radius:8px;background:rgba(var(--chz-green-rgb),.06);color:var(--chz-green)}
#ved .chz-history-search button:hover,#ved .chz-history-search a:hover{background:rgba(var(--chz-green-rgb),.14);color:var(--chz-green)}
#ved .chz-history-search button{cursor:pointer}
#ved .chz-history-search svg{width:14px;height:14px}
body:not(.admin-dark) #ved .chz-history-search label{background:#fff}
@media(max-width:720px){
  #ved .chz-production-approval{grid-template-columns:1fr;margin:12px 12px 0}
  #ved .chz-production-approval button{width:100%}
  #ved .chz-history-search{width:100%;margin:8px 0 0}
  #ved .chz-history-search label{width:auto;flex:1}
}

/* VED internal views share one access section. */
#ved [data-ved-view][hidden]{display:none!important}
#ved :is(.ved-supplies-workspace,.ved-orders-workspace,.ved-payment-workspace,.ved-placeholder-workspace){min-width:0;padding:24px var(--ved-content-gutter);background:linear-gradient(180deg,rgba(52,211,153,.025),transparent 300px)}
#ved :is(.ved-supplies-workspace,.ved-orders-workspace,.ved-payment-workspace,.ved-placeholder-workspace) .foreign-trade-empty{min-height:360px;border:1px solid rgba(66,220,166,.28);border-radius:12px;background:rgba(9,17,28,.22)}
body:not(.admin-dark) #ved :is(.ved-supplies-workspace,.ved-orders-workspace,.ved-payment-workspace,.ved-placeholder-workspace){background:linear-gradient(180deg,rgba(16,185,129,.025),transparent 300px)}
body:not(.admin-dark) #ved :is(.ved-supplies-workspace,.ved-orders-workspace,.ved-payment-workspace,.ved-placeholder-workspace) .foreign-trade-empty{background:#fff;box-shadow:0 7px 22px rgba(15,23,42,.045)}
@media(max-width:720px){
  #ved :is(.ved-supplies-workspace,.ved-orders-workspace,.ved-payment-workspace,.ved-placeholder-workspace){padding:12px var(--ved-content-gutter)}
  #ved :is(.ved-supplies-workspace,.ved-orders-workspace,.ved-payment-workspace,.ved-placeholder-workspace) .foreign-trade-empty{min-height:300px}
}

/* VED order documents. */
#ved .ved-orders-title{display:flex;align-items:center;gap:14px;margin:5px 0 4px}
#ved .ved-orders-title h2{margin:0}
#ved .ved-order-create{box-sizing:border-box;display:grid;place-items:center;flex:none;width:42px;height:42px;min-height:42px;padding:0;border:1px solid rgba(52,211,153,.55);border-radius:10px;background:rgba(16,185,129,.1);color:#55d9a4;font:inherit;font-size:30px;font-weight:500;line-height:1;cursor:pointer}
#ved .ved-order-create:hover{background:rgba(16,185,129,.18);color:#6ee7b7}
#ved .ved-order-create:focus-visible,#ved .ved-order-dialog-close:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#ved .ved-orders-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:nowrap;min-width:0}
#ved .ved-orders-header-actions>strong{display:inline-flex;align-items:center;gap:7px;min-height:40px;box-sizing:border-box;padding:8px 11px;border:1px solid rgba(52,211,153,.42);border-radius:999px;background:rgba(16,185,129,.09);color:#55d9a4;font-size:11px;white-space:nowrap}
#ved .ved-orders-header-actions>strong svg{width:15px;height:15px}
#ved .ved-create-supply{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;gap:7px;width:auto;min-height:40px;padding:8px 11px;border:1px solid rgba(52,211,153,.55);border-radius:9px;background:rgba(16,185,129,.14);color:#55d9a4;font:inherit;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer}
#ved .ved-create-supply svg{width:17px;height:17px}
#ved .ved-create-supply:disabled{opacity:.45;cursor:not-allowed}
#ved .ved-create-supply:not(:disabled):hover{background:rgba(16,185,129,.23)}
#ved .ved-create-supply:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#ved .ved-order-dialog.ved-supply-dialog{width:min(1400px,calc(100vw - 32px))}
#ved .ved-supply-intro{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:16px;flex-wrap:wrap}
#ved .ved-supply-intro>span{font-size:14px;font-weight:700}
#ved .ved-supply-intro label{display:grid;gap:5px;font-size:12px;color:var(--muted)}
#ved .ved-supply-intro input,#ved .ved-supply-table-wrap input{box-sizing:border-box;height:38px;min-width:0;padding:6px 9px;border:1px solid var(--ved-field-border,var(--line));border-radius:8px;background:var(--ved-field-background,var(--panel));color:var(--text);font:inherit;font-size:13px}
#ved .ved-supply-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:10px}
#ved .ved-supply-table-wrap table{width:100%;min-width:1540px;border-collapse:collapse;font-size:13px}
#ved .ved-supply-table-wrap th,#ved .ved-supply-table-wrap td{padding:10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
#ved .ved-supply-table-wrap tr:last-child td{border-bottom:0}
#ved .ved-supply-table-wrap th{background:rgba(125,151,180,.08);color:var(--muted)}
#ved .ved-supply-table-wrap tfoot th,#ved .ved-supply-table-wrap tfoot td{border-top:2px solid var(--line);font-weight:700}
#ved #ved-supply-dialog .ved-supply-table-wrap tfoot th{background:transparent;color:var(--text)}
#ved .ved-supply-table-wrap tfoot td{white-space:nowrap}
#ved .ved-supply-table-wrap td:nth-child(3){min-width:200px}
#ved .ved-supply-table-wrap input[data-supply-field=quantity]{width:110px}
#ved .ved-supply-table-wrap input[data-supply-field=price]{width:120px}
#ved .ved-supply-table-wrap input[data-supply-field=unit]{width:90px}
#ved .ved-supply-table-wrap input[data-supply-field=net_weight],#ved .ved-supply-table-wrap input[data-supply-field=gross_weight],#ved .ved-supply-table-wrap input[data-supply-field=volume]{width:110px}
#ved .ved-supply-table-wrap [data-supply-remove]{width:32px;height:32px;border:1px solid rgba(239,68,68,.5);border-radius:7px;background:rgba(239,68,68,.08);color:#ef7777;font-size:22px;cursor:pointer}
#ved .ved-supplies-table-wrap{max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:10px}
#ved .ved-supplies-table{width:100%;min-width:980px;margin:0;border-collapse:collapse;font-size:13px}
#ved .ved-supplies-table th,#ved .ved-supplies-table td{padding:13px 12px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}
#ved .ved-supplies-table th{background:rgba(125,151,180,.08);color:var(--muted)}
#ved .ved-supplies-table tr:last-child td{border-bottom:0}
#ved .ved-supplies-table [data-ved-supply-row]{cursor:pointer}
#ved .ved-supplies-table [data-ved-supply-row]:hover td{background:rgba(52,211,153,.075)}
#ved .ved-supplies-table [data-ved-supply-row].is-selected td{background:rgba(16,185,129,.16)}
#ved .ved-supplies-table [data-ved-supply-row].is-selected td:first-child{box-shadow:inset 3px 0 #34d399}
#ved .ved-supplies-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
#ved .ved-supplies-header-actions>strong{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid rgba(52,211,153,.42);border-radius:999px;background:rgba(16,185,129,.09);color:#55d9a4;font-size:11px;white-space:nowrap}
#ved .ved-supplies-header-actions>strong svg{width:15px;height:15px}
#ved .ved-supply-delete{display:grid;place-items:center;width:40px;height:40px;min-width:40px;padding:0;border:1px solid rgba(239,68,68,.55);border-radius:9px;background:rgba(239,68,68,.08);color:#ef7777;font:inherit;font-size:25px;line-height:1;cursor:pointer}
#ved .ved-supply-delete:not(:disabled):hover{background:rgba(239,68,68,.18)}
#ved .ved-supply-delete:disabled{opacity:.4;cursor:not-allowed}
#ved .ved-supply-delete:focus-visible{outline:2px solid #ef7777;outline-offset:2px}
@media(max-width:720px){#ved .foreign-trade-head>.ved-supplies-header-actions{grid-column:1/-1;justify-content:flex-start}}
#ved .ved-supply-partial-note{margin:8px 0 0;color:var(--muted);font-size:11px;line-height:1.4}
#ved .ved-receipt-create{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:7px 12px;border:1px solid rgba(52,211,153,.55);border-radius:9px;background:rgba(16,185,129,.12);color:#55d9a4;font:inherit;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer}
#ved .ved-receipt-create svg{width:16px;height:16px}
#ved .ved-receipt-create:not(:disabled):hover{background:rgba(16,185,129,.2)}
#ved .ved-receipt-create:disabled{opacity:.45;cursor:not-allowed}
#ved .ved-receipt-create:focus-visible{outline:2px solid #55d9a4;outline-offset:2px}
#ved .ved-receipts-table [data-ved-receipt-row]{cursor:pointer}
#ved .ved-receipts-table [data-ved-receipt-row]:hover td{background:rgba(52,211,153,.075)}
#ved .ved-receipts-table [data-ved-receipt-row].is-selected td{background:rgba(16,185,129,.16)}
#ved .ved-receipts-table [data-ved-receipt-row].is-selected td:first-child{box-shadow:inset 3px 0 #34d399}
#ved .ved-receipt-dialog{width:min(1100px,calc(100vw - 32px))}
#ved .ved-receipt-dialog [hidden]{display:none!important}
#ved .ved-receipt-details{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:12px}
#ved .ved-receipt-details>strong{font-size:13px;overflow-wrap:anywhere}
#ved .ved-receipt-details label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;font-weight:600}
#ved .ved-receipt-details input{box-sizing:border-box;height:36px;padding:5px 8px;border:1px solid var(--ved-field-border,var(--line));border-radius:8px;background:var(--ved-field-background,var(--panel));color:var(--text);font:inherit;color-scheme:dark}
body:not(.admin-dark) #ved .ved-receipt-details input{color-scheme:light}
#ved .ved-receipt-dialog [data-ved-receipt-info]{margin-bottom:12px;font-size:12px}
#ved .ved-receipt-table-wrap table{min-width:760px;table-layout:fixed}
#ved .ved-receipt-table-wrap :is(th,td):nth-child(1){width:48px}
#ved .ved-receipt-table-wrap :is(th,td):nth-child(2){width:130px}
#ved .ved-receipt-table-wrap :is(th,td):nth-child(3){width:auto;min-width:280px;overflow-wrap:anywhere}
#ved .ved-receipt-table-wrap :is(th,td):nth-child(4){width:115px;text-align:right;font-variant-numeric:tabular-nums}
@media(max-width:720px){#ved .ved-supplies-header-actions{flex-wrap:wrap}#ved .ved-receipt-create{white-space:normal}}
#ved .ved-supplies-list{display:grid;gap:12px}
#ved .ved-supply-card{border:1px solid var(--line);border-radius:10px;background:var(--panel);overflow:hidden}
#ved .ved-supply-card>summary{display:grid;grid-template-columns:minmax(160px,1fr) 110px minmax(150px,1.2fr) 70px 130px;align-items:center;gap:12px;padding:16px;cursor:pointer;list-style:none;font-size:13px}
#ved .ved-supply-card>summary::-webkit-details-marker{display:none}
#ved .ved-supply-card>summary>span:first-child{display:grid;gap:4px}
#ved .ved-supply-card>summary small{color:var(--muted)}
#ved .ved-supply-card>summary>strong:last-child{text-align:right}
#ved .ved-supply-card-body{padding:0 16px 16px}
#ved .ved-supply-card-body>p{font-size:12px;color:var(--muted)}
@media(max-width:720px){#ved .ved-orders-header-actions{grid-column:1/-1;justify-content:flex-start}#ved .ved-supply-card>summary{grid-template-columns:1fr auto}#ved .ved-supply-card>summary>span:nth-child(3),#ved .ved-supply-card>summary>span:nth-child(4){display:none}}
@media(max-width:420px){#ved .ved-orders-header-actions{gap:6px}#ved .ved-create-supply{gap:5px;padding:6px;font-size:11px}#ved .ved-orders-header-actions>strong{gap:5px;padding:6px;font-size:10px}}
#ved .ved-order-dialog{box-sizing:border-box;width:min(720px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:0;overflow:auto;border:1px solid var(--line);border-radius:14px;background:var(--panel,#151d28);color:var(--text);box-shadow:0 24px 80px rgba(0,0,0,.35)}
#ved .ved-order-dialog:not([open]){display:none}
#ved .ved-order-dialog::backdrop{background:rgba(3,9,18,.65);backdrop-filter:blur(3px)}
#ved .ved-order-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px;border-bottom:1px solid var(--line)}
#ved .ved-order-dialog>header>div{min-width:0}
#ved .ved-order-dialog small{color:var(--muted);font-size:12px}
#ved .ved-order-dialog h3{margin:5px 0 0;font-size:22px;line-height:1.25}
#ved .ved-order-dialog-close{box-sizing:border-box;display:grid;place-items:center;flex:none;width:40px;height:40px;min-height:40px;margin:0;padding:0;border:1px solid rgba(239,68,68,.45);border-radius:9px;background:rgba(239,68,68,.08);color:#ff7373;font:inherit;font-size:28px;line-height:1;cursor:pointer}
#ved .ved-order-dialog-close:hover{background:rgba(239,68,68,.16);color:#ff9a9a}
#ved .ved-order-document-body{box-sizing:border-box;display:grid;place-items:center;min-height:240px;padding:28px 24px;text-align:center}
#ved .ved-order-document-body p{max-width:430px;margin:0;color:var(--muted);font-size:14px;line-height:1.6}
body:not(.admin-dark) #ved .ved-order-create{background:rgba(16,185,129,.06);border-color:rgba(5,150,105,.4);color:#047857}
body:not(.admin-dark) #ved .ved-order-dialog{background:#fff}
body:not(.admin-dark) #ved .ved-order-dialog-close{color:#dc2626}
@media(max-width:600px){
  #ved .ved-order-dialog>header{padding:18px 16px;gap:10px}
  #ved .ved-order-dialog h3{font-size:19px}
  #ved .ved-order-document-body{min-height:200px;padding:24px 18px}
}
#ved .ved-order-form{padding:20px 24px 0}
#ved .ved-order-form>p{margin:0 0 18px;color:var(--muted);font-size:13px}
#ved .ved-order-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 16px}
#ved .ved-order-fields label{display:grid;align-content:start;gap:7px;min-width:0}
#ved .ved-order-fields label>span{color:var(--text);font-size:13px;font-weight:700}
#ved .ved-order-fields :is(input,select){box-sizing:border-box;width:100%;min-width:0;height:44px;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface,#0d1520);color:var(--text);font:inherit;font-size:14px}
#ved .ved-order-fields :is(input,select):focus{outline:2px solid rgba(52,211,153,.55);outline-offset:1px}
#ved .ved-order-fields select{cursor:pointer}
body.admin-dark #ved .ved-order-fields select{color-scheme:dark}
body.admin-dark #ved .ved-order-fields input[type=date]{color-scheme:dark}
#ved .ved-order-fields small{font-size:11px;line-height:1.4}
#ved .ved-order-fields input[readonly]{color:var(--muted)}
#ved .ved-order-party-field{display:grid;align-content:start;gap:7px;min-width:0}
#ved .ved-order-party-field>label{margin:0;color:var(--text);font-size:13px;font-weight:700}
#ved .ved-order-party-control{display:flex;align-items:stretch;gap:8px;min-width:0}
#ved .ved-order-party-control input{flex:1;min-width:0}
#ved .ved-order-party-control button{box-sizing:border-box;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;margin:0;padding:0;border:1px solid rgba(52,211,153,.55);border-radius:9px;background:rgba(16,185,129,.1);color:#55d9a4;font:inherit;font-size:27px;line-height:1;cursor:pointer}
#ved .ved-order-party-control button:hover{background:rgba(16,185,129,.2)}
#ved .ved-order-party-control button svg{width:18px;height:18px}
#ved .ved-order-party-control button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#ved .ved-party-dialog{width:min(540px,calc(100vw - 32px))}
#ved .ved-party-choice{display:grid;gap:7px;margin:0 0 16px}
#ved .ved-party-choice>label{color:var(--text);font-size:12px;font-weight:700}
#ved .ved-party-choice-control{display:flex;gap:8px;min-width:0}
#ved .ved-party-choice-control select{box-sizing:border-box;flex:1;min-width:0;height:40px;padding:7px 9px;border:1px solid var(--ved-field-border,var(--line));border-radius:9px;background:var(--ved-field-background,var(--surface));color:var(--text);font:inherit;font-size:13px}
#ved .ved-party-choice-control button{box-sizing:border-box;min-height:40px;margin:0;padding:7px 12px;border:1px solid rgba(52,211,153,.55);border-radius:9px;background:rgba(16,185,129,.1);color:#55d9a4;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
#ved .ved-party-choice-control :is(select,button):focus-visible{outline:2px solid var(--ved-focus,var(--accent));outline-offset:1px}
@media(max-width:520px){#ved .ved-party-choice-control{flex-wrap:wrap}#ved .ved-party-choice-control select{flex-basis:100%}#ved .ved-party-choice-control button{width:100%}}
#ved .ved-party-fields{grid-template-columns:1fr}
#ved .ved-party-fields textarea{box-sizing:border-box;width:100%;min-width:0;min-height:100px;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface,#0d1520);color:var(--text);font:inherit;font-size:14px;line-height:1.45;resize:vertical}
#ved .ved-party-fields textarea:focus{outline:2px solid rgba(52,211,153,.55);outline-offset:1px}
#ved .ved-party-contact-hint{margin:14px 0 0!important;font-size:12px!important;line-height:1.5}
#ved .ved-party-dialog [hidden]{display:none!important}
#ved .ved-party-dialog button:disabled{opacity:.55;cursor:wait}
body:not(.admin-dark) #ved .ved-order-party-control button{color:#047857;border-color:rgba(5,150,105,.4)}
#ved .ved-order-currency{text-transform:uppercase}
#ved .ved-order-form>footer{display:flex;justify-content:flex-end;gap:10px;margin:22px -24px 0;padding:16px 24px;border-top:1px solid var(--line)}
#ved .ved-order-form>footer button{min-height:42px;margin:0;padding:10px 18px;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--text);font:inherit;font-size:14px;font-weight:700;cursor:pointer}
#ved .ved-order-form>footer .ved-order-save{background:rgba(16,185,129,.15);border-color:rgba(52,211,153,.55);color:#55d9a4}
#ved .ved-order-form>footer button:hover{filter:brightness(1.12)}
#ved .ved-order-form>footer button:disabled{opacity:.55;cursor:wait}
#ved .ved-order-notice{margin:0 0 16px;padding:12px 14px;border:1px solid var(--line);border-radius:9px;font-size:13px;line-height:1.5}
#ved .ved-order-notice.success{border-color:rgba(52,211,153,.4);background:rgba(16,185,129,.08);color:#6ee7b7}
#ved .ved-order-notice.error{border-color:rgba(248,113,113,.4);background:rgba(239,68,68,.08);color:#fca5a5}
#ved .ved-orders-table-wrap{max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:12px}
#ved .ved-orders-table{width:100%;min-width:850px;margin:0;border-collapse:collapse;font-size:13px}
#ved .ved-orders-table th,#ved .ved-orders-table td{padding:14px 16px;border-bottom:1px solid var(--line);border-right:1px solid var(--line);text-align:left;vertical-align:top}
#ved .ved-orders-table th{background:rgba(125,151,180,.08);color:var(--muted);font-weight:700;white-space:nowrap}
#ved .ved-orders-table td{background:transparent;color:var(--text);max-width:300px;overflow-wrap:anywhere}
#ved .ved-orders-table td:nth-child(odd){background:transparent}
#ved .ved-orders-table tr:last-child td{border-bottom:0}
#ved .ved-orders-table th:last-child,#ved .ved-orders-table td:last-child{border-right:0}
#ved .ved-orders-table time,#ved .ved-orders-table .ved-order-amount{white-space:nowrap}
#ved .ved-orders-table .ved-order-amount{text-align:right;font-variant-numeric:tabular-nums}
#ved .ved-orders-table [data-ved-order-row]{cursor:pointer}
#ved .ved-orders-table [data-ved-order-row]:is(:hover,:focus-within) td{background:rgba(52,211,153,.075)}
#ved .ved-orders-table [data-ved-order-row].is-selected td{background:rgba(16,185,129,.16)}
#ved .ved-orders-table [data-ved-order-row].is-selected td:first-child{box-shadow:inset 3px 0 #34d399}
#ved .ved-orders-table [data-ved-order-row]:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
#ved .ved-order-edit{display:inline-block;min-height:32px;margin:-7px -8px;padding:7px 8px;border:0;border-radius:6px;background:transparent;color:var(--text);font:inherit;font-weight:700;text-align:left;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
#ved .ved-order-edit:hover{color:#55d9a4;text-decoration:underline}
#ved .ved-order-edit:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#ved [data-ved-order-error][hidden]{display:none!important}
body:not(.admin-dark) #ved .ved-order-edit:hover{color:#047857}
#ved .ved-orders-pagination{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:14px;font-size:13px}
#ved .ved-orders-pagination a{color:var(--text);padding:8px 12px;border:1px solid var(--line);border-radius:8px;text-decoration:none}
body:not(.admin-dark) #ved .ved-order-fields :is(input,select){background:#fff}
body:not(.admin-dark) #ved .ved-party-choice-control select{background:#fff}
body:not(.admin-dark) #ved .ved-party-choice-control button{color:#047857;border-color:rgba(5,150,105,.4)}
body:not(.admin-dark) #ved .ved-party-fields textarea{background:#fff}
body:not(.admin-dark) #ved .ved-order-form>footer .ved-order-save,body:not(.admin-dark) #ved .ved-order-notice.success{color:#047857}
body:not(.admin-dark) #ved .ved-order-notice.error{color:#b91c1c}
@media(max-width:600px){
  #ved .ved-order-form{padding:16px 16px 0}
  #ved .ved-order-fields{grid-template-columns:1fr;gap:14px}
  #ved .ved-order-form>footer{margin:18px -16px 0;padding:14px 16px}
}

/* Fullscreen document editor; directory dialogs remain compact. */
.ved-order-output-tools{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
#ved .ved-order-output-tools button{display:inline-flex;width:auto;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 14px;margin:0;border:1px solid var(--line);border-radius:9px;background:var(--surface,#0d1520);color:var(--text);font:inherit;font-size:14px;cursor:pointer}
#ved .ved-order-output-tools button:disabled{opacity:.45;cursor:not-allowed}
#ved .ved-order-output-tools svg,#ved .ved-mail-attachment svg{width:18px;height:18px;flex:none}
#ved .ved-output-notice{font-size:12px;line-height:1.5;color:var(--muted);margin:0 0 18px}
#ved .ved-mail-dialog{width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto}
#ved .ved-mail-dialog [hidden]{display:none!important}
#ved .ved-mail-fields{display:grid;gap:12px;min-width:0}
#ved .ved-mail-fields>p{margin:0;font-size:13px;overflow-wrap:anywhere}
#ved .ved-mail-fields>small{font-size:12px;color:var(--muted)}
#ved .ved-mail-fields>label{display:grid;gap:7px;font-size:13px;font-weight:600;min-width:0}
#ved .ved-mail-fields :is(input:not([type=checkbox]),textarea){box-sizing:border-box;width:100%;min-width:0;margin:0;padding:11px 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface,#0d1520);color:var(--text);font:inherit;font-size:14px}
#ved .ved-mail-fields textarea{resize:vertical;min-height:100px}
body:not(.admin-dark) #ved .ved-mail-fields :is(input:not([type=checkbox]),textarea){background:#fff}
body:not(.admin-dark) #ved .ved-order-output-tools button{background:#fff}
#ved .ved-mail-fields .ved-mail-confirm{display:flex;align-items:flex-start;gap:10px;font-weight:400;line-height:1.5}
#ved .ved-mail-confirm input{width:18px;height:18px;min-height:18px;margin:1px 0 0;flex:none}
#ved .ved-mail-attachment{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid var(--line);border-radius:8px}
#ved .ved-mail-history{margin:18px 0 0;font-size:12px;overflow-wrap:anywhere}
#ved .ved-mail-history summary{cursor:pointer;font-size:13px}
#ved .ved-mail-history p{margin:10px 0;line-height:1.5}
#ved .ved-mail-dialog button:disabled{opacity:.5;cursor:wait}
@media(max-width:600px){#ved .ved-order-output-tools{display:grid;grid-template-columns:1fr 1fr}#ved .ved-order-output-tools button{padding:9px 6px;font-size:12px}#ved .ved-mail-dialog>header{padding:16px}#ved .ved-mail-dialog>header h3{font-size:17px}}
#ved #ved-order-document-dialog{position:fixed;inset:0;width:100%;height:100dvh;max-width:100%;max-height:100dvh;margin:0;border:0;border-radius:0;overflow:auto;overscroll-behavior:contain}
#ved #ved-order-document-dialog[open]{display:flex;flex-direction:column}
#ved #ved-order-document-dialog>header{flex:none;padding:18px 28px;background:var(--panel,#151d28)}
#ved #ved-order-document-dialog>.ved-order-form{display:flex;flex:1;flex-direction:column;gap:0;min-height:0;padding:16px 28px 0}
#ved #ved-order-document-dialog .ved-order-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,440px);gap:24px;align-items:start;flex:1}
#ved #ved-order-document-dialog :is(.ved-order-products,.ved-order-requisites){min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--surface,#0d1520)}
#ved #ved-order-document-dialog .ved-order-requisites{padding:20px;grid-column:2;grid-row:1}
#ved #ved-order-document-dialog h4{margin:0;font-size:16px;line-height:1.4;color:var(--text)}
#ved #ved-order-document-dialog .ved-order-requisites h4{margin-bottom:18px}
#ved #ved-order-document-dialog .ved-order-requisites-fields{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,.85fr);gap:18px 12px}
#ved #ved-order-document-dialog .ved-order-requisites-fields>.ved-order-party-field{grid-column:1/-1}
#ved #ved-order-document-dialog .ved-order-requisites-fields input[type=date]{padding:10px 7px;font-size:13px}
#ved #ved-order-document-dialog .ved-order-products{grid-column:1;grid-row:1;min-height:400px;padding:20px}
#ved .ved-order-products-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}
#ved .ved-order-products-heading p{margin:4px 0 0;font-size:12px;color:var(--muted)}
#ved .ved-product-count{flex:none;padding:6px 10px;border:1px solid rgba(52,211,153,.25);border-radius:20px;background:rgba(16,185,129,.08);color:#55d9a4;font-size:12px;font-weight:700}
#ved .ved-product-heading-tools{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px}
#ved .ved-line-move-tools{display:flex;gap:8px}
#ved .ved-line-move-tools button{display:inline-flex;align-items:center;justify-content:center;gap:7px;box-sizing:border-box;width:auto;min-height:40px;margin:0;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--text);font:inherit;font-size:13px;line-height:1.4;white-space:nowrap;cursor:pointer}
#ved .ved-line-move-tools button:disabled{opacity:.4;cursor:not-allowed}
#ved .ved-line-move-tools button:not(:disabled):hover{background:rgba(16,185,129,.12);border-color:#34d399}
#ved .ved-line-move-tools button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#ved .ved-line-move-tools svg{width:18px;height:18px;flex:none}
#ved .ved-line-move-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:600px){#ved .ved-order-products-heading{align-items:flex-start;flex-wrap:wrap}#ved .ved-product-heading-tools{width:100%;justify-content:space-between;gap:8px}}
#ved .ved-product-picker{position:relative;margin-bottom:22px;min-width:0}
#ved .ved-product-picker>label{display:block;margin:0 0 8px;color:var(--text);font-size:13px;font-weight:700}
#ved .ved-product-search-control{position:relative}
#ved .ved-product-search-control>svg{position:absolute;left:14px;top:14px;width:20px;height:20px;color:var(--muted);pointer-events:none}
#ved .ved-product-search-control input{box-sizing:border-box;width:100%;min-width:0;height:48px;margin:0;padding:12px 14px 12px 44px;border:1px solid var(--line);border-radius:9px;background:var(--panel,#151d28);color:var(--text);font:inherit;font-size:14px}
#ved .ved-product-search-control input:focus{outline:2px solid rgba(52,211,153,.55);outline-offset:1px}
#ved .ved-product-status{min-height:18px;margin:8px 0 0;color:var(--muted);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
#ved .ved-product-status:empty{display:none}
#ved .ved-product-results{position:absolute;z-index:5;top:76px;left:0;right:0;max-height:280px;overflow:auto;border:1px solid var(--line);border-radius:9px;background:var(--panel,#151d28);box-shadow:0 12px 30px rgba(0,0,0,.2);overscroll-behavior:contain}
#ved .ved-product-results>button{display:block;box-sizing:border-box;width:100%;height:auto;min-height:48px;margin:0;padding:12px 14px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--text);font:inherit;font-size:13px;text-align:left;line-height:1.5;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
#ved .ved-product-results>button:last-child{border-bottom:0}
#ved .ved-product-results>button:is(:hover,[aria-selected=true]):not(:disabled){background:rgba(16,185,129,.13)}
#ved .ved-product-results>button:disabled{opacity:.55;cursor:default}
#ved .ved-product-results>button>small{display:block;margin-top:3px}
#ved .ved-product-results>p{margin:0;padding:16px;color:var(--muted);font-size:13px}
#ved .ved-product-list-heading,#ved .ved-product-items>li{display:grid;grid-template-columns:30px minmax(0,1fr) 36px;gap:12px;align-items:center}
#ved .ved-product-list-heading{padding:12px 10px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}
#ved .ved-product-items{margin:0;padding:0;list-style:none}
#ved .ved-product-items>li{padding:12px 10px;border-bottom:1px solid var(--line);font-size:14px;line-height:1.5}
#ved .ved-product-items>li:nth-child(even){background:rgba(125,151,180,.035)}
#ved .ved-product-position{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
#ved .ved-product-description{min-width:0;overflow-wrap:anywhere;color:var(--text)}
#ved .ved-product-remove{display:grid;place-items:center;box-sizing:border-box;width:36px;height:36px;min-height:36px;margin:0;padding:0;border:1px solid rgba(239,68,68,.35);border-radius:8px;background:rgba(239,68,68,.04);color:#ff7373;font:inherit;font-size:24px;line-height:1;cursor:pointer}
#ved .ved-product-remove:hover{background:rgba(239,68,68,.12)}
#ved .ved-product-remove:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#ved .ved-product-empty{display:flex;flex-direction:column;align-items:center;gap:10px;min-height:190px;justify-content:center;text-align:center;padding:24px;color:var(--muted)}
#ved .ved-product-empty>svg{width:32px;height:32px;opacity:.65}
#ved .ved-product-empty>strong{font-size:14px;font-weight:600}
#ved .ved-product-empty>p{margin:0;font-size:12px;line-height:1.5}
#ved #ved-order-document-dialog [hidden]{display:none!important}
#ved #ved-order-document-dialog>.ved-order-form>footer{position:sticky;bottom:0;z-index:2;flex:none;align-items:center;justify-content:space-between;gap:20px;margin:24px -28px 0;padding:14px 28px;background:var(--panel,#151d28);box-shadow:0 -6px 20px rgba(0,0,0,.04)}
#ved .ved-order-total{width:260px;grid-template-columns:1fr}
#ved .ved-order-total label>span{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
#ved .ved-order-total label>span small{font-weight:400}
#ved .ved-order-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}
#ved .ved-order-actions>button{flex:none;width:auto;white-space:nowrap}
body:not(.admin-dark) #ved #ved-order-document-dialog :is(.ved-order-products,.ved-order-requisites){background:#fff}
body:not(.admin-dark) #ved #ved-order-document-dialog>header,body:not(.admin-dark) #ved #ved-order-document-dialog>.ved-order-form>footer,body:not(.admin-dark) #ved :is(.ved-product-results,.ved-product-search-control input){background:#fff}
body:not(.admin-dark) #ved .ved-product-count{color:#047857}
body:not(.admin-dark) #ved .ved-product-remove{color:#dc2626}
@media(max-width:1000px){
  #ved #ved-order-document-dialog .ved-order-editor{grid-template-columns:1fr;gap:18px}
  #ved #ved-order-document-dialog .ved-order-requisites{grid-column:1;grid-row:1}
  #ved #ved-order-document-dialog .ved-order-products{grid-column:1;grid-row:2}
  #ved #ved-order-document-dialog .ved-order-requisites-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:600px){
  #ved #ved-order-document-dialog>header{padding:14px 16px}
  #ved #ved-order-document-dialog>.ved-order-form{padding:14px 16px 0}
  #ved #ved-order-document-dialog :is(.ved-order-requisites,.ved-order-products){padding:14px}
  #ved #ved-order-document-dialog .ved-order-requisites-fields{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:14px 10px}
  #ved #ved-order-document-dialog .ved-order-requisites-fields>label:nth-child(3){grid-column:1/-1}
  #ved #ved-order-document-dialog>.ved-order-form>footer{position:static;flex-wrap:wrap;margin:18px -16px 0;padding:14px 16px;gap:14px}
  #ved .ved-order-total{width:100%}
  #ved .ved-order-actions{width:100%}
  #ved .ved-order-actions>button{flex:1;min-width:0;padding:10px 12px;white-space:normal}
  #ved .ved-product-list-heading,#ved .ved-product-items>li{grid-template-columns:20px minmax(0,1fr) 32px;gap:8px;padding-left:0;padding-right:0}
  #ved .ved-product-remove{width:32px;height:32px;min-height:32px}
  #ved .ved-product-items>li{font-size:13px}
#ved .ved-product-empty{padding:20px 8px}
}

/* Item quantities and prices use a single, full-width document table. */
#ved #ved-order-document-dialog .ved-order-editor{grid-template-columns:minmax(500px,680px) minmax(0,1fr);grid-template-rows:auto 1fr;gap:20px;align-content:start}
#ved #ved-order-document-dialog .ved-order-products{grid-column:1/-1;grid-row:2;min-height:260px}
#ved #ved-order-document-dialog .ved-order-requisites{grid-column:1;grid-row:1;padding:16px 20px;justify-self:start;width:100%;box-sizing:border-box}
#ved #ved-order-document-dialog .ved-order-requisites h4{margin-bottom:12px}
#ved #ved-order-document-dialog .ved-order-requisites-fields{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
#ved #ved-order-document-dialog .ved-order-requisites-fields>label{grid-column:span 2}
#ved #ved-order-document-dialog .ved-order-requisites-fields>.ved-order-party-field{grid-column:span 3}
#ved #ved-order-document-dialog .ved-order-requisites-fields input[type=date]{font-size:14px;padding:10px 12px}
#ved .ved-product-picker{max-width:820px}
#ved .ved-product-table-wrap{max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:9px;overscroll-behavior-x:contain}
#ved .ved-product-table{width:100%;min-width:1100px;table-layout:fixed;margin:0;border-collapse:separate;border-spacing:0;font-size:13px}
#ved .ved-product-table .ved-line-number{width:56px}
#ved .ved-product-table .ved-line-article{width:100px}
#ved .ved-product-table .ved-line-name{width:auto}
#ved .ved-product-table .ved-line-quantity{width:122px}
#ved .ved-product-table .ved-line-price{width:140px}
#ved .ved-product-table .ved-line-unit{width:90px}
#ved .ved-product-table .ved-line-sum{width:160px}
#ved .ved-product-table :is(th,td){padding:12px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:transparent;color:var(--text);vertical-align:middle;line-height:1.45}
#ved .ved-product-table :is(th,td):last-child{border-right:0}
#ved .ved-product-table tbody tr:last-child td{border-bottom:0}
#ved .ved-product-table th{background:rgba(125,151,180,.08);font-size:12px;color:var(--muted);font-weight:700;text-align:left;white-space:nowrap}
#ved .ved-product-table th:nth-child(n+4):nth-child(-n+8){text-align:right}
#ved .ved-product-table tbody tr:nth-child(even) td{background:rgba(125,151,180,.035)}
#ved .ved-product-table tbody tr{cursor:pointer}
#ved .ved-product-table tbody tr:hover td{background:rgba(16,185,129,.05)}
#ved .ved-product-table tbody tr.is-selected td{background:rgba(16,185,129,.13);box-shadow:inset 0 1px rgba(52,211,153,.45),inset 0 -1px rgba(52,211,153,.45)}
#ved .ved-product-table tbody tr.is-selected td:first-child{box-shadow:inset 3px 0 #34d399,inset 0 1px rgba(52,211,153,.45),inset 0 -1px rgba(52,211,153,.45)}
#ved .ved-product-table tbody tr:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
#ved .ved-product-table .ved-product-position{font-size:12px;text-align:center;color:var(--muted)}
#ved .ved-product-table .ved-product-article{font-weight:700;overflow-wrap:anywhere;white-space:normal;font-size:inherit}
#ved .ved-product-table .ved-product-description{overflow-wrap:anywhere;white-space:normal;font-size:inherit;min-width:150px}
#ved .ved-product-table .ved-line-input-cell{padding:8px}
#ved .ved-product-table input{box-sizing:border-box;width:100%;min-width:0;height:40px;margin:0;padding:8px 10px;border:1px solid var(--line);border-radius:7px;background:var(--panel,#151d28);color:var(--text);font:inherit;font-size:13px;text-align:right;font-variant-numeric:tabular-nums}
#ved .ved-product-table input[data-ved-line-unit]{text-align:left}
#ved .ved-product-table input:focus{outline:2px solid rgba(52,211,153,.55);outline-offset:1px}
#ved .ved-product-table input:invalid{border-color:rgba(248,113,113,.65)}
#ved .ved-product-table :is(.ved-line-money,output){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
#ved .ved-product-table .ved-line-total{font-weight:700;background:rgba(16,185,129,.045)}
#ved .ved-order-total{display:grid;gap:4px;width:auto;min-width:260px;max-width:100%}
#ved .ved-order-total>span{display:flex;align-items:baseline;gap:12px;font-size:13px;font-weight:700;color:var(--text)}
#ved .ved-order-total>span>small{font-weight:500}
#ved .ved-order-total>output{display:block;color:var(--text);font-size:24px;font-weight:700;line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#ved .ved-order-total>[data-ved-total-hint]{font-size:11px;line-height:1.5}
body:not(.admin-dark) #ved .ved-product-table input{background:#fff}
@media(max-width:1000px){
  #ved #ved-order-document-dialog .ved-order-editor{grid-template-columns:1fr}
  #ved #ved-order-document-dialog .ved-order-requisites{grid-column:1;justify-self:start;width:min(680px,100%);box-sizing:border-box}
  #ved #ved-order-document-dialog .ved-order-products{grid-column:1;min-width:0}
}
@media(max-width:600px){
  #ved #ved-order-document-dialog .ved-order-requisites{padding:14px}
  #ved #ved-order-document-dialog .ved-order-requisites-fields{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
  #ved #ved-order-document-dialog .ved-order-requisites-fields>label{grid-column:span 1}
  #ved #ved-order-document-dialog .ved-order-requisites-fields>label:nth-child(3),#ved #ved-order-document-dialog .ved-order-requisites-fields>.ved-order-party-field{grid-column:1/-1}
  #ved .ved-order-total{width:100%;min-width:0}
  #ved .ved-product-table{font-size:12px}
}

/* VED uses the canonical FECOR ERP control tokens (B2B / Potential clients).
   Scoped to this module; document exports retain their independent A4 print styles. */
#ved.foreign-trade-panel{
  --ved-control-height:var(--fecor-control,35px);
  --ved-control-radius:var(--fecor-radius,6px);
  --ved-field-background:#fff;
  --ved-field-border:#cfd7e2;
  --ved-content-gutter:24px;
  --ved-card-padding:16px;
  --ved-focus:rgba(214,162,31,.74);
  font-size:12px;
  line-height:1.45;
}
body.admin-dark #ved{--ved-field-background:#0d141d;--ved-field-border:#3b4655}
#ved :is(.foreign-trade-head,.ved-order-dialog>header){gap:16px;padding:20px var(--ved-content-gutter)}
#ved .foreign-trade-head h2{font-size:20px;line-height:1.3}
#ved .foreign-trade-head p{font-size:13px;line-height:1.5}
#ved #ved-honest-sign{grid-template-columns:auto minmax(0,1fr);gap:12px;padding:12px var(--ved-content-gutter)}
#ved #ved-honest-sign .foreign-trade-mark{width:40px;height:40px}
#ved #ved-honest-sign .foreign-trade-mark svg{width:21px;height:21px}
#ved #ved-honest-sign h2{margin:2px 0 0}
#ved :is(.chz-workspace,.ved-orders-workspace,.ved-supplies-workspace,.ved-payment-workspace,.ved-placeholder-workspace){padding:20px var(--ved-content-gutter);gap:16px}
#ved .chz-primary-grid{gap:16px}
#ved :is(.chz-card,.ved-orders-table-wrap){border-color:var(--line);border-radius:12px}
#ved .chz-card-head{flex-wrap:wrap;gap:12px;padding:var(--ved-card-padding);min-height:72px}
#ved .chz-card-head h3,#ved #ved-order-document-dialog h4{font-size:16px;line-height:1.4}
#ved .chz-card-head small{font-size:11px;line-height:1.4;letter-spacing:.03em}
#ved .chz-card-head :is(em,b),#ved :is(.chz-mode,.chz-status){font-size:12px;font-weight:600}
#ved .chz-card-head>.chz-pdf-mark>b{font-size:11px}
#ved :is(.chz-form,.chz-template-facts){padding:var(--ved-card-padding)}
#ved :is(.chz-form-grid,.chz-fieldset,.ved-order-fields,.ved-mail-fields){gap:12px}
#ved .chz-fieldset{min-width:0;padding:12px;border-color:var(--line);border-radius:var(--ved-control-radius)}
#ved .chz-fieldset legend{max-width:100%;font-size:11px;line-height:16px;font-weight:600;white-space:normal}
#ved :is(.chz-form,.chz-reprint,.ved-order-fields,.ved-mail-fields) label{margin:0;min-width:0}
#ved .chz-form label:not(.chz-file-field):not(.chz-approval):not(.chz-confirm),
#ved :is(.ved-order-fields label,.ved-order-party-field,.ved-mail-fields>label,.chz-reprint label){gap:6px}
#ved :is(.chz-form,.chz-fieldset,.chz-reprint) label>span:not(.chz-article-search-control),
#ved :is(.ved-order-fields label>span,.ved-order-party-field>label,.ved-product-picker>label,.ved-mail-fields>label){
  color:var(--text);font-size:11px;line-height:16px;font-weight:600;
}
#ved .chz-form input:not([type=hidden]):not([type=file]):not([type=checkbox]),
#ved .chz-form select,#ved .ved-order-fields :is(input,select),
#ved .ved-mail-fields input:not([type=checkbox]),#ved .ved-product-search-control input,
#ved .ved-product-table input,#ved #ved-order-document-dialog .ved-order-requisites-fields input[type=date]{
  box-sizing:border-box;width:100%;min-width:0;height:var(--ved-control-height);min-height:var(--ved-control-height);
  margin:0;padding:7px 9px;border:1px solid var(--ved-field-border);border-radius:var(--ved-control-radius);
  background:var(--ved-field-background);color:var(--text);font:inherit;font-size:12px;line-height:16px;font-weight:400;
}
#ved :is(.chz-form,.chz-reprint,.ved-mail-fields) textarea,#ved .ved-mail-fields textarea:not([hidden]){
  width:100%;min-width:0;height:auto;min-height:88px;margin:0;padding:7px 9px;
  border:1px solid var(--ved-field-border);border-radius:var(--ved-control-radius);background:var(--ved-field-background);
  color:var(--text);font:inherit;font-size:12px;line-height:1.5;font-weight:400;resize:vertical;
}
#ved .ved-mail-fields textarea:not([hidden]){min-height:120px}
#ved :is(.chz-form,.chz-reprint,.ved-order-fields,.ved-mail-fields,.ved-product-search-control,.ved-product-table) :is(input,select,textarea):focus-visible{
  outline:2px solid var(--ved-focus);outline-offset:1px;box-shadow:none;
}
#ved :is(.chz-form,.ved-order-fields,.ved-product-table) :is(input:not(.chz-article-template-input),select):disabled,
#ved .chz-fieldset:disabled{opacity:.6}
#ved .ved-order-fields input[readonly]{color:var(--muted)}
#ved :is(.chz-form,.chz-reprint,.ved-mail-fields) input[type=checkbox],#ved .chz-production-approval .chz-confirm input{
  width:18px;height:18px;min-height:18px;flex:0 0 18px;margin:1px 0 0;padding:0;accent-color:#059669;
}
body.admin-dark #ved :is(.chz-form,.chz-reprint,.ved-order-fields) :is(select,input[type=date]){color-scheme:dark}
#ved :is(.chz-form label>small,.chz-fieldset>small,.chz-article-template-meta small,.chz-file-field small,
  .chz-approval small,.chz-process-warning span,.chz-production-approval p span,.chz-template-facts dt,
  .chz-form>footer p,.chz-empty-state p,.chz-readonly-note,.chz-audit-ok span,.chz-preview-empty){
  font-size:11px;line-height:1.5;
}
#ved :is(.chz-principles strong,.chz-file-field strong,.chz-approval strong,.chz-process-warning strong,
  .chz-production-approval p strong,.chz-template-facts dd,.chz-audit-ok strong,.chz-error-list strong){font-size:12px;line-height:1.5}
#ved .chz-principles small{font-size:11px;line-height:1.5}
#ved .chz-approval>span,#ved .chz-process-warning p{min-width:0;overflow-wrap:anywhere}
#ved .chz-article-template-meta{align-items:flex-start;flex-wrap:wrap;gap:4px 12px}
#ved .chz-article-template-meta small{white-space:normal;overflow-wrap:anywhere}
#ved .chz-article-template-meta [data-chz-template-file-name]{max-width:100%;text-align:left}
#ved .chz-file-field{padding:12px;border-radius:var(--ved-control-radius)}
#ved .chz-file-field small{white-space:normal;overflow-wrap:anywhere}
#ved .chz-article-entry-row{grid-template-columns:minmax(0,1fr) var(--ved-control-height) var(--ved-control-height);gap:8px}
#ved .chz-article-entry-row>.chz-article-field{grid-column:auto}
#ved .chz-form .chz-article-entry-row>.chz-article-template-action{
  width:var(--ved-control-height);height:var(--ved-control-height);min-height:var(--ved-control-height);border-color:var(--ved-field-border);border-radius:var(--ved-control-radius);
}
#ved .chz-article-results{top:calc(100% + 4px);border-color:var(--line);border-radius:var(--ved-control-radius)}
#ved .chz-form .chz-article-option{min-height:var(--ved-control-height);line-height:1.5}
#ved .chz-article-option strong{font-size:12px}
#ved .chz-article-option small,#ved .chz-article-empty{font-size:11px}
#ved .chz-form>footer{gap:12px;margin:16px calc(-1 * var(--ved-card-padding)) calc(-1 * var(--ved-card-padding));padding:12px var(--ved-card-padding)}
#ved .chz-form>footer p{flex:1;min-width:0}
#ved .chz-form>footer button{width:auto;flex:none}
#ved .chz-batch-form .chz-form-grid{grid-template-columns:minmax(0,1fr);gap:10px}
#ved .chz-batch-article-row,#ved .chz-batch-details-row,#ved .chz-batch-action-row{display:grid;min-width:0;gap:10px}
#ved .chz-batch-article-row{grid-template-columns:minmax(0,1fr) auto;align-items:end}
#ved .chz-batch-article-row>label,#ved .chz-batch-details-row>label{min-width:0}
#ved .chz-batch-article-row>.chz-codes-template-link{box-sizing:border-box;min-height:var(--ved-control-height);padding:7px 10px;white-space:nowrap}
#ved .chz-batch-details-row{grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr) minmax(0,1fr);align-items:start}
#ved .chz-batch-details-row [data-chz-mode-hint]{font-size:10px;line-height:1.3}
#ved .chz-batch-action-row{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:stretch}
#ved .chz-batch-action-row>.chz-file-field{box-sizing:border-box;min-width:0;height:var(--ved-control-height);min-height:var(--ved-control-height);padding:4px 9px;overflow:hidden}
#ved .chz-batch-action-row>.chz-file-field>svg{width:17px;height:17px}
#ved .chz-batch-action-row>.chz-file-field>span{display:flex;align-items:center;min-width:0;gap:8px;overflow:hidden;white-space:nowrap}
#ved .chz-batch-action-row>.chz-file-field strong{flex:none;white-space:nowrap}
#ved .chz-batch-action-row>.chz-file-field small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ved .chz-batch-action-row>.chz-primary-button{box-sizing:border-box;width:100%;min-width:0;height:var(--ved-control-height);min-height:var(--ved-control-height);margin:0;padding:5px 8px;white-space:nowrap}
@media(max-width:480px){
  #ved .chz-batch-article-row,#ved .chz-batch-action-row{grid-template-columns:minmax(0,1fr)}
  #ved .chz-batch-article-row>.chz-codes-template-link{justify-self:start}
  #ved .chz-batch-details-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  #ved .chz-batch-details-row>label:last-child{grid-column:1/-1}
}
#ved .chz-settings-form .chz-form-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:8px 10px;align-items:start}
#ved .chz-settings-form .chz-form-grid>.chz-version-field{grid-column:span 2}
#ved .chz-settings-form .chz-form-grid>.chz-code128-field{grid-column:span 10}
#ved .chz-settings-form .chz-form-grid>.chz-label-size-fields{grid-column:span 4}
#ved .chz-settings-form .chz-form-grid>.chz-coordinate-fields{grid-column:span 8}
#ved .chz-settings-form .chz-form-grid>:is(.chz-quiet-zone-field,.chz-x-dimension-field,.chz-print-profile-field,.chz-print-dpi-field){grid-column:span 3}
#ved .chz-settings-form .chz-form-grid>label:not(.chz-approval),#ved .chz-settings-form .chz-fieldset label{gap:3px}
#ved .chz-settings-form .chz-fieldset{gap:7px;padding:7px 9px 9px}
#ved .chz-settings-form .chz-fieldset legend{font-size:10px;line-height:14px}
#ved .chz-settings-form .chz-form-grid>label:not(.chz-approval) :is(input,select),#ved .chz-settings-form .chz-fieldset input{height:32px;min-height:32px;padding:5px 8px}
#ved .chz-settings-form .chz-form-grid>label:not(.chz-approval)>span,#ved .chz-settings-form .chz-fieldset label>span{font-size:10px;line-height:14px}
#ved .chz-settings-form .chz-numbering-toggle,#ved .chz-settings-form .chz-form-grid>.chz-approval{align-items:center;gap:8px;padding:7px 9px}
#ved .chz-settings-form .chz-numbering-toggle>span{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 8px}
@media(max-width:760px){
  #ved .chz-settings-form .chz-form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  #ved .chz-settings-form .chz-form-grid>:is(.chz-version-field,.chz-quiet-zone-field,.chz-x-dimension-field,.chz-print-profile-field,.chz-print-dpi-field){grid-column:span 2}
  #ved .chz-settings-form .chz-form-grid>:is(.chz-code128-field,.chz-label-size-fields,.chz-coordinate-fields){grid-column:1/-1}
}
@media(max-width:520px){#ved .chz-settings-form .chz-coordinate-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
#ved :is(.chz-form>footer button,.chz-primary-button,.chz-production-approval button,.chz-reprint button,
  .chz-card-head>a,.ved-order-output-tools button,.ved-line-move-tools button,.ved-order-form>footer button,.ved-orders-pagination a){
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:var(--ved-control-height);margin-top:0;margin-bottom:0;padding:7px 9px;
  border-radius:var(--ved-control-radius);font:inherit;font-size:12px;line-height:19px;font-weight:600;
}
#ved :is(.chz-primary-button,.chz-production-approval button,.chz-reprint button){white-space:normal}
#ved :is(.chz-form>footer button,.chz-primary-button,.chz-production-approval button,.chz-reprint button){
  border:1px solid rgba(var(--chz-green-rgb),.55);background:rgba(var(--chz-green-rgb),.09);color:var(--chz-green);
}
#ved :is(.chz-form>footer button,.chz-primary-button,.chz-production-approval button,.chz-reprint button):not(:disabled):hover{
  background:rgba(var(--chz-green-rgb),.17);border-color:var(--chz-green);
}
#ved :is(button,a) svg{flex:none;width:var(--fecor-icon,15px);height:var(--fecor-icon,15px)}
#ved :is(.ved-order-party-control button,.ved-line-move-tools button,.ved-order-output-tools button,.chz-article-template-action,.chz-history-search button,.chz-history-search a) svg,
#ved .chz-history-search label>svg{width:var(--fecor-icon,15px);height:var(--fecor-icon,15px)}
#ved :is(.ved-order-create,.ved-order-party-control button){
  flex:0 0 var(--ved-control-height);width:var(--ved-control-height);height:var(--ved-control-height);
  min-height:var(--ved-control-height);border-radius:var(--ved-control-radius);
}
#ved .ved-order-create{font-size:28px}
#ved .ved-order-dialog-close{width:32px;height:32px;min-height:32px;flex:0 0 32px;padding:0;border-radius:var(--ved-control-radius);font-size:24px}
#ved .chz-production-approval{grid-template-columns:minmax(0,1fr) auto;gap:12px;margin:16px var(--ved-card-padding) 0;padding:12px;border-radius:var(--ved-control-radius)}
#ved .chz-production-approval>div{grid-column:1/-1}
#ved .chz-production-approval .chz-confirm{margin:0;font-size:12px;line-height:1.5}
#ved .chz-production-approval p span{white-space:normal;overflow-wrap:anywhere}
#ved .chz-production-approval button{width:auto}
#ved .chz-history-search{gap:8px;min-width:0;max-width:100%}
#ved .chz-history-search label{width:240px;height:var(--ved-control-height);min-height:var(--ved-control-height);padding:0 9px;background:var(--ved-field-background);border-color:var(--ved-field-border);border-radius:var(--ved-control-radius)}
#ved .chz-history-search input{font-size:12px;line-height:16px}
#ved .chz-history-search label:focus-within{outline:2px solid var(--ved-focus);outline-offset:1px}
#ved .chz-history-search :is(button,a){flex:0 0 var(--ved-control-height);width:var(--ved-control-height);height:var(--ved-control-height);min-height:var(--ved-control-height);border-radius:var(--ved-control-radius)}
#ved .chz-history-search svg{width:var(--fecor-icon,15px);height:var(--fecor-icon,15px)}
#ved :is(.chz-history-table,.ved-orders-table,.ved-product-table){font-size:12px}
#ved :is(.chz-history-table,.ved-orders-table) :is(th,td){padding:12px 16px;font-size:12px;line-height:1.45}
#ved .ved-product-table :is(th,td){font-size:12px}
#ved .chz-history-table th{font-size:12px;text-transform:none;letter-spacing:normal;border-right:1px solid var(--line)}
#ved .chz-history-table td{font-size:12px;border-right:1px solid var(--line);vertical-align:middle}
#ved .chz-history-table :is(th,td):last-child{border-right:0}
#ved .chz-history-table :is(td>small,.chz-batch-link small){font-size:11px;line-height:1.45}
#ved .chz-error-caption{min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:normal}
#ved .chz-file-actions{gap:8px}
#ved .chz-file-actions>a{min-height:32px;padding:6px 8px;font-size:12px;line-height:18px;font-weight:600;border-radius:var(--ved-control-radius)}
#ved .chz-file-actions svg{width:16px;height:16px;flex:none}
#ved .chz-reprint>summary{min-height:32px;font-size:12px}
#ved .chz-reprint .chz-confirm{font-size:12px;line-height:1.5;margin:12px 0}
#ved .chz-reprint .chz-confirm>span{min-width:0;white-space:normal;overflow-wrap:anywhere}
#ved .chz-error-list li{grid-template-columns:100px minmax(0,1fr)}
#ved .chz-error-list span{font-size:12px}
#ved .chz-error-list strong{overflow-wrap:anywhere}
#ved .ved-order-dialog h3{font-size:20px}
#ved .ved-order-form{padding:16px var(--ved-content-gutter) 0}
#ved .ved-order-form>footer{gap:8px;margin:16px calc(-1 * var(--ved-content-gutter)) 0;padding:16px var(--ved-content-gutter)}
#ved #ved-order-document-dialog>header{padding:16px var(--ved-content-gutter)}
#ved #ved-order-document-dialog>.ved-order-form{padding:16px var(--ved-content-gutter) 0}
#ved #ved-order-document-dialog .ved-order-editor{gap:16px}
#ved #ved-order-document-dialog :is(.ved-order-requisites,.ved-order-products){padding:var(--ved-card-padding)}
#ved #ved-order-document-dialog .ved-order-requisites-fields{gap:12px}
#ved #ved-order-document-dialog>.ved-order-form>footer{gap:16px;margin:16px calc(-1 * var(--ved-content-gutter)) 0;padding:16px var(--ved-content-gutter)}
#ved :is(.ved-order-products-heading,.ved-product-picker){margin-bottom:16px}
#ved .ved-product-picker>label{line-height:16px;margin-bottom:6px}
#ved .ved-product-search-control input{padding-left:34px}
#ved .ved-product-search-control>svg{width:var(--fecor-icon,15px);height:var(--fecor-icon,15px);left:10px;top:50%;transform:translateY(-50%)}
#ved .ved-product-add-row{display:flex;align-items:center;gap:8px;min-width:0}
#ved .ved-product-add-row>.ved-product-search-control{flex:0 1 274px;min-width:0}
#ved .ved-product-add-button{box-sizing:border-box;display:grid;place-items:center;flex:none;width:var(--ved-control-height);height:var(--ved-control-height);min-height:var(--ved-control-height);margin:0;padding:0;border:1px solid var(--ved-field-border);border-radius:var(--ved-control-radius);background:var(--ved-field-background);color:var(--text);cursor:pointer}
#ved .ved-product-add-button:hover{border-color:#34d399;background:rgba(16,185,129,.12)}
#ved .ved-product-add-button:focus-visible{outline:2px solid var(--ved-focus);outline-offset:1px}
#ved .ved-product-add-button svg{width:var(--fecor-icon,15px);height:var(--fecor-icon,15px)}
#ved .ved-product-results{right:auto;width:min(100%,430px)}
#ved .ved-product-results{top:calc(var(--ved-control-height) + 6px)}
#ved .ved-product-results>button{min-height:var(--ved-control-height);padding:8px 9px;font-size:12px}
#ved :is(.ved-order-output-tools,.ved-order-actions,.ved-line-move-tools){gap:8px}
#ved .ved-line-move-tools .ved-product-remove{display:grid;place-items:center;flex:none;width:var(--ved-control-height);height:var(--ved-control-height);min-height:var(--ved-control-height);padding:0;border-radius:var(--ved-control-radius);font-size:24px;line-height:1}
#ved .ved-line-move-tools .ved-product-remove:not(:disabled):hover{border-color:rgba(239,68,68,.65);background:rgba(239,68,68,.12)}
#ved .ved-order-output-tools{margin-bottom:12px}
body:not(.admin-dark) #ved .chz-workspace{--chz-green:#047857;--chz-green-rgb:5,150,105;--chz-red:#b91c1c;--chz-red-rgb:185,28,28;--chz-gold:#8a6300}
@media(max-width:1180px){
  #ved .chz-form>footer{flex-wrap:wrap}
}
@media(max-width:720px){
  #ved.foreign-trade-panel{--ved-content-gutter:16px;--ved-card-padding:12px}
  #ved .foreign-trade-head{padding:16px var(--ved-content-gutter)}
  #ved .foreign-trade-head h2{font-size:20px}
  #ved :is(.chz-workspace,.ved-orders-workspace,.ved-supplies-workspace,.ved-payment-workspace,.ved-placeholder-workspace){padding:16px var(--ved-content-gutter)}
  #ved .chz-form>footer button{width:100%}
  #ved .chz-article-entry-row{grid-template-columns:var(--ved-control-height) var(--ved-control-height) minmax(0,1fr)}
  #ved .chz-article-entry-row>.chz-article-field{grid-column:1/-1}
  #ved .chz-production-approval{grid-template-columns:minmax(0,1fr)}
  #ved .chz-production-approval button{width:100%}
  #ved .chz-history-search label{width:auto;flex:1;min-width:0}
  #ved .chz-card-head>a{white-space:normal}
  #ved .chz-error-list li{grid-template-columns:minmax(0,1fr);gap:4px}
}
@media(max-width:600px){#ved .ved-product-add-row>.ved-product-search-control{flex:1 1 auto}}
@media(max-width:600px){
  /* Long contact-card captions must not stretch neighbouring actions on phones. */
  #ved :is(.ved-party-dialog,.ved-mail-dialog) .ved-order-form>footer{flex-direction:column;align-items:stretch}
  #ved :is(.ved-party-dialog,.ved-mail-dialog) .ved-order-form>footer button{width:100%}
}

/* Each supply opens as a full-screen document, with sections reserved for later data. */
#ved #ved-supply-dialog{position:fixed;inset:0;box-sizing:border-box;width:100%;height:100dvh;max-width:100%;max-height:100dvh;margin:0;border:0;border-radius:0;overflow:auto;overscroll-behavior:contain}
#ved #ved-supply-dialog[open]{display:flex;flex-direction:column}
#ved #ved-supply-dialog>header{flex:none;gap:12px;padding:10px var(--ved-content-gutter);background:var(--panel,#151d28)}
#ved #ved-supply-dialog .ved-supply-header-main{flex:1;min-width:0}
#ved #ved-supply-dialog .ved-supply-header-main>small{display:block;font-size:11px;line-height:15px}
#ved #ved-supply-dialog .ved-supply-title-row{display:flex;align-items:center;gap:10px 18px;flex-wrap:wrap;margin-top:3px}
#ved #ved-supply-dialog .ved-supply-title-row h3{margin:0;font-size:20px;line-height:1.2}
#ved #ved-supply-dialog .ved-supply-header-date{display:flex;align-items:center;gap:8px;margin:0;color:var(--muted);font-size:11px;font-weight:600;white-space:nowrap}
#ved #ved-supply-dialog .ved-supply-header-date input{box-sizing:border-box;width:150px;height:32px;min-height:0;padding:4px 7px;border:1px solid var(--ved-field-border,var(--line));border-radius:var(--ved-control-radius,7px);background:var(--ved-field-background,var(--panel));color:var(--text);color-scheme:dark;font:inherit;font-size:12px;font-weight:400}
body:not(.admin-dark) #ved #ved-supply-dialog .ved-supply-header-date input{color-scheme:light}
#ved #ved-supply-dialog>.ved-order-form{display:flex;flex:1;flex-direction:column;min-height:0;padding:10px var(--ved-content-gutter) 0}
#ved #ved-supply-dialog [hidden]{display:none!important}
#ved #ved-supply-dialog .ved-supply-intro{justify-content:flex-start;gap:24px;min-width:0;margin-bottom:10px}
#ved #ved-supply-dialog .ved-supply-intro>span{min-width:0;overflow-wrap:anywhere}
#ved #ved-supply-dialog .ved-supply-toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px;min-width:0}
#ved #ved-supply-dialog .ved-supply-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-self:flex-start;flex:none;width:468px;max-width:100%;min-width:0;overflow:visible;border-bottom:1px solid var(--line)}
#ved #ved-supply-dialog .ved-supply-tabs button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:36px;margin:0 0 -1px;padding:6px 10px;border:1px solid transparent;border-bottom:2px solid transparent;border-radius:8px 8px 0 0;background:transparent;color:var(--muted);font:inherit;font-size:12px;font-weight:700;line-height:1.3;text-align:center;white-space:normal;cursor:pointer}
#ved #ved-supply-dialog .ved-supply-tabs button:hover{color:var(--text);background:rgba(16,185,129,.07)}
#ved #ved-supply-dialog .ved-supply-tabs button[aria-selected="true"]{border-color:var(--line);border-bottom-color:#34d399;background:rgba(16,185,129,.1);color:#55d9a4}
#ved #ved-supply-dialog .ved-supply-tabs button:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
#ved #ved-supply-dialog .ved-supply-panel{flex:1;min-width:0;padding:18px 0}
#ved #ved-supply-dialog .ved-supply-rate{display:flex;align-items:center;gap:8px;min-width:0;margin-bottom:3px;color:var(--muted);font-size:12px;font-weight:600;white-space:nowrap}
#ved #ved-supply-dialog .ved-supply-rate input{box-sizing:border-box;width:132px;height:32px;min-height:0;padding:5px 8px;border:1px solid var(--ved-field-border,var(--line));border-radius:8px;background:var(--ved-field-background,var(--panel));color:var(--text);font:inherit;font-size:13px}
#ved #ved-supply-dialog .ved-supply-goods-table-wrap table{min-width:1540px;table-layout:fixed;font-size:12px}
#ved #ved-supply-dialog .ved-supply-goods-table-wrap :is(th,td){box-sizing:border-box;padding:6px 5px;line-height:1.25}
#ved #ved-supply-dialog .ved-supply-goods-table-wrap thead th:nth-child(1){width:36px}
#ved #ved-supply-dialog .ved-supply-goods-table-wrap thead th:nth-child(2){width:78px}
#ved #ved-supply-dialog .ved-supply-goods-table-wrap thead th:nth-child(3){width:330px}
#ved #ved-supply-dialog .ved-supply-goods-table-wrap thead th:nth-child(4){width:80px}
#ved #ved-supply-dialog .ved-supply-goods-table-wrap thead th:nth-child(5){width:72px}
#ved #ved-supply-dialog .ved-supply-goods-table-wrap thead th:nth-child(6){width:80px}
#ved #ved-supply-dialog .ved-supply-goods-table-wrap thead th:nth-child(7){width:96px}
#ved #ved-supply-dialog .ved-supply-goods-table-wrap thead th:nth-child(n+8):nth-child(-n+10){width:96px}
#ved #ved-supply-dialog .ved-supply-goods-table-wrap thead th:nth-child(n+11):nth-child(-n+12){width:102px}
#ved #ved-supply-dialog .ved-supply-goods-table-wrap thead th:nth-child(13){width:126px}
#ved #ved-supply-dialog .ved-supply-goods-table-wrap :is(th,td):last-child{width:42px;min-width:42px}
#ved #ved-supply-dialog .ved-supply-goods-table-wrap td:nth-child(3){min-width:0;overflow-wrap:anywhere}
#ved #ved-supply-dialog .ved-supply-goods-table-wrap input[data-supply-field]{width:100%;max-width:100%;height:32px;min-height:0;padding:4px 5px;font-size:12px}
#ved #ved-supply-dialog .ved-supply-goods-table-wrap :is([data-supply-amount],[data-supply-unit-rub],[data-supply-amount-rub],[data-supply-unit-rf]){white-space:nowrap;font-variant-numeric:tabular-nums}
#ved #ved-supply-dialog .ved-supply-goods-table-wrap{scrollbar-width:thin;scrollbar-color:var(--line) transparent}
#ved #ved-supply-dialog .ved-supply-table-wrap [data-supply-unit-rub],#ved #ved-supply-dialog .ved-supply-table-wrap [data-supply-amount-rub],#ved #ved-supply-dialog .ved-supply-table-wrap [data-ved-supply-total-rub]{white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
#ved #ved-supply-dialog [data-ved-supply-total-foreign]{white-space:nowrap;font-variant-numeric:tabular-nums}
#ved #ved-supply-dialog .ved-supply-customs-table-wrap table{min-width:1180px}
#ved #ved-supply-dialog .ved-supply-customs-table-wrap input{width:160px;max-width:100%}
#ved #ved-supply-dialog .ved-supply-customs-table-wrap :is(thead th:nth-child(n+4),tbody td:nth-child(n+4),tfoot td){text-align:right;font-variant-numeric:tabular-nums}
#ved #ved-supply-dialog .ved-supply-customs-table-wrap :is(th,td):last-child{width:240px;min-width:240px;border-right:0;text-align:right}
#ved #ved-supply-dialog .ved-supply-customs-table-wrap [data-supply-customs-line-total]{font-weight:700;white-space:nowrap}
#ved #ved-supply-dialog .ved-supply-services-table-wrap table{min-width:650px}
#ved #ved-supply-dialog .ved-supply-services-table-wrap tbody th{font-weight:600;color:var(--text);background:transparent}
#ved #ved-supply-dialog .ved-supply-services-table-wrap :is(th,td):last-child{width:180px;min-width:180px;text-align:right;border-right:0;font-variant-numeric:tabular-nums}
#ved #ved-supply-dialog .ved-supply-services-table-wrap input{width:160px;max-width:100%;text-align:right}
#ved #ved-supply-dialog .ved-supply-services-table-wrap tbody [data-ved-supply-service-line-total]{font-weight:700}
#ved #ved-supply-dialog .ved-supply-empty-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:220px;text-align:center;border:1px solid var(--line);border-radius:10px;margin-top:18px;background:var(--surface,#0d1520)}
#ved #ved-supply-dialog .ved-supply-empty-panel h4{margin:0 0 8px;font-size:17px}
#ved #ved-supply-dialog .ved-supply-empty-panel p{margin:0;color:var(--muted);font-size:13px}
#ved #ved-supply-dialog>.ved-order-form>footer{position:sticky;bottom:0;z-index:2;flex:none;align-items:center;justify-content:space-between;gap:16px;margin:16px calc(-1 * var(--ved-content-gutter)) 0;padding:16px var(--ved-content-gutter);background:var(--panel,#151d28)}
body:not(.admin-dark) #ved #ved-supply-dialog :is(.ved-supply-empty-panel){background:#fff}
@media(max-width:560px){
  #ved #ved-supply-dialog>header{padding:10px var(--ved-content-gutter)}
  #ved #ved-supply-dialog .ved-supply-title-row h3{font-size:18px}
  #ved #ved-supply-dialog .ved-supply-header-date input{width:135px}
  #ved #ved-supply-dialog .ved-supply-intro{gap:12px}
  #ved #ved-supply-dialog .ved-supply-toolbar{flex-wrap:wrap}
  #ved #ved-supply-dialog .ved-supply-tabs{grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
  #ved #ved-supply-dialog .ved-supply-tabs button{padding:6px;font-size:11px}
  #ved #ved-supply-dialog .ved-supply-rate{margin-left:auto}
  #ved #ved-supply-dialog>.ved-order-form>footer{flex-wrap:wrap}
}

/* VED payment documents and linked-order picker. */
#ved .ved-documents-workspace{padding:16px 20px 22px}
#ved .ved-orders-table.ved-documents-table{min-width:1370px;table-layout:fixed}
#ved .ved-orders-table.ved-documents-table thead th:nth-child(1){width:68px}
#ved .ved-orders-table.ved-documents-table thead th:nth-child(2){width:96px}
#ved .ved-orders-table.ved-documents-table thead th:nth-child(3){width:112px}
#ved .ved-orders-table.ved-documents-table thead th:nth-child(n+4){width:calc((100% - 276px)/6)}
#ved .ved-documents-table :is(th,td):nth-child(-n+3){white-space:nowrap}
#ved .ved-documents-table [data-ved-document-row]{cursor:pointer}
#ved .ved-documents-table [data-ved-document-row]:is(:hover,:focus-within) td{background:rgba(52,211,153,.075)}
#ved .ved-documents-table [data-ved-document-row].is-selected td{background:rgba(16,185,129,.16)}
#ved .ved-documents-table [data-ved-document-row].is-selected td:first-child{box-shadow:inset 3px 0 #34d399}
#ved .ved-document-links{display:flex;align-items:center;gap:8px;min-width:0}
#ved .ved-document-links>a:first-child{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--accent,#34d399);text-decoration:underline;text-underline-offset:2px}
#ved .ved-document-print{display:grid;place-items:center;flex:none;width:28px;height:28px;border:1px solid var(--line);border-radius:6px;color:var(--text)}
#ved .ved-document-print i{width:15px;height:15px}
#ved .ved-document-empty-cell{color:var(--muted)}
#ved .ved-document-create-draft{display:inline-block;color:var(--accent,#34d399);font-size:11px;font-weight:700;text-decoration:none;white-space:nowrap}
#ved .ved-document-create-draft:hover{text-decoration:underline}
#ved button.ved-document-create-draft{padding:0;border:0;background:none;font:inherit;font-size:11px;font-weight:700;cursor:pointer}
#ved .ved-document-attachment-grid [data-ved-generated-link]{justify-self:start;margin-top:2px}
#ved .ved-document-attachment-grid [data-ved-generated-link][hidden]{display:none!important}
#ved .ved-document-dialog{width:min(900px,calc(100vw - 32px))}
#ved .ved-document-dialog [hidden]{display:none!important}
#ved .ved-document-head-fields{grid-template-columns:minmax(0,250px)}
#ved .ved-document-attachment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
#ved .ved-document-attachment-grid section{display:grid;gap:8px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:var(--ved-control-radius);background:var(--ved-field-background)}
#ved .ved-document-attachment-grid h4{margin:0;font-size:13px}
#ved .ved-document-attachment-grid section>small{color:var(--accent,#34d399);font-size:11px}
#ved .ved-document-attachment-grid label{display:grid;gap:5px;min-width:0;color:var(--muted);font-size:11px}
#ved .ved-document-attachment-grid input{box-sizing:border-box;width:100%;min-width:0;min-height:var(--ved-control-height);padding:7px 9px;border:1px solid var(--ved-field-border);border-radius:var(--ved-control-radius);background:var(--ved-field-background);color:var(--text);font:inherit;font-size:12px}
#ved .ved-document-attachment-grid input[type=file]{padding:6px}
@media(max-width:650px){#ved .ved-documents-workspace{padding:10px}#ved .ved-document-attachment-grid{grid-template-columns:1fr}}
#ved .ved-payment-dialog{width:min(680px,calc(100vw - 32px))}
#ved .ved-payment-dialog [hidden]{display:none!important}
#ved .ved-payment-fields .ved-payment-wide{grid-column:1/-1}
#ved .ved-payment-fields output{box-sizing:border-box;display:flex;align-items:center;width:100%;min-height:var(--ved-control-height);padding:7px 10px;border:1px solid var(--ved-field-border);border-radius:var(--ved-control-radius);background:var(--ved-field-background);color:var(--text);font-size:12px}
#ved .ved-payment-order-picker{position:relative;margin-top:18px}
#ved .ved-payment-order-picker>label{display:block;margin-bottom:7px;color:var(--text);font-size:12px;font-weight:700}
#ved .ved-payment-order-picker>label small{margin-left:5px;color:var(--muted);font-size:11px;font-weight:400}
#ved .ved-payment-order-control{display:flex;gap:8px}
#ved .ved-payment-order-control input{box-sizing:border-box;flex:1;min-width:0;height:var(--ved-control-height);padding:7px 10px;border:1px solid var(--ved-field-border);border-radius:var(--ved-control-radius);background:var(--ved-field-background);color:var(--text);font:inherit;font-size:12px}
#ved .ved-payment-order-control button{box-sizing:border-box;width:var(--ved-control-height);height:var(--ved-control-height);min-height:var(--ved-control-height);padding:0;border:1px solid rgba(239,68,68,.4);border-radius:var(--ved-control-radius);background:rgba(239,68,68,.08);color:#ef7777;font:inherit;font-size:21px;cursor:pointer}
#ved .ved-payment-order-results{position:absolute;z-index:5;top:100%;left:0;right:0;max-height:250px;overflow:auto;margin-top:4px;border:1px solid var(--line);border-radius:var(--ved-control-radius);background:var(--panel,#151d28);box-shadow:0 14px 30px rgba(0,0,0,.22)}
#ved .ved-payment-order-results>button{display:block;width:100%;min-height:38px;padding:8px 10px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--text);font:inherit;font-size:12px;text-align:left;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
#ved .ved-payment-order-results>button:hover{background:rgba(16,185,129,.12)}
#ved .ved-payment-order-results>p{margin:0;padding:12px;color:var(--muted);font-size:12px}
#ved [data-ved-payment-order-selected]{display:block;margin-top:7px;color:var(--muted);font-size:11px}
#ved [data-ved-payment-order-selected]:empty{display:none}
#ved .ved-payment-table [data-ved-payment-row]{cursor:pointer}
#ved .ved-payment-table [data-ved-payment-row]:is(:hover,:focus-within) td{background:rgba(52,211,153,.075)}
#ved .ved-payment-table [data-ved-payment-row].is-selected td{background:rgba(16,185,129,.16)}
#ved .ved-payment-table [data-ved-payment-row].is-selected td:first-child{box-shadow:inset 3px 0 #34d399}
#ved .ved-payment-table [data-ved-payment-row]:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
body:not(.admin-dark) #ved .ved-payment-order-results{background:#fff}
@media(max-width:600px){
  #ved .ved-payment-fields{grid-template-columns:1fr}
  #ved .ved-payment-dialog .ved-order-form>footer{flex-wrap:wrap}
}

/* Keep supply goods aligned with the order grid and centre every VED × action. */
#ved .ved-supply-table-wrap :is(th,td){border-right:1px solid var(--line)}
#ved .ved-supply-table-wrap :is(th,td):last-child{border-right:0}
#ved .ved-supply-table-wrap tbody tr:nth-child(even) td{background:rgba(125,151,180,.035)}
#ved .ved-supply-table-wrap :is(th,td):last-child{width:54px;min-width:54px;text-align:center}
#ved .ved-supply-table-wrap [data-supply-remove]{display:block;position:relative;margin-inline:auto}
#ved :is(.ved-order-dialog-close,.ved-product-remove,.ved-supply-delete,[data-supply-remove],[data-ved-payment-order-clear]){position:relative;font-size:0}
#ved .ved-line-move-tools .ved-product-remove{font-size:0}
#ved .ved-supply-table-wrap [data-supply-remove],#ved .ved-payment-order-control [data-ved-payment-order-clear]{font-size:0}
#ved .ved-order-dialog-close>span{font-size:0}
#ved :is(.ved-order-dialog-close,.ved-product-remove,.ved-supply-delete,[data-supply-remove],[data-ved-payment-order-clear])::before,
#ved :is(.ved-order-dialog-close,.ved-product-remove,.ved-supply-delete,[data-supply-remove],[data-ved-payment-order-clear])::after{content:"";position:absolute;left:50%;top:50%;width:15px;height:2px;border-radius:2px;background:currentColor;pointer-events:none}
#ved :is(.ved-order-dialog-close,.ved-product-remove,.ved-supply-delete,[data-supply-remove],[data-ved-payment-order-clear])::before{transform:translate(-50%,-50%) rotate(45deg)}
#ved :is(.ved-order-dialog-close,.ved-product-remove,.ved-supply-delete,[data-supply-remove],[data-ved-payment-order-clear])::after{transform:translate(-50%,-50%) rotate(-45deg)}

/* One compact grid system for VED orders, payments and supplies; ChZ is separate. */
#ved :is(.ved-orders-table-wrap,.ved-product-table-wrap,.ved-supply-table-wrap){border:1px solid var(--line);border-radius:10px;overflow:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
#ved :is(.ved-orders-table,.ved-product-table,.ved-supply-table-wrap table){margin:0;font-size:12px;font-variant-numeric:tabular-nums}
#ved :is(.ved-orders-table,.ved-product-table,.ved-supply-table-wrap table) :is(th,td){box-sizing:border-box;padding:6px 8px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);vertical-align:middle;line-height:1.25}
#ved :is(.ved-orders-table,.ved-product-table,.ved-supply-table-wrap table) :is(th,td):last-child{border-right:0}
#ved :is(.ved-orders-table,.ved-product-table,.ved-supply-table-wrap table) thead th{background:rgba(125,151,180,.08);color:var(--muted);font-size:12px;font-weight:700}
#ved :is(.ved-orders-table,.ved-product-table,.ved-supply-table-wrap table) tbody tr:nth-child(even) :is(th,td){background:rgba(125,151,180,.035)}
#ved :is(.ved-orders-table,.ved-product-table,.ved-supply-table-wrap table) tbody tr:last-child :is(th,td){border-bottom:0}
#ved :is(.ved-orders-table,.ved-product-table,.ved-supply-table-wrap table) tfoot :is(th,td){border-top:2px solid var(--line);background:transparent;color:var(--text);font-weight:700}
#ved .ved-orders-table{min-width:785px;table-layout:fixed}
#ved .ved-orders-table thead th:nth-child(1){width:115px}
#ved .ved-orders-table thead th:nth-child(2){width:80px}
#ved .ved-orders-table thead th:nth-child(3){width:250px}
#ved .ved-orders-table thead th:nth-child(4){width:80px}
#ved .ved-orders-table thead th:nth-child(5){width:140px}
#ved .ved-orders-table thead th:nth-child(6){width:120px}
#ved .ved-orders-table .ved-order-edit{min-height:28px;margin:0;padding:4px 6px;font-size:12px}
#ved .ved-payment-table{min-width:1140px}
#ved .ved-payment-table thead th:nth-child(1){width:90px}
#ved .ved-payment-table thead th:nth-child(2){width:240px}
#ved .ved-payment-table thead th:nth-child(3){width:70px}
#ved .ved-payment-table thead th:nth-child(4){width:130px}
#ved .ved-payment-table thead th:nth-child(5){width:130px}
#ved .ved-payment-table thead th:nth-child(6){width:110px}
#ved .ved-payment-table thead th:nth-child(7){width:130px}
#ved .ved-payment-table thead th:nth-child(8){width:110px}
#ved .ved-payment-table thead th:nth-child(9){width:120px}
#ved .ved-supplies-table{min-width:1180px}
#ved .ved-supplies-table thead th:nth-child(1){width:100px}
#ved .ved-supplies-table thead th:nth-child(2){width:65px}
#ved .ved-supplies-table thead th:nth-child(3){width:230px}
#ved .ved-supplies-table thead th:nth-child(4){width:70px}
#ved .ved-supplies-table thead th:nth-child(5){width:130px}
#ved .ved-supplies-table thead th:nth-child(6){width:110px}
#ved .ved-supplies-table thead th:nth-child(7){width:120px}
#ved .ved-supplies-table thead th:nth-child(8){width:70px}
#ved .ved-supplies-table thead th:nth-child(n+9){width:95px}
#ved .ved-supplies-table :is(th,td):nth-child(n+7){text-align:right;white-space:nowrap}
#ved .ved-product-table{min-width:900px}
#ved .ved-product-table .ved-line-number{width:40px}
#ved .ved-product-table .ved-line-article{width:82px}
#ved .ved-product-table .ved-line-quantity{width:92px}
#ved .ved-product-table .ved-line-price{width:110px}
#ved .ved-product-table .ved-line-unit{width:65px}
#ved .ved-product-table .ved-line-sum{width:105px}
#ved .ved-product-table .ved-line-input-cell{padding:6px 5px}
#ved .ved-product-table input{height:32px;min-height:0;padding:4px 6px;font-size:12px}
#ved #ved-supply-dialog .ved-supply-customs-table-wrap table{min-width:970px;table-layout:fixed}
#ved #ved-supply-dialog .ved-supply-customs-table-wrap thead th:nth-child(1){width:40px}
#ved #ved-supply-dialog .ved-supply-customs-table-wrap thead th:nth-child(2){width:80px}
#ved #ved-supply-dialog .ved-supply-customs-table-wrap thead th:nth-child(3){width:330px}
#ved #ved-supply-dialog .ved-supply-customs-table-wrap thead th:nth-child(4){width:80px}
#ved #ved-supply-dialog .ved-supply-customs-table-wrap thead th:nth-child(5),#ved #ved-supply-dialog .ved-supply-customs-table-wrap thead th:nth-child(6){width:130px}
#ved #ved-supply-dialog .ved-supply-customs-table-wrap :is(th,td):last-child{width:180px;min-width:180px}
#ved #ved-supply-dialog .ved-supply-services-table-wrap table{min-width:520px;table-layout:fixed}
#ved #ved-supply-dialog .ved-supply-services-table-wrap thead th:nth-child(1){width:40px}
#ved #ved-supply-dialog .ved-supply-services-table-wrap thead th:nth-child(2){width:250px}
#ved #ved-supply-dialog .ved-supply-services-table-wrap thead th:nth-child(3){width:115px}
#ved #ved-supply-dialog .ved-supply-services-table-wrap :is(th,td):last-child{width:115px;min-width:115px}
#ved #ved-supply-dialog .ved-supply-table-wrap input{height:32px;min-height:0;padding:4px 6px;font-size:12px}
#ved #ved-supply-dialog .ved-supply-customs-table-wrap input,#ved #ved-supply-dialog .ved-supply-services-table-wrap input{width:100%;max-width:100%}
#ved .ved-receipt-dialog{width:min(1100px,calc(100vw - 32px))}
#ved .ved-receipt-table-wrap :is(th,td):last-child{width:160px;min-width:160px;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}

/* Keep native ERP select controls aligned across Windows and macOS. */
main.page select:not([multiple]):not([size]){
  -webkit-appearance:none;appearance:none;
  padding-right:34px!important;
  background-image:url('/assets/select-chevron.svg')!important;
  background-repeat:no-repeat!important;
  background-position:right 12px center!important;
  background-size:16px 16px!important;
}
main.page .site-b2b-product-default-fields select{background-image:none!important}
@media(forced-colors:active){main.page select:not([multiple]):not([size]){-webkit-appearance:auto;appearance:auto;background-image:none!important;padding-right:12px!important}}

/* Account settings popover follows the compact ERP header menu. */
.side-settings .settings-menu{box-sizing:border-box;width:min(300px,calc(100vw - 72px));min-width:0;max-height:min(420px,calc(100dvh - 20px));overflow-y:auto;gap:8px;padding:12px;border:1px solid var(--fecor-gold-line);border-radius:10px;background:var(--card);color:var(--text);box-shadow:0 18px 48px rgba(0,0,0,.3);backdrop-filter:none}
body.admin-dark .side-settings .settings-menu{background:#171d27}
.side-settings .settings-account-row{grid-template-columns:30px minmax(0,1fr);gap:9px;padding:0 2px 10px;border-bottom:1px solid var(--line)}
.side-settings .settings-account-row span{width:30px;height:30px;border:1px solid var(--fecor-gold-line);background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font-size:12px}
.side-settings .settings-account-row strong{color:var(--text);font-size:12px}
.side-settings .settings-password-form{gap:8px}
.side-settings .settings-password-form label,.side-settings .settings-password-form label strong{gap:4px;color:var(--text);font-size:10px}
.side-settings .settings-password-form :is(select,input),body.admin-dark .side-settings .settings-password-form :is(select,input){box-sizing:border-box;min-height:36px;height:36px;padding:6px 10px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);font:inherit;font-size:11px}
.side-settings .settings-password-form :is(select,input):focus-visible{border-color:var(--fecor-gold);outline:2px solid var(--fecor-gold-soft);outline-offset:1px}
.side-settings .settings-password-form button,body.admin-dark .side-settings .settings-password-form button{box-sizing:border-box;justify-content:center;gap:7px;min-height:36px;padding:7px 10px;border:1px solid var(--fecor-gold-line);border-radius:7px;background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font-size:11px;font-weight:750;box-shadow:none}
.side-settings .settings-password-form button:is(:hover,:focus-visible),body.admin-dark .side-settings .settings-password-form button:is(:hover,:focus-visible){border-color:var(--fecor-gold);background:rgba(214,162,31,.16);color:var(--fecor-gold-text)}
.side-settings .settings-menu .settings-logout{min-height:32px;gap:7px;padding:6px 9px;border-radius:7px;color:var(--text)!important;font-size:11px;font-weight:700}
.side-settings .settings-menu .settings-logout:is(:hover,:focus-visible){border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft)!important;color:var(--fecor-gold-text)!important}
.side-settings .settings-menu :is(button,a) svg{flex:none;width:15px;height:15px}

/* Fixed, inset product preview in the nomenclature footer. */
#b2b-nomenclature>.site-b2b-product-summary{flex:0 0 220px;grid-template-columns:220px minmax(0,.8fr) minmax(0,1.2fr);height:220px;min-height:220px;max-height:220px;margin-top:8px;margin-bottom:12px}
#b2b-nomenclature>.site-b2b-product-summary .site-b2b-product-summary-image{align-items:center;justify-content:center;padding:10px}
#b2b-nomenclature>.site-b2b-product-summary .site-b2b-product-photo-frame{box-sizing:border-box;flex:none;width:196px;height:196px;border:1px solid var(--line);border-radius:7px}
.site-b2b-product-dialog .site-b2b-product-photo-frame,#b2b-nomenclature>.site-b2b-product-summary .site-b2b-product-photo-frame{background:#fff}
@media(max-width:700px){#b2b-nomenclature>.site-b2b-product-summary{grid-template-columns:100px minmax(0,1fr);flex:0 1 auto;height:auto;min-height:0;max-height:36vh;margin-bottom:8px}#b2b-nomenclature>.site-b2b-product-summary .site-b2b-product-summary-image{padding:8px}#b2b-nomenclature>.site-b2b-product-summary .site-b2b-product-photo-frame{width:82px;height:82px}}

/* Product card close control matches the standard red ERP dialog button. */
.site-b2b-product-dialog form>header button[data-b2b-product-close]{position:relative;display:grid;place-items:center;flex:none;box-sizing:border-box;width:32px;height:32px;min-height:32px;margin:0;padding:0;border:1px solid rgba(239,68,68,.45);border-radius:7px;background:rgba(239,68,68,.08);color:#ff7373;font-size:0;cursor:pointer}
.site-b2b-product-dialog form>header button[data-b2b-product-close]::before,.site-b2b-product-dialog form>header button[data-b2b-product-close]::after{content:"";position:absolute;top:50%;left:50%;width:15px;height:2px;border-radius:2px;background:currentColor;pointer-events:none}
.site-b2b-product-dialog form>header button[data-b2b-product-close]::before{transform:translate(-50%,-50%) rotate(45deg)}
.site-b2b-product-dialog form>header button[data-b2b-product-close]::after{transform:translate(-50%,-50%) rotate(-45deg)}
.site-b2b-product-dialog form>header button[data-b2b-product-close]:hover{border-color:#ff7373;background:rgba(239,68,68,.16);color:#ff9a9a}
.site-b2b-product-dialog form>header button[data-b2b-product-close]:focus-visible{outline:2px solid #ff7373;outline-offset:2px}

/* Universal Russian/VED warehouse receipt — same compact gold ERP language as nomenclature. */
.site-b2b-universal-receipt{box-sizing:border-box;width:min(780px,calc(100vw - 32px));max-width:none;height:min(720px,calc(100vh - 32px));max-height:none;overflow:hidden}
.site-b2b-universal-receipt form{box-sizing:border-box;display:flex;flex-direction:column;height:100%;min-height:0;gap:8px;padding:16px;overflow:auto}
.site-b2b-universal-receipt .site-b2b-receipt-header{display:flex;align-items:center;gap:12px;flex:none;min-width:0;padding-bottom:9px;border-bottom:1px solid var(--line)}
.site-b2b-receipt-heading{display:flex;align-items:center;gap:9px;flex:1 1 auto;min-width:0}
.site-b2b-receipt-heading h3{min-width:0;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.site-b2b-receipt-heading strong{flex:none;color:var(--fecor-gold-text);font-size:11px;font-weight:700}
.site-b2b-universal-receipt form>header button[data-b2b-receipt-close]{position:relative;display:grid;place-items:center;flex:none;box-sizing:border-box;width:32px;height:32px;min-height:32px;margin:0;padding:0;border:1px solid rgba(239,68,68,.45);border-radius:7px;background:rgba(239,68,68,.08);color:#ff7373;font-size:0;cursor:pointer}
.site-b2b-universal-receipt form>header button[data-b2b-receipt-close]::before,.site-b2b-universal-receipt form>header button[data-b2b-receipt-close]::after{content:"";position:absolute;top:50%;left:50%;width:15px;height:2px;border-radius:2px;background:currentColor;pointer-events:none}
.site-b2b-universal-receipt form>header button[data-b2b-receipt-close]::before{transform:translate(-50%,-50%) rotate(45deg)}
.site-b2b-universal-receipt form>header button[data-b2b-receipt-close]::after{transform:translate(-50%,-50%) rotate(-45deg)}
.site-b2b-universal-receipt .site-b2b-receipt-source{display:flex;align-items:center;gap:6px;flex:none;min-width:0}
.site-b2b-universal-receipt .site-b2b-receipt-source button,body.admin-dark .site-b2b-universal-receipt .site-b2b-receipt-source button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:none;width:auto;min-height:30px;margin:0;padding:5px 9px;border:1px solid var(--fecor-gold-line);border-radius:7px;background:rgba(214,162,31,.035);color:var(--fecor-gold-text);font:inherit;font-size:11px;font-weight:700;line-height:1.2;white-space:nowrap;box-shadow:none;cursor:pointer}
.site-b2b-universal-receipt .site-b2b-receipt-source button:hover,.site-b2b-universal-receipt .site-b2b-receipt-source button[aria-pressed=true],body.admin-dark .site-b2b-universal-receipt .site-b2b-receipt-source button:hover,body.admin-dark .site-b2b-universal-receipt .site-b2b-receipt-source button[aria-pressed=true]{border-color:var(--fecor-gold);background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}
.site-b2b-universal-receipt .site-b2b-receipt-source button:focus-visible{outline:2px solid var(--fecor-gold);outline-offset:1px}
.site-b2b-receipt-source button:disabled{opacity:.4;cursor:not-allowed}
.site-b2b-receipt-provisional-note{display:block;padding:8px 10px;border:1px solid var(--fecor-gold-line);border-radius:7px;background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font-size:11px;line-height:1.4}
.site-b2b-receipt-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;min-width:0}
.site-b2b-receipt-fields label{display:grid;align-content:start;gap:4px;min-width:0;color:var(--text);font-size:11px;font-weight:700}
.site-b2b-receipt-fields .wide{grid-column:1/-1}
.site-b2b-receipt-fields :is(input,select),.site-b2b-receipt-lines :is(input,select){box-sizing:border-box;width:100%;min-width:0;min-height:30px;padding:5px 8px;border:1px solid var(--line);border-radius:7px;background:var(--card);color:var(--text);font:inherit;font-size:12px;font-weight:400}
.site-b2b-receipt-fields :is(input,select):focus-visible,.site-b2b-receipt-lines :is(input,select):focus-visible{border-color:var(--fecor-gold);outline:2px solid var(--fecor-gold-soft);outline-offset:1px}
.site-b2b-receipt-fields input[readonly],.site-b2b-receipt-lines input[readonly]{opacity:.82}
.site-b2b-receipt-basis{padding-top:8px;border-top:1px solid var(--line)}
.site-b2b-receipt-basis>strong,.site-b2b-receipt-panel>strong{display:block;margin-bottom:8px;color:var(--fecor-gold-text);font-size:12px}
.site-b2b-receipt-basis>small,.site-b2b-receipt-panel>small{display:block;margin-top:7px;color:var(--muted);font-size:11px}
.site-b2b-receipt-basis .site-b2b-receipt-fields label{grid-column:auto}
.site-b2b-receipt-basis .site-b2b-receipt-fields label.wide{grid-column:1/-1}
.site-b2b-receipt-lower{display:grid;grid-template-rows:auto minmax(0,1fr);flex:1 1 auto;gap:8px;min-width:0;min-height:95px;padding-top:10px;border-top:1px solid var(--line)}
.site-b2b-receipt-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-width:0}
.site-b2b-receipt-tabs button{box-sizing:border-box;display:grid;place-items:center;width:100%;min-width:0;min-height:34px;padding:6px 8px;border:1px solid var(--fecor-gold-line);border-radius:7px;background:rgba(214,162,31,.035);color:var(--fecor-gold-text);font:inherit;font-size:11px;font-weight:700;white-space:nowrap;cursor:pointer}
.site-b2b-receipt-tabs button:hover,.site-b2b-receipt-tabs button[aria-selected=true]{border-color:var(--fecor-gold);background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}
.site-b2b-receipt-tabs button:focus-visible{outline:2px solid var(--fecor-gold);outline-offset:1px}
.site-b2b-universal-receipt.site-b2b-universal-receipt .site-b2b-receipt-tabs button,body.admin-dark .site-b2b-receipt-tabs button{border-color:var(--fecor-gold-line);background:rgba(214,162,31,.035);color:var(--fecor-gold-text)}
.site-b2b-universal-receipt.site-b2b-universal-receipt .site-b2b-receipt-tabs button:hover,.site-b2b-universal-receipt.site-b2b-universal-receipt .site-b2b-receipt-tabs button[aria-selected=true],body.admin-dark .site-b2b-receipt-tabs button:hover,body.admin-dark .site-b2b-receipt-tabs button[aria-selected=true]{border-color:var(--fecor-gold);background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}
.site-b2b-receipt-panel{min-width:0;min-height:0;overflow:auto}
.site-b2b-receipt-panel[hidden],.site-b2b-universal-receipt [hidden]{display:none!important}
.site-b2b-receipt-panel p{margin:8px 0;color:var(--muted);font-size:12px;line-height:1.45}
.site-b2b-receipt-panel [data-b2b-receipt-demo-block]{margin:10px 0;padding:10px;border:1px solid var(--fecor-gold-line);border-radius:8px;background:var(--fecor-gold-soft)}
.site-b2b-receipt-panel [data-b2b-receipt-demo-block]>strong{color:var(--fecor-gold-text);font-size:12px}
.site-b2b-receipt-panel [data-b2b-receipt-demo-codes]{display:grid;gap:4px;margin:8px 0 0;padding-left:22px;font:11px/1.4 monospace;overflow-wrap:anywhere}
.site-b2b-receipt-panel [data-b2b-receipt-code-list]{display:grid;gap:8px;margin:10px 0}
.site-b2b-receipt-code-row{min-width:0;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--card)}
.site-b2b-receipt-code-row.is-ready{border-color:rgba(45,180,130,.5)}
.site-b2b-receipt-code-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}
.site-b2b-receipt-code-heading strong{min-width:0;color:var(--text);font-size:12px;overflow-wrap:anywhere}
.site-b2b-receipt-code-heading span{flex:none;color:var(--fecor-gold-text);font-size:11px;font-weight:700}
.site-b2b-receipt-code-row.is-ready .site-b2b-receipt-code-heading span{color:#45c895}
.site-b2b-receipt-code-row>small{display:block;margin-top:4px;color:var(--muted);font-size:11px;overflow-wrap:anywhere}
.site-b2b-receipt-code-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:9px}
.site-b2b-receipt-code-actions input[type=file]{min-width:180px;max-width:100%;color:var(--text);font-size:11px}
.site-b2b-receipt-code-actions button,.site-b2b-receipt-code-template{display:inline-flex;align-items:center;box-sizing:border-box;min-height:30px;padding:5px 9px;border:1px solid var(--fecor-gold-line);border-radius:7px;background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font:inherit;font-size:11px;font-weight:700;text-decoration:none;cursor:pointer}
.site-b2b-receipt-code-actions button:disabled{opacity:.45;cursor:not-allowed}
.site-b2b-receipt-code-template{margin:0 0 5px}
.site-b2b-receipt-lines{overflow-x:auto}
.site-b2b-receipt-lines table{width:100%;min-width:690px;border-collapse:collapse}
.site-b2b-receipt-lines th,.site-b2b-receipt-lines td{padding:5px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
.site-b2b-receipt-lines th{background:var(--surface);color:var(--muted);font-size:11px;font-weight:700}
.site-b2b-receipt-lines td:nth-child(1 of :where(:not(.b2b-row-number))){width:47%}
.site-b2b-receipt-lines td:last-child{width:30px}
.site-b2b-receipt-unmapped{display:block;margin-top:4px;color:#ff8585;font-size:11px}
.site-b2b-receipt-lines .receipt-remove{min-width:26px;height:28px;padding:0;border:1px solid rgba(239,68,68,.35);border-radius:5px;background:rgba(239,68,68,.08);color:#ff7373;font-size:17px;cursor:pointer}
.site-b2b-receipt-lines .receipt-remove:disabled{opacity:.25;cursor:not-allowed}
.site-b2b-receipt-panel>[data-b2b-receipt-add-line]{margin-top:8px;padding:6px 10px;border:1px solid var(--fecor-gold-line);border-radius:7px;background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font:inherit;font-size:12px;cursor:pointer}
.site-b2b-receipt-panel [data-b2b-receipt-total]{display:block;margin-top:8px;color:var(--muted)}
.site-b2b-universal-receipt [data-b2b-receipt-form-error]{margin:0;color:#ff8585}
.site-b2b-universal-receipt .site-b2b-document-comments{flex:none;min-width:0;width:100%;margin-top:auto}
.site-b2b-document-comments label{display:flex;align-items:center;gap:12px;min-width:0;width:100%;color:var(--muted);font-size:12px;font-weight:700}
.site-b2b-document-comments :is(input,textarea){box-sizing:border-box;display:block;flex:1 1 auto;width:100%;min-width:0;height:36px;min-height:36px;max-height:120px;margin:0;padding:7px 10px;border:1px solid var(--line);border-radius:7px;background:var(--card);color:var(--text);font:12px/20px Arial,sans-serif;resize:vertical}
[data-b2b-invoice-dialog] .site-b2b-document-comments textarea{height:38px;min-height:38px;padding:8px 10px;line-height:20px}
.site-b2b-document-comments :is(input,textarea):focus-visible{border-color:var(--fecor-gold);outline:2px solid var(--fecor-gold-soft);outline-offset:1px}
.site-b2b-document-comments :is(input,textarea):disabled{opacity:.65;cursor:not-allowed}
.site-b2b-universal-receipt footer{flex:none;margin-top:0;padding-top:8px;border-top:0}
.site-b2b-universal-receipt footer>span{margin-right:auto;color:var(--muted);font-size:11px}
.site-b2b-invoice-dialog footer,.site-b2b-realization-dialog footer{flex-wrap:wrap}
.site-b2b-document-footer-total{display:flex;align-items:baseline;flex-wrap:wrap;gap:7px 12px;min-width:0;margin-right:auto;font-variant-numeric:tabular-nums}
.site-b2b-document-footer-total span{color:var(--muted);font-size:12px;font-weight:700}
.site-b2b-document-footer-total strong{color:var(--fecor-gold-text);font-size:clamp(22px,2vw,30px);line-height:1.1;white-space:nowrap}
@media(max-width:700px){.site-b2b-document-footer-total{flex-basis:100%}}
.site-b2b-universal-receipt footer button[data-b2b-receipt-save],.site-b2b-universal-receipt footer button[data-b2b-receipt-post]{border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font-weight:750}
.site-b2b-universal-receipt footer button:disabled{opacity:.42;cursor:not-allowed}
.site-b2b-receipt-register-title{margin:18px 0 9px;color:var(--fecor-gold-text);font-size:14px}
/* Receipts unfold in their register, with a compact searchable goods grid. */
#b2b-purchase-receipts.is-document-open>.site-b2b-purchase-toolbar,#b2b-purchase-receipts.is-document-open>.site-b2b-receipt-filter,#b2b-purchase-receipts.is-document-open>.site-b2b-warehouse-table-wrap,#b2b-purchase-receipts.is-document-open>[data-b2b-receipt-error]{display:none!important}
#b2b-purchase-receipts>[data-b2b-receipt-dialog][open]{position:relative;inset:auto;display:block;box-sizing:border-box;width:100%;max-width:none;min-width:0;max-height:none;min-height:180px;margin:0;overflow:hidden;border-color:var(--fecor-gold-line)}
#b2b-purchase-receipts>[data-b2b-receipt-dialog] form{gap:6px;overflow:auto}
#b2b-purchase-receipts>[data-b2b-receipt-dialog].is-compact-fields .site-b2b-receipt-fields{gap:var(--b2b-form-gap,10px)}
#b2b-purchase-receipts>[data-b2b-receipt-dialog].is-compact-fields .site-b2b-receipt-fields>label{position:relative;display:block;min-width:0;height:36px;min-height:36px;margin:0}
#b2b-purchase-receipts>[data-b2b-receipt-dialog].is-compact-fields .site-b2b-receipt-fields>label[hidden]{display:none!important}
#b2b-purchase-receipts>[data-b2b-receipt-dialog].is-compact-fields .site-b2b-receipt-field-caption{position:absolute;z-index:1;top:50%;right:30px;left:10px;overflow:hidden;transform:translateY(-50%);color:var(--muted);font-size:12px;font-weight:400;line-height:16px;white-space:nowrap;text-overflow:ellipsis;pointer-events:none}
#b2b-purchase-receipts>[data-b2b-receipt-dialog].is-compact-fields .site-b2b-receipt-fields>label:is(.is-filled,:focus-within)>.site-b2b-receipt-field-caption{display:none}
#b2b-purchase-receipts>[data-b2b-receipt-dialog].is-compact-fields .site-b2b-receipt-fields>label>:is(input,select){display:block;width:100%;height:36px;min-height:36px;margin:0;padding:7px 10px;font-size:12px;line-height:18px}
#b2b-purchase-receipts>[data-b2b-receipt-dialog].is-compact-fields .site-b2b-receipt-doc-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0}
#b2b-purchase-receipts>[data-b2b-receipt-dialog].is-compact-fields .site-b2b-receipt-doc-meta>label:first-child{flex:0 0 190px}
#b2b-purchase-receipts>[data-b2b-receipt-dialog].is-compact-fields .site-b2b-receipt-doc-meta>label:nth-child(2){flex:0 0 160px}
#b2b-purchase-receipts>[data-b2b-receipt-dialog].is-compact-fields .site-b2b-receipt-doc-meta>label{height:38px;min-height:38px;margin:0}
#b2b-purchase-receipts>[data-b2b-receipt-dialog].is-compact-fields .site-b2b-receipt-doc-meta>label>input{height:38px;min-height:38px}
#b2b-purchase-receipts>[data-b2b-receipt-dialog] .site-b2b-receipt-doc-meta .site-b2b-receipt-source{margin-left:auto}
#b2b-purchase-receipts>[data-b2b-receipt-dialog] .site-b2b-receipt-doc-meta .site-b2b-receipt-source button{height:38px;min-height:38px;padding:0 11px}
#b2b-purchase-receipts>[data-b2b-receipt-dialog] .site-b2b-receipt-doc-actions{display:flex;align-items:center;gap:7px;min-width:0}
#b2b-purchase-receipts>[data-b2b-receipt-dialog] .site-b2b-receipt-doc-actions>[hidden]{display:none!important}
#b2b-purchase-receipts>[data-b2b-receipt-dialog] .site-b2b-receipt-doc-actions>button,#b2b-purchase-receipts>[data-b2b-receipt-dialog] .site-b2b-receipt-posted-badge{display:grid;place-items:center;box-sizing:border-box;width:38px;height:38px;min-width:38px;min-height:38px;margin:0;padding:0;border:1px solid var(--fecor-gold-line);border-radius:6px;background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}
#b2b-purchase-receipts>[data-b2b-receipt-dialog] .site-b2b-receipt-doc-actions>button{cursor:pointer}
#b2b-purchase-receipts>[data-b2b-receipt-dialog] .site-b2b-receipt-doc-actions>button:disabled{opacity:.42;cursor:not-allowed}
#b2b-purchase-receipts>[data-b2b-receipt-dialog] .site-b2b-receipt-posted-badge{border-color:rgba(52,211,153,.45);background:rgba(52,211,153,.09);color:#35d4a0}
#b2b-purchase-receipts>[data-b2b-receipt-dialog] .site-b2b-receipt-doc-actions svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#b2b-purchase-receipts>[data-b2b-receipt-dialog].is-compact-fields .site-b2b-receipt-fields>label:not(.is-filled):not(:focus-within)>select{color:transparent}
#b2b-purchase-receipts>[data-b2b-receipt-dialog].is-compact-fields .site-b2b-receipt-fields select option{color:var(--text)}
#b2b-purchase-receipts>[data-b2b-receipt-dialog].is-compact-fields .site-b2b-receipt-fields>label:not(.is-filled):not(:focus-within)>input[type=date]::-webkit-datetime-edit{color:transparent}
#b2b-purchase-receipts>[data-b2b-receipt-dialog].is-compact-fields .site-b2b-receipt-fields>label:not(:focus-within)>input::placeholder{color:transparent}
#b2b-purchase-receipts>[data-b2b-receipt-dialog].is-compact-fields .site-b2b-receipt-basis{padding-top:0;border-top:0}
#b2b-purchase-receipts>[data-b2b-receipt-dialog].is-compact-fields .site-b2b-receipt-basis>strong{margin-bottom:5px}
#b2b-purchase-receipts>[data-b2b-receipt-dialog].is-compact-fields .site-b2b-receipt-lower{gap:6px;padding-top:0;border-top:0}
#b2b-purchase-receipts>[data-b2b-receipt-dialog] .site-b2b-receipt-tabs{display:flex;align-items:center;justify-content:flex-start;align-content:start;flex-wrap:wrap;gap:6px}
#b2b-purchase-receipts>[data-b2b-receipt-dialog] .site-b2b-receipt-tabs button{flex:0 0 auto;width:auto;min-width:88px;min-height:29px;padding:5px 12px;font-size:11px;line-height:1.2;white-space:nowrap}
#b2b-purchase-receipts>[data-b2b-receipt-dialog] footer{flex-wrap:wrap;gap:8px}
#b2b-purchase-receipts>[data-b2b-receipt-dialog] .site-b2b-receipt-review-actions{display:inline-flex;align-items:center;flex:none;flex-wrap:wrap;max-width:100%;gap:8px}
#b2b-purchase-receipts>[data-b2b-receipt-dialog] footer [data-b2b-receipt-check]{border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font-weight:700}
#b2b-purchase-receipts>[data-b2b-receipt-dialog] footer [data-b2b-receipt-check][aria-expanded=true]{border-color:var(--fecor-gold);background:rgba(214,162,31,.14)}
#b2b-purchase-receipts>[data-b2b-receipt-dialog] .site-b2b-receipt-lower{min-height:0}
#b2b-purchase-receipts .site-b2b-receipt-lines{overflow:visible}
#b2b-purchase-receipts .site-b2b-receipt-lines table{box-sizing:border-box;width:100%;min-width:860px;table-layout:fixed}
#b2b-purchase-receipts .site-b2b-receipt-lines col:nth-child(1 of :where(:not(.b2b-row-number))){width:10%}
#b2b-purchase-receipts .site-b2b-receipt-lines col:nth-child(2 of :where(:not(.b2b-row-number))){width:36%}
#b2b-purchase-receipts .site-b2b-receipt-lines col:nth-child(3 of :where(:not(.b2b-row-number))){width:12%}
#b2b-purchase-receipts .site-b2b-receipt-lines col:nth-child(4 of :where(:not(.b2b-row-number))){width:10%}
#b2b-purchase-receipts .site-b2b-receipt-lines col:nth-child(5 of :where(:not(.b2b-row-number))){width:16%}
#b2b-purchase-receipts .site-b2b-receipt-lines col:nth-child(6 of :where(:not(.b2b-row-number))){width:16%}
#b2b-purchase-receipts .site-b2b-receipt-lines th,#b2b-purchase-receipts .site-b2b-receipt-lines td{box-sizing:border-box;min-width:0;padding:5px 8px;border-right:1px solid var(--line);font-size:11px;line-height:1.25}
#b2b-purchase-receipts .site-b2b-receipt-lines th{white-space:nowrap}
#b2b-purchase-receipts .site-b2b-receipt-lines th:last-child,#b2b-purchase-receipts .site-b2b-receipt-lines td:last-child{border-right:0}
#b2b-purchase-receipts .site-b2b-receipt-lines td:nth-child(1 of :where(:not(.b2b-row-number))),#b2b-purchase-receipts .site-b2b-receipt-lines td:last-child{width:auto}
#b2b-purchase-receipts .site-b2b-receipt-lines td input:not([type=hidden]){height:28px;min-height:28px;padding:3px 5px;border:1px solid transparent;border-radius:0;background:transparent;color:var(--text);font-size:11px}
#b2b-purchase-receipts .site-b2b-receipt-lines td input:not([type=hidden]):focus{border-color:var(--fecor-gold-line);background:var(--card);outline:0}
#b2b-purchase-receipts .site-b2b-receipt-lines tbody tr[aria-selected=true]{background:var(--fecor-gold-soft)}
#b2b-purchase-receipts .site-b2b-receipt-lines tbody td:nth-child(2 of :where(:not(.b2b-row-number)))[role=button]{cursor:pointer}
#b2b-purchase-receipts .site-b2b-receipt-lines tbody td:nth-child(2 of :where(:not(.b2b-row-number)))[role=button]:focus-visible{outline:1px solid var(--fecor-gold);outline-offset:-1px}
#b2b-purchase-receipts .site-b2b-receipt-lines .site-b2b-receipt-article,#b2b-purchase-receipts .site-b2b-receipt-lines .site-b2b-product-edit-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#b2b-purchase-receipts .site-b2b-receipt-lines .site-b2b-product-edit-cell.is-editing{position:relative;z-index:30;overflow:visible;white-space:normal}
#b2b-purchase-receipts .site-b2b-receipt-lines .site-b2b-receipt-line-sum{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
#b2b-purchase-receipts .site-b2b-receipt-goods-bottom{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:7px 16px;margin-top:9px}
#b2b-purchase-receipts .site-b2b-receipt-goods-bottom [data-b2b-receipt-total]{margin:0;color:var(--muted);font-size:11px}
#b2b-purchase-receipts .site-b2b-receipt-goods-bottom>strong{color:var(--fecor-gold-text);font-size:12px;white-space:nowrap}
#b2b-purchase-receipts .site-b2b-receipt-goods-bottom b{margin-left:7px;font-size:15px;font-variant-numeric:tabular-nums}
#b2b-purchase-receipts [data-b2b-receipt-panel="goods"] .site-b2b-receipt-lines{margin-top:10px}
#b2b-purchase-receipts [data-b2b-receipt-panel="goods"] .site-b2b-receipt-lines thead th{height:34px;padding-top:8px;padding-bottom:7px;vertical-align:middle}
#b2b-purchase-receipts .site-b2b-receipt-table-actions{display:flex;align-items:center;gap:8px;min-height:23px;margin:0 0 6px;padding-left:5px}
#b2b-purchase-receipts .site-b2b-receipt-table-actions > button,body.admin-dark #b2b-purchase-receipts .site-b2b-receipt-table-actions > button{box-sizing:border-box;width:22px;min-width:22px;height:22px;min-height:22px;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:var(--fecor-gold-text);font:inherit;font-size:22px;line-height:1;cursor:pointer}
#b2b-purchase-receipts .site-b2b-receipt-table-actions [data-b2b-receipt-add-line],body.admin-dark #b2b-purchase-receipts .site-b2b-receipt-table-actions [data-b2b-receipt-add-line]{width:21px;min-width:21px;height:21px;min-height:21px;font-size:21px}
#b2b-purchase-receipts .site-b2b-receipt-table-actions [data-b2b-receipt-remove-line],body.admin-dark #b2b-purchase-receipts .site-b2b-receipt-table-actions [data-b2b-receipt-remove-line]{color:#ff7373;font-size:18px}
#b2b-purchase-receipts .site-b2b-receipt-table-actions > button:disabled{opacity:.45;cursor:not-allowed}
#b2b-purchase-receipts [data-b2b-receipt-panel="fill"] [data-b2b-receipt-fill-actual],#b2b-purchase-receipts [data-b2b-receipt-panel="print"] [data-b2b-receipt-print-page]{min-height:30px;padding:5px 12px;border:1px solid var(--fecor-gold-line);border-radius:7px;background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font:inherit;font-size:11px;font-weight:700;cursor:pointer}
#b2b-purchase-receipts [data-b2b-receipt-panel="fill"] [data-b2b-receipt-fill-actual]:disabled{opacity:.45;cursor:not-allowed}
#b2b-purchase-receipts .site-b2b-receipt-print-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:8px}
#b2b-purchase-receipts .site-b2b-receipt-print-actions p{margin:0}
#b2b-purchase-receipts [data-b2b-receipt-print-preview]{display:block;box-sizing:border-box;width:100%;min-height:560px;border:1px solid var(--line);border-radius:7px;background:#fff}
#b2b-purchase-receipts .site-b2b-receipt-product-picker{position:relative;min-width:0}
#b2b-purchase-receipts .site-b2b-receipt-product-label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:25px}
#b2b-purchase-receipts .site-b2b-receipt-product-picker:not(.is-editing)>.receipt-product-search{display:none!important}
#b2b-purchase-receipts .site-b2b-receipt-product-picker.is-editing>.site-b2b-receipt-product-label{display:none}
#b2b-purchase-receipts .site-b2b-receipt-product-results{position:absolute;z-index:20;top:100%;left:0;right:0;max-height:230px;overflow:auto;border:1px solid var(--fecor-gold-line);border-radius:0 0 7px 7px;background:var(--card);box-shadow:0 12px 25px rgba(0,0,0,.3)}
#b2b-purchase-receipts .site-b2b-receipt-product-results button{display:block;width:100%;margin:0;padding:8px 10px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:var(--card);color:var(--text);text-align:left;font:inherit;font-size:12px;cursor:pointer}
#b2b-purchase-receipts .site-b2b-receipt-product-results button:hover,#b2b-purchase-receipts .site-b2b-receipt-product-results button:focus{background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}
@media(max-width:900px){
  #b2b-purchase-receipts [data-b2b-receipt-panel="goods"] .site-b2b-receipt-lines table,#b2b-purchase-receipts [data-b2b-receipt-panel="goods"] .site-b2b-receipt-lines tbody{display:block;width:100%;min-width:0}
  #b2b-purchase-receipts [data-b2b-receipt-panel="goods"] .site-b2b-receipt-lines :is(colgroup,thead){display:none}
  #b2b-purchase-receipts [data-b2b-receipt-panel="goods"] .site-b2b-receipt-lines tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 9px;margin-bottom:9px;padding:8px;border:1px solid var(--line);border-radius:7px}
  #b2b-purchase-receipts [data-b2b-receipt-panel="goods"] .site-b2b-receipt-lines tbody td{display:block;width:auto!important;padding:0;border:0}
  #b2b-purchase-receipts [data-b2b-receipt-panel="goods"] .site-b2b-receipt-lines tbody td:nth-child(2 of :where(:not(.b2b-row-number))){grid-column:1/-1}
  #b2b-purchase-receipts [data-b2b-receipt-panel="goods"] .site-b2b-receipt-lines tbody td::before{display:block;margin-bottom:3px;color:var(--muted);content:attr(data-label);font-size:10px;font-weight:700}
  #b2b-purchase-receipts [data-b2b-receipt-panel="goods"] .site-b2b-receipt-lines .site-b2b-receipt-line-sum{text-align:left}
}
@media(max-width:700px){#b2b-purchase-receipts .site-b2b-receipt-tabs button{min-width:0;padding:5px 8px}}
@media(max-width:550px){#b2b-purchase-receipts>[data-b2b-receipt-dialog].is-compact-fields .site-b2b-receipt-doc-meta>label:first-child,#b2b-purchase-receipts>[data-b2b-receipt-dialog].is-compact-fields .site-b2b-receipt-doc-meta>label:nth-child(2){flex:1 1 120px}#b2b-purchase-receipts>[data-b2b-receipt-dialog] .site-b2b-receipt-doc-meta .site-b2b-receipt-source{margin-left:0}}
@media(max-width:700px){.site-b2b-universal-receipt .site-b2b-receipt-header{display:grid;grid-template-columns:minmax(0,1fr) 32px;gap:7px}.site-b2b-receipt-heading{grid-column:1;grid-row:1}.site-b2b-universal-receipt .site-b2b-receipt-source{grid-column:1/-1;grid-row:2}.site-b2b-universal-receipt .site-b2b-receipt-header>button[data-b2b-receipt-close]{grid-column:2;grid-row:1}}
@media(max-width:560px){.site-b2b-universal-receipt{width:calc(100vw - 12px);height:calc(100vh - 12px)}.site-b2b-receipt-fields{grid-template-columns:1fr}.site-b2b-receipt-fields .wide,.site-b2b-receipt-basis .site-b2b-receipt-fields label.wide{grid-column:auto}.site-b2b-receipt-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.site-b2b-receipt-tabs button:last-child{grid-column:1/-1}}
@media(max-width:440px){.site-b2b-universal-receipt form{padding:12px}}

/* Warehouse transfer uses the receipt card geometry and controls. */
.site-b2b-transfer-dialog form>header button[data-b2b-transfer-close]{position:relative;display:grid;place-items:center;flex:none;box-sizing:border-box;width:32px;height:32px;min-height:32px;margin:0;padding:0;border:1px solid rgba(239,68,68,.45);border-radius:7px;background:rgba(239,68,68,.08);color:#ff7373;font-size:0;cursor:pointer}
.site-b2b-transfer-dialog form>header button[data-b2b-transfer-close]::before,.site-b2b-transfer-dialog form>header button[data-b2b-transfer-close]::after{content:"";position:absolute;top:50%;left:50%;width:15px;height:2px;border-radius:2px;background:currentColor;pointer-events:none}
.site-b2b-transfer-dialog form>header button[data-b2b-transfer-close]::before{transform:translate(-50%,-50%) rotate(45deg)}
.site-b2b-transfer-dialog form>header button[data-b2b-transfer-close]::after{transform:translate(-50%,-50%) rotate(-45deg)}
.site-b2b-transfer-dialog .site-b2b-receipt-lower{grid-template-rows:auto minmax(0,1fr)}
.site-b2b-transfer-section-title{color:var(--fecor-gold-text);font-size:12px;font-weight:750}
.site-b2b-transfer-dialog .site-b2b-receipt-lines table{min-width:420px}
.site-b2b-transfer-dialog .site-b2b-receipt-lines td:nth-child(1 of :where(:not(.b2b-row-number))){width:75%}
.site-b2b-transfer-dialog .site-b2b-receipt-lines td:nth-child(2 of :where(:not(.b2b-row-number))){width:22%}
.site-b2b-transfer-dialog [data-b2b-transfer-form-error]{margin:0;color:#ff8585}
.site-b2b-transfer-dialog footer button[data-b2b-transfer-save],.site-b2b-transfer-dialog footer button[data-b2b-transfer-post]{border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font-weight:750}
.site-b2b-transfer-dialog footer button:disabled{opacity:.42;cursor:not-allowed}
.site-b2b-warehouse-operation [data-b2b-transfer-row]{cursor:pointer}
.site-b2b-warehouse-operation [data-b2b-transfer-row][aria-selected=true]{background:var(--fecor-gold-soft)}
@media(max-width:700px){.site-b2b-transfer-dialog .site-b2b-receipt-header{display:flex}.site-b2b-transfer-dialog .site-b2b-receipt-heading{grid-column:auto;grid-row:auto}}

/* Sales invoice — same compact document geometry with a fixed five-tab area. */
.site-b2b-invoice-dialog{width:min(850px,calc(100vw - 32px));height:min(760px,calc(100vh - 32px))}
#b2b-realization.is-document-open{gap:0}
#b2b-realization.is-document-open>.site-b2b-realization-toolbar,#b2b-realization.is-document-open>.site-b2b-warehouse-table-wrap,#b2b-realization.is-document-open>[data-b2b-realization-list-error]{display:none!important}
[data-b2b-realization-dialog]{box-sizing:border-box;width:100%;max-width:none;max-height:none;border-color:var(--fecor-gold-line)}
#b2b-realization>[data-b2b-realization-dialog][open]{position:relative;inset:auto;display:block;box-sizing:border-box;width:100%;min-width:0;min-height:180px;margin:0;overflow:hidden}
[data-b2b-realization-dialog] form{overflow:auto}
[data-b2b-realization-dialog] .site-b2b-receipt-header{box-sizing:border-box;width:100%;min-height:48px;padding:7px 11px;border:1px solid var(--fecor-gold-line);border-radius:8px;background:var(--fecor-gold-soft)}
[data-b2b-realization-dialog] .site-b2b-receipt-heading{justify-content:space-between;gap:12px}
[data-b2b-realization-dialog] .site-b2b-receipt-heading h3{font-size:18px}
[data-b2b-realization-dialog] .site-b2b-receipt-heading strong{padding:5px 10px;border:1px solid var(--fecor-gold-line);border-radius:6px;background:var(--card);font-size:12px}
[data-b2b-realization-dialog] .site-b2b-receipt-lower{min-height:0}
.site-b2b-panel-heading{display:flex;align-items:center;gap:14px;min-width:0}
.site-b2b-navigation{display:inline-flex;align-items:center;gap:6px}
.site-b2b-navigation[hidden]{display:none!important}
.site-b2b-navigation button,body.admin-dark .site-b2b-navigation button{display:grid;place-items:center;box-sizing:border-box;width:30px;height:30px;min-height:30px;margin:0;padding:0;border:1px solid var(--fecor-gold-line);border-radius:7px;background:var(--fecor-gold-soft);color:var(--fecor-gold-text);cursor:pointer}
.site-b2b-navigation button:not(:disabled):hover,.site-b2b-navigation button:not(:disabled):focus-visible{border-color:var(--fecor-gold);outline:2px solid var(--fecor-gold-soft);outline-offset:1px}
.site-b2b-navigation button:disabled,body.admin-dark .site-b2b-navigation button:disabled{opacity:.4;cursor:not-allowed}
.site-b2b-navigation svg{width:16px;height:16px}
@media(max-width:560px){[data-b2b-realization-dialog] .site-b2b-receipt-heading h3{font-size:15px}.site-b2b-panel-heading{gap:8px}}
[data-b2b-realization-dialog] .site-b2b-invoice-lines table{min-width:980px}
[data-b2b-realization-dialog] .site-b2b-invoice-lines td:nth-child(1 of :where(:not(.b2b-row-number))){width:8%}
[data-b2b-realization-dialog] .site-b2b-invoice-lines td:last-child{width:14%}
[data-b2b-realization-dialog] .site-b2b-invoice-lines td:last-child input{box-sizing:border-box;width:100%;min-width:0;margin:2px 0}
[data-b2b-realization-dialog] .site-b2b-invoice-lines td:nth-child(7 of :where(:not(.b2b-row-number))){text-align:center}
[data-b2b-realization-dialog] .site-b2b-invoice-lines td:nth-child(7 of :where(:not(.b2b-row-number))) input{width:auto}
.site-b2b-invoice-dialog .site-b2b-invoice-fields{gap:6px 11px}
.site-b2b-invoice-dialog .site-b2b-invoice-fields textarea,.site-b2b-invoice-dialog .site-b2b-receipt-panel textarea{box-sizing:border-box;width:100%;min-height:64px;padding:7px;border:1px solid var(--line);border-radius:7px;background:var(--card);color:var(--text);font:inherit;font-size:12px;resize:vertical}
[data-b2b-invoice-dialog] form{gap:6px;padding:12px}
[data-b2b-invoice-dialog] .site-b2b-receipt-fields{gap:6px 10px}
[data-b2b-invoice-dialog] .site-b2b-invoice-doc-meta{grid-column:1/-1;display:flex;align-items:flex-start;gap:10px;min-width:0}
[data-b2b-invoice-dialog] .site-b2b-invoice-doc-meta>label:first-child{flex:0 0 190px}
[data-b2b-invoice-dialog] .site-b2b-invoice-doc-meta>label:nth-child(2){flex:0 0 160px}
[data-b2b-invoice-dialog] .site-b2b-invoice-doc-actions{position:relative;display:flex;align-items:center;gap:7px;margin-left:0}
[data-b2b-invoice-dialog] .site-b2b-invoice-doc-actions>[hidden]{display:none!important}
[data-b2b-invoice-dialog] .site-b2b-invoice-doc-actions>button,[data-b2b-invoice-dialog] .site-b2b-invoice-posted-badge{display:grid;place-items:center;box-sizing:border-box;width:38px;height:38px;min-width:38px;min-height:38px;padding:0;border:1px solid var(--fecor-gold-line);border-radius:6px;background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}
[data-b2b-invoice-dialog] .site-b2b-invoice-doc-actions>button{cursor:pointer}
[data-b2b-invoice-dialog] .site-b2b-invoice-doc-actions>button:disabled{opacity:.42;cursor:not-allowed}
[data-b2b-invoice-dialog] .site-b2b-invoice-posted-badge{border-color:rgba(52,211,153,.45);background:rgba(52,211,153,.09);color:#35d4a0}
[data-b2b-invoice-dialog] .site-b2b-invoice-doc-actions svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
[data-b2b-invoice-dialog] .site-b2b-invoice-price-menu{position:absolute;z-index:30;top:calc(100% + 6px);right:45px;box-sizing:border-box;width:205px;padding:7px;border:1px solid var(--fecor-gold-line);border-radius:8px;background:var(--card);box-shadow:0 16px 36px rgba(0,0,0,.4);color:var(--text)}
[data-b2b-invoice-dialog] .site-b2b-invoice-price-menu[hidden]{display:none!important}
[data-b2b-invoice-dialog] .site-b2b-invoice-price-menu>strong{display:block;padding:5px 8px 7px;color:var(--muted);font-size:11px}
[data-b2b-invoice-dialog] .site-b2b-invoice-price-menu>button,body.admin-dark [data-b2b-invoice-dialog] .site-b2b-invoice-price-menu>button{display:block;box-sizing:border-box;width:100%;min-height:30px;margin:0;padding:5px 8px;border:0;border-radius:5px;background:transparent;color:var(--text);font:inherit;font-size:12px;text-align:left;cursor:pointer}
[data-b2b-invoice-dialog] .site-b2b-invoice-price-menu>button:is(:hover,:focus-visible,[aria-pressed=true]),body.admin-dark [data-b2b-invoice-dialog] .site-b2b-invoice-price-menu>button:is(:hover,:focus-visible,[aria-pressed=true]){background:var(--fecor-gold-soft);color:var(--fecor-gold-text);outline:none}
@media(max-width:550px){[data-b2b-invoice-dialog] .site-b2b-invoice-price-menu{right:auto;left:0}}
@media(max-width:550px){[data-b2b-invoice-dialog] .site-b2b-invoice-doc-meta{flex-wrap:wrap}[data-b2b-invoice-dialog] .site-b2b-invoice-doc-meta>label:first-child,[data-b2b-invoice-dialog] .site-b2b-invoice-doc-meta>label:nth-child(2){flex:1 1 120px}[data-b2b-invoice-dialog] .site-b2b-invoice-doc-actions{margin-left:0}}
[data-b2b-invoice-dialog] .site-b2b-invoice-parties{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
[data-b2b-invoice-dialog] .site-b2b-invoice-party-column{display:grid;grid-auto-rows:38px;align-content:start;gap:6px;min-width:0}
[data-b2b-invoice-dialog] .site-b2b-invoice-buyer-tax{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
[data-b2b-invoice-dialog] .site-b2b-receipt-fields>label,[data-b2b-invoice-dialog] .site-b2b-invoice-doc-meta>label,[data-b2b-invoice-dialog] .site-b2b-invoice-party-column>label,[data-b2b-invoice-dialog] .site-b2b-invoice-buyer-tax>label{position:relative;display:block;min-width:0;height:38px;min-height:38px}
@media(max-width:700px){[data-b2b-invoice-dialog] .site-b2b-invoice-parties{grid-template-columns:minmax(0,1fr)}}
[data-b2b-invoice-dialog] .site-b2b-receipt-fields>label.site-b2b-invoice-textarea-field{height:auto;min-height:64px}
[data-b2b-invoice-dialog] .site-b2b-invoice-field-caption{position:absolute;z-index:1;top:50%;right:30px;left:10px;overflow:hidden;transform:translateY(-50%);color:var(--muted);font-size:12px;font-weight:400;line-height:16px;white-space:nowrap;text-overflow:ellipsis;pointer-events:none}
[data-b2b-invoice-dialog] label:is(.is-filled,:focus-within)>.site-b2b-invoice-field-caption{display:none}
[data-b2b-invoice-dialog] .site-b2b-receipt-fields label :is(input,select),body.admin-dark [data-b2b-invoice-dialog] .site-b2b-receipt-fields label :is(input,select){display:block;width:100%;height:38px;min-height:38px;margin:0;padding:7px 10px;font-size:12px;line-height:18px}
[data-b2b-invoice-dialog] .site-b2b-receipt-fields label:not(.is-filled):not(:focus-within)>select{color:transparent}
[data-b2b-invoice-dialog] .site-b2b-receipt-fields label select option{color:var(--text)}
[data-b2b-invoice-dialog] .site-b2b-receipt-fields label:not(.is-filled):not(:focus-within)>input[type=date]::-webkit-datetime-edit{color:transparent}
[data-b2b-invoice-dialog] .site-b2b-receipt-fields>label textarea,body.admin-dark [data-b2b-invoice-dialog] .site-b2b-receipt-fields>label textarea{min-height:64px;margin:0;padding:7px 10px}
[data-b2b-invoice-dialog] .site-b2b-receipt-lower{gap:6px;padding-top:0;border-top:0}
body.admin-dark [data-b2b-invoice-dialog] .site-b2b-receipt-fields input[type=date]{color-scheme:dark;cursor:pointer}
[data-b2b-invoice-dialog] .site-b2b-receipt-fields input[type=date]::-webkit-calendar-picker-indicator{cursor:pointer}
.site-b2b-invoice-dialog .site-b2b-invoice-tabs{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.site-b2b-invoice-dialog .site-b2b-invoice-tabs button{white-space:normal;text-align:center;line-height:1.2}
.site-b2b-invoice-dialog .site-b2b-receipt-lower{min-height:205px}
.site-b2b-invoice-dialog .site-b2b-invoice-lines table{min-width:760px;table-layout:fixed}
.site-b2b-invoice-dialog .site-b2b-invoice-lines :is(th,td):nth-child(1 of :where(:not(.b2b-row-number))){width:12%}
.site-b2b-invoice-dialog .site-b2b-invoice-lines :is(th,td):nth-child(2 of :where(:not(.b2b-row-number))){width:32%}
.site-b2b-invoice-dialog .site-b2b-invoice-lines :is(th,td):nth-child(3 of :where(:not(.b2b-row-number))){width:11%}
.site-b2b-invoice-dialog .site-b2b-invoice-lines :is(th,td):nth-child(4 of :where(:not(.b2b-row-number))){width:15%}
.site-b2b-invoice-dialog .site-b2b-invoice-lines :is(th,td):nth-child(5 of :where(:not(.b2b-row-number))){width:10%}
.site-b2b-invoice-dialog .site-b2b-invoice-lines :is(th,td):nth-child(6 of :where(:not(.b2b-row-number))){width:16%;white-space:nowrap;text-align:right}
[data-b2b-invoice-dialog] .site-b2b-invoice-lines tbody td{position:relative;height:28px;padding:3px 5px}
[data-b2b-invoice-dialog] .site-b2b-invoice-lines tbody td+td,[data-b2b-invoice-dialog] .site-b2b-invoice-lines thead th+th{border-left:1px solid var(--line)}
[data-b2b-invoice-dialog] .site-b2b-invoice-inline-editor{display:block;width:100%;min-width:0}
[data-b2b-invoice-dialog] .site-b2b-invoice-inline-value{display:block;box-sizing:border-box;overflow:hidden;width:100%;line-height:22px;white-space:nowrap;text-overflow:ellipsis;cursor:text}
[data-b2b-invoice-dialog] .site-b2b-invoice-inline-value[role=button]:not([tabindex="-1"]){cursor:pointer}
[data-b2b-invoice-dialog] .site-b2b-invoice-inline-value:focus-visible{outline:1px solid var(--fecor-gold);outline-offset:-1px}
[data-b2b-invoice-dialog] .site-b2b-invoice-inline-editor:not(.is-editing)>input{display:none!important}
[data-b2b-invoice-dialog] .site-b2b-invoice-inline-editor.is-editing{position:absolute;inset:0;z-index:1;height:100%}
[data-b2b-invoice-dialog] .site-b2b-invoice-inline-editor.is-editing>.site-b2b-invoice-inline-value{display:none}
[data-b2b-invoice-dialog] .site-b2b-invoice-inline-editor.is-editing>input,body.admin-dark [data-b2b-invoice-dialog] .site-b2b-invoice-inline-editor.is-editing>input{display:block;box-sizing:border-box;width:100%;height:100%;min-height:0;margin:0;padding:0 5px;border:0;border-radius:0;background:var(--card);color:var(--text);font:inherit;font-size:12px;outline:none;box-shadow:inset 0 0 0 1px var(--fecor-gold);appearance:textfield;-moz-appearance:textfield}
[data-b2b-invoice-dialog] .site-b2b-invoice-inline-editor.is-editing>input::-webkit-inner-spin-button,[data-b2b-invoice-dialog] .site-b2b-invoice-inline-editor.is-editing>input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}
.site-b2b-invoice-dialog [data-b2b-invoice-add-line],.site-b2b-invoice-dialog [data-b2b-invoice-import]{margin-top:8px;padding:6px 10px;border:1px solid var(--fecor-gold-line);border-radius:7px;background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font:inherit;font-size:12px;font-weight:700;cursor:pointer}
[data-b2b-invoice-dialog] .site-b2b-invoice-table-actions{display:flex;align-items:center;gap:8px;box-sizing:border-box;min-height:27px;margin:0 0 5px;padding-left:5px}
[data-b2b-invoice-dialog] .site-b2b-invoice-table-actions :is([data-b2b-invoice-add-line],[data-b2b-invoice-remove-line]),body.admin-dark [data-b2b-invoice-dialog] .site-b2b-invoice-table-actions :is([data-b2b-invoice-add-line],[data-b2b-invoice-remove-line]){display:inline-grid;place-items:center;box-sizing:border-box;width:24px;min-width:24px;height:24px;min-height:24px;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:var(--fecor-gold-text);font:inherit;font-size:22px;line-height:1;cursor:pointer}
[data-b2b-invoice-dialog] .site-b2b-invoice-table-actions [data-b2b-invoice-remove-line],body.admin-dark [data-b2b-invoice-dialog] .site-b2b-invoice-table-actions [data-b2b-invoice-remove-line]{color:#ff7373;font-size:19px}
[data-b2b-invoice-dialog] .site-b2b-invoice-table-actions :is([data-b2b-invoice-add-line],[data-b2b-invoice-remove-line]):disabled{opacity:.45;cursor:not-allowed}
[data-b2b-invoice-dialog] .site-b2b-invoice-lines tbody tr[aria-selected="true"]{background:var(--fecor-gold-soft)}
[data-b2b-invoice-dialog] .site-b2b-invoice-lines td.site-b2b-invoice-product-cell{min-width:0;cursor:pointer}
[data-b2b-invoice-dialog] .site-b2b-invoice-lines td.site-b2b-invoice-article-cell{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
[data-b2b-invoice-dialog] .site-b2b-invoice-article-cell>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
[data-b2b-invoice-dialog] .site-b2b-invoice-lines td.site-b2b-invoice-product-cell[tabindex="-1"]{cursor:default}
[data-b2b-invoice-dialog] .site-b2b-invoice-lines td.site-b2b-invoice-product-cell:focus-visible{outline:1px solid var(--fecor-gold);outline-offset:-1px}
[data-b2b-invoice-dialog] .site-b2b-invoice-product-cell>select{display:none!important}
.site-b2b-invoice-dialog [data-b2b-invoice-import]:disabled{opacity:.45;cursor:not-allowed}
.site-b2b-invoice-totals{display:flex;justify-content:flex-end;gap:16px;flex-wrap:wrap;margin-top:8px;color:var(--muted);font-size:11px}
.site-b2b-invoice-totals b{margin-left:5px;color:var(--text)}
.site-b2b-invoice-totals>strong,.site-b2b-invoice-totals>strong b{color:var(--fecor-gold-text)}
.site-b2b-invoice-orders{display:grid;gap:6px;max-height:260px;overflow:auto}
.site-b2b-invoice-orders button,body.admin-dark .site-b2b-invoice-orders button{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:50px;padding:8px 11px;border:1px solid var(--line);border-radius:7px;background:var(--card);color:var(--text);font:inherit;font-size:11px;text-align:left;cursor:pointer}
.site-b2b-invoice-orders button[aria-pressed=true],body.admin-dark .site-b2b-invoice-orders button[aria-pressed=true]{border-color:var(--fecor-gold);background:var(--fecor-gold-soft)}
.site-b2b-invoice-orders button:disabled,body.admin-dark .site-b2b-invoice-orders button:disabled{opacity:.55;cursor:not-allowed}
.site-b2b-invoice-orders button>span{display:grid;gap:3px}.site-b2b-invoice-orders button small{color:var(--muted)}
.site-b2b-invoice-orders button>strong{white-space:nowrap;font-size:11px}
.site-b2b-invoice-print-panel{min-height:0}.site-b2b-invoice-print-panel iframe{display:block;width:100%;height:100%;min-height:250px;border:1px solid var(--line);border-radius:7px;background:#fff}
.site-b2b-invoice-dialog [data-b2b-invoice-form-error]{margin:0;color:#ff8585}
.site-b2b-invoice-dialog footer button[data-b2b-invoice-save],.site-b2b-invoice-dialog footer button[data-b2b-invoice-print],.site-b2b-invoice-dialog footer button[data-b2b-invoice-post]{border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font-weight:750}
.site-b2b-invoices [data-b2b-invoice-row]{cursor:pointer}.site-b2b-invoices [data-b2b-invoice-row][aria-selected=true]{background:var(--fecor-gold-soft)}
.site-b2b-invoices [data-b2b-invoice-row] td:first-child small{display:block;margin-top:3px;color:var(--muted);font-size:10px}
@media(max-width:700px){.site-b2b-invoice-dialog .site-b2b-invoice-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.site-b2b-invoice-dialog .site-b2b-receipt-lower{min-height:250px}}
@media(max-width:440px){.site-b2b-invoice-dialog .site-b2b-invoice-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.site-b2b-invoice-dialog .site-b2b-invoice-orders button{align-items:flex-start;flex-direction:column}}
/* The sales invoice opens within its register, using the realization document frame. */
#b2b-invoices.is-document-open{gap:0}
#b2b-invoices.is-document-open>.site-b2b-invoices-toolbar,#b2b-invoices.is-document-open>.site-b2b-warehouse-table-wrap,#b2b-invoices.is-document-open>[data-b2b-invoice-list-error]{display:none!important}
#b2b-invoices>[data-b2b-invoice-dialog][open]{position:relative;inset:auto;display:block;box-sizing:border-box;width:100%;max-width:none;min-width:0;max-height:none;min-height:180px;margin:0;overflow:hidden;border-color:var(--fecor-gold-line)}
#b2b-invoices>[data-b2b-invoice-dialog] form{overflow:auto}
#b2b-invoices>[data-b2b-invoice-dialog] .site-b2b-invoice-tabs{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:6px}
#b2b-invoices>[data-b2b-invoice-dialog] .site-b2b-invoice-tabs button{flex:0 0 auto;width:auto;min-width:88px;min-height:29px;padding:5px 12px;line-height:1.2;white-space:nowrap}
#b2b-invoices>[data-b2b-invoice-dialog] .site-b2b-receipt-lower{min-height:0}
#b2b-invoices>[data-b2b-invoice-dialog] .site-b2b-invoice-lines table{width:100%;min-width:760px}
@media(max-width:700px){#b2b-invoices>[data-b2b-invoice-dialog] .site-b2b-invoice-tabs button{min-width:0;padding:5px 8px}}
.site-b2b-invoices-toolbar [data-b2b-invoice-mail] span{display:block;font:500 16px/1 Arial,Helvetica,sans-serif;letter-spacing:-.03em;transform:translateY(-.5px)}
.site-b2b-product-list-title .site-b2b-document-mail-icon span{display:block;font:500 16px/1 Arial,Helvetica,sans-serif;letter-spacing:-.03em;transform:translateY(-.5px)}
.site-b2b-document-mail-dialog{box-sizing:border-box;width:min(620px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);overflow:auto;border:1px solid var(--fecor-gold-line);border-radius:12px;padding:0;background:#151b24;color:#e8edf4;box-shadow:0 22px 70px #0009}
.site-b2b-document-mail-dialog::backdrop{background:#060b15bd;backdrop-filter:blur(4px)}
.site-b2b-document-mail-dialog form{display:grid;gap:11px;padding:18px 20px 16px}
.site-b2b-document-mail-dialog header,.site-b2b-document-mail-dialog footer{display:flex;align-items:center;gap:10px;justify-content:space-between}
.site-b2b-document-mail-dialog header{padding-bottom:10px;border-bottom:1px solid #343e4d}
.site-b2b-document-mail-dialog h3{font-size:19px;line-height:1.2;margin:0;color:#edf1f6}.site-b2b-document-mail-dialog p{margin:0;color:#aeb8c7;font-size:12px;line-height:1.4}
.site-b2b-document-mail-dialog label{display:grid;gap:4px;color:#dce2e9;font-size:12px;font-weight:700}
.site-b2b-document-mail-dialog input,.site-b2b-document-mail-dialog textarea{width:100%;box-sizing:border-box;border:1px solid #394657;border-radius:7px;background:#0d141e;color:#f3f6fa;padding:8px 10px;font:inherit;font-size:12px;font-weight:400}
.site-b2b-document-mail-dialog input{height:36px}
.site-b2b-document-mail-dialog textarea{resize:vertical}
.site-b2b-document-mail-dialog details{font-size:12px;color:#c8d0dc}.site-b2b-document-mail-dialog summary{cursor:pointer}.site-b2b-document-mail-dialog details>div{display:grid;gap:4px;margin-top:7px;color:#aeb8c7}
.site-b2b-document-mail-dialog footer{padding-top:12px;border-top:1px solid #343e4d;flex-wrap:wrap}
.site-b2b-document-mail-dialog button,body.admin-dark .site-b2b-document-mail-dialog button{box-sizing:border-box;flex:0 0 auto;width:auto;min-height:34px;margin:0;padding:6px 12px;border:1px solid #394657;border-radius:7px;background:transparent;color:#edf1f6;font:inherit;font-size:12px;font-weight:700;line-height:1.2;box-shadow:none;cursor:pointer}
.site-b2b-document-mail-dialog form>header button[data-b2b-invoice-mail-close],body.admin-dark .site-b2b-document-mail-dialog form>header button[data-b2b-invoice-mail-close],.site-b2b-document-mail-dialog form>header button[data-b2b-realization-mail-close],body.admin-dark .site-b2b-document-mail-dialog form>header button[data-b2b-realization-mail-close]{display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:0;border-color:rgba(239,68,68,.45);background:rgba(239,68,68,.08);color:#ff7373;font-size:22px;line-height:1}
.site-b2b-document-mail-dialog footer button[type=submit],body.admin-dark .site-b2b-document-mail-dialog footer button[type=submit]{border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font-weight:750}
.site-b2b-document-mail-dialog button:hover:not(:disabled),body.admin-dark .site-b2b-document-mail-dialog button:hover:not(:disabled){border-color:var(--fecor-gold);background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}
.site-b2b-document-mail-dialog form>header button[data-b2b-invoice-mail-close]:hover:not(:disabled),body.admin-dark .site-b2b-document-mail-dialog form>header button[data-b2b-invoice-mail-close]:hover:not(:disabled),.site-b2b-document-mail-dialog form>header button[data-b2b-realization-mail-close]:hover:not(:disabled),body.admin-dark .site-b2b-document-mail-dialog form>header button[data-b2b-realization-mail-close]:hover:not(:disabled){border-color:#ff7373;background:rgba(239,68,68,.16);color:#ff9a9a}
.site-b2b-document-mail-dialog button:disabled,body.admin-dark .site-b2b-document-mail-dialog button:disabled{opacity:.45;cursor:not-allowed}
.site-b2b-document-mail-dialog [data-b2b-invoice-mail-feedback],.site-b2b-document-mail-dialog [data-b2b-realization-mail-feedback]{color:var(--fecor-gold-text)}
.site-b2b-document-mail-dialog [data-b2b-realization-mail-draft]{color:#f2c84b}
.site-b2b-document-mail-dialog footer span{margin-right:auto;color:#9eacbc;font-size:11px}
#ved .ved-order-mail-selected{min-width:40px;padding:6px 10px;border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}
#ved .ved-order-mail-selected span{display:block;font:500 17px/1 Arial,Helvetica,sans-serif;letter-spacing:-.03em}

/* Realization card: compact in-field captions and left-aligned document tabs. */
.site-b2b-realization-dialog form{gap:6px;padding:12px;overflow:hidden}
.site-b2b-realization-dialog .site-b2b-invoice-fields{gap:6px 10px}
.site-b2b-realization-dialog .site-b2b-realization-parties{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
.site-b2b-realization-dialog .site-b2b-realization-party-column{display:grid;grid-auto-rows:37px;align-content:start;gap:6px;min-width:0}
.site-b2b-realization-dialog .site-b2b-realization-party-column>label{margin:0}
@media(max-width:700px){.site-b2b-realization-dialog .site-b2b-realization-parties{grid-template-columns:minmax(0,1fr)}}
.site-b2b-realization-dialog .site-b2b-realization-doc-meta{grid-column:1/-1;display:flex;align-items:flex-start;gap:10px;min-width:0}
.site-b2b-realization-dialog .site-b2b-realization-doc-meta>label:first-child{flex:0 0 190px}
.site-b2b-realization-dialog .site-b2b-realization-doc-meta>label:nth-child(2){flex:0 0 160px}
.site-b2b-realization-dialog .site-b2b-receipt-fields .site-b2b-realization-doc-meta>label{height:38px;min-height:38px}
.site-b2b-realization-dialog .site-b2b-realization-doc-meta>label :is(input,select){height:38px;min-height:38px}
.site-b2b-realization-dialog .site-b2b-realization-doc-actions{display:flex;align-items:center;gap:7px;min-width:0}
.site-b2b-realization-dialog .site-b2b-realization-doc-actions>[hidden]{display:none!important}
.site-b2b-realization-dialog .site-b2b-realization-doc-actions>button,.site-b2b-realization-dialog .site-b2b-realization-posted-badge{display:grid;place-items:center;box-sizing:border-box;width:38px;height:38px;min-width:38px;min-height:38px;margin:0;padding:0;border:1px solid var(--fecor-gold-line);border-radius:6px;background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}
.site-b2b-realization-dialog .site-b2b-realization-doc-actions>button{cursor:pointer}
.site-b2b-realization-dialog .site-b2b-realization-doc-actions>button:disabled{opacity:.42;cursor:not-allowed}
.site-b2b-realization-dialog .site-b2b-realization-posted-badge{border-color:rgba(52,211,153,.45);background:rgba(52,211,153,.09);color:#35d4a0}
.site-b2b-realization-dialog .site-b2b-realization-doc-actions svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.site-b2b-realization-preview-wrap{position:relative;width:100%;height:100%;min-height:250px}
.site-b2b-realization-preview-wrap [data-b2b-realization-return-copy]{position:absolute;z-index:2;top:8px;right:12px;display:grid;place-items:center;box-sizing:border-box;width:36px;height:36px;min-width:36px;margin:0;padding:0;border:1px solid transparent;border-radius:5px;background:#f3f3f3;color:#202124;cursor:pointer}
.site-b2b-realization-preview-wrap [data-b2b-realization-return-copy][hidden]{display:none!important}
.site-b2b-realization-preview-wrap [data-b2b-realization-return-copy]:hover{background:#e5e5e5}
.site-b2b-realization-preview-wrap [data-b2b-realization-return-copy][aria-pressed="true"]{border-color:#13976c;background:#d9f5e9;color:#096c4d}
.site-b2b-realization-preview-wrap [data-b2b-realization-return-copy] svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:550px){.site-b2b-realization-dialog .site-b2b-realization-doc-meta{flex-wrap:wrap}.site-b2b-realization-dialog .site-b2b-realization-doc-meta>label:first-child,.site-b2b-realization-dialog .site-b2b-realization-doc-meta>label:nth-child(2){flex:1 1 120px}}
.site-b2b-realization-dialog .site-b2b-receipt-fields label{position:relative;display:block;min-width:0;height:37px;min-height:37px}
.site-b2b-realization-dialog .site-b2b-receipt-fields label[hidden]{display:none!important}
.site-b2b-realization-dialog .site-b2b-realization-field-caption{position:absolute;z-index:1;top:50%;right:32px;left:10px;overflow:hidden;transform:translateY(-50%);color:var(--muted);font-size:12px;font-weight:400;line-height:16px;white-space:nowrap;text-overflow:ellipsis;pointer-events:none}
.site-b2b-realization-dialog .site-b2b-receipt-fields :is(input,select){display:block;width:100%;height:37px;min-height:37px;padding:7px 10px;font-size:12px;line-height:16px}
.site-b2b-realization-dialog .site-b2b-receipt-fields select[name=source_invoice_id]{display:none}
.site-b2b-realization-dialog .site-b2b-realization-lookup-field:focus-within{z-index:20}
.site-b2b-realization-dialog .site-b2b-realization-lookup-field:focus-within .site-b2b-realization-field-caption{display:none}
.site-b2b-realization-dialog .site-b2b-realization-search-menu{position:absolute;z-index:30;top:calc(100% + 4px);right:0;left:0;max-height:210px;overflow:auto;border:1px solid var(--fecor-gold-line);border-radius:7px;background:var(--card);box-shadow:0 12px 28px rgba(0,0,0,.3)}
.site-b2b-realization-dialog .site-b2b-realization-search-menu[hidden]{display:none}
.site-b2b-realization-dialog .site-b2b-realization-search-menu button{display:block;width:100%;margin:0;padding:9px 11px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--text);font:inherit;font-size:12px;font-weight:400;line-height:1.3;text-align:left;cursor:pointer}
.site-b2b-realization-dialog .site-b2b-realization-search-menu button:last-child{border-bottom:0}
.site-b2b-realization-dialog .site-b2b-realization-search-menu button:hover,.site-b2b-realization-dialog .site-b2b-realization-search-menu button.is-active{background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}
.site-b2b-realization-dialog .site-b2b-realization-search-menu p{margin:0;padding:9px 11px;color:var(--muted);font-size:12px}
body.admin-dark .site-b2b-realization-dialog .site-b2b-receipt-fields input[type=date]{color-scheme:dark;cursor:pointer}
.site-b2b-realization-dialog .site-b2b-receipt-fields input[type=date]::-webkit-calendar-picker-indicator{cursor:pointer}
.site-b2b-realization-dialog .site-b2b-receipt-lower{gap:6px;min-height:0;padding-top:0;border-top:0;overflow:hidden}
.site-b2b-realization-dialog .site-b2b-invoice-tabs{display:flex;align-items:center;justify-content:flex-start;align-content:start;flex-wrap:wrap;gap:6px}
.site-b2b-realization-dialog .site-b2b-invoice-tabs button{flex:0 0 auto;width:auto;min-width:88px;min-height:29px;padding:5px 12px;font-size:11px;line-height:1.2;white-space:nowrap}
.site-b2b-realization-dialog .site-b2b-picking-panel{min-width:0}
.site-b2b-realization-dialog .site-b2b-picking-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.site-b2b-realization-dialog .site-b2b-picking-head strong{color:var(--fecor-gold-text);font-size:13px}
.site-b2b-realization-dialog .site-b2b-picking-head p{margin:4px 0 0;color:var(--muted);font-size:12px}
.site-b2b-realization-dialog .site-b2b-picking-actions{display:flex;flex-wrap:wrap;gap:6px}
.site-b2b-realization-dialog .site-b2b-picking-actions button{width:auto;min-height:32px;padding:5px 12px;border:1px solid var(--fecor-gold-line);border-radius:7px;background:rgba(214,162,31,.035);color:var(--fecor-gold-text);font:inherit;font-size:11px;font-weight:700;cursor:pointer}
.site-b2b-realization-dialog .site-b2b-picking-actions button:hover{border-color:var(--fecor-gold);background:var(--fecor-gold-soft)}
.site-b2b-realization-dialog .site-b2b-picking-actions button:disabled{opacity:.45;cursor:not-allowed}
.site-b2b-realization-dialog .site-b2b-picking-table{width:100%}
.site-b2b-realization-dialog .site-b2b-picking-table :is(th,td):nth-child(n+3 of :where(:not(.b2b-row-number))){text-align:center;white-space:nowrap}
.site-b2b-realization-dialog .site-b2b-picking-panel>small{display:block;margin-top:8px;color:var(--muted)}
@media(max-width:700px){.site-b2b-realization-dialog .site-b2b-picking-head{align-items:stretch;flex-direction:column}.site-b2b-realization-dialog .site-b2b-picking-actions button{flex:1 1 auto}}
.site-b2b-realization-dialog .site-b2b-realization-fill-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;color:var(--fecor-gold-text);font-size:12px}
.site-b2b-realization-dialog .site-b2b-realization-fill-heading input{box-sizing:border-box;width:min(280px,50%);height:30px;min-height:30px;margin:0;padding:5px 9px;font-size:11px}
.site-b2b-realization-dialog .site-b2b-realization-fill .site-b2b-invoice-orders{max-height:250px}
.site-b2b-realization-dialog .site-b2b-realization-fill .site-b2b-invoice-orders button{min-height:42px;padding:6px 10px}
.site-b2b-realization-dialog .site-b2b-realization-fill [data-b2b-realization-fill-note]{margin:8px 0 0;color:var(--muted);font-size:11px}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines{overflow-x:hidden}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines table{width:100%;min-width:0;table-layout:fixed}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines :is(th,td):nth-child(1 of :where(:not(.b2b-row-number))){width:8%}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines :is(th,td):nth-child(2 of :where(:not(.b2b-row-number))){width:30%}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines :is(th,td):nth-child(3 of :where(:not(.b2b-row-number))){width:7%}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines :is(th,td):nth-child(4 of :where(:not(.b2b-row-number))){width:9%}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines :is(th,td):nth-child(5 of :where(:not(.b2b-row-number))){width:6%}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines :is(th,td):nth-child(6 of :where(:not(.b2b-row-number))){width:10%}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines :is(th,td):nth-child(7 of :where(:not(.b2b-row-number))){width:8%}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines :is(th,td):nth-child(8 of :where(:not(.b2b-row-number))){width:8%}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines :is(th,td):nth-child(9 of :where(:not(.b2b-row-number))){width:14%}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines td{overflow-wrap:anywhere}
@media(max-width:1100px){.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines{overflow-x:auto}.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines table{min-width:930px}}
@media(max-width:700px){.site-b2b-realization-dialog form{overflow:auto}.site-b2b-realization-dialog .site-b2b-receipt-lower{overflow:visible}.site-b2b-realization-dialog .site-b2b-invoice-tabs button{min-width:0;padding:5px 8px}}
.site-b2b-realization-dialog .site-b2b-receipt-fields label.is-filled .site-b2b-realization-field-caption{display:none}
.site-b2b-realization-dialog .site-b2b-receipt-fields label.is-filled :is(input,select){padding-top:7px;padding-bottom:7px}
.site-b2b-realization-dialog [data-b2b-realization-add-manual],body.admin-dark .site-b2b-realization-dialog [data-b2b-realization-add-manual]{display:inline-grid;place-items:center;box-sizing:border-box;width:26px;min-width:26px;height:26px;min-height:26px;margin:0;padding:0;border:1px solid var(--fecor-gold-line);border-radius:6px;background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font:inherit;font-size:19px;font-weight:400;line-height:1;cursor:pointer}
.site-b2b-realization-dialog [data-b2b-realization-add-manual]:disabled{opacity:.45;cursor:not-allowed}
.site-b2b-realization-dialog .site-b2b-realization-remove-line{flex:none;box-sizing:border-box;width:26px;min-width:26px;height:26px;min-height:26px;margin:0;padding:0;border:1px solid rgba(239,68,68,.4);border-radius:5px;background:rgba(239,68,68,.07);color:#ff7373;font:inherit;font-size:17px;line-height:1;cursor:pointer}
.site-b2b-realization-dialog [data-b2b-realization-manual-product]{box-sizing:border-box;width:100%;min-width:0}
.site-b2b-realization-dialog [data-b2b-realization-manual-product]+small{display:block;margin-top:3px;color:var(--fecor-gold-text);font-size:10px}
.site-b2b-realization-dialog .site-b2b-realization-extra-details{margin-top:12px;border-top:1px solid var(--line);padding-top:9px}
.site-b2b-realization-dialog .site-b2b-realization-extra-details summary{color:var(--fecor-gold-text);font-size:11px;font-weight:700;cursor:pointer}
.site-b2b-realization-dialog .site-b2b-realization-extra-details>section{margin-top:8px}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines{width:100%;overflow-x:hidden}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines table{box-sizing:border-box;width:100%;min-width:0;table-layout:fixed}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines :is(th,td){box-sizing:border-box;min-width:0}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines :is(input,select){box-sizing:border-box;width:100%;min-width:0}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines col:nth-child(1 of :where(:not(.b2b-row-number))){width:8%}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines col:nth-child(2 of :where(:not(.b2b-row-number))){width:30%}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines col:nth-child(3 of :where(:not(.b2b-row-number))){width:7%}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines col:nth-child(4 of :where(:not(.b2b-row-number))){width:9%}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines col:nth-child(5 of :where(:not(.b2b-row-number))){width:6%}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines col:nth-child(6 of :where(:not(.b2b-row-number))){width:10%}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines col:nth-child(7 of :where(:not(.b2b-row-number))){width:8%}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines col:nth-child(8 of :where(:not(.b2b-row-number))){width:8%}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines col:nth-child(9 of :where(:not(.b2b-row-number))){width:14%}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines :is(th,td){padding:4px 6px;font-size:11px;line-height:1.25;overflow:hidden}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines td:is(:nth-child(1 of :where(:not(.b2b-row-number))),:nth-child(2 of :where(:not(.b2b-row-number)))){white-space:nowrap;text-overflow:ellipsis}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines :is(th,td):nth-child(6 of :where(:not(.b2b-row-number))){text-align:right;white-space:nowrap}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines td input,.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines td select{height:28px;min-height:28px;padding:3px 6px;font-size:11px}
.site-b2b-realization-dialog .site-b2b-realization-manual-name{display:flex;align-items:center;gap:5px;min-width:0}
.site-b2b-realization-dialog .site-b2b-realization-manual-name select{flex:1;min-width:0}
@media(max-width:900px){
  .site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines table,.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines tbody{display:block;min-width:0;width:100%}
  .site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines thead{display:none}
  .site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 9px;margin-bottom:9px;padding:8px;border:1px solid var(--line);border-radius:7px}
  .site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines td{display:block;width:auto!important;min-width:0;padding:0;border:0}
  .site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines td:nth-child(1 of :where(:not(.b2b-row-number))),.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines td:nth-child(2 of :where(:not(.b2b-row-number))),.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines td:last-child{grid-column:1/-1}
  .site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines td:nth-child(n+2 of :where(:not(.b2b-row-number)))::before{display:block;margin-bottom:3px;color:var(--muted);font-size:10px;font-weight:700}
  .site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines td:nth-child(2 of :where(:not(.b2b-row-number)))::before{content:"Номенклатура"}
  .site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines td:nth-child(3 of :where(:not(.b2b-row-number)))::before{content:"Количество"}
  .site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines td:nth-child(4 of :where(:not(.b2b-row-number)))::before{content:"Цена с НДС"}
  .site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines td:nth-child(5 of :where(:not(.b2b-row-number)))::before{content:"НДС"}
  .site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines td:nth-child(6 of :where(:not(.b2b-row-number)))::before{content:"Сумма"}
  .site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines td:nth-child(7 of :where(:not(.b2b-row-number)))::before{content:"Страна"}
  .site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines td:nth-child(8 of :where(:not(.b2b-row-number)))::before{content:"ТН ВЭД"}
  .site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines td:nth-child(9 of :where(:not(.b2b-row-number)))::before{content:"ГТД"}
  .site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines thead{display:block}
  .site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines thead tr{display:block;margin:0;padding:5px 8px;border-radius:0}
  .site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines thead th:nth-child(1 of :where(:not(.b2b-row-number))){display:block;width:100%!important;padding:0}
  .site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines thead th:not(:nth-child(1 of :where(:not(.b2b-row-number)))){display:none}
  .site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines td.b2b-row-number{grid-column:1/-1;text-align:start}
  .site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines td.b2b-row-number::before{content:"№ ";color:var(--muted)}
  .site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines colgroup{display:none}
}
.site-b2b-realization-dialog .site-b2b-realization-name-heading{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.site-b2b-realization-dialog .site-b2b-realization-name-heading span{display:block;font-size:11px;line-height:1.2}
.site-b2b-realization-dialog [data-b2b-realization-add-manual],body.admin-dark .site-b2b-realization-dialog [data-b2b-realization-add-manual]{width:21px;min-width:21px;height:21px;min-height:21px;border:0;border-radius:0;background:transparent;font-size:21px}
.site-b2b-realization-dialog .site-b2b-realization-remove-line,body.admin-dark .site-b2b-realization-dialog .site-b2b-realization-remove-line{width:22px;min-width:22px;height:22px;min-height:22px;border:0;border-radius:0;background:transparent;font-size:18px}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines tbody tr{background:transparent}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines tbody td{border:0;border-bottom:1px solid var(--line)}
.site-b2b-realization-dialog .site-b2b-realization-inline-editor{display:block;min-width:0;width:100%}
.site-b2b-realization-dialog .site-b2b-realization-inline-value{display:block;box-sizing:border-box;width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:26px;cursor:text}
.site-b2b-realization-dialog .site-b2b-realization-inline-value[role=button]:not([tabindex="-1"]){cursor:pointer}
.site-b2b-realization-dialog .site-b2b-realization-inline-value:focus-visible{outline:1px solid var(--fecor-gold);outline-offset:-1px}
.site-b2b-realization-dialog .site-b2b-realization-inline-editor:not(.is-editing)>:is(input,select){display:none!important}
.site-b2b-realization-dialog .site-b2b-realization-inline-editor.is-editing>:is(input,select){display:block!important;width:100%;min-width:0}
.site-b2b-realization-dialog .site-b2b-realization-inline-editor.is-editing>.site-b2b-realization-inline-value{display:none}
@media(max-width:900px){.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines tbody tr{margin-bottom:0;border:0;border-bottom:1px solid var(--line);border-radius:0}}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines{margin-top:10px}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines thead th{padding-top:8px;padding-bottom:7px}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines tbody td+td,.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines thead th+th{border-left:1px solid var(--line)}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines tbody tr[aria-selected="true"]{background:var(--fecor-gold-soft)}
.site-b2b-realization-dialog .site-b2b-realization-name-actions{display:flex;align-items:center;gap:8px}
.site-b2b-realization-dialog [data-b2b-realization-add-manual][hidden],.site-b2b-realization-dialog [data-b2b-realization-remove-line][hidden]{display:none!important}
.site-b2b-realization-dialog [data-b2b-realization-remove-line]:disabled{opacity:.65;cursor:not-allowed}
@media(max-width:900px){.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines tbody td+td{border-left:0}}
.site-b2b-realization-dialog .site-b2b-realization-name-actions{position:relative;top:-8px}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines tbody td{padding:1px 5px;line-height:20px}
.site-b2b-realization-dialog .site-b2b-realization-inline-value{line-height:20px}
.site-b2b-realization-dialog .site-b2b-realization-table-actions{display:flex;align-items:center;gap:8px;box-sizing:border-box;min-height:23px;margin:0 0 5px;padding-left:5px}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines thead th{box-sizing:border-box;height:34px;padding:2px 5px;font-size:11px;line-height:20px;vertical-align:middle}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines tbody td{height:24px;padding:2px 5px;line-height:20px;vertical-align:middle}
.site-b2b-realization-dialog .site-b2b-realization-table-actions [data-b2b-realization-add-manual],.site-b2b-realization-dialog .site-b2b-realization-table-actions [data-b2b-realization-remove-line]{position:static;top:auto;transform:none}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines tbody td{position:relative}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines tbody td .site-b2b-realization-inline-editor.is-editing{position:absolute;inset:0;z-index:1;width:100%;height:100%}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines tbody td .site-b2b-realization-inline-editor.is-editing>:is(input,select){box-sizing:border-box;width:100%;height:100%;min-height:0;margin:0;padding:0 5px;border:0;border-radius:0;background:var(--card);color:var(--text);outline:none;box-shadow:inset 0 0 0 1px var(--fecor-gold)}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines tbody td .site-b2b-realization-inline-editor.is-editing>input[type=number]{appearance:textfield;-moz-appearance:textfield}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines tbody td .site-b2b-realization-inline-editor.is-editing>input[type=number]::-webkit-inner-spin-button,.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines tbody td .site-b2b-realization-inline-editor.is-editing>input[type=number]::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines tbody td:nth-child(2 of :where(:not(.b2b-row-number)))[role=button]:not([tabindex="-1"]){cursor:pointer}
.site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines tbody td:nth-child(2 of :where(:not(.b2b-row-number)))[role=button]:focus-visible{outline:1px solid var(--fecor-gold);outline-offset:-1px}
.site-b2b-realization-dialog .site-b2b-realization-product-name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-b2b-realization-dialog .site-b2b-realization-manual-name select[hidden]{display:none!important}
.site-b2b-realization-product-picker{position:fixed;z-index:100000;box-sizing:border-box;max-width:calc(100vw - 24px);padding:7px;border:1px solid var(--fecor-gold-line);border-radius:8px;background:var(--card);box-shadow:0 16px 36px rgba(0,0,0,.4);color:var(--text)}
.site-b2b-realization-product-picker[hidden]{display:none!important}
.site-b2b-realization-product-picker>input,body.admin-dark .site-b2b-realization-product-picker>input{box-sizing:border-box;width:100%;height:34px;min-height:34px;padding:6px 9px;border:1px solid var(--fecor-gold-line);border-radius:6px;background:var(--card);color:var(--text);font:inherit;font-size:12px;box-shadow:none}
.site-b2b-realization-product-picker>input:focus,body.admin-dark .site-b2b-realization-product-picker>input:focus{border-color:var(--fecor-gold);outline:2px solid var(--fecor-gold-soft);outline-offset:1px;box-shadow:none;caret-color:var(--fecor-gold)}
.site-b2b-realization-product-results{max-height:240px;overflow:auto;margin-top:5px}
.site-b2b-realization-product-results button,body.admin-dark .site-b2b-realization-product-results button{display:grid;gap:2px;width:100%;margin:0;padding:7px 9px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--text);font:inherit;font-size:12px;text-align:left;box-shadow:none;cursor:pointer}
.site-b2b-realization-product-results button:hover,.site-b2b-realization-product-results button:focus-visible,body.admin-dark .site-b2b-realization-product-results button:hover,body.admin-dark .site-b2b-realization-product-results button:focus-visible{background:var(--fecor-gold-soft);color:var(--fecor-gold-text);outline:none}
.site-b2b-realization-product-results button small{color:var(--muted);font-size:10px}
.site-b2b-realization-product-results p{margin:0;padding:9px;color:var(--muted);font-size:12px}

/* B2B product cells use the entire rectangle for editing, like realization line editors. */
.site-b2b-receipt-lines td.site-b2b-product-edit-cell{position:relative;min-width:0}
.site-b2b-receipt-lines td.site-b2b-product-edit-cell.is-editing{padding:0!important}
.site-b2b-product-inline-value{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-b2b-receipt-lines td.site-b2b-product-edit-cell>select{position:absolute;inset:0;box-sizing:border-box;width:100%;height:100%;min-height:0;margin:0;opacity:0;pointer-events:none}
.site-b2b-receipt-lines td.site-b2b-product-edit-cell.is-editing>select,body.admin-dark .site-b2b-receipt-lines td.site-b2b-product-edit-cell.is-editing>select{z-index:2;opacity:1;pointer-events:auto;padding:0 8px;border:0;border-radius:0;background:var(--card);color:var(--text);outline:none;box-shadow:inset 0 0 0 1px var(--fecor-gold)}
.site-b2b-receipt-lines td.site-b2b-product-edit-cell[role=button]:not([tabindex="-1"]){cursor:pointer}
.site-b2b-receipt-lines td.site-b2b-product-edit-cell[role=button]:focus-visible{outline:1px solid var(--fecor-gold);outline-offset:-1px}
#b2b-purchase-receipts td.site-b2b-product-edit-cell.is-editing>.site-b2b-receipt-product-picker{position:absolute;inset:0;z-index:2;min-width:0}
#b2b-purchase-receipts td.site-b2b-product-edit-cell.is-editing .receipt-product-search,body.admin-dark #b2b-purchase-receipts td.site-b2b-product-edit-cell.is-editing .receipt-product-search{box-sizing:border-box;width:100%;height:100%;min-height:0;margin:0;padding:0 8px;border:0;border-radius:0;background:var(--card);color:var(--text);outline:none;box-shadow:inset 0 0 0 1px var(--fecor-gold)}
#b2b-purchase-receipts .site-b2b-receipt-table-actions .site-b2b-product-view-icon,body.admin-dark #b2b-purchase-receipts .site-b2b-receipt-table-actions .site-b2b-product-view-icon,.site-b2b-realization-dialog .site-b2b-realization-table-actions .site-b2b-product-view-icon,body.admin-dark .site-b2b-realization-dialog .site-b2b-realization-table-actions .site-b2b-product-view-icon{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:24px;min-width:24px;height:24px;min-height:24px;margin:0;padding:2px;border:0;border-radius:0;background:transparent;color:var(--fecor-gold-text);cursor:pointer}
[data-b2b-invoice-dialog] .site-b2b-invoice-table-actions .site-b2b-product-view-icon,body.admin-dark [data-b2b-invoice-dialog] .site-b2b-invoice-table-actions .site-b2b-product-view-icon{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:24px;min-width:24px;height:24px;min-height:24px;margin:0;padding:2px;border:0;border-radius:0;background:transparent;color:var(--fecor-gold-text);cursor:pointer}
.site-b2b-product-view-icon svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.site-b2b-product-view-icon:disabled{opacity:.45;cursor:not-allowed}
#b2b-purchase-receipts .site-b2b-receipt-table-actions .site-b2b-edo-action,body.admin-dark #b2b-purchase-receipts .site-b2b-receipt-table-actions .site-b2b-edo-action{box-sizing:border-box;width:auto;min-width:0;height:24px;min-height:24px;margin:0 0 0 5px;padding:0 7px;border:1px solid var(--fecor-gold-line);border-radius:5px;background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font:inherit;font-size:11px;font-weight:700;line-height:1;opacity:.55;cursor:not-allowed}
.site-b2b-receipt-lines td.site-b2b-product-row-actions{width:auto;white-space:nowrap}
.site-b2b-product-view-row,body.admin-dark .site-b2b-product-view-row{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:26px;min-width:26px;height:28px;min-height:28px;margin-right:5px;padding:0 3px;border:1px solid var(--fecor-gold-line);border-radius:5px;background:var(--fecor-gold-soft);color:var(--fecor-gold-text);cursor:pointer}
.site-b2b-product-dialog.is-view-only .site-b2b-product-photo-add,.site-b2b-product-dialog.is-view-only footer button[type=submit]{display:none!important}

/* Keep the source-label preview directly below the new CHZ batch form. */
#ved .chz-batch-column{display:grid;align-content:start;gap:16px;min-width:0}
#ved .chz-batch-column .chz-preview-card{grid-column:auto}
#ved .chz-preview-card .chz-preview-layout{grid-template-columns:minmax(0,1fr) minmax(160px,.55fr);align-items:start;min-height:0}
#ved .chz-preview-card .chz-template-image-wrap{display:flex;align-items:flex-start;justify-content:center;min-width:0;padding:5px;border-right:1px solid var(--line)}
#ved .chz-preview-card .chz-template-image-wrap img{display:block;width:auto;height:auto;max-width:100%;max-height:340px;object-fit:contain;background:#fff}
#ved .chz-preview-card .chz-preview-side{display:grid;align-content:start;min-width:0}
#ved .chz-preview-card .chz-preview-download{box-sizing:border-box;display:grid;place-items:center;justify-self:end;width:32px;height:32px;margin:7px 8px 0;padding:0;border:1px solid rgba(var(--chz-red-rgb),.44);border-radius:var(--ved-control-radius);background:rgba(var(--chz-red-rgb),.055);color:var(--chz-red)}
#ved .chz-preview-card .chz-preview-download:hover{background:rgba(var(--chz-red-rgb),.13)}
#ved .chz-preview-card .chz-template-facts{padding:0 10px 8px}
#ved .chz-preview-card .chz-template-facts>div{gap:1px;padding:4px 0}
#ved .chz-preview-card .chz-template-facts dt{font-size:10px;line-height:1.3}
#ved .chz-preview-card .chz-template-facts dd{font-size:11px;line-height:1.3}
#ved .chz-preview-card .chz-preview-empty{min-height:130px}
@media(max-width:720px){
  #ved .chz-batch-column{gap:12px}
  #ved .chz-preview-card .chz-preview-layout{grid-template-columns:1fr}
  #ved .chz-preview-card .chz-template-image-wrap{border-right:0;border-bottom:1px solid var(--line)}
  #ved .chz-preview-card .chz-template-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
}
.erp-tsd-dialog{box-sizing:border-box;width:min(390px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);margin:auto;padding:0;overflow:auto;border:1px solid #73591c;border-radius:18px;background:#141b25;color:#eef2f8;box-shadow:0 16px 36px #0008;font:14px/1.4 Arial,Helvetica,sans-serif}
.erp-tsd-dialog::backdrop{background:radial-gradient(circle,#303841 1px,transparent 1px) 0 0/16px 16px,#111}
.erp-tsd-shell{box-sizing:border-box;min-width:0}
.erp-tsd-head{box-sizing:border-box;padding:9px 14px 10px;background:#1a2430;border-bottom:1px solid #394657}
.erp-tsd-head-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.erp-tsd-brand{color:#f2bd45;font-size:11px;letter-spacing:.09em;white-space:nowrap}
.erp-tsd-head-actions{display:flex;align-items:center;gap:4px}
.erp-tsd-head h2{margin:5px 0 0;color:#eef2f8;font-size:17px;font-weight:400;line-height:1.25}
.erp-tsd-wave{margin:2px 0 0;color:#aab7c8;font-size:11px}
.erp-tsd-head-actions button{position:relative;flex:none;width:27px;height:27px;padding:0;border:1px solid #66532a;border-radius:6px;background:#222a35;color:#f0c15a;font:18px/1 Arial,sans-serif;cursor:pointer}
.erp-tsd-head-actions button[data-tsd-dismiss]{border-color:#465363;background:transparent;color:#aab7c8;font-size:21px}
.erp-tsd-head-actions button.is-muted{color:#8290a0}
.erp-tsd-head-actions button.is-muted::after{position:absolute;top:12px;left:4px;width:18px;height:1px;background:currentColor;content:"";transform:rotate(-45deg)}
.erp-tsd-head-actions button:disabled{opacity:.4;cursor:not-allowed}
.erp-tsd-head-actions button[hidden]{display:none!important}
.erp-tsd-content{padding:15px}
.erp-tsd-progress-heading{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:7px}
.erp-tsd-progress-heading strong{font-size:15px;font-weight:400}.erp-tsd-progress-heading b{color:#f0c559;font-size:21px;font-weight:400;white-space:nowrap;font-variant-numeric:tabular-nums}
.erp-tsd-progress-track{height:6px;margin-bottom:14px;overflow:hidden;border-radius:5px;background:#344050}
.erp-tsd-progress-track span{display:block;height:100%;width:0;background:#e2b84d}
.erp-tsd-scan{box-sizing:border-box;margin-bottom:10px;padding:12px;border:1px solid #52637b;border-radius:10px;background:#0d1520}
.erp-tsd-scan label{display:inline-flex;align-items:center;gap:7px;margin-bottom:9px;color:#eef2f8;font-size:14px;font-weight:400}
.erp-tsd-scan svg{width:17px;height:17px;fill:none;stroke:#eef2f8;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.erp-tsd-input-row{position:relative}.erp-tsd-scan input{box-sizing:border-box;width:100%;min-width:0;min-height:45px;padding:9px 49px 9px 11px;border:1px solid #6a7b90;border-radius:8px;outline:none;background:#152130;color:#f7f9fd;font:16px Arial,Helvetica,sans-serif}
.erp-tsd-scan input:focus{border-color:#7e90a5;box-shadow:0 0 0 2px #e2b84d1a}.erp-tsd-scan input::placeholder{color:#7e8b9b}
.erp-tsd-scan button[data-tsd-add]{position:absolute;right:4px;top:4px;width:37px;height:37px;padding:0;border:1px solid #73591c;border-radius:7px;background:#24303d;color:#f0c559;font:22px Arial,sans-serif;opacity:0;pointer-events:none;cursor:pointer}
.erp-tsd-dialog.has-code .erp-tsd-scan button[data-tsd-add]:not(:disabled){opacity:1;pointer-events:auto}
.erp-tsd-dialog .erp-tsd-scan button[data-tsd-photo]{position:absolute;right:4px;top:4px;display:grid;place-items:center;width:37px;height:37px;padding:0;border:1px solid #73591c;border-radius:7px;background:#24303d;color:#f0c559;cursor:pointer}
.erp-tsd-dialog .erp-tsd-scan button[data-tsd-photo][hidden]{display:none!important}
.erp-tsd-dialog.has-code .erp-tsd-scan button[data-tsd-photo]{right:46px}
.erp-tsd-dialog.has-photo.has-code .erp-tsd-scan input{padding-right:94px}
.erp-tsd-dialog .erp-tsd-scan button[data-tsd-photo] svg{width:20px;height:20px;stroke:#f0c559;stroke-width:1.8}
.erp-tsd-feedback{box-sizing:border-box;min-height:40px;margin:0 0 15px;padding:10px;border-radius:8px;background:#19392f;color:#bef2d9;font-size:12px}
.erp-tsd-feedback[data-kind=error]{background:#442627;color:#ffd1cc}.erp-tsd-feedback[data-kind=success]{background:#19392f;color:#bef2d9}
.erp-tsd-list-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:12px 0 5px}.erp-tsd-list-head strong{font-size:15px;font-weight:400}.erp-tsd-list-head span{color:#a9b8c9;font-size:11px;text-align:right}
.erp-tsd-item{padding:11px 0 12px;border-top:1px solid #334154}.erp-tsd-item-main{display:flex;justify-content:space-between;gap:10px}
.erp-tsd-item-title{min-width:0}.erp-tsd-item-title strong{display:block;color:#eef2f8;font-size:13px;line-height:1.35;font-weight:400}.erp-tsd-item-title span{display:block;margin-top:4px;color:#b1bfd0;font-size:12px;line-height:1.4}
.erp-tsd-item-counts{flex:none;text-align:right;font-variant-numeric:tabular-nums}.erp-tsd-item-counts b{display:block;color:#f2c75e;font-size:15px;font-weight:400;white-space:nowrap}.erp-tsd-item-counts span{display:block;margin-top:5px;color:#aab8c9;font-size:11px;white-space:nowrap}
.erp-tsd-item.is-complete .erp-tsd-item-counts b{color:#65d7a5}.erp-tsd-item details{margin-top:8px;color:#b6c4d3;font-size:11px}.erp-tsd-item summary{color:#f0c559;cursor:pointer}.erp-tsd-item details div{padding-top:5px}
.erp-tsd-done{margin-top:13px}
.erp-tsd-mobile-actions{display:none}
body.admin-dark .erp-tsd-dialog .erp-tsd-head-actions button,body.admin-dark .erp-tsd-dialog .erp-tsd-head-actions button:hover{border-color:#66532a;background:#222a35;color:#f0c15a;box-shadow:none}
body.admin-dark .erp-tsd-dialog .erp-tsd-head-actions button[data-tsd-dismiss],body.admin-dark .erp-tsd-dialog .erp-tsd-head-actions button[data-tsd-dismiss]:hover{border-color:#465363;background:transparent;color:#aab7c8}
body.admin-dark .erp-tsd-dialog .erp-tsd-head-actions button.is-muted{color:#8290a0}
body.admin-dark .erp-tsd-dialog .erp-tsd-scan input{border-color:#6a7b90;background:#152130;color:#f7f9fd;box-shadow:none}
body.admin-dark .erp-tsd-dialog .erp-tsd-scan input:focus{border-color:#7e90a5;box-shadow:0 0 0 2px #e2b84d1a}
body.admin-dark .erp-tsd-dialog .erp-tsd-scan button,body.admin-dark .erp-tsd-dialog .erp-tsd-scan button:hover{border-color:#73591c;background:#24303d;color:#f0c559}
.erp-tsd-photo-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);margin:auto;padding:0;overflow:auto;border:1px solid #73591c;border-radius:14px;background:#141b25;color:#eef2f8;box-shadow:0 18px 48px #000a;font:14px/1.4 Arial,Helvetica,sans-serif}
.erp-tsd-photo-dialog::backdrop{background:#080c13cc}
.erp-tsd-photo-dialog header{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:14px 16px;background:#1a2430;border-bottom:1px solid #394657}
.erp-tsd-photo-dialog header strong{display:block;font-size:16px;font-weight:500}.erp-tsd-photo-dialog header span{display:block;margin-top:3px;color:#aab7c8;font-size:12px}
.erp-tsd-photo-dialog header button,body.admin-dark .erp-tsd-photo-dialog header button{flex:none;width:30px;height:30px;padding:0;border:1px solid #465363;border-radius:7px;background:transparent;color:#aab7c8;font:22px/1 Arial,sans-serif;cursor:pointer}
.erp-tsd-photo-frame{display:grid;place-items:center;min-height:210px;max-height:calc(100dvh - 125px);padding:15px;overflow:auto}
.erp-tsd-photo-frame img{display:block;max-width:100%;max-height:calc(100dvh - 155px);object-fit:contain;border-radius:6px;background:#fff}
.erp-tsd-photo-frame img[hidden],.erp-tsd-photo-frame p[hidden]{display:none!important}
.erp-tsd-photo-frame p{color:#aab7c8;text-align:center}
@media(max-width:600px){
  .erp-tsd-dialog{inset:24px 0 auto;margin:0 auto}
  .erp-tsd-mobile-actions:not([hidden]){position:sticky;bottom:0;z-index:2;display:block;padding:9px 15px calc(9px + env(safe-area-inset-bottom));border-top:1px solid #394657;background:#1a2430}
  .erp-tsd-mobile-actions button:not([hidden]),body.admin-dark .erp-tsd-dialog .erp-tsd-mobile-actions button:not([hidden]){display:block;width:100%;min-height:52px;padding:10px 14px;border:1px solid #ba8c26;border-radius:9px;background:#242b35;color:#f2c75e;font:600 16px/1.3 Arial,Helvetica,sans-serif;cursor:pointer}
  .erp-tsd-mobile-actions button:disabled,body.admin-dark .erp-tsd-dialog .erp-tsd-mobile-actions button:disabled{opacity:.5;cursor:not-allowed}
}
@media(max-width:380px){.erp-tsd-content{padding:12px}.erp-tsd-head{padding:8px 12px 9px}}

/* TSD launchers use the same compact gold treatment as ERP document actions. */
:is([data-b2b-realization-tsd-open],[data-b2b-receipt-tsd-open],[data-b2b-posting-tsd-open],[data-ved-supply-tsd-open]),
body.admin-dark :is([data-b2b-realization-tsd-open],[data-b2b-receipt-tsd-open],[data-b2b-posting-tsd-open],[data-ved-supply-tsd-open]){
  display:inline-flex;
  align-items:center;
  justify-content:center;
  justify-self:start;
  box-sizing:border-box;
  width:max-content;
  max-width:100%;
  min-height:34px;
  margin:3px 0 0;
  padding:6px 14px;
  border:1px solid var(--fecor-gold-line);
  border-radius:7px;
  background:var(--fecor-gold-soft);
  color:var(--fecor-gold-text);
  font:inherit;
  font-size:11px;
  font-weight:700;
  line-height:1.2;
  white-space:nowrap;
  box-shadow:none;
  cursor:pointer;
}
:is([data-b2b-realization-tsd-open],[data-b2b-receipt-tsd-open],[data-b2b-posting-tsd-open],[data-ved-supply-tsd-open]):hover,
body.admin-dark :is([data-b2b-realization-tsd-open],[data-b2b-receipt-tsd-open],[data-b2b-posting-tsd-open],[data-ved-supply-tsd-open]):hover{
  border-color:var(--fecor-gold);
  background:rgba(214,162,31,.16);
  color:var(--fecor-gold-text);
}
:is([data-b2b-realization-tsd-open],[data-b2b-receipt-tsd-open],[data-b2b-posting-tsd-open],[data-ved-supply-tsd-open]):focus-visible{
  outline:2px solid var(--fecor-gold);
  outline-offset:2px;
}

/* Scan result is visible on the scanner itself; completed quantities turn green. */
.erp-tsd-progress-track.is-complete span{background:#65d7a5}
.erp-tsd-item.is-complete{border-top-color:#65d7a5}
.erp-tsd-scan.is-scan-success{
  --tsd-scan-flash-bg:#def6e9;
  --tsd-scan-flash-border:#72ca9a;
  --tsd-scan-flash-text:#17452f;
  --tsd-scan-flash-input:#f6fff9;
  --tsd-scan-flash-placeholder:#668d77;
}
.erp-tsd-scan.is-scan-error{
  --tsd-scan-flash-bg:#ffe5e2;
  --tsd-scan-flash-border:#e99b94;
  --tsd-scan-flash-text:#672d2a;
  --tsd-scan-flash-input:#fff8f7;
  --tsd-scan-flash-placeholder:#ac7773;
}
.erp-tsd-scan:is(.is-scan-success,.is-scan-error){
  border-color:var(--tsd-scan-flash-border);
  background:var(--tsd-scan-flash-bg);
}
.erp-tsd-scan:is(.is-scan-success,.is-scan-error) label{color:var(--tsd-scan-flash-text)}
.erp-tsd-scan:is(.is-scan-success,.is-scan-error) svg{stroke:var(--tsd-scan-flash-text)}
.erp-tsd-dialog .erp-tsd-scan:is(.is-scan-success,.is-scan-error) input,
body.admin-dark .erp-tsd-dialog .erp-tsd-scan:is(.is-scan-success,.is-scan-error) input{
  border-color:var(--tsd-scan-flash-border);
  background:var(--tsd-scan-flash-input);
  color:var(--tsd-scan-flash-text);
}
.erp-tsd-scan:is(.is-scan-success,.is-scan-error) input::placeholder{color:var(--tsd-scan-flash-placeholder)}
.erp-tsd-dialog .erp-tsd-scan:is(.is-scan-success,.is-scan-error) input:focus,
body.admin-dark .erp-tsd-dialog .erp-tsd-scan:is(.is-scan-success,.is-scan-error) input:focus{
  border-color:var(--tsd-scan-flash-border);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--tsd-scan-flash-border) 30%,transparent);
}
.erp-tsd-dialog .erp-tsd-cancel-marking,
body.admin-dark .erp-tsd-dialog .erp-tsd-cancel-marking{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  margin:-2px 0 8px;
  padding:4px 8px;
  border:1px solid #73591c;
  border-radius:6px;
  background:#222a35;
  color:#f0c559;
  font:11px Arial,Helvetica,sans-serif;
  cursor:pointer;
}
.erp-tsd-dialog .erp-tsd-cancel-marking[hidden]{display:none!important}

/* Independent stock posting uses the same inline form geometry as the warehouse receipt. */
#b2b-warehouse-postings.is-document-open>.site-b2b-warehouse-operation-toolbar,#b2b-warehouse-postings.is-document-open>.site-b2b-warehouse-table-wrap,#b2b-warehouse-postings.is-document-open>[data-b2b-posting-list-error]{display:none!important}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog])[open]{position:relative;inset:auto;display:block;box-sizing:border-box;width:100%;max-width:none;min-width:0;max-height:none;min-height:180px;margin:0;overflow:hidden;border-color:var(--fecor-gold-line)}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]) form{gap:6px;overflow:auto}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]).is-compact-fields .site-b2b-receipt-fields{gap:var(--b2b-form-gap,10px)}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]).is-compact-fields .site-b2b-receipt-fields>label{position:relative;display:block;min-width:0;height:36px;min-height:36px;margin:0}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]).is-compact-fields .site-b2b-receipt-field-caption{position:absolute;z-index:1;top:50%;right:30px;left:10px;overflow:hidden;transform:translateY(-50%);color:var(--muted);font-size:12px;font-weight:400;line-height:16px;white-space:nowrap;text-overflow:ellipsis;pointer-events:none}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]).is-compact-fields .site-b2b-receipt-fields>label:is(.is-filled,:focus-within)>.site-b2b-receipt-field-caption{display:none}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]).is-compact-fields .site-b2b-receipt-fields>label>:is(input,select){display:block;width:100%;height:36px;min-height:36px;margin:0;padding:7px 10px;font-size:12px;line-height:18px}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]).is-compact-fields .site-b2b-receipt-doc-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]).is-compact-fields .site-b2b-receipt-doc-meta>label:first-child{flex:0 0 190px}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]).is-compact-fields .site-b2b-receipt-doc-meta>label:nth-child(2){flex:0 0 160px}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]).is-compact-fields .site-b2b-receipt-doc-meta>label,:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]).is-compact-fields .site-b2b-receipt-doc-meta>label>input{height:38px;min-height:38px}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]) .site-b2b-receipt-doc-actions{display:flex;align-items:center;gap:7px;min-width:0}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]) .site-b2b-receipt-doc-actions>button,:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]) .site-b2b-receipt-posted-badge{display:grid;place-items:center;box-sizing:border-box;width:38px;height:38px;min-width:38px;min-height:38px;margin:0;padding:0;border:1px solid var(--fecor-gold-line);border-radius:6px;background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]) .site-b2b-receipt-doc-actions>button{cursor:pointer}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]) .site-b2b-receipt-doc-actions>button:disabled{opacity:.42;cursor:not-allowed}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]) .site-b2b-receipt-posted-badge{border-color:rgba(52,211,153,.45);background:rgba(52,211,153,.09);color:#35d4a0}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]) .site-b2b-receipt-doc-actions svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]).is-compact-fields .site-b2b-receipt-fields>label:not(.is-filled):not(:focus-within)>select{color:transparent}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]).is-compact-fields .site-b2b-receipt-fields select option{color:var(--text)}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]).is-compact-fields .site-b2b-receipt-fields>label:not(.is-filled):not(:focus-within)>input[type=date]::-webkit-datetime-edit{color:transparent}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]).is-compact-fields .site-b2b-receipt-fields>label:not(:focus-within)>input::placeholder{color:transparent}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]) .site-b2b-receipt-lower{gap:6px;min-height:0;padding-top:0;border-top:0}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]) .site-b2b-receipt-tabs{display:flex;align-items:center;justify-content:flex-start;align-content:start;flex-wrap:wrap;gap:var(--b2b-form-gap,10px)}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]) .site-b2b-receipt-tabs button{flex:0 0 auto;width:auto;min-width:88px;min-height:29px;padding:5px 12px;font-size:11px;line-height:1.2;white-space:nowrap}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]) footer{flex-wrap:wrap;gap:8px}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]) .site-b2b-receipt-review-actions{display:inline-flex;align-items:center;flex:none;flex-wrap:wrap;max-width:100%;gap:8px}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]) footer [data-b2b-posting-check],:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]) footer [data-b2b-posting-save],:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]) footer [data-b2b-posting-post]{border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font-weight:700}
:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]) footer [data-b2b-posting-check][aria-expanded=true]{border-color:var(--fecor-gold);background:rgba(214,162,31,.14)}
#b2b-warehouse-postings .site-b2b-receipt-lines{overflow:visible}
#b2b-warehouse-postings .site-b2b-receipt-lines table{box-sizing:border-box;width:100%;min-width:740px;table-layout:fixed}
#b2b-warehouse-postings .site-b2b-receipt-lines col:nth-child(1 of :where(:not(.b2b-row-number))){width:10%}
#b2b-warehouse-postings .site-b2b-receipt-lines col:nth-child(2 of :where(:not(.b2b-row-number))){width:44%}
#b2b-warehouse-postings .site-b2b-receipt-lines col:nth-child(3 of :where(:not(.b2b-row-number))){width:14%}
#b2b-warehouse-postings .site-b2b-receipt-lines col:nth-child(4 of :where(:not(.b2b-row-number))){width:16%}
#b2b-warehouse-postings .site-b2b-receipt-lines col:nth-child(5 of :where(:not(.b2b-row-number))){width:16%}
#b2b-warehouse-postings .site-b2b-receipt-lines th,#b2b-warehouse-postings .site-b2b-receipt-lines td{box-sizing:border-box;min-width:0;padding:5px 8px;border-right:1px solid var(--line);font-size:11px;line-height:1.25}
#b2b-warehouse-postings .site-b2b-receipt-lines th{white-space:nowrap}
#b2b-warehouse-postings .site-b2b-receipt-lines th:last-child{text-align:right}
#b2b-warehouse-postings .site-b2b-receipt-lines th:last-child,#b2b-warehouse-postings .site-b2b-receipt-lines td:last-child{border-right:0}
#b2b-warehouse-postings .site-b2b-receipt-lines td:nth-child(1 of :where(:not(.b2b-row-number))),#b2b-warehouse-postings .site-b2b-receipt-lines td:last-child{width:auto}
#b2b-warehouse-postings .site-b2b-receipt-lines td input:not([type=hidden]){height:28px;min-height:28px;padding:3px 5px;border:1px solid transparent;border-radius:0;background:transparent;color:var(--text);font-size:11px}
#b2b-warehouse-postings .site-b2b-receipt-lines td input:not([type=hidden]):focus{border-color:var(--fecor-gold-line);background:var(--card);outline:0}
#b2b-warehouse-postings .site-b2b-receipt-lines tbody tr[aria-selected=true]{background:var(--fecor-gold-soft)}
#b2b-warehouse-postings .site-b2b-receipt-article,#b2b-warehouse-postings .site-b2b-product-edit-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#b2b-warehouse-postings .site-b2b-product-edit-cell[role=button]{cursor:pointer}
#b2b-warehouse-postings .site-b2b-product-edit-cell.is-editing{position:relative;z-index:30;overflow:visible;white-space:normal}
#b2b-warehouse-postings .site-b2b-receipt-line-sum{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
#b2b-warehouse-postings .site-b2b-receipt-goods-bottom{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:7px 16px;margin-top:9px}
#b2b-warehouse-postings .site-b2b-receipt-goods-bottom small{color:var(--muted);font-size:11px}
#b2b-warehouse-postings .site-b2b-receipt-goods-bottom strong{color:var(--fecor-gold-text);font-size:12px;white-space:nowrap}
#b2b-warehouse-postings .site-b2b-receipt-goods-bottom b{margin-left:7px;font-size:15px;font-variant-numeric:tabular-nums}
#b2b-warehouse-postings [data-b2b-posting-panel=goods] .site-b2b-receipt-lines{margin-top:0}
#b2b-warehouse-postings .site-b2b-receipt-table-actions{display:flex;align-items:center;gap:8px;min-height:23px;margin:0 0 5px;padding-left:5px}
#b2b-warehouse-postings .site-b2b-receipt-table-actions > button,body.admin-dark #b2b-warehouse-postings .site-b2b-receipt-table-actions > button{box-sizing:border-box;width:22px;min-width:22px;height:22px;min-height:22px;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:var(--fecor-gold-text);font:inherit;font-size:22px;line-height:1;cursor:pointer}
#b2b-warehouse-postings .site-b2b-receipt-table-actions [data-b2b-posting-remove-line],body.admin-dark #b2b-warehouse-postings .site-b2b-receipt-table-actions [data-b2b-posting-remove-line]{color:#ff7373;font-size:18px}
#b2b-warehouse-postings .site-b2b-receipt-table-actions .site-b2b-product-view-icon{width:24px;min-width:24px;height:24px;min-height:24px}
#b2b-warehouse-postings .site-b2b-receipt-table-actions > button:disabled{opacity:.45;cursor:not-allowed}
#b2b-warehouse-postings .site-b2b-receipt-product-picker{position:relative;min-width:0}
#b2b-warehouse-postings .site-b2b-receipt-product-label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:25px}
#b2b-warehouse-postings .site-b2b-receipt-product-picker:not(.is-editing)>.receipt-product-search{display:none!important}
#b2b-warehouse-postings .site-b2b-receipt-product-picker.is-editing>.site-b2b-receipt-product-label{display:none}
#b2b-warehouse-postings .site-b2b-receipt-product-results{position:absolute;z-index:20;top:100%;left:0;right:0;max-height:230px;overflow:auto;border:1px solid var(--fecor-gold-line);border-radius:0 0 7px 7px;background:var(--card);box-shadow:0 12px 25px rgba(0,0,0,.3)}
#b2b-warehouse-postings .site-b2b-receipt-product-results button{display:block;width:100%;margin:0;padding:8px 10px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:var(--card);color:var(--text);text-align:left;font:inherit;font-size:12px;cursor:pointer}
#b2b-warehouse-postings .site-b2b-receipt-product-results button:hover{background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}
#b2b-warehouse-postings [data-b2b-posting-code-list]{display:grid;gap:8px;margin:10px 0}
#b2b-warehouse-postings [data-b2b-posting-fill-open],#b2b-warehouse-postings [data-b2b-posting-download-pdf]{min-height:30px;padding:5px 12px;border:1px solid var(--fecor-gold-line);border-radius:7px;background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font:inherit;font-size:11px;font-weight:700;cursor:pointer}
#b2b-warehouse-postings [data-b2b-posting-download-pdf]:disabled{opacity:.45;cursor:not-allowed}
#b2b-warehouse-postings .site-b2b-receipt-print-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:8px}
#b2b-warehouse-postings .site-b2b-receipt-print-actions p{margin:0}
#b2b-warehouse-postings [data-b2b-posting-print-preview]{display:block;box-sizing:border-box;width:100%;min-height:560px;border:1px solid var(--line);border-radius:7px;background:#fff}
#b2b-warehouse-postings [data-b2b-posting-print-preview][hidden]{display:none!important}
#b2b-warehouse-postings [data-b2b-posting-row]{cursor:pointer}
#b2b-warehouse-postings [data-b2b-posting-row][aria-selected=true]{background:var(--fecor-gold-soft)}
#b2b-warehouse-postings [data-b2b-posting-form-error].is-success{border-color:#32856a;background:rgba(35,137,100,.12);color:#b7e9d3}
@media(max-width:900px){
  #b2b-warehouse-postings [data-b2b-posting-panel=goods] .site-b2b-receipt-lines table,#b2b-warehouse-postings [data-b2b-posting-panel=goods] .site-b2b-receipt-lines tbody{display:block;width:100%;min-width:0}
  #b2b-warehouse-postings [data-b2b-posting-panel=goods] .site-b2b-receipt-lines :is(colgroup,thead){display:none}
  #b2b-warehouse-postings [data-b2b-posting-panel=goods] .site-b2b-receipt-lines tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 9px;margin-bottom:9px;padding:8px;border:1px solid var(--line);border-radius:7px}
  #b2b-warehouse-postings [data-b2b-posting-panel=goods] .site-b2b-receipt-lines tbody td{display:block;width:auto!important;padding:0;border:0}
  #b2b-warehouse-postings [data-b2b-posting-panel=goods] .site-b2b-receipt-lines tbody td:nth-child(2 of :where(:not(.b2b-row-number))){grid-column:1/-1}
  #b2b-warehouse-postings [data-b2b-posting-panel=goods] .site-b2b-receipt-lines tbody td::before{display:block;margin-bottom:3px;color:var(--muted);content:attr(data-label);font-size:10px;font-weight:700}
  #b2b-warehouse-postings [data-b2b-posting-panel=goods] .site-b2b-receipt-line-sum{text-align:left}
}
@media(max-width:550px){:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]).is-compact-fields .site-b2b-receipt-doc-meta>label:first-child,:is(#b2b-warehouse-postings>[data-b2b-posting-dialog],#b2b-warehouse-transfers>[data-b2b-transfer-dialog]).is-compact-fields .site-b2b-receipt-doc-meta>label:nth-child(2){flex:1 1 120px}}

/* Comments stay beside the status in all active B2B document registers. */
#b2b-purchase-receipts .site-b2b-receipt-table{min-width:1120px}
.site-b2b-warehouse-operation-table{min-width:980px}
#b2b-warehouse-postings .site-b2b-warehouse-operation-table{min-width:1100px}
#b2b-warehouse-postings .site-b2b-register-amount{min-width:110px;text-align:right;white-space:nowrap}
#b2b-invoices .site-b2b-invoices-table{min-width:1000px}
#b2b-realization .site-b2b-realization-table{min-width:1120px}
.site-b2b-warehouse-table .site-b2b-register-comment{min-width:190px;width:24%;max-width:340px}
.site-b2b-register-comment>span{display:-webkit-box;overflow:hidden;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;white-space:normal;line-height:1.4}

/* Marketplace FBO/FBS documents follow the compact warehouse forms and gold controls. */
#b2b-warehouse-supplies .site-b2b-marketplace-register{min-width:1050px}
#b2b-warehouse-supplies [data-b2b-marketplace-row]{cursor:pointer}
#b2b-warehouse-supplies [data-b2b-marketplace-row][aria-selected=true]{background:var(--fecor-gold-soft)}
#b2b-warehouse-supplies [data-b2b-marketplace-row][hidden]{display:none}
.site-b2b-marketplace-filters{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.site-b2b-marketplace-filters button,body.admin-dark .site-b2b-marketplace-filters button{flex:0 0 auto;width:auto;min-width:88px;min-height:29px;padding:5px 12px;border:1px solid var(--fecor-gold-line);border-radius:7px;background:rgba(214,162,31,.035);color:var(--fecor-gold-text);font:inherit;font-size:11px;font-weight:700;line-height:1.2;white-space:nowrap;cursor:pointer}
.site-b2b-marketplace-filters button[aria-selected=true],.site-b2b-marketplace-filters button:hover,body.admin-dark .site-b2b-marketplace-filters button[aria-selected=true],body.admin-dark .site-b2b-marketplace-filters button:hover{border-color:var(--fecor-gold);background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}
.site-b2b-marketplace-filters button:focus-visible{outline:2px solid var(--fecor-gold);outline-offset:2px}
#b2b-warehouse-supplies.is-document-open>.site-b2b-warehouse-operation-toolbar,#b2b-warehouse-supplies.is-document-open>.site-b2b-marketplace-filters,#b2b-warehouse-supplies.is-document-open>.site-b2b-warehouse-table-wrap,#b2b-warehouse-supplies.is-document-open>[data-b2b-marketplace-list-error],#b2b-warehouse-supplies.is-document-open>.site-b2b-warehouse-notice:not([data-b2b-marketplace-list-error]){display:none!important}
#b2b-warehouse-supplies>[data-b2b-marketplace-dialog][open]{position:relative;inset:auto;display:block;box-sizing:border-box;width:100%;max-width:none;min-width:0;max-height:none;min-height:180px;margin:0;overflow:hidden;border-color:var(--fecor-gold-line)}
#b2b-warehouse-supplies>[data-b2b-marketplace-dialog] form{overflow:auto}
.site-b2b-marketplace-dialog{width:min(1000px,calc(100vw - 20px))}
.site-b2b-marketplace-dialog form{gap:6px;padding:12px}
.site-b2b-marketplace-dialog .site-b2b-receipt-fields{gap:6px 10px}
.site-b2b-marketplace-dialog .site-b2b-receipt-doc-meta{display:flex;align-items:flex-start;flex-wrap:wrap}
.site-b2b-marketplace-dialog .site-b2b-receipt-doc-meta>label:first-child{flex:0 0 190px}
.site-b2b-marketplace-dialog .site-b2b-receipt-doc-meta>label:nth-child(2){flex:0 0 160px}
.site-b2b-marketplace-dialog .site-b2b-receipt-fields>label{position:relative;display:block;min-width:0;height:37px;min-height:37px;margin:0}
.site-b2b-marketplace-dialog .site-b2b-receipt-doc-meta>label{height:38px;min-height:38px}
.site-b2b-marketplace-dialog .site-b2b-marketplace-field-caption{position:absolute;z-index:1;top:50%;right:32px;left:10px;overflow:hidden;transform:translateY(-50%);color:var(--muted);font-size:12px;font-weight:400;line-height:16px;white-space:nowrap;text-overflow:ellipsis;pointer-events:none}
.site-b2b-marketplace-dialog .site-b2b-receipt-fields>label:is(.is-filled,:focus-within)>.site-b2b-marketplace-field-caption{display:none}
.site-b2b-marketplace-dialog .site-b2b-receipt-fields>label>:is(input,select){display:block;box-sizing:border-box;width:100%;height:37px;min-height:37px;margin:0;padding:7px 10px;font-size:12px;line-height:16px}
.site-b2b-marketplace-dialog .site-b2b-receipt-doc-meta>label>:is(input,select){height:38px;min-height:38px}
.site-b2b-marketplace-dialog .site-b2b-receipt-fields>label:not(.is-filled):not(:focus-within)>select{color:transparent}
.site-b2b-marketplace-dialog .site-b2b-receipt-fields select option{color:var(--text)}
.site-b2b-marketplace-dialog .site-b2b-receipt-fields>label:not(:focus-within)>input::placeholder{color:transparent}
.site-b2b-marketplace-dialog .site-b2b-receipt-fields>label:not(.is-filled):not(:focus-within)>input[type=date]::-webkit-datetime-edit{color:transparent}
body.admin-dark .site-b2b-marketplace-dialog .site-b2b-receipt-fields input[type=date]{color-scheme:dark;cursor:pointer}
.site-b2b-marketplace-dialog .site-b2b-receipt-fields input[type=date]::-webkit-calendar-picker-indicator{cursor:pointer}
.site-b2b-marketplace-status{align-self:center;padding:6px 10px;color:var(--fecor-gold-text);font-size:12px}
.site-b2b-marketplace-status:empty{display:none}
.site-b2b-marketplace-dialog .site-b2b-receipt-lower{gap:6px;padding-top:0;border-top:0}
.site-b2b-marketplace-dialog .site-b2b-receipt-tabs{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:6px}
.site-b2b-marketplace-dialog .site-b2b-receipt-tabs button{flex:0 0 auto;width:auto;min-width:88px;min-height:29px;padding:5px 12px;font-size:11px}
.site-b2b-marketplace-dialog .site-b2b-receipt-lines table{min-width:600px}
.site-b2b-marketplace-dialog .site-b2b-receipt-table-actions{display:flex;align-items:center;justify-content:flex-start;gap:7px;margin:0 0 6px}
.site-b2b-marketplace-dialog .site-b2b-receipt-table-actions > button{display:inline-grid;place-items:center;flex:0 0 32px;box-sizing:border-box;width:32px;min-width:32px;height:32px;min-height:32px;margin:0;padding:0;border:1px solid var(--fecor-gold-line);border-radius:7px;background:rgba(214,162,31,.045)!important;color:var(--fecor-gold-text)!important;font-size:19px;font-weight:750;line-height:1;cursor:pointer}
.site-b2b-marketplace-dialog .site-b2b-receipt-table-actions > button:disabled{opacity:.42;cursor:not-allowed}
.site-b2b-marketplace-dialog .site-b2b-receipt-table-actions svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
.site-b2b-marketplace-dialog .site-b2b-receipt-lines td:nth-child(1 of :where(:not(.b2b-row-number))){width:16%}
.site-b2b-marketplace-dialog .site-b2b-receipt-lines td:nth-child(2 of :where(:not(.b2b-row-number))){width:58%}
.site-b2b-marketplace-dialog .site-b2b-receipt-lines td:nth-child(3 of :where(:not(.b2b-row-number))){width:19%}
.site-b2b-marketplace-dialog .site-b2b-receipt-lines td:last-child{width:7%;color:var(--fecor-gold-text);font-weight:700}
.site-b2b-marketplace-dialog .site-b2b-receipt-lines tbody tr[aria-selected=true]{background:var(--fecor-gold-soft)}
.site-b2b-marketplace-product-cell{position:relative}
.site-b2b-marketplace-product-cell>input{box-sizing:border-box;width:100%;min-width:0}
.site-b2b-marketplace-suggestions{position:absolute;z-index:30;top:100%;right:0;left:0;max-height:220px;overflow:auto;border:1px solid var(--fecor-gold-line);border-radius:7px;background:var(--card);box-shadow:0 12px 28px rgba(0,0,0,.25)}
.site-b2b-marketplace-suggestions[hidden]{display:none}
.site-b2b-marketplace-suggestions button{display:block;width:100%;padding:8px 10px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:inherit;text-align:left;font:inherit;font-size:11px;cursor:pointer}
.site-b2b-marketplace-suggestions button:hover,.site-b2b-marketplace-suggestions button:focus-visible{background:var(--fecor-gold-soft)}
.site-b2b-marketplace-dialog [data-b2b-marketplace-error]{margin:0;color:#ff8585}
.site-b2b-marketplace-dialog footer button[data-b2b-marketplace-save],.site-b2b-marketplace-dialog footer button[data-b2b-marketplace-dispatch],.site-b2b-marketplace-dialog [data-b2b-marketplace-reconcile],.site-b2b-marketplace-dialog [data-b2b-marketplace-tsd-open]{border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font-weight:750}
.site-b2b-marketplace-dialog [data-b2b-marketplace-tsd-open],body.admin-dark .site-b2b-marketplace-dialog [data-b2b-marketplace-tsd-open]{display:inline-flex;width:auto;min-height:32px;padding:6px 14px;border:1px solid var(--fecor-gold-line);background:rgba(214,162,31,.045)!important;color:var(--fecor-gold-text)!important}
.site-b2b-marketplace-dialog footer button:disabled{opacity:.42;cursor:not-allowed}
.site-b2b-marketplace-accept-list{display:grid;gap:7px;margin:10px 0}
.site-b2b-marketplace-accept-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 9px;border:1px solid var(--line);border-radius:7px}
.site-b2b-marketplace-accept-row>span{overflow-wrap:anywhere}
.site-b2b-marketplace-accept-row>input{width:110px;flex:none}
@media(max-width:700px){.site-b2b-marketplace-dialog .site-b2b-receipt-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.site-b2b-marketplace-dialog .site-b2b-receipt-fields .wide{grid-column:1/-1}.site-b2b-marketplace-dialog .site-b2b-receipt-lines table{min-width:520px}.site-b2b-marketplace-accept-row{align-items:stretch;flex-direction:column}.site-b2b-marketplace-accept-row>input{width:100%}}
@media(max-width:560px){.site-b2b-marketplace-dialog .site-b2b-receipt-fields.site-b2b-marketplace-meta{grid-template-columns:minmax(0,1fr)}.site-b2b-marketplace-dialog .site-b2b-marketplace-meta .wide{grid-column:auto}.site-b2b-marketplace-dialog .site-b2b-receipt-doc-meta>label:first-child,.site-b2b-marketplace-dialog .site-b2b-receipt-doc-meta>label:nth-child(2){flex:1 1 120px}.site-b2b-marketplace-dialog footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.site-b2b-marketplace-dialog footer>span{flex:1 1 100%;margin:0}.site-b2b-marketplace-dialog footer>button{flex:1 1 auto}}

/* Roles are edited as one staged list; each access category has a single round marker. */
.employee-role-editor{display:block}
.employee-role-tree .employee-role-option{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:32px;margin:0;padding:6px 9px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--text);font-size:10px;font-weight:650;line-height:1.25;cursor:pointer}
.employee-role-tree .employee-role-option:hover{border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft)}
.employee-role-tree .employee-role-option:has(input:checked){border-color:rgba(59,198,112,.38);background:rgba(59,198,112,.08)}
.employee-role-tree .employee-role-option input{position:absolute;width:1px;height:1px;margin:0;padding:0;opacity:0}
.employee-role-tree .employee-role-bullet{box-sizing:border-box;display:grid;place-items:center;flex:none;width:18px;height:18px;border:1px solid #677486;border-radius:50%;background:transparent}
.employee-role-tree .employee-role-bullet::after{content:"";width:8px;height:8px;border-radius:50%;background:transparent}
.employee-role-tree .employee-role-option input:checked+.employee-role-bullet{border-color:#59dc8e;background:rgba(59,220,142,.13)}
.employee-role-tree .employee-role-option input:checked+.employee-role-bullet::after{background:#59dc8e}
.employee-role-tree .employee-role-option:has(input:focus-visible){outline:2px solid var(--fecor-gold);outline-offset:1px}
.employee-role-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-top:1px solid var(--line)}
.employee-role-actions [data-employee-role-status]{color:var(--muted);font-size:10px;line-height:1.3}
.employee-role-actions button[data-employee-role-save],body.admin-dark .employee-role-actions button[data-employee-role-save]{width:auto;min-width:118px;min-height:34px;margin:0;padding:6px 14px;border:1px solid var(--fecor-gold-line);border-radius:6px;background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font:inherit;font-size:11px;font-weight:750;cursor:pointer}
.employee-role-actions button[data-employee-role-save]:hover,body.admin-dark .employee-role-actions button[data-employee-role-save]:hover{border-color:var(--fecor-gold);background:rgba(214,162,31,.16);color:var(--fecor-gold-text)}
.employee-role-actions button[data-employee-role-save]:disabled{opacity:.45;cursor:not-allowed}

/* Actionable ERP areas keep a hand cursor; scroll and text editing keep their native cursors. */
:where(summary,select:not(:disabled),input:is([type=checkbox],[type=radio],[type=file]):not(:disabled),[role=button]:not([aria-disabled="true"]):not([tabindex="-1"]),[role=tab]:not([aria-disabled="true"]):not([tabindex="-1"])){cursor:pointer}
#b2b-realization [data-b2b-realization-row],
#b2b-purchase-receipts [data-b2b-receipt-lines]>tr,
#b2b-warehouse-postings [data-b2b-posting-lines]>tr,
[data-b2b-invoice-dialog] [data-b2b-invoice-lines]>tr,
.site-b2b-realization-dialog [data-b2b-realization-lines]>tr,
.site-b2b-marketplace-dialog [data-b2b-marketplace-lines]>tr,
.purchase-table [data-purchase-row]{cursor:pointer}
@media(max-width:560px){.employee-role-actions{align-items:stretch;flex-direction:column}.employee-role-actions button[data-employee-role-save]{width:100%}}

/* The ERP navigation is a permanent compact rail; group links open outside its scroll area. */
body.side-menu-collapsed .app-layout{grid-template-columns:56px minmax(0,1fr)}
body.side-menu-collapsed .app-layout>.side-nav{
  position:fixed;
  top:var(--b2b-shell-topbar-height,52px);
  bottom:0;
  left:0;
  z-index:125;
  display:flex!important;
  flex-direction:column;
  box-sizing:border-box;
  width:56px!important;
  height:auto!important;
  max-height:none!important;
  padding:12px 8px;
  border-right:1px solid var(--line);
  border-bottom:0;
}
body.side-menu-collapsed .app-layout>main.page{grid-column:2;min-width:0}
body.side-menu-collapsed .side-nav>nav{padding-top:0!important}
body.side-menu-collapsed .side-nav-bottom{display:grid;justify-items:center;gap:4px;margin-top:auto}
body.side-menu-collapsed .side-nav>.erp-side-create-toggle{
  display:grid;
  place-items:center;
  flex:none;
  align-self:center;
  width:32px;
  height:32px;
  padding:0;
  border:1px solid var(--fecor-gold-line);
  border-radius:50%;
  background:var(--fecor-gold-soft);
  color:var(--fecor-gold-text);
}
body.side-menu-collapsed .side-nav>.erp-side-create-toggle:hover,
body.side-menu-collapsed .side-nav>.erp-side-create-toggle[aria-expanded=true]{border-color:var(--fecor-gold);background:rgba(214,162,31,.17)}
body.side-menu-collapsed .side-nav>.erp-side-create-toggle svg{width:18px;height:18px}
.erp-side-flyout{
  position:fixed;
  z-index:310;
  display:grid;
  gap:3px;
  box-sizing:border-box;
  width:252px;
  max-width:calc(100vw - 72px);
  max-height:calc(100dvh - var(--b2b-shell-topbar-height,52px) - 16px);
  padding:7px;
  overflow:auto;
  border:1px solid var(--fecor-gold-line);
  border-radius:9px;
  background:var(--card);
  box-shadow:0 18px 42px rgba(0,0,0,.35);
}
.erp-side-flyout[hidden]{display:none!important}
.erp-side-flyout-title,.erp-side-flyout-group{display:block;padding:6px 9px 3px;color:var(--fecor-gold-text);font-size:11px;font-weight:800}
.erp-side-flyout-group{padding-top:9px;border-top:1px solid var(--line);color:var(--muted);font-size:10px}
.erp-side-flyout button,body.admin-dark .erp-side-flyout button{display:block;width:100%;min-height:34px;padding:7px 10px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--text);font:inherit;font-size:12px;font-weight:650;text-align:left;cursor:pointer}
.erp-side-flyout button:hover,.erp-side-flyout button:focus-visible,.erp-side-flyout button.active,body.admin-dark .erp-side-flyout button:hover,body.admin-dark .erp-side-flyout button:focus-visible,body.admin-dark .erp-side-flyout button.active{outline:none;border-color:var(--fecor-gold-line);background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}
.erp-side-flyout button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:1100px){
  body.side-menu-collapsed .app-layout{grid-template-columns:56px minmax(0,1fr)}
  body.side-menu-collapsed .app-layout>.side-nav{width:56px!important;padding:12px 8px}
  body.side-menu-collapsed:has(#b2b-sales-panel:not([hidden]) #b2b-directories:not([hidden]) #b2b-nomenclature:not([hidden])) #b2b-nomenclature{left:64px}
}

/* FECOR compact system diagnostics */
#system-diagnostics .diagnostics-head{padding:16px 18px;gap:14px}
#system-diagnostics .diagnostics-head h2{font-size:20px;margin:3px 0;line-height:1.3}
#system-diagnostics .diagnostics-head>div>span{font-size:10px}
#system-diagnostics .diagnostics-head button{min-height:36px;padding:7px 12px;border-color:var(--accent);background:var(--accent);color:#15191f;font-size:12px;border-radius:8px;cursor:pointer}
#system-diagnostics .diagnostics-head button:hover{filter:brightness(1.1)}
#system-diagnostics .diagnostics-overview{display:grid;grid-template-columns:minmax(280px,1.15fr) minmax(340px,1fr);gap:12px;margin:14px 18px}
#system-diagnostics .diagnostics-health{display:flex;align-items:center;gap:18px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
#system-diagnostics .diagnostics-ring{width:112px;height:112px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#52dca5 0 var(--diag-ok),#edc452 var(--diag-ok) var(--diag-warn),#ff6b72 var(--diag-warn) 100%)}
#system-diagnostics .diagnostics-ring>div{width:88px;height:88px;border-radius:50%;background:var(--panel);display:flex;align-items:center;justify-content:center;flex-direction:column}
#system-diagnostics .diagnostics-ring strong{font-size:28px;line-height:1.15;font-variant-numeric:tabular-nums;color:var(--text)}
#system-diagnostics .diagnostics-ring span{font-size:10px;color:var(--muted)}
#system-diagnostics .diagnostics-health-copy{display:flex;flex-direction:column;gap:7px;min-width:0}
#system-diagnostics .diagnostics-eyebrow{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
#system-diagnostics .diagnostics-status{font-size:17px;line-height:1.3}.diagnostics-status.ok{color:#52dca5}.diagnostics-status.warning{color:#edc452}.diagnostics-status.error{color:#ff6b72}
#system-diagnostics .diagnostics-score{font-size:12px;color:var(--muted)}#system-diagnostics .diagnostics-score b{color:var(--text);margin-left:4px}
#system-diagnostics .diagnostics-health time{font-size:10px;color:var(--muted)}
#system-diagnostics .diagnostics-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#system-diagnostics .diagnostics-metric{border:1px solid var(--line);border-radius:12px;padding:16px 12px;display:flex;flex-direction:column;justify-content:center;gap:9px;background:rgba(148,163,184,.025)}
#system-diagnostics .diagnostics-metric>span{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}
#system-diagnostics .diagnostics-metric i{width:6px;height:6px;flex-shrink:0;border-radius:50%;background:currentColor}
#system-diagnostics .diagnostics-metric strong{font-size:30px;line-height:1;font-variant-numeric:tabular-nums}.diagnostics-metric.ok{color:#52dca5}.diagnostics-metric.warning{color:#edc452}.diagnostics-metric.error{color:#ff6b72}
#system-diagnostics .diagnostics-metric small{font-size:10px;color:var(--muted)}
#system-diagnostics .diagnostics-grid{grid-template-columns:repeat(4,minmax(0,1fr));padding:0 18px 16px;gap:8px;align-items:start}
#system-diagnostics .diagnostic-card{min-height:108px;padding:12px 12px 25px;border-radius:9px;box-shadow:none}
#system-diagnostics .diagnostic-card>span{font-size:9px}#system-diagnostics .diagnostic-card h3{font-size:12px;margin:5px 0 10px;line-height:1.4}
#system-diagnostics .diagnostic-card strong{font-size:11px;line-height:1.5;overflow-wrap:anywhere}#system-diagnostics .diagnostic-card strong i{flex-shrink:0;width:6px;height:6px;box-shadow:none}
#system-diagnostics .diagnostic-detail{margin-top:9px}#system-diagnostics .diagnostic-detail summary{font-size:10px;color:var(--muted);cursor:pointer;width:max-content}#system-diagnostics .diagnostic-detail summary:hover{color:var(--accent)}
#system-diagnostics .diagnostic-detail p{margin:7px 0 2px;font-size:10px;overflow-wrap:anywhere}
#system-diagnostics .diagnostics-history{margin:0 18px 16px;padding-top:12px}#system-diagnostics .diagnostics-history h3{font-size:12px}
#system-diagnostics .diagnostics-history>a{padding:6px 8px;font-size:11px}
#system-diagnostics .diagnostics-empty{min-height:220px;padding:24px}
@media(max-width:1100px){#system-diagnostics .diagnostics-overview{grid-template-columns:1fr}#system-diagnostics .diagnostics-metric{padding:12px;gap:7px}#system-diagnostics .diagnostics-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){#system-diagnostics .diagnostics-head{flex-direction:row;align-items:center;flex-wrap:wrap}#system-diagnostics .diagnostics-head h2{font-size:17px}#system-diagnostics .diagnostics-overview{margin:12px}#system-diagnostics .diagnostics-health{gap:14px;padding:12px}#system-diagnostics .diagnostics-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 12px 12px}#system-diagnostics .diagnostics-metric{padding:12px 8px}#system-diagnostics .diagnostics-metric strong{font-size:25px}#system-diagnostics .diagnostics-metric small{font-size:9px}#system-diagnostics .diagnostics-history{margin:0 12px 12px}}
@media(max-width:390px){#system-diagnostics .diagnostics-grid{grid-template-columns:1fr}#system-diagnostics .diagnostics-health{gap:10px}#system-diagnostics .diagnostics-ring{width:96px;height:96px}#system-diagnostics .diagnostics-ring>div{width:74px;height:74px}}
#system-diagnostics .diagnostics-ring>div{background:#15191f}
body:not(.admin-dark) #system-diagnostics .diagnostics-ring>div{background:#fff}
#system-diagnostics .diagnostics-metric.ok i{background:#52dca5}#system-diagnostics .diagnostics-metric.warning i{background:#edc452}#system-diagnostics .diagnostics-metric.error i{background:#ff6b72}

/* FECOR diagnostics radial workspace */
#system-diagnostics{border:0;box-shadow:none;overflow:visible}
#system-diagnostics .diagnostics-head{border-bottom:0}
#system-diagnostics .diagnostics-workspace{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:0}
#system-diagnostics .diagnostics-sidebar{border:0;padding:18px 10px;background:linear-gradient(90deg,rgba(246,196,63,.055),transparent)}
#system-diagnostics .diagnostics-history{margin:0;padding:0;border:0}
#system-diagnostics .diagnostics-history h3{padding:0 8px;margin-bottom:16px}
#system-diagnostics .diagnostics-history>a{grid-template-columns:7px minmax(0,1fr) 33px;gap:7px;padding:10px 8px;margin-bottom:5px}
#system-diagnostics .diagnostics-history>a strong{font-size:10px;white-space:nowrap}
#system-diagnostics .diagnostics-history>a small{grid-column:2/-1;font-size:9px;overflow-wrap:anywhere}
#system-diagnostics .diagnostics-orbit-area{min-width:0;display:flex;align-items:center;justify-content:center;padding:16px}
#system-diagnostics .diagnostics-orbit{position:relative;width:100%;max-width:1120px;height:clamp(620px,calc(100vh - 210px),820px);height:clamp(620px,calc(100dvh - 210px),820px);min-height:0}
#system-diagnostics .diagnostics-orbit-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;flex-direction:column;gap:13px;text-align:center;width:290px}
#system-diagnostics .diagnostics-launch-ring{position:relative;width:330px;height:330px;border-radius:50%;box-sizing:border-box;background:radial-gradient(circle at 28% 18%,rgba(255,255,255,.22),transparent 56%),conic-gradient(#52dca5 0 var(--diag-ok),#edc452 var(--diag-ok) var(--diag-warn),#ff6b72 var(--diag-warn) 100%)}
#system-diagnostics .diagnostics-launch-ring form{position:absolute;inset:68px;border-radius:50%;background:#202329;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;margin:0}
#system-diagnostics .diagnostics-launch-ring button{display:grid;place-items:center;width:120px;height:120px;min-height:0;padding:0;border-radius:50%;background:transparent;color:#f6c43f;border:0;cursor:pointer;transition:transform .15s,filter .15s}
#system-diagnostics .diagnostics-launch-ring button:hover{transform:scale(1.07);filter:brightness(1.1)}
#system-diagnostics .diagnostics-launch-ring button:focus-visible{outline:3px solid var(--text);outline-offset:4px}
#system-diagnostics .diagnostics-launch-ring svg{width:112px;height:112px;fill:currentColor}
#system-diagnostics .diagnostics-ring-pct{position:absolute;z-index:1;left:var(--pct-x);top:var(--pct-y);transform:translate(-50%,-50%);color:#fff;font-size:16px;font-weight:800;font-variant-numeric:tabular-nums;text-shadow:0 1px 4px rgba(0,0,0,.55);pointer-events:none}
#system-diagnostics .diagnostics-orbit-node{position:absolute;left:var(--node-x);top:var(--node-y);transform:translate(-50%,-50%);width:172px;min-height:114px;box-sizing:border-box;border:0;box-shadow:none;z-index:1}
#system-diagnostics .diagnostics-orbit-node:has(details[open]){z-index:3;box-shadow:0 8px 32px #0006}
#system-diagnostics .diagnostics-orbit-node.ok{background:linear-gradient(135deg,rgba(82,220,165,.38),rgba(39,136,107,.20) 58%,rgba(19,48,44,.55))}
#system-diagnostics .diagnostics-orbit-node.warning{background:linear-gradient(135deg,rgba(237,196,82,.42),rgba(146,101,25,.22) 58%,rgba(48,38,23,.58))}
#system-diagnostics .diagnostics-orbit-node.error{background:linear-gradient(135deg,rgba(255,107,114,.42),rgba(157,53,67,.23) 58%,rgba(54,29,37,.58))}
body:not(.admin-dark) #system-diagnostics .diagnostics-orbit-node.ok{background:linear-gradient(135deg,#b8efd8,#e8fbf2)}
body:not(.admin-dark) #system-diagnostics .diagnostics-orbit-node.warning{background:linear-gradient(135deg,#ffe4a6,#fff5dc)}
body:not(.admin-dark) #system-diagnostics .diagnostics-orbit-node.error{background:linear-gradient(135deg,#ffc2c8,#fff0f1)}
body:not(.admin-dark) #system-diagnostics .diagnostics-orbit-node.warning strong{color:#875a0a}
body:not(.admin-dark) #system-diagnostics .diagnostics-orbit-node.error strong{color:#a52739}
@media(min-width:1700px){#system-diagnostics .diagnostics-orbit-node{width:200px}}
@media(max-width:1500px){
  #system-diagnostics .diagnostics-workspace{grid-template-columns:180px minmax(0,1fr)}
  #system-diagnostics .diagnostics-orbit-area{padding:10px}
  #system-diagnostics .diagnostics-orbit{height:clamp(580px,calc(100vh - 190px),720px);height:clamp(580px,calc(100dvh - 190px),720px)}
  #system-diagnostics .diagnostics-orbit-node{width:150px;min-height:100px;padding:10px 11px 22px}
  #system-diagnostics .diagnostics-launch-ring{width:280px;height:280px}
  #system-diagnostics .diagnostics-launch-ring form{inset:58px}
  #system-diagnostics .diagnostics-ring-pct{font-size:13px}
}
@media(max-width:1100px){
  #system-diagnostics .diagnostics-workspace{grid-template-columns:155px minmax(0,1fr)}
  #system-diagnostics .diagnostics-orbit-area{padding:10px 6px}
  #system-diagnostics .diagnostics-orbit{height:clamp(560px,calc(100vh - 180px),660px);height:clamp(560px,calc(100dvh - 180px),660px)}
  #system-diagnostics .diagnostics-orbit-node{width:132px;min-height:96px;padding:9px 10px 22px}
  #system-diagnostics .diagnostics-orbit-node h3{font-size:11px}
  #system-diagnostics .diagnostics-orbit-node strong{font-size:10px}
  #system-diagnostics .diagnostics-launch-ring{width:235px;height:235px}
  #system-diagnostics .diagnostics-launch-ring form{inset:48px}
  #system-diagnostics .diagnostics-orbit-center{width:235px}
}
@media(max-width:800px){
  #system-diagnostics .diagnostics-workspace{grid-template-columns:1fr}
  #system-diagnostics .diagnostics-sidebar{padding:10px}
  #system-diagnostics .diagnostics-history{display:flex;gap:6px;overflow-x:auto;align-items:center}
  #system-diagnostics .diagnostics-history h3{flex-shrink:0;margin:0}
  #system-diagnostics .diagnostics-history>a{min-width:150px;margin:0}
  #system-diagnostics .diagnostics-orbit-area{display:block;overflow:visible;padding:12px}
  #system-diagnostics .diagnostics-orbit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;max-width:none;min-width:0;height:auto;min-height:0}
  #system-diagnostics .diagnostics-orbit-center{position:static;grid-column:1/-1;justify-self:center;transform:none;width:min(100%,280px);margin:0 0 8px}
  #system-diagnostics .diagnostics-orbit-node{position:static;left:auto;top:auto;transform:none;width:auto;min-height:104px}
}
@media(max-width:560px){
  #system-diagnostics .diagnostics-orbit{grid-template-columns:1fr}
  #system-diagnostics .diagnostics-launch-ring{width:220px;height:220px}
  #system-diagnostics .diagnostics-launch-ring form{inset:46px}
  #system-diagnostics .diagnostics-ring-pct{font-size:11px}
}

/* Keep the home data checks together on narrow screens as well. */
#data-quality > .quality-grid {
  grid-template-columns: repeat(7, minmax(140px, 1fr));
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
}
#data-quality > .quality-grid > .quality-item {
  min-width: 0;
  padding: 10px 12px;
  overflow-wrap: anywhere;
}

/* Consistent spacing for the panels at the top of ERP home. */
body[data-os-section="home"] main.page > :is(#data-quality, #admin-workspace, .stock-cards) {
  min-width: 0;
  margin-block: 0 16px;
}
#admin-workspace {
  border-color: var(--line);
}
#admin-workspace .admin-menu-group-head > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
#admin-workspace .admin-menu-group-head > span {
  flex-shrink: 0;
}
#admin-workspace .admin-menu-links span {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Use the page surface throughout the diagnostics workspace. */
#system-diagnostics {
  --diag-background: #101214;
  background: var(--diag-background);
  border: 0;
  box-shadow: none;
}
#system-diagnostics .diagnostics-sidebar,
#system-diagnostics .diagnostics-orbit-area,
#system-diagnostics .diagnostics-history > a,
#system-diagnostics .diagnostics-history > a:is(:hover, .active),
#system-diagnostics .diagnostics-orbit-node:is(.ok, .warning, .error),
body:not(.admin-dark) #system-diagnostics .diagnostics-orbit-node:is(.ok, .warning, .error) {
  background: transparent;
  border: 0;
  box-shadow: none;
}
#system-diagnostics .diagnostics-history > a {
  grid-template-columns: 7px minmax(0, 1fr) max-content;
  column-gap: 8px;
  font-variant-numeric: tabular-nums;
}
#system-diagnostics .diagnostics-history > a strong {
  white-space: normal;
}
#system-diagnostics .diagnostics-history > a:is(:hover, .active) strong {
  color: #f6c43f;
}
#system-diagnostics .diagnostics-launch-ring,
#system-diagnostics .diagnostics-launch-ring form {
  border: 0;
  box-shadow: none;
}
#system-diagnostics .diagnostics-launch-ring form {
  background: var(--diag-background);
}
body.erp-theme-light #system-diagnostics {
  --diag-background: var(--bg);
}
body.erp-theme-light #system-diagnostics .diagnostics-history > a:is(:hover, .active) strong,
body.erp-theme-light #system-diagnostics .diagnostics-launch-ring button {
  color: var(--fecor-gold-text);
}
@media (max-width: 900px) {
  #system-diagnostics .diagnostics-history > a {
    min-width: 156px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #system-diagnostics .diagnostics-launch-ring button { transition: none; }
}

body.login-page {
  background: #000;
}
body.login-page .login-card {
  background: #fff;
  border: 1px solid #d4af37;
}

.login-page .login-card button[type="submit"] {
  background: #d4af37;
  border: 1px solid #d4af37;
  color: #17130a;
}
.login-page .login-card button[type="submit"]:hover {
  background: #e8c650;
  border-color: #e8c650;
}
.login-page .login-card {
  position: relative;
  overflow: visible;
}
.login-page .login-version {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  margin: 0;
  color: #d4af37;
  font-size: 12px;
  text-align: center;
  letter-spacing: .04em;
  pointer-events: none;
}

body.login-page {
  min-height: 100vh;
  min-height: 100svh;
  box-sizing: border-box;
  padding: 32px 16px 56px;
  background: #000 url("/assets/login-background.png") center center / cover no-repeat;
}
@media (max-width: 600px) {
  body.login-page {
    background-position: 72% center;
  }
}
@media (max-height: 560px) {
  body.login-page {
    align-items: start;
  }
}

.side-settings .settings-menu > a,
.side-settings .settings-password-panel > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  list-style: none;
  font-size: 12px;
  font-weight: 600;
}
.side-settings .settings-password-panel > summary::-webkit-details-marker { display: none; }
.side-settings .settings-menu > a:hover,
.side-settings .settings-password-panel > summary:hover {
  background: var(--fecor-gold-soft);
  color: var(--fecor-gold-text);
}
.side-settings .settings-password-panel[open] > summary { color: var(--fecor-gold-text); }
.side-settings .settings-menu > a:focus-visible,
.side-settings .settings-password-panel > summary:focus-visible {
  outline: 2px solid var(--fecor-gold);
  outline-offset: 2px;
}

#system-diagnostics .diagnostics-launch-ring.is-testing {
  isolation: isolate;
}
#system-diagnostics .diagnostics-launch-ring.is-testing::before,
#system-diagnostics .diagnostics-launch-ring.is-testing::after {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(from 0deg, #51efb3, #38cfff, #9566ff, #ff64d2, #ffd15b, #51efb3);
  mask: radial-gradient(closest-side, transparent 82%, #000 88%);
  animation: diagnostics-aura-spin 3s linear infinite;
}
#system-diagnostics .diagnostics-launch-ring.is-testing::before {
  inset: -32px;
  filter: blur(15px);
  opacity: .85;
}
#system-diagnostics .diagnostics-launch-ring.is-testing::after {
  filter: blur(3px);
  opacity: .9;
}
#system-diagnostics .diagnostics-launch-ring.is-testing button {
  cursor: progress;
  opacity: 1;
}
@keyframes diagnostics-aura-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  #system-diagnostics .diagnostics-launch-ring.is-testing::before,
  #system-diagnostics .diagnostics-launch-ring.is-testing::after {
    animation: none;
  }
}

/* Settings use the same compact rows and spacing as the B2B menu. */
body .side-settings .settings-password-panel > summary {
  position: static;
  display: flex;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 36px;
  max-width: none;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  white-space: nowrap;
  line-height: 1.3;
  font-size: 12px;
}
body .side-settings .settings-password-panel > summary svg {
  position: static;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}
body .side-settings .settings-menu {
  padding: 8px;
  gap: 4px;
}
body .side-settings .settings-menu > a {
  min-height: 36px;
  padding: 8px 10px;
  line-height: 1.3;
  font-size: 12px;
}
body .side-settings .settings-password-form {
  padding: 8px 10px 12px;
}
body.side-menu-collapsed .side-settings .settings-menu {
  left: calc(100% + 12px);
  right: auto;
  bottom: 0;
  top: auto;
}
.erp-settings-page {
  background: #101214;
  color: #e7eaf0;
}
.erp-settings-page main.page { padding-block: 24px; }
.erp-settings-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.erp-settings-brand {
  color: var(--fecor-gold-text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
}
.erp-settings-brand:focus-visible {
  outline: 2px solid var(--fecor-gold);
  outline-offset: 4px;
}
body.erp-theme-light.erp-settings-page {
  background: var(--bg);
  color: var(--text);
}
body.erp-theme-light.erp-settings-page :is(p, label, .erp-api-card header > span) { color: var(--muted); }
body.erp-theme-light.erp-settings-page :is(a, button, .erp-api-card h2, .erp-api-column > h2) { color: var(--fecor-gold-text); }
body.erp-theme-light.erp-settings-page :is(form.panel, .erp-api-card, .erp-archive-card) { background: var(--card); }
body.erp-theme-light.erp-settings-page input:not([type="hidden"]) {
  background: var(--card);
  color: var(--text);
  border-color: var(--line);
}
.erp-settings-page h1 { font-size: 22px; margin: 20px 0 16px; }
.erp-settings-page h2 { font-size: 16px; margin: 0 0 14px; }
.erp-settings-page p { color: #aab4c2; line-height: 1.6; }
.erp-settings-page a { color: #edc452; }
.erp-settings-page form { display: grid; gap: 12px; }
.erp-settings-page form.panel {
  background: #171d27;
  border: 1px solid rgba(214,162,31,.25);
  border-radius: 8px;
}
.erp-settings-page label { display: grid; gap: 6px; color: #aab4c2; font-size: 12px; }
.erp-settings-page input:not([type="hidden"]) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  background: #10151d;
  color: #e7eaf0;
  border: 1px solid #354052;
  border-radius: 6px;
}
.erp-settings-page input:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}
.erp-settings-page button,
.erp-settings-page a.button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid rgba(214,162,31,.5);
  border-radius: 6px;
  background: rgba(214,162,31,.08);
  color: #edc452;
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.erp-settings-page button:hover,
.erp-settings-page a.button:hover { background: rgba(214,162,31,.16); }

/* Nested password controls must not inherit the collapsed rail icon geometry. */
body.side-menu-collapsed .side-settings .settings-password-panel > summary,
body .side-settings .settings-password-panel > summary {
  display: flex !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 36px !important;
  padding: 8px 10px !important;
  margin: 0 !important;
  gap: 9px !important;
  border: 0 !important;
  white-space: nowrap;
  text-align: left;
}

.erp-settings-page .erp-api-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.erp-settings-page .erp-api-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(214,162,31,.28);
  border-radius: 8px;
  background: #151b24;
  gap: 10px;
}
.erp-api-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.erp-settings-page .erp-api-card h2 { margin: 0; font-size: 14px; color: #edc452; }
.erp-api-card header > span { color: #aab4c2; font-size: 10px; }
.erp-api-key-field { display: flex; align-items: stretch; gap: 6px; min-width: 0; }
.erp-settings-page .erp-api-key-field input { flex: 1; width: 0; font-family: monospace; font-size: 12px; }
.erp-settings-page .erp-api-key-field button { flex: none; font-size: 11px; padding: 6px 9px; }
.erp-api-card footer { display: flex; justify-content: flex-end; }
@media(max-width:640px) {
  .erp-settings-page .erp-api-grid { grid-template-columns: 1fr; }
}

.erp-archive-page .erp-archive-card {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(214,162,31,.28);
  border-radius: 12px;
  background: #151b24;
}
.erp-archive-page .erp-archive-card > p { margin: 0 0 20px; }
.erp-archive-page .erp-archive-card > .button { margin: 0 0 14px; }
.erp-archive-page .erp-archive-card > form { margin: 0; }
body.admin-dark.erp-archive-page main.page .erp-archive-card button[type="submit"],
body.admin-dark.erp-archive-page main.page .erp-archive-card a.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  min-height: 38px;
  padding: 9px 16px;
  border: 1px solid #8a6d25;
  border-radius: 7px;
  background: #252115;
  color: #edc452;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: none;
}
body.admin-dark.erp-archive-page main.page .erp-archive-card button[type="submit"]:hover,
body.admin-dark.erp-archive-page main.page .erp-archive-card a.button:hover {
  border-color: #edc452;
  background: #332b17;
}

.erp-api-column {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}
.erp-api-column > h2 { color: #edc452; margin: 0 0 2px; }
body.admin-dark.erp-settings-page main.page .erp-api-card button:is([type="submit"], [data-key-toggle]) {
  background: #252115;
  border-color: #8a6d25;
  color: #edc452;
}
body.admin-dark.erp-settings-page main.page .erp-api-card button:is([type="submit"], [data-key-toggle]):hover {
  background: #332b17;
  border-color: #edc452;
}

#ved .chz-settings-form .chz-form-grid > .chz-print-fields {
  grid-column: span 8;
}
#ved .chz-settings-form .chz-form-grid > .chz-code-fields {
  grid-column: 1 / -1;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
#ved .chz-settings-form :is(.chz-label-size-fields, .chz-print-fields, .chz-code-fields) {
  padding: 5px 9px 9px;
  gap: 6px 8px;
}
@media (max-width: 1100px) {
  #ved .chz-settings-form .chz-form-grid > .chz-print-fields { grid-column: 1 / -1; }
  #ved .chz-settings-form .chz-form-grid > .chz-code-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  #ved .chz-settings-form .chz-form-grid > .chz-code-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

#ved .chz-settings-form .chz-article-entry-row {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.5fr) repeat(2, var(--ved-control-height));
}
@media (max-width: 720px) {
  #ved .chz-settings-form .chz-article-entry-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) repeat(2, var(--ved-control-height));
  }
  #ved .chz-settings-form .chz-article-entry-row > .chz-article-field {
    grid-area: 1 / 1 / 2 / 3;
  }
  #ved .chz-article-entry-row > .is-upload { grid-area: 1 / 3; }
  #ved .chz-article-entry-row > .is-download { grid-area: 1 / 4; }
  #ved .chz-article-entry-row > .chz-code128-field { grid-column: 2 / -1; }
}

/* Marking forms share the ERP palette and keep their existing field layout. */
#ved .chz-primary-grid {
  --chz-form-accent: #806019;
  --chz-form-accent-bg: rgba(214, 162, 31, .10);
}
body.admin-dark #ved .chz-primary-grid {
  --chz-form-accent: #f4c542;
}
#ved .chz-primary-grid .chz-card {
  border-color: var(--line);
  background: var(--panel);
  box-shadow: none;
}
#ved .chz-primary-grid .chz-card-head {
  padding-block: 12px;
  background: transparent;
  border-color: var(--line);
}
#ved .chz-primary-grid .chz-card-head > span {
  color: var(--chz-form-accent);
  background: var(--chz-form-accent-bg);
  border-color: transparent;
}
#ved .chz-primary-grid .chz-card-head h3 {
  font-size: 16px;
  line-height: 1.3;
}
#ved .chz-primary-grid .chz-card-head :is(small, em) {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: normal;
  text-transform: none;
}
#ved .chz-primary-grid .chz-card-head em {
  border-color: var(--line);
  background: transparent;
}
#ved .chz-primary-grid .chz-fieldset {
  border-color: var(--line);
  background: transparent;
}
#ved .chz-primary-grid .chz-fieldset legend {
  color: var(--text);
}
#ved .chz-primary-grid .chz-form :is(input, select)::placeholder {
  color: var(--muted);
  opacity: 1;
}
#ved .chz-primary-grid .chz-form :is(.chz-file-field, .chz-codes-template-link) {
  color: var(--text);
  background: transparent;
  border-color: var(--ved-field-border);
}
#ved .chz-primary-grid .chz-form :is(.chz-file-field, .chz-codes-template-link):hover {
  border-color: var(--chz-form-accent);
}
#ved .chz-primary-grid .chz-form button[type="submit"] {
  color: var(--chz-form-accent);
  border-color: var(--chz-form-accent);
  background: var(--chz-form-accent-bg);
}
#ved .chz-primary-grid .chz-form button[type="submit"]:enabled:hover {
  background: rgba(214, 162, 31, .19);
}

.fecor-warehouse-plan {
  position: relative;
  width: min(100%, 68.627cqh);
  min-inline-size: 0;
  margin: 0 auto;
  padding: 0;
  border: 0;
}
.fecor-warehouse-plan > svg {
  display: block;
  width: 100%;
  height: auto;
}
.fecor-warehouse-legend {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.fecor-warehouse-point {
  position: absolute;
  left: var(--map-x);
  top: var(--map-y);
  display: grid;
  place-items: center;
  width: 5%;
  height: 4%;
  margin: 0;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.fecor-warehouse-point input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.fecor-warehouse-point span {
  width: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #d8dee7;
  border: 1px solid #161b23;
  pointer-events: none;
}
.fecor-warehouse-point:hover span,
.fecor-warehouse-point input:checked + span {
  background: #f4c542;
  box-shadow: 0 0 0 2px #f4c54266;
}
.fecor-warehouse-point input:focus-visible + span {
  outline: 2px solid white;
  outline-offset: 2px;
}

.site-b2b-warehouse-map:has([data-warehouse-map]) {
  grid-template-columns: auto minmax(0, 1fr);
}
.site-b2b-warehouse-map:has([data-warehouse-map]) h3 {
  font-size: 14px;
}
[data-warehouse-map] .fecor-warehouse-plan {
  margin-inline: 0 auto;
}
.fecor-warehouse-plan > svg { cursor: zoom-in; }
.fecor-plan-viewer {
  max-width: calc(100vw - 24px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
}
.fecor-plan-viewer .fecor-warehouse-plan {
  width: min(420px, 78vw, 52dvh);
  margin: 12px auto 0;
}
.fecor-plan-viewer svg { cursor: crosshair; }

[data-warehouse-map] .fecor-warehouse-point {
  pointer-events: none;
}
[data-warehouse-map] .fecor-warehouse-point input:checked + span {
  width: 72%;
  background: #fff36a;
  box-shadow: 0 0 0 2px #ffc52b, 0 0 8px 3px #ffb800;
}

.site-b2b-product-dialog > .fecor-plan-viewer {
  position: absolute;
  inset: 0;
  z-index: 5;
  box-sizing: border-box;
  max-width: none;
  overflow: auto;
}

/* Phone layout. Desktop rules remain above this breakpoint. */
@media (max-width: 700px) {
  .erp-compact-topbar .os-context-tabs {
    min-width: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .erp-compact-topbar .os-context-tabs > * {
    flex-shrink: 0;
    min-height: 44px;
  }
  .side-nav nav {
    min-width: 0;
    -webkit-overflow-scrolling: touch;
  }
  .side-nav :is(a, summary, button) {
    min-height: 44px;
  }
  .erp-side-flyout {
    box-sizing: border-box;
    max-width: calc(100vw - 16px);
    max-height: 65dvh;
    overflow-y: auto;
  }
  .erp-side-flyout button {
    min-height: 44px;
    font-size: 14px;
  }
  .site-b2b-product-dialog {
    max-height: calc(100dvh - 12px);
  }
  .site-b2b-product-dialog :is(input:not([type=hidden]):not([type=radio]):not([type=checkbox]):not([type=file]), select, textarea),
  #ved .chz-form :is(input:not([type=hidden]):not([type=radio]):not([type=checkbox]):not([type=file]), select, textarea) {
    font-size: 16px;
    min-height: 44px;
  }
  .site-b2b-product-dialog footer button,
  :is(.site-b2b-product-dialog,.site-b2b-counterparty-dialog) .site-b2b-product-tabs button,
  #ved .chz-form :is(button, .chz-codes-template-link) {
    min-height: 44px;
    font-size: 13px;
  }
  .site-b2b-product-dialog footer {
    position: sticky;
    bottom: 0;
    background: var(--card);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .site-b2b-product-tab-panel.site-b2b-product-breakdown {
    min-height: 200px;
  }
  .site-b2b-warehouse-map-stage {
    min-height: 190px;
  }
  .fecor-warehouse-plan {
    width: min(100%, 130px);
  }
  #ved .chz-primary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  #ved .chz-card-head {
    flex-wrap: wrap;
  }
  #ved .chz-card-head em {
    margin-left: 0;
  }
  #ved .chz-settings-form .chz-article-entry-row {
    --ved-control-height: 44px;
  }
  .site-b2b-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}


:is(.site-b2b-warehouse-dialog, .site-b2b-realization-dialog) td:has(input[type="number"]) {
  position: relative;
}
:is(.site-b2b-warehouse-dialog, .site-b2b-realization-dialog) td input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
:is(.site-b2b-warehouse-dialog, .site-b2b-realization-dialog) td input[type="number"]::-webkit-inner-spin-button,
:is(.site-b2b-warehouse-dialog, .site-b2b-realization-dialog) td input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
:is(.site-b2b-warehouse-dialog, .site-b2b-realization-dialog) td.b2b-cell-editing > input[type="number"] {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: var(--card);
  color: var(--text);
  outline: 1px solid var(--fecor-gold);
}

:is(.site-b2b-warehouse-dialog, .site-b2b-realization-dialog) td:not(.b2b-cell-editing) > input[type="number"] {
  padding: 0 8px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

/* A document editor fills its table cell, including in compact document forms. */
:is(.site-b2b-warehouse-dialog, .site-b2b-realization-dialog) td.b2b-cell-editing {
  outline: 1px solid var(--fecor-gold);
  outline-offset: -1px;
}
:is(.site-b2b-warehouse-dialog, .site-b2b-realization-dialog) td.b2b-cell-editing > input[type="number"] {
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 var(--erp-text-inset, 8px) !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: inset 0 0 0 1px var(--fecor-gold) !important;
  background: var(--card) !important;
  font: inherit !important;
}

td:has(> .b2b-cell-product-card:not([hidden])) {
  position: relative;
  padding-right: 34px !important;
}
.b2b-framed-table td > .b2b-cell-product-card {
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fecor-gold-bright);
  font-size: 19px;
  cursor: pointer;
  z-index: 3;
}
.b2b-framed-table td > .b2b-cell-product-card:hover {
  background: var(--fecor-gold-soft);
}

/* A single full-cell product editor across B2B document tables. */
:is(.site-b2b-warehouse-dialog,.site-b2b-realization-dialog) td.site-b2b-product-edit-cell.is-editing {
  padding:0!important;
  outline:1px solid var(--fecor-gold);
  outline-offset:-1px;
}
:is(.site-b2b-warehouse-dialog,.site-b2b-realization-dialog) td.site-b2b-product-edit-cell.is-editing > .site-b2b-receipt-product-picker {
  position:absolute!important;
  inset:0;
  z-index:2;
  box-sizing:border-box;
  width:100%;
  height:100%;
  min-width:0;
  margin:0;
  padding:0;
}
:is(.site-b2b-warehouse-dialog,.site-b2b-realization-dialog) td.site-b2b-product-edit-cell.is-editing :is(.receipt-product-search,select),
:is(.site-b2b-warehouse-dialog,.site-b2b-realization-dialog) td.site-b2b-product-edit-cell.is-editing > select {
  box-sizing:border-box;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:0 36px 0 var(--erp-text-inset, 8px)!important;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  box-shadow:inset 0 0 0 1px var(--fecor-gold)!important;
  background:var(--card)!important;
  color:var(--text);
  font:inherit!important;
}
:is(.site-b2b-warehouse-dialog,.site-b2b-realization-dialog) td.site-b2b-product-edit-cell .receipt-product-search::-webkit-search-cancel-button {
  -webkit-appearance:none;
}

/* Fit the article heading; the product column absorbs remaining table width. */
.b2b-fixed-article-table .b2b-article-column {
  box-sizing:border-box;
  width:80px!important;
  min-width:80px!important;
  max-width:80px!important;
  padding-right:6px!important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-variant-numeric:tabular-nums;
}
.b2b-fixed-article-table col.b2b-flex-product-column {width:auto!important}

/* Desktop workspaces: compact circles beneath the main sidebar categories. */
.fecor-workspaces{display:flex;flex-direction:column;align-items:center;gap:12px;margin:18px 0 8px;padding-top:18px;border-top:1px solid var(--line)}
.fecor-workspace-item{position:relative;display:flex;justify-content:center;width:40px;flex-shrink:0}
.side-nav .fecor-workspace-circle{display:grid;place-items:center;position:relative;box-sizing:border-box;width:26px;height:26px;min-height:0;margin:0;padding:5px;border:1px solid var(--line);border-radius:50%;background:var(--card);color:var(--muted);cursor:pointer}
.side-nav .fecor-workspace-circle svg{width:14px;height:14px;display:block}
.side-nav .fecor-workspace-circle[aria-pressed=true]{border-color:var(--fecor-gold);color:var(--fecor-gold-text);background:var(--fecor-gold-soft)}
.side-nav .fecor-workspace-close{position:absolute;right:-5px;top:-7px;z-index:2;display:grid;place-items:center;box-sizing:border-box;width:20px;height:20px;min-height:0;padding:0;margin:0;border:1px solid var(--line);border-radius:50%;background:var(--card);color:var(--text);font:15px/1 Arial;opacity:0;pointer-events:none;cursor:pointer}
.fecor-workspace-item:hover .fecor-workspace-close,.fecor-workspace-item:focus-within .fecor-workspace-close{opacity:1;pointer-events:auto}
.fecor-workspace-label{position:absolute;left:calc(100% + 12px);top:0;z-index:160;display:none;padding:7px 12px;white-space:nowrap;border:1px solid var(--fecor-gold-line);border-radius:7px;background:var(--card);color:var(--text);font-size:12px;box-shadow:0 6px 20px #0005}
.fecor-workspace-item:hover .fecor-workspace-label,.fecor-workspace-item:focus-within .fecor-workspace-label{display:block}
.fecor-workspace-dirty{position:absolute;top:0;right:0;width:6px;height:6px;border-radius:50%;background:var(--fecor-gold)}
.fecor-workspace-dirty[hidden]{display:none}
body.fecor-workspace-host.fecor-workspace-show-frame main.page{visibility:hidden;pointer-events:none;height:0!important;overflow:hidden;margin:0!important;padding:0!important}
.fecor-workspace-stage{position:fixed;right:0;bottom:0;z-index:110;background:var(--bg)}
.fecor-workspace-frame{display:block;border:0;width:100%;height:100%;background:var(--bg)}
.fecor-workspace-frame[hidden]{display:none!important}
.erp-workspace-child body{--b2b-shell-topbar-height:0px!important}
.erp-workspace-child header.topbar,.erp-workspace-child .app-layout>.side-nav,.erp-workspace-child .side-menu-toggle{display:none!important}
.erp-workspace-child .app-layout{display:block!important;grid-template-columns:1fr!important;margin-left:0!important;padding-left:0!important}
.erp-workspace-child main.page{margin-left:0!important;padding-top:8px!important;width:100%!important}
.erp-workspace-child :is(#b2b-nomenclature,#b2b-counterparties){left:8px!important;top:8px!important;right:8px;bottom:8px}
@media(hover:none){.side-nav .fecor-workspace-close{opacity:1;pointer-events:auto}}
html.erp-workspace-child body.side-menu-collapsed .app-layout>.side-nav,html.erp-workspace-child body .app-layout>.side-nav{display:none!important}
html.erp-workspace-child body.side-menu-collapsed .app-layout,html.erp-workspace-child body .app-layout{display:block!important;grid-template-columns:minmax(0,1fr)!important;padding-left:0!important;margin-left:0!important}
html.erp-workspace-child body.side-menu-collapsed .app-layout>main.page,html.erp-workspace-child body .app-layout>main.page{margin-left:0!important;left:0!important;width:100%!important}
.side-nav .fecor-workspace-close{right:auto;left:-5px}
/* Suppress embedded chrome before the first paint, not after ERP initialization. */
html.erp-workspace-loading body{visibility:hidden!important}
html.erp-workspace-child .side-nav,html.erp-workspace-child header.topbar{display:none!important}

/* Transfer documents occupy the working area, like receipts and realizations. */
#b2b-warehouse-transfers.is-document-open>.site-b2b-warehouse-operation-toolbar,
#b2b-warehouse-transfers.is-document-open>.site-b2b-warehouse-table-wrap,
#b2b-warehouse-transfers.is-document-open>[data-b2b-transfer-list-error]{display:none!important}
#b2b-warehouse-transfers>[data-b2b-transfer-dialog][open]{position:relative;inset:auto;display:block;box-sizing:border-box;width:100%;max-width:none;min-width:0;max-height:none;min-height:180px;margin:0;overflow:hidden;border-color:var(--fecor-gold-line)}
[data-b2b-transfer-dialog] form{gap:6px;overflow:auto}
[data-b2b-transfer-dialog] .site-b2b-receipt-header{box-sizing:border-box;width:100%;min-height:48px;padding:7px 11px;border:1px solid var(--fecor-gold-line);border-radius:8px;background:var(--fecor-gold-soft)}
[data-b2b-transfer-dialog] .site-b2b-receipt-fields{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
[data-b2b-transfer-dialog] .site-b2b-receipt-lower{min-height:0}
[data-b2b-transfer-dialog] .site-b2b-product-row-actions{white-space:nowrap}
@media(max-width:900px){[data-b2b-transfer-dialog] .site-b2b-receipt-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){[data-b2b-transfer-dialog] .site-b2b-receipt-fields{grid-template-columns:1fr}}
/* Transfer uses the same document canvas and compact metadata spacing as posting. */
#b2b-warehouse-transfers.is-document-open{gap:0}
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] form{padding:16px;gap:8px}
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-receipt-fields{grid-template-columns:190px 160px minmax(0,1fr) minmax(0,1fr);gap:10px}
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-receipt-lower{flex:1 1 auto;min-height:0;overflow:auto}
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-document-comments,
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] footer{flex:none}
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-receipt-lines table{width:100%;table-layout:fixed}
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-receipt-lines th:nth-child(1 of :where(:not(.b2b-row-number))){width:auto}
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-receipt-lines th:nth-child(2 of :where(:not(.b2b-row-number))){width:160px}
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-receipt-lines th:last-child{width:80px}
@media(max-width:900px){#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-receipt-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-receipt-fields{grid-template-columns:1fr}}

/* Transfer line entry follows posting: article, product, quantity and one toolbar. */
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-receipt-lines th:nth-child(1 of :where(:not(.b2b-row-number))),
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-receipt-lines td:nth-child(1 of :where(:not(.b2b-row-number))){width:80px}
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-receipt-lines th:nth-child(2 of :where(:not(.b2b-row-number))),
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-receipt-lines td:nth-child(2 of :where(:not(.b2b-row-number))){width:auto}
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-receipt-lines th:nth-child(3 of :where(:not(.b2b-row-number))),
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-receipt-lines td:nth-child(3 of :where(:not(.b2b-row-number))){width:160px}
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-receipt-lines [hidden]{display:none!important}
#b2b-warehouse-transfers .site-b2b-receipt-table-actions{display:flex;align-items:center;gap:8px;margin:0 0 8px;min-height:26px}
#b2b-warehouse-transfers .site-b2b-receipt-table-actions > button{display:grid;place-items:center;width:24px;height:24px;min-height:24px;padding:0;margin:0;border:0;border-radius:0;background:transparent;color:var(--fecor-gold-text);font:22px/1 Arial;cursor:pointer}
#b2b-warehouse-transfers .site-b2b-receipt-table-actions > button svg{width:18px;height:18px}
#b2b-warehouse-transfers .site-b2b-receipt-table-actions [data-b2b-transfer-remove-line]{color:#ff7373}
#b2b-warehouse-transfers .site-b2b-receipt-table-actions > button:disabled{opacity:.4;cursor:not-allowed}
#b2b-warehouse-transfers .site-b2b-receipt-lines th,
#b2b-warehouse-transfers .site-b2b-receipt-lines td{box-sizing:border-box;padding:8px;border-right:1px solid var(--line);font-size:12px}
#b2b-warehouse-transfers .site-b2b-receipt-lines tr[aria-selected=true]{background:var(--fecor-gold-soft)}
#b2b-warehouse-transfers .site-b2b-receipt-lines td>input[type=number]{box-sizing:border-box;width:100%;min-width:0;height:28px;min-height:28px;margin:0;padding:0 5px;border:0;border-radius:0;background:transparent;box-shadow:none;font:inherit}
#b2b-warehouse-transfers .site-b2b-receipt-lines td.site-b2b-product-edit-cell.is-editing>select{padding-right:36px!important}
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-receipt-fields{margin:0;align-items:end}
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-receipt-fields label{gap:5px;font-size:12px}
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-receipt-fields :is(input,select){height:36px;min-height:36px;padding:7px 10px;font-size:12px}
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-receipt-lower{padding-top:8px;border-top:0}
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] footer{flex-wrap:wrap;gap:8px}
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] footer [data-b2b-transfer-footnote]{flex:1 1 auto}
/* Transfer field captions follow the compact posting placeholders. */
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-receipt-fields>label{position:relative;display:block;height:36px;min-height:36px;margin:0}
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .transfer-field-caption{position:absolute;z-index:1;top:50%;left:10px;right:30px;transform:translateY(-50%);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;color:var(--muted);font-size:12px;font-weight:400}
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-receipt-fields>label:is(.is-filled,:focus-within)>.transfer-field-caption{display:none}
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-receipt-fields>label>:is(input,select){display:block;width:100%;margin:0}
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-receipt-fields>label:not(.is-filled):not(:focus-within)>select{color:transparent}
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-receipt-fields select option{color:var(--text)}
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-receipt-fields>label:not(.is-filled):not(:focus-within)>input[type=date]::-webkit-datetime-edit{color:transparent}
/* Transfer-specific fields within the shared posting document layout. */
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] form{gap:6px}
#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-receipt-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px}
#b2b-warehouse-transfers .site-b2b-receipt-doc-meta{grid-column:1/-1}
#b2b-warehouse-transfers .site-b2b-receipt-doc-meta label{position:relative;display:block;margin:0}
#b2b-warehouse-transfers .site-b2b-receipt-doc-meta label:is(.is-filled,:focus-within)>.transfer-field-caption{display:none}
#b2b-warehouse-transfers .site-b2b-receipt-doc-meta input{box-sizing:border-box;width:100%;margin:0}
#b2b-warehouse-transfers .site-b2b-receipt-product-picker{position:relative;min-width:0}
#b2b-warehouse-transfers .site-b2b-receipt-product-label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:25px}
#b2b-warehouse-transfers .site-b2b-receipt-product-picker:not(.is-editing)>.receipt-product-search{display:none!important}
#b2b-warehouse-transfers .site-b2b-receipt-product-picker.is-editing>.site-b2b-receipt-product-label{display:none}
#b2b-warehouse-transfers .site-b2b-receipt-product-results{position:absolute;z-index:20;top:100%;left:0;right:0;max-height:230px;overflow:auto;border:1px solid var(--fecor-gold-line);border-radius:0 0 7px 7px;background:var(--card);box-shadow:0 12px 25px #0005}
#b2b-warehouse-transfers .site-b2b-receipt-product-results button{display:block;width:100%;margin:0;padding:8px 10px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:var(--card);color:var(--text);text-align:left;font:inherit;font-size:12px;cursor:pointer}
#b2b-warehouse-transfers .site-b2b-receipt-product-results button:hover{background:var(--fecor-gold-soft);color:var(--fecor-gold-text)}
#b2b-warehouse-transfers .site-b2b-receipt-lines th,#b2b-warehouse-transfers .site-b2b-receipt-lines td{padding:5px 8px;font-size:11px;line-height:1.25}
@media(max-width:560px){#b2b-warehouse-transfers>[data-b2b-transfer-dialog] .site-b2b-receipt-fields{grid-template-columns:1fr}}

/* All B2B registers share the same outer canvas floor and bottom gutter. */
#b2b-sales-panel:not([hidden]){
  box-sizing:border-box;
  min-height:calc(100dvh - var(--b2b-canvas-top,var(--b2b-shell-topbar-height,83px)) - 8px);
}
#b2b-sales-panel:has(#b2b-nomenclature:not([hidden])){min-height:0}
/* Extra B2B canvas height belongs below content, never in the heading row. */
#b2b-sales-panel:not([hidden]){align-content:start}
#b2b-sales-panel>.panel-title-row{align-self:start;flex-grow:0}

.fecor-workspace-stage[hidden]{display:none!important}

/* Admin stock summary is an explicit popover beside search, not a floating header value. */
.erp-compact-topbar .erp-header-search-tools{grid-column:4;grid-row:1;display:flex;align-items:center;gap:8px;min-width:0;width:240px;justify-self:end}
.erp-compact-topbar .erp-header-search-tools>.erp-header-search{flex:1;min-width:0;width:auto;margin:0}
.erp-header-context{
  grid-column:3;
  grid-row:1;
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.erp-header-context>.os-context-tabs{flex:0 1 auto}
.erp-header-ticker{
  flex:1 0 0;
  min-width:0;
  overflow:hidden;
  color:var(--erp-ticker-color,var(--fecor-gold-text));
  font-size:var(--erp-ticker-size,14px);
  line-height:1.4;
  white-space:nowrap;
}
.erp-header-ticker span{
  display:block;
  width:max-content;
  padding-inline-start:100%;
  animation:erp-header-ticker-scroll var(--erp-ticker-duration,28s) linear infinite;
}
.erp-header-ticker:hover span{animation-play-state:paused}
@keyframes erp-header-ticker-scroll{
  to{transform:translateX(-100%)}
}
@media(prefers-reduced-motion:reduce){
  .erp-header-ticker{overflow:auto;scrollbar-width:none}
  .erp-header-ticker span{padding:0;animation:none}
}
@media(max-width:700px){
  .erp-header-context{grid-column:1/-1;grid-row:2}
}
.erp-stock-popover{position:relative;flex:none}
.erp-stock-popover>summary{display:grid;place-items:center;box-sizing:border-box;width:28px;height:28px;padding:0;list-style:none;border:1px solid var(--fecor-gold-line);border-radius:7px;background:var(--fecor-gold-soft);color:var(--fecor-gold-text);font:18px/1 Arial;cursor:pointer}
.erp-stock-popover>summary::-webkit-details-marker{display:none}
.erp-stock-popover[open]>summary{border-color:var(--fecor-gold)}
.erp-stock-popover-panel{position:absolute;top:calc(100% + 10px);right:0;z-index:350;box-sizing:border-box;width:290px;max-width:calc(100vw - 24px);padding:16px;border:1px solid var(--fecor-gold-line);border-radius:10px;background:var(--card);color:var(--text);box-shadow:0 12px 32px #0006}
.erp-stock-popover-panel>strong{display:block;font-size:14px}
.erp-stock-popover-panel small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.erp-stock-popover-panel dl{display:grid;gap:12px;margin:16px 0 0}
.erp-stock-popover-panel dl>div{display:flex;justify-content:space-between;gap:16px;align-items:baseline}
.erp-stock-popover-panel dt{color:var(--muted);font-size:12px}
.erp-stock-popover-panel dd{margin:0;color:var(--fecor-gold-text);font-size:16px;font-weight:400;font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:1100px){.erp-compact-topbar .erp-header-search-tools{grid-column:1/-1;grid-row:2;width:100%}.erp-stock-popover-panel{left:0;right:auto}}
@media(max-width:700px){.erp-compact-topbar .erp-header-search-tools{grid-row:3}}
/* Reordering retained workspaces does not reload or activate their content. */
.fecor-workspace-item[draggable=true]{cursor:grab}
.fecor-workspace-item[draggable=true] .fecor-workspace-circle{cursor:grab}
.fecor-workspace-item.is-dragging{opacity:.4;cursor:grabbing}
.fecor-workspace-item.is-dragging .fecor-workspace-label,
.fecor-workspace-item.is-dragging .fecor-workspace-close{display:none}

/* Product captions live inside empty controls; switch labels stay visible. */
.site-b2b-product-dialog .product-compact-label{position:relative;gap:0}
.site-b2b-product-dialog .product-control-label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.site-b2b-product-dialog .product-empty-caption{position:absolute;left:10px;right:30px;top:50%;transform:translateY(-50%);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;color:var(--muted);font-size:12px;font-weight:400}
.site-b2b-product-dialog .product-control-filled>.product-empty-caption,
.site-b2b-product-dialog .product-compact-label:focus-within>.product-empty-caption{display:none}
.site-b2b-product-dialog .product-compact-label:not(.product-control-filled):not(:focus-within)>select{color:transparent}
.site-b2b-product-dialog .product-compact-label select option{color:var(--text)}
.site-b2b-product-dialog .site-b2b-product-okpd2-lookup>label.product-compact-label{position:absolute!important;width:1px;height:1px;overflow:hidden}

/* Product card uses a unified background without dividing lines. */
.site-b2b-product-dialog .site-b2b-product-image{border-right:0;border-bottom:0}
.site-b2b-product-dialog .site-b2b-product-lower{border-top:0}

/* Restore generous spacing in the upper card and align article/TN VED widths. */
.site-b2b-product-dialog form>header{padding-bottom:16px}
.site-b2b-product-dialog .site-b2b-product-card-body{padding-top:8px}
.site-b2b-product-dialog .site-b2b-product-fields{--product-field-gap:18px;gap:var(--product-field-gap)}
.site-b2b-product-dialog .site-b2b-product-fields>label{margin:0}
.site-b2b-product-dialog .site-b2b-product-code-row{display:grid;grid-template-columns:calc((100% - var(--product-field-gap))/2) minmax(70px,.4fr) minmax(0,1fr);gap:var(--product-field-gap);align-items:center}
.site-b2b-product-dialog .site-b2b-product-code-row>label{width:100%;min-width:0}
.site-b2b-product-dialog .site-b2b-product-code-row>.site-b2b-product-marking{align-self:center}
@media(max-width:560px){
  .site-b2b-product-dialog .site-b2b-product-code-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .site-b2b-product-dialog .site-b2b-product-code-row>label:first-child{grid-column:1/-1}
}
/* Nomenclature owns its heading; don't expose the parent heading in its top gutter. */
#b2b-sales-panel:has(#b2b-directories:not([hidden]) #b2b-nomenclature:not([hidden]))>.panel-title-row{display:none!important}
/* Give the price/stock preview a clear gutter below the nomenclature register. */
#b2b-nomenclature{gap:8px}
#b2b-nomenclature>.site-b2b-product-summary{margin:0;min-width:0}

/* ERP workspace rhythm: consistent 8px outer and major-block gutters. */
:root{--erp-workspace-gap:8px}
.app-layout>main.page,
body.erp-settings-page main.page,
body.erp-archive-page main.page{box-sizing:border-box;padding:var(--erp-workspace-gap)}
main.page>:is(section,.panel,.cards,.stock-cards,[data-module-key]):not([hidden]){margin-top:0;margin-bottom:0}
main.page>:is(section,.panel,.cards,.stock-cards,[data-module-key]):not([hidden]):has(~ :is(section,.panel,.cards,.stock-cards,[data-module-key]):not([hidden])){margin-bottom:var(--erp-workspace-gap)}
main.page>:is(.cards,.stock-cards){gap:var(--erp-workspace-gap)}
main.page .diagnostics-workspace{gap:var(--erp-workspace-gap)}
/* Retained workspaces keep the same gutter as the original ERP page. */
.erp-workspace-child .app-layout>main.page{padding:var(--erp-workspace-gap)!important}
body.fecor-workspace-host.fecor-workspace-show-frame .app-layout>main.page{padding:0!important}

/* Continuous ERP chrome without header or sidebar dividing rules. */
body>.topbar.erp-compact-topbar{border-bottom:0}
.app-layout>.side-nav{border-right:0;border-top:0}
.side-nav .side-nav-bottom,.side-nav .fecor-workspaces{border-top:0}
body.side-menu-collapsed .app-layout>.side-nav,
body:not(.side-menu-collapsed) .app-layout>.side-nav{border-right:0!important}
/* Separate category navigation from retained workspace tabs. */
.side-nav .fecor-workspaces{border-top:1px solid var(--line)}
/* Shared register layout, based on the approved invoice screen.
   Outer workspace gutter: 8px. Entry insets: 4px top / 12px sides and bottom.
   Keep document editors and the fixed nomenclature layout independent. */
body #b2b-sales-panel:has(>[data-b2b-section-view]:not([hidden])>.erp-register:not([hidden])){
  border-color:transparent!important;box-shadow:none!important;outline:0;row-gap:0
}
#b2b-sales-panel:has(>[data-b2b-section-view]:not([hidden])>.erp-register:not([hidden]))>.panel-title-row{border-bottom:0}
#b2b-sales-panel>[data-b2b-section-view]:has(>.erp-register:not([hidden])){
  padding:4px 12px 12px;gap:0;min-width:0;box-sizing:border-box
}
#b2b-sales-panel>[data-b2b-section-view]>.erp-register:not([hidden]){
  display:grid;align-content:start;gap:12px;padding:0;min-width:0;box-sizing:border-box
}
#b2b-sales-panel .erp-register>.site-b2b-product-list-title,
#b2b-sales-panel .erp-register>.site-b2b-contract-toolbar{
  box-sizing:border-box;width:100%;margin:0;min-width:0
}
#b2b-sales-panel .erp-register>.table-wrap,
#b2b-sales-panel .erp-register>.site-b2b-warehouse-table-wrap{min-width:0;margin-top:0;margin-bottom:0}
/* Site-order registers share the same search/table rhythm without changing their columns. */
:is(#site-fecor-orders,#site-sorber-orders)>.site-fecor-product-list{
  margin-top:0;display:grid;align-content:start;gap:12px;padding:0 12px 12px
}
:is(#site-fecor-orders,#site-sorber-orders) .site-fecor-product-list-head{
  padding:10px 0;border-bottom:0
}
:is(#site-fecor-orders,#site-sorber-orders) .site-order-search{
  width:min(360px,100%);margin:0
}
:is(#site-fecor-orders,#site-sorber-orders) .site-fecor-products-wrap{margin:0;min-width:0}


/* Keep the full sheet visible without a PDF viewer toolbar or internal scrollbar. */
.site-b2b-label-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  min-height: 0;
  gap: 12px;
}
.site-b2b-label-sheet {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  max-width: min(100%, calc((100cqh - var(--label-bottom-space)) * 164 / 113));
  aspect-ratio: 164 / 113;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: #586174;
  text-align: center;
}
.site-b2b-label-sheet img:not([hidden]) { display: block; width: 100%; height: 100%; object-fit: contain; }
.site-b2b-label-controls, .site-b2b-label-fields { display: grid; min-width: 0; gap: 8px; }
.site-b2b-label-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.site-b2b-label-fields .label-wide { grid-column: 1 / -1; }
.site-b2b-label-fields :is(input, textarea) { width: 100%; min-width: 0; }
.site-b2b-label-output {
  /* Preserve the preview size after moving the icons into the card footer. */
  --label-bottom-space: 34px;
  display: grid;
  align-content: start;
  container-type: size;
  gap: 6px;
  min-width: 0;
  min-height: 0;
}
.site-b2b-label-output:has([data-label-status]:not(:empty)) { --label-bottom-space: 62px; }
.site-b2b-label-controls {
  align-content: start;
  min-height: 0;
  overflow: auto;
}
.site-b2b-label-actions {
  display: none;
  align-items: center;
  flex: none;
  gap: 6px;
  margin-inline-end: auto;
}
.site-b2b-product-dialog form:has([data-b2b-product-tab-panel="barcode"]:not([hidden])) > footer > .site-b2b-label-actions {
  display: flex;
}
.site-b2b-product-dialog .site-b2b-label-actions :is(button, a) {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-height: 28px;
  min-width: 28px;
  padding: 0;
  border: 1px solid var(--fecor-gold-line);
  border-radius: 6px;
  background: var(--fecor-gold-soft);
  color: var(--fecor-gold-text);
}
.site-b2b-label-actions svg { width: 15px; height: 15px; }
.site-b2b-label-actions :is(:disabled, [aria-disabled="true"]) { opacity: .45; }
.site-b2b-label-actions :is(button, a):focus-visible { outline: 2px solid var(--fecor-gold); }
.site-b2b-label-editor [data-label-status]:empty { display: none; }
/* One card frame for every tab. Scroll within the body or the active panel. */
.site-b2b-product-dialog form[data-b2b-product-form] {
  gap: 6px;
}
.site-b2b-product-dialog form[data-b2b-product-form] > header {
  flex: none;
  padding-bottom: 6px;
}
.site-b2b-product-dialog form[data-b2b-product-form] > .site-b2b-product-card-body {
  flex: 0 0 auto;
  max-height: 42%;
}
.site-b2b-product-dialog .site-b2b-product-lower {
  flex: 1 1 0;
  min-height: 0;
}
.site-b2b-product-dialog .site-b2b-product-lower > .site-b2b-product-tab-panel {
  min-height: 0;
  overflow: auto;
}
.site-b2b-product-tab-panel[data-b2b-product-tab-panel="barcode"] {
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
  align-items: stretch;
  justify-items: stretch;
}
.site-b2b-product-dialog form[data-b2b-product-form] > footer {
  position: static;
  margin-top: 0;
  padding-block: 6px;
  background: var(--card);
}
@media (max-width: 700px) {
  .site-b2b-label-editor {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(44px, 1fr) minmax(0, .65fr);
    gap: 8px;
  }
  .site-b2b-product-dialog form[data-b2b-product-form] > .site-b2b-product-card-body {
    max-height: 32%;
  }
}
@media (max-width: 380px) {
  .site-b2b-product-dialog form[data-b2b-product-form] > footer { gap: 6px; }
  .site-b2b-product-dialog form[data-b2b-product-form] > footer > button { padding-inline: 6px; }
}
.site-b2b-label-fields :is(input, textarea)::placeholder { color: var(--muted); }
.site-b2b-product-tab-panel .site-b2b-label-fields textarea { min-height: 0; resize: vertical; }
@media (min-width: 701px) {
  #b2b-product-panel-barcode { container-type: size; }
  .site-b2b-label-editor {
    /* Fit the preview at its previous size and move both columns together. */
    grid-template-rows: minmax(0, min(calc((100cqw - 12px) * 113 / 328), max(0px, calc(100cqh - 38px))));
    align-content: end;
    padding-block-end: 4px;
  }
  .site-b2b-label-output {
    container-type: normal;
    grid-template-rows: minmax(0, 1fr) auto;
    row-gap: 0;
  }
  .site-b2b-label-sheet { max-width: 100%; max-height: 100%; }
  .site-b2b-label-output:has([data-label-status]:not(:empty)) { row-gap: 6px; }
  .site-b2b-label-sheet img:not([hidden]) { min-height: 0; }
  .site-b2b-product-tab-panel .site-b2b-label-fields input { min-height: 26px; }
  .site-b2b-product-tab-panel .site-b2b-label-fields textarea { padding-block: 3px; line-height: 1.2; }
}

/* Move a whole product line by its grip beside the article. */
td.b2b-row-grip-cell:has(> .b2b-row-grip:not([hidden])) {
  position: relative;
  padding-inline-end: 23px !important;
}
td > button.b2b-row-grip:not([hidden]) {
  position: absolute;
  inset-inline-end: 2px;
  inset-block-start: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 19px;
  height: 28px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: grab;
  touch-action: none;
}
.b2b-row-grip::before {
  content: '';
  width: 9px;
  height: 14px;
  background: radial-gradient(circle, currentColor 1px, transparent 1.5px) 0 0 / 4px 4px;
}
td > button.b2b-row-grip:hover,
td > button.b2b-row-grip:focus-visible { color: var(--fecor-gold-text); }
.b2b-row-dragging { opacity: .55; }
.b2b-row-dragging .b2b-row-grip { cursor: grabbing; }
.b2b-row-drop-before > td { box-shadow: inset 0 2px var(--fecor-gold); }
.b2b-row-drop-after > td { box-shadow: inset 0 -2px var(--fecor-gold); }

/* Use the Realization row height across desktop B2B tables. */
@media (min-width: 901px) {
  .b2b-framed-table { --b2b-body-row-height: 35px; }
  .b2b-framed-table > tbody > tr:not(.site-b2b-receipt-toolbar-row) {
    height: var(--b2b-body-row-height);
  }
  .b2b-framed-table > tbody > tr:not(.site-b2b-receipt-toolbar-row) > :is(td, th):not(.is-editing) {
    padding-block: 2px !important;
    vertical-align: middle;
  }
}

/* Shared B2B table frame and position column. */
.site-b2b-warehouse-table-wrap:has(> .b2b-framed-table),
.table-wrap:has(> .b2b-framed-table) {
  border: 1px solid var(--fecor-gold-line);
  border-radius: 9px;
}
.b2b-framed-table:not(:is(.site-b2b-warehouse-table-wrap, .table-wrap) > *) {
  border: 1px solid var(--fecor-gold-line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 9px;
}
.b2b-framed-table:not(:is(.site-b2b-warehouse-table-wrap, .table-wrap) > *) > thead > tr:first-child > :first-child {
  border-start-start-radius: 8px;
}
.b2b-framed-table:not(:is(.site-b2b-warehouse-table-wrap, .table-wrap) > *) > thead > tr:first-child > :last-child {
  border-start-end-radius: 8px;
}
.b2b-fixed-article-table .b2b-row-number {
  box-sizing: border-box;
  width: 60px !important;
  padding-inline: 4px !important;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.b2b-fixed-article-table th.b2b-row-number { font-size: 11px; }

/* Keep the product table action icons centered on one horizontal axis. */
:is(.site-b2b-invoice-table-actions, .site-b2b-realization-table-actions, .site-b2b-receipt-table-actions) > .site-b2b-line-action {
  display: inline-grid;
  place-items: center;
}
:is(.site-b2b-invoice-table-actions, .site-b2b-realization-table-actions, .site-b2b-receipt-table-actions) > .site-b2b-line-action > svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* Desktop B2B product tables give spare width to the product name. */
@media (min-width: 901px) {
  .site-b2b-invoice-lines:has(> .b2b-sales-document-lines),
  .site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines:has(> .b2b-sales-document-lines) {
    overflow-x: auto;
  }
  .site-b2b-invoice-dialog [data-b2b-invoice-panel="goods"] .site-b2b-invoice-lines .b2b-sales-document-lines {
    min-width: 742px;
  }
  .site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines .b2b-sales-document-lines {
    min-width: 935px;
  }
  .b2b-fixed-article-table :is(.b2b-row-number, .b2b-existing-row-number) {
    box-sizing: border-box;
    width: calc(3ch + 10px) !important;
    padding-inline: 4px !important;
    text-align: center;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .b2b-fixed-article-table .b2b-article-column {
    width: 62px !important;
    min-width: 62px !important;
    max-width: 62px !important;
  }
  .b2b-fixed-article-table :is(th, td).b2b-flex-product-column {
    width: auto !important;
  }
  .b2b-fixed-article-table td.b2b-flex-product-column:not(.is-editing) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .site-b2b-invoice-lines .b2b-sales-document-lines > tbody > tr > td:nth-child(5 of :where(:not(.b2b-row-number))) {
    white-space: normal;
    line-height: 1.25;
  }
  .b2b-fixed-article-table col[style*="--b2b-column-width"] {
    width: var(--b2b-column-width) !important;
  }
}

/* B2B column boundaries sit inside the header so they do not cover cell controls. */
.b2b-column-resize { display: none; }
@media (min-width: 901px) {
  .b2b-column-resizable { position: relative; }
  .b2b-column-resize {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: 2;
    display: block;
    width: 8px;
    cursor: col-resize;
    touch-action: none;
    user-select: none;
  }
  .b2b-column-resize:is(:hover, :focus-visible, .is-resizing) {
    box-shadow: inset -2px 0 var(--fecor-gold);
  }
  .b2b-framed-table.b2b-columns-sized {
    table-layout: fixed;
    width: var(--b2b-resized-table) !important;
    min-width: 0 !important;
  }
  .b2b-framed-table.b2b-columns-sized > colgroup > col[style*="--b2b-resized-column"] {
    width: var(--b2b-resized-column) !important;
  }
}

/* VED orders follow the spacing and table frame of B2B registers. */
#ved.foreign-trade-panel:has(> #ved-orders:not([hidden])) {
  border-color: transparent;
  box-shadow: none;
}
#ved .ved-register-heading { padding: 16px 28px 10px; }
#ved .ved-register-heading h2 { margin: 0; font-size: 16px; line-height: 1.3; }
#ved .ved-order-register {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 4px 12px 12px;
  background: none;
}
#ved .ved-order-register[hidden] { display: none; }
#ved .ved-register-toolbar { width: 100%; margin: 0; }
#ved .ved-register-toolbar input[type=search] {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 26px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1f2937;
  font: inherit;
}
#ved .ved-register-toolbar input[type=search]::placeholder { color: #687586; }
#ved .ved-register-toolbar .site-b2b-product-search:focus-within { border-color: var(--fecor-gold); }

#ved .ved-register-toolbar [data-ved-order-document-open] {
  width: auto;
  padding-inline: 8px;
  font-weight: 650;
  white-space: nowrap;
}
#ved .ved-register-count { margin-inline-start: auto; white-space: nowrap; }
#ved .ved-order-register > .site-b2b-warehouse-table-wrap,
#ved #ved-order-document-dialog .ved-product-table-wrap {
  margin: 0;
  border-color: var(--fecor-gold-line);
  border-radius: 9px;
}
#ved :is(.ved-order-register, #ved-order-document-dialog) .b2b-framed-table thead th {
  background: var(--surface);
  color: var(--text);
}
#ved .ved-order-register .ved-orders-table th:nth-child(3) { width: auto; }
#ved .ved-order-register .ved-orders-table .ved-order-edit {
  min-height: 0;
  padding: 0;
  color: inherit;
}
#ved .ved-order-register tr.is-selected td {
  background: var(--fecor-gold-soft);
}
#ved #ved-order-document-dialog > header {
  padding: 12px 16px;
  border-bottom: 0;
}
#ved #ved-order-document-dialog > header h3 { font-size: 16px; }
#ved #ved-order-document-dialog > .ved-order-form {
  gap: 8px;
  padding: 4px 12px 0;
}
#ved #ved-order-document-dialog .ved-order-editor {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
#ved #ved-order-document-dialog :is(.ved-order-requisites, .ved-order-products) {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
#ved #ved-order-document-dialog .ved-order-requisites-fields {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px 12px;
}
#ved #ved-order-document-dialog .ved-order-requisites-fields > .ved-order-party-field { grid-column: span 3; }
#ved #ved-order-document-dialog .ved-order-output-tools,
#ved #ved-order-document-dialog .ved-output-notice { margin: 0; }
#ved #ved-order-document-dialog .ved-order-products-heading { margin-bottom: 8px; }
#ved #ved-order-document-dialog .ved-product-picker { margin-bottom: 8px; }
#ved #ved-order-document-dialog .ved-product-count {
  border: 0;
  background: transparent;
  color: var(--muted);
}
#ved #ved-order-document-dialog :is(.ved-order-output-tools button, .ved-order-save) {
  border-color: var(--fecor-gold-line);
  background: var(--fecor-gold-soft);
  color: var(--fecor-gold-text);
}
#ved #ved-order-document-dialog > .ved-order-form > footer {
  margin: 0 -12px;
  padding: 10px 12px 12px;
}
@media (max-width: 900px) {
  #ved #ved-order-document-dialog .ved-order-requisites-fields { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  #ved .ved-register-heading { padding-inline: 12px; }
  #ved .ved-register-toolbar { flex-wrap: wrap; flex-basis: auto; height: auto; }
  #ved .ved-register-count { display: none; }
  #ved #ved-order-document-dialog .ved-order-requisites-fields > .ved-order-party-field { grid-column: 1 / -1; }
}

/* Keep table controls outside the scroll area and freeze the complete header. */
@media screen {
  .b2b-table-scroll {
    min-width: 0;
    min-height: 0;
    max-height: max(160px, calc(100dvh - var(--b2b-canvas-top, 80px) - 210px));
    overflow: auto;
  }
  .b2b-table-scroll > table {
    border-collapse: separate;
    border-spacing: 0;
  }
  .b2b-table-scroll > table > thead {
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: var(--surface, var(--card));
  }
  .b2b-table-scroll > table > thead > tr > th,
  #b2b-counterparties .b2b-table-scroll > table > thead th.b2b-column-resizable {
    position: relative;
  }
  #b2b-sales-panel .site-b2b-receipt-lower:has(> .site-b2b-receipt-panel:not([hidden]) > .site-b2b-receipt-lines > .b2b-table-scroll) {
    min-height: 145px;
  }
  #b2b-sales-panel .site-b2b-receipt-panel:not([hidden]):has(> .site-b2b-receipt-lines > .b2b-table-scroll),
  #b2b-sales-panel .site-b2b-receipt-lines:has(> .b2b-table-scroll) {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
  }
  #b2b-sales-panel .site-b2b-receipt-panel:has(> .site-b2b-receipt-lines > .b2b-table-scroll) > :not(.site-b2b-receipt-lines),
  #b2b-sales-panel .site-b2b-receipt-lines:has(> .b2b-table-scroll) > :not(.b2b-table-scroll) {
    flex: none;
  }
  #b2b-sales-panel .site-b2b-receipt-lines > .b2b-table-scroll {
    max-height: none;
    scroll-padding-block-start: 34px;
  }
  #b2b-sales-panel .b2b-table-scroll td.site-b2b-product-edit-cell.is-editing > .site-b2b-receipt-product-picker {
    position: relative !important;
    height: auto;
  }
  #b2b-sales-panel .b2b-table-scroll td.site-b2b-product-edit-cell.is-editing .receipt-product-search {
    height: 28px !important;
  }
  #b2b-sales-panel .b2b-table-scroll .site-b2b-receipt-product-results {
    position: static;
    max-height: 150px;
  }
}

#b2b-sales-panel .b2b-catalog-search {
  position: relative;
  z-index: 41;
  flex: 0 1 320px;
  min-width: 0;
  margin-inline-start: 6px;
}
#b2b-sales-panel .b2b-catalog-search > .site-b2b-product-search {
  box-sizing: border-box;
  min-width: 0;
  height: 28px;
  margin: 0;
  padding: 0 9px;
  border-color: #cbd3dd;
  border-radius: 7px;
  background: #e9edf2;
  color: #647184;
}
#b2b-sales-panel .b2b-catalog-search > .site-b2b-product-search:focus-within {
  border-color: var(--fecor-gold);
}
#b2b-sales-panel .b2b-catalog-search input {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 26px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  color: #1f2937;
  font-size: 11px;
}
#b2b-sales-panel .b2b-catalog-search input::placeholder { color: #647184; }
#b2b-sales-panel .b2b-catalog-search [aria-selected="true"] {
  background: var(--fecor-gold-soft);
  color: var(--fecor-gold-text);
}
#b2b-sales-panel .b2b-catalog-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
#b2b-sales-panel .b2b-catalog-empty {
  margin: 0;
  padding: 6px 8px;
  color: var(--muted);
}

/* Shared B2B document tables and their catalog toolbar. */
#b2b-sales-panel { --b2b-form-gap: 10px; }
#b2b-sales-panel .site-b2b-universal-receipt :is(
  .site-b2b-receipt-fields,
  .site-b2b-receipt-tabs,
  .site-b2b-invoice-parties,
  .site-b2b-invoice-party-column,
  .site-b2b-invoice-doc-meta,
  .site-b2b-invoice-doc-actions,
  .site-b2b-invoice-buyer-tax,
  .site-b2b-realization-parties,
  .site-b2b-realization-party-column
) {
  gap: var(--b2b-form-gap);
}
#b2b-sales-panel .site-b2b-universal-receipt .site-b2b-receipt-fields label {
  margin-block: 0;
}
#b2b-sales-panel .site-b2b-universal-receipt > form:has(> .site-b2b-receipt-fields + .site-b2b-receipt-lower) {
  row-gap: var(--b2b-form-gap);
}
#b2b-sales-panel .site-b2b-universal-receipt > form > .site-b2b-receipt-fields + .site-b2b-receipt-lower {
  padding-block-start: 0;
  border-block-start: 0;
}
#b2b-sales-panel .b2b-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin: 0 0 5px;
  padding-inline-start: 5px;
}
#b2b-sales-panel .b2b-catalog-toolbar > button { flex: 0 0 auto; }
#b2b-sales-panel .b2b-catalog-search > .site-b2b-product-search {
  width: 100%;
  max-width: 100%;
  background: #e9edf2;
  color: #647184;
}
#b2b-sales-panel .b2b-catalog-search > .site-b2b-product-search > svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}
#b2b-sales-panel .b2b-catalog-search > [role=listbox] {
  position: absolute;
  inset: calc(100% + 4px) 0 auto;
}
#b2b-sales-panel table > tbody > tr:is([aria-selected=true], .is-selected) > :first-child {
  box-shadow: inset 4px 0 var(--fecor-gold);
}
@media (min-width: 901px) {
  #b2b-sales-panel .b2b-framed-table > thead > tr > :is(th, td) {
    height: 34px;
    box-sizing: border-box;
    padding-block: 8px 7px;
    line-height: 16px;
    vertical-align: middle;
  }
}

#b2b-sales-panel [data-inventory-item-search] {
  flex: 0 1 320px;
  min-width: 0;
  padding: 0;
  margin: 0;
}
#b2b-sales-panel [data-b2b-picking-search] {
  position: relative;
  z-index: 3;
}

#b2b-sales-panel [data-b2b-picking-search]:has(+ [data-b2b-picking-table-wrap][hidden]) { display: none; }

/* Align ERP text with the outer edge of its field or column divider. */
@media screen {
  :root {
    --erp-text-inset: 8px;
    --erp-bordered-text-inset: calc(var(--erp-text-inset) - 1px);
  }

  :is(th, td):not(.b2b-row-number, .b2b-existing-row-number, .is-editing, .site-b2b-receipt-toolbar-row > *, .site-order-row-actions) {
    padding-left: var(--erp-cell-text-inset, var(--erp-text-inset)) !important;
  }

  .b2b-framed-table tr > :first-child,
  :is([data-b2b-invoice-dialog], .site-b2b-realization-dialog) .site-b2b-invoice-lines tr > :is(th, td) + :is(th, td),
  :is(#b2b-purchase-receipts, #b2b-warehouse-postings, #b2b-warehouse-transfers) .site-b2b-receipt-lines tr > :is(th, td) + :is(th, td),
  #ved :is(.ved-orders-table, .ved-product-table, .ved-supply-table-wrap table, .chz-history-table) tr > :is(th, td) + :is(th, td) {
    --erp-cell-text-inset: var(--erp-bordered-text-inset);
  }

  @media (max-width: 900px) {
    .site-b2b-realization-dialog [data-b2b-realization-panel="goods"] .site-b2b-invoice-lines tbody td + td {
      --erp-cell-text-inset: var(--erp-text-inset);
    }
  }

  :is(select, textarea, input:not([type]), input:is([type=text], [type=search], [type=email], [type=password], [type=tel], [type=url], [type=number], [type=date], [type=time], [type=datetime-local], [type=month], [type=week])):not(
    :is(.erp-header-search, .site-b2b-product-search, .chz-history-search label) input,
    :is(.chz-article-search-control, .ved-product-search-control) input
  ) {
    padding-left: var(--erp-bordered-text-inset) !important;
  }

  :is(.erp-header-search, .site-b2b-product-search, .chz-history-search label) {
    padding-left: var(--erp-bordered-text-inset) !important;
  }

  :is(.site-b2b-invoice-inline-editor, .site-b2b-realization-inline-editor).is-editing > :is(input, select) {
    padding-left: var(--erp-text-inset) !important;
  }
}

.erp-ticker-card { display:grid; gap:10px; }
.erp-ticker-card form { margin:0; }
.erp-ticker-account label { display:grid; gap:6px; }
.erp-ticker-form { display:grid; gap:10px; }
.erp-ticker-form textarea { width:100%; box-sizing:border-box; min-height:90px; resize:vertical; padding:8px; background:var(--card); color:var(--text); border:1px solid var(--line); border-radius:7px; font:inherit; }
.erp-ticker-controls { display:grid; grid-template-columns:2fr 1fr 1fr; gap:10px; }
.erp-ticker-form label { display:grid; gap:6px; min-width:0; }
.erp-ticker-form small { color:var(--muted); }
.erp-ticker-controls > label { align-content:start; }
.erp-settings-page .erp-ticker-controls input {
  box-sizing:border-box;
  width:100%;
  height:35px;
  min-height:35px;
  margin:0;
  padding-block:4px;
}
.erp-ticker-controls input[type=color]::-webkit-color-swatch-wrapper { padding:0; }
.erp-ticker-form > footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.erp-ticker-form > footer > small { flex:1; line-height:1.4; }
.erp-ticker-form > footer > button { flex:none; }
@media(max-width:600px) {
  .erp-ticker-form > footer { flex-wrap:wrap; }
  .erp-ticker-form > footer > small { flex-basis:100%; }
  .erp-ticker-form > footer > button { margin-left:auto; }
}
@media(max-width:600px) { .erp-ticker-controls { grid-template-columns:1fr; } }

/* Marketplace sales use the B2B table frame and compact document spacing. */
:is(#sales-store, #top-products) {
  --sales-table-heading: #eef2f7;
  --sales-table-heading-text: #354154;
}
body.admin-dark :is(#sales-store, #top-products) {
  --sales-table-heading: #131d2b;
  --sales-table-heading-text: #cad2de;
}
:is(#sales-store, #top-products) > .section-head {
  align-items: center;
  gap: 10px;
  padding: 12px;
}
:is(#sales-store, #top-products) .section-actions,
:is(#sales-store, #top-products) .sales-date-form {
  gap: 10px;
}
:is(#sales-store, #top-products) .sales-date-form label {
  gap: 4px;
}
:is(#sales-store, #top-products) > .table-wrap {
  margin: 12px;
  max-height: min(65vh, 760px);
  overflow: auto;
  border-color: var(--fecor-gold-line);
}
#top-products > .top-products-tools {
  margin: 0 12px;
  gap: 10px;
}
:is(#sales-store, #top-products) table {
  border-collapse: separate;
  border-spacing: 0;
}
:is(#sales-store, #top-products) table :is(th, td) {
  font-size: 11px;
  line-height: 16px;
  border-bottom: 1px solid var(--line);
  padding-right: 8px;
  vertical-align: middle;
}
:is(#sales-store, #top-products) table tr > :is(th, td) + :is(th, td) {
  border-left: 1px solid var(--line);
  --erp-cell-text-inset: var(--erp-bordered-text-inset);
}
:is(#sales-store, #top-products) table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 34px;
  box-sizing: border-box;
  padding: 8px 8px 7px !important;
  background: var(--sales-table-heading) !important;
  color: var(--sales-table-heading-text) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}
:is(#sales-store, #top-products) table thead th + th {
  padding-left: 7px !important;
}
:is(#sales-store, #top-products) table tbody tr:hover td {
  background: var(--fecor-gold-soft);
}
.chart-day-link[aria-current=date] {
  background: var(--fecor-gold-soft);
  outline: 1px solid var(--fecor-gold-line);
}

#top-products thead :is(.top-products-sort-button, .top-products-sum-button) {
  color: inherit !important;
  font-weight: 700 !important;
  line-height: 16px !important;
}
#top-products .top-products-column-filter summary {
  min-height: 0;
  padding-block: 0;
  line-height: 16px;
  font-size: 11px;
  color: var(--fecor-gold-text);
}
#top-products .top-products-sort-button span {
  box-sizing: border-box;
  width: 16px !important;
  height: 16px !important;
  color: var(--fecor-gold-text) !important;
  border-color: var(--fecor-gold-line) !important;
}
#top-products :is(.top-products-rank, .top-products-sum-button strong) {
  color: var(--fecor-gold-text) !important;
}

#top-products thead :is(.top-products-platform-head, .top-products-sort-button, .top-products-sum-button) {
  vertical-align: top;
}
#top-products .top-products-column-filter summary > span {
  box-sizing: border-box;
  height: 16px;
  padding: 0 4px;
  line-height: 14px;
  font-size: 10px;
}

:is(#sales-store, #top-products) :is(.sales-date-form input, .sales-date-form button, .export-link, .top-products-tools input, .top-products-tools select) {
  box-sizing: border-box;
  height: 28px;
  min-height: 28px;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 18px;
}
:is(#sales-store, #top-products) :is(.sales-date-form button, .export-link) {
  min-width: 0;
  border: 1px solid var(--fecor-gold-line);
  border-radius: 7px;
  background: var(--fecor-gold-soft);
  color: var(--fecor-gold-text);
  font-weight: 700;
}

/* Settings retain the shared ERP header and sidebar. */
.erp-settings-workspace {
  min-width: 0;
  background: #0f1113;
}
.erp-settings-content {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: calc(100dvh - var(--b2b-shell-topbar-height, 64px) - 16px);
  min-height: 320px;
  border: 0;
  background: #0f1113;
}
body.erp-settings-embedded { background: #0f1113; }
.erp-settings-embedded main.page {
  max-width: none !important;
  margin: 0 !important;
  padding: 8px !important;
}
.erp-settings-embedded main.page > h1 { margin-top: 8px; }

body.erp-theme-light.erp-settings-embedded,
body.erp-theme-light .erp-settings-workspace,
body.erp-theme-light .erp-settings-content { background: #f5f7fa; }

/* Sales panels share the Daily turnover heading rhythm. */
:is(#replenishment, #sales-store, #top-products) > .section-head {
  box-sizing: border-box;
  min-height: 52px;
  padding: 9px 14px;
  gap: 10px;
  align-items: center;
}
:is(#replenishment, #sales-store, #top-products) > .section-head {
  border-bottom: 0 !important;
  box-shadow: none;
}
:is(#replenishment, #sales-store, #top-products) > .section-head h2 {
  min-height: 0;
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}
:is(#sales-store, #top-products) > .section-head .section-actions {
  padding: 0;
  align-items: center;
}
:is(#sales-store, #top-products) > .section-head .sales-date-form {
  align-items: center;
  margin: 0;
}
#top-products > .section-head .top-products-total-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-height: 0;
  padding: 4px 8px;
}
#top-products > .section-head .top-products-total-card :is(strong, span, small) {
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
}
@media (max-width: 1100px) {
  :is(#replenishment, #sales-store, #top-products) > .section-head {
    padding: 8px 10px;
    height: auto;
  }
}

#replenishment > .section-head { padding-inline: 16px; }
#replenishment .turnover-target-card > div:first-child {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
}
@media (max-width: 1100px) {
  #replenishment > .section-head { padding-inline: 16px; }
}

/* Match the heading text to the text inset inside the Goal card. */
#replenishment > .section-head > h2 {
  padding-left: 13px !important;
  box-sizing: border-box;
  min-width: 0;
  overflow-wrap: anywhere;
}

#sales-store > .section-head { padding-left: 16px; }
#sales-store > .section-head > h2 {
  padding-left: 13px !important;
  box-sizing: border-box;
  min-width: 0;
}
@media (max-width: 1100px) {
  #sales-store > .section-head { padding-left: 16px; }
}

/* Keep table frames while removing only the outer sales panel frames. */
:is(#replenishment, #sales-store, #top-products),
body.admin-dark :is(#replenishment, #sales-store, #top-products) {
  border: 0 !important;
  box-shadow: none !important;
}
:is(#sales-store, #top-products) > .table-wrap {
  border: 1px solid var(--fecor-gold-line);
}

#top-products > .section-head { padding-left: 16px; }
#top-products > .section-head > h2 {
  padding-left: 13px !important;
  box-sizing: border-box;
  min-width: 0;
}
@media (max-width: 1100px) {
  #top-products > .section-head { padding-left: 16px; }
}

#top-products > .table-wrap { max-height: none; }
#top-products > .section-head > h2 { flex-shrink: 0; }
#top-products > .section-head > .top-product-search-field { margin: 0 auto 0 10px; min-width: 140px; max-width: 240px; }
#top-products > .section-head > .top-product-search-field input { width: 100%; margin: 0; }

#top-products > .section-head > .top-product-search-field {
  display: flex; align-items: center; gap: 8px; padding: 0 10px;
  width: 320px; max-width: 320px; height: 35px;
  border: 1px solid #c5ceda; border-radius: 8px; background: #fff; color: #65748a;
}
#top-products > .section-head > .top-product-search-field input {
  min-width: 0; height: 33px; min-height: 0; padding: 0 !important;
  border: 0; outline: none; box-shadow: none; background: transparent; color: #172238;
}
#top-products .top-product-search-field svg { flex-shrink: 0; }
#top-products table thead th { padding-left: 8px !important; padding-right: 8px !important; }
#top-products table thead .top-products-sort-button {
  padding: 0 !important; border: 0; background: transparent;
  box-shadow: none; color: inherit; text-align: inherit;
}
#top-products table tbody td.top-products-rank { background: transparent !important; }

/* Sales tables keep the outer gold frame and horizontal row separators. */
:is(#sales-store, #top-products) table tr > :is(th, td) {
  border-left: 0 !important;
  border-right: 0 !important;
}

#top-products > .section-head > .top-product-search-field {
  box-sizing: border-box; height: 28px; min-height: 28px;
}
#top-products > .section-head > .top-product-search-field input {
  height: 26px; min-height: 0; font-size: 11px;
}
#top-products table thead th { text-align: left; }
#top-products table thead th.numeric { text-align: right; }
#top-products table thead th.top-products-rank-head { text-align: center; }
#top-products table thead .top-products-sort-button {
  display: inline-flex !important; width: 100%; min-width: 0;
  justify-content: flex-start !important; align-items: center;
  text-align: left !important; margin: 0;
}
#top-products table thead th.numeric .top-products-sort-button {
  justify-content: flex-end !important; text-align: right !important;
}
#top-products table thead .top-products-platform-head { justify-content: flex-start; gap: 8px; }
#top-products table thead .top-products-platform-head .top-products-sort-button { width: auto; }

/* Marketplace catalog matches Sales panels and grows with its rows. */
#products, body.admin-dark #products { border: 0 !important; box-shadow: none !important; }
#products > .section-head {
  min-height: 52px; padding: 9px 16px; gap: 10px;
  align-items: center; border-bottom: 0 !important;
}
#products > .section-head h2 { margin: 0; padding-left: 13px; font-size: 16px; line-height: 1.2; }
#products :is(.product-tools, .product-filter-form, .product-import-form) { gap: 10px; align-items: center; }
#products .products-scroll-wrap {
  margin: 12px; max-height: none !important; height: auto !important;
  border: 1px solid var(--fecor-gold-line); border-radius: 10px;
  overflow-x: auto;
}
#products table { border-collapse: separate; border-spacing: 0; font-size: 11px; }
#products table :is(th,td) {
  padding: 2px 8px !important; font-size: 11px; line-height: 16px;
  border-left: 0 !important; border-right: 0 !important;
  border-bottom: 1px solid var(--line); vertical-align: middle;
}
#products table th { height: 34px; background: var(--bg); color: var(--muted); }
#products table td { height: 35px; color: var(--text); }
#products :is(input[type=search], select) { height: 28px; min-height: 28px; margin: 0; font-size: 11px; }
#products input[type=search] { border: 1px solid #c5ceda; border-radius: 8px; background: #fff; color: #172238; }
#products :is(.button,button) { min-height: 28px; font-size: 11px; }

#b2b-sales-panel:has(#b2b-reports:not([hidden]) #b2b-gross-profit:not([hidden])) {
  border: 0 !important;
  box-shadow: none !important;
}
#b2b-sales-panel:has(#b2b-reports:not([hidden]) #b2b-gross-profit:not([hidden])) > .panel-title-row {
  border-bottom: 0 !important;
  box-shadow: none !important;
}

#b2b-sales-panel:has(#b2b-reports:not([hidden]) #b2b-gross-profit:not([hidden])) > .panel-title-row {
  min-height: 44px !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}
#b2b-gross-profit { gap: 10px; }
#b2b-gross-profit .site-b2b-gross-profit-filters label { gap: 0; }
#b2b-gross-profit .site-b2b-gross-profit-filters :is(input, select, button) {
  height: 32px; min-height: 32px; padding-block: 4px;
}
#b2b-gross-profit .site-b2b-gross-profit-filters :is(input, select) { padding-left: 8px !important; }
#b2b-gross-profit .site-b2b-gross-profit-summary { gap: 10px; }
#b2b-gross-profit .site-b2b-gross-profit-summary > div {
  min-height: 0 !important;
  padding: 6px 8px !important;
  gap: 3px !important;
}
#b2b-gross-profit .site-b2b-gross-profit-summary :is(span, strong, small) { margin-block: 0; }

#b2b-gross-profit .site-b2b-gross-profit-summary > div { padding: 10px !important; }
#b2b-sales-panel:has(#b2b-reports:not([hidden]) #b2b-gross-profit:not([hidden])) {
  display: flex; flex-direction: column; justify-content: flex-start; gap: 0;
}
#b2b-sales-panel:has(#b2b-reports:not([hidden]) #b2b-gross-profit:not([hidden])) > .panel-title-row {
  height: auto !important; flex: 0 0 auto !important;
  margin-bottom: 0 !important;
}
#b2b-sales-panel > #b2b-reports:not([hidden]):has(#b2b-gross-profit:not([hidden])) {
  flex: 0 0 auto; align-self: stretch; margin-top: 0 !important;
  padding-top: 8px !important;
}

@media (max-width: 700px) {
  dialog.erp-tsd-dialog {
    width: calc(100vw - 16px); max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px); border: 0 !important; box-shadow: none !important;
  }
  .erp-tsd-dialog .erp-tsd-head-top { flex-wrap: wrap; gap: 8px; }
  .erp-tsd-dialog .erp-tsd-head-actions {
    display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 8px; max-width: 100%;
  }
  .erp-tsd-dialog .erp-tsd-head-actions button {
    box-sizing: border-box; flex: 0 0 40px !important;
    width: 40px !important; min-width: 40px !important;
    height: 40px !important; min-height: 40px !important;
    margin: 0 !important; padding: 0 !important;
    display: grid; place-items: center; font-size: 22px; line-height: 1;
  }
  .erp-tsd-dialog .erp-tsd-mobile-actions:not([hidden]) {
    display: flex; flex-wrap: wrap; gap: 8px; padding: 10px;
  }
  .erp-tsd-dialog .erp-tsd-mobile-actions button {
    flex: 1 0 140px; min-width: 140px; min-height: 44px;
    width: auto; margin: 0; padding: 8px 12px; white-space: normal;
  }
  .erp-tsd-dialog button[hidden] { display: none !important; }
}

/* Stock report uses the compact Gross profit shell. */
#b2b-sales-panel:has(#b2b-reports:not([hidden]) #b2b-warehouse-stock-report:not([hidden])) {
  border: 0 !important;
  box-shadow: none !important;
}

#b2b-sales-panel:has(#b2b-reports:not([hidden]) #b2b-warehouse-stock-report:not([hidden])) > .panel-title-row {
  border-bottom: 0 !important;
  box-shadow: none !important;
}


#b2b-sales-panel:has(#b2b-reports:not([hidden]) #b2b-warehouse-stock-report:not([hidden])) > .panel-title-row {
  min-height: 44px !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

#b2b-sales-panel:has(#b2b-reports:not([hidden]) #b2b-warehouse-stock-report:not([hidden])) {
  display: flex; flex-direction: column; justify-content: flex-start; gap: 0;
}

#b2b-sales-panel:has(#b2b-reports:not([hidden]) #b2b-warehouse-stock-report:not([hidden])) > .panel-title-row {
  height: auto !important; flex: 0 0 auto !important;
  margin-bottom: 0 !important;
}

#b2b-sales-panel > #b2b-reports:not([hidden]):has(#b2b-warehouse-stock-report:not([hidden])) {
  flex: 0 0 auto; align-self: stretch; margin-top: 0 !important;
  padding-top: 8px !important;
}
#b2b-warehouse-stock-report { gap: 10px; }
#b2b-warehouse-stock-report .site-b2b-stock-report-filters label { gap: 0; }
#b2b-warehouse-stock-report .site-b2b-stock-report-filters :is(input,select,button) {
  height: 32px; min-height: 32px; padding-block: 4px;
}
#b2b-warehouse-stock-report .site-b2b-stock-report-filters :is(input,select) { padding-left: 8px !important; }
#b2b-warehouse-stock-report .site-b2b-stock-report-summary { gap: 10px; }
#b2b-warehouse-stock-report .site-b2b-stock-report-summary > div {
  min-height: 0; padding: 10px; gap: 3px;
}
#b2b-warehouse-stock-report .site-b2b-stock-report-summary :is(span,strong) { margin-block: 0; }
#b2b-warehouse-stock-report table :is(th,td) { padding-left: 8px !important; }

#b2b-warehouse-stock-report .site-b2b-stock-report-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 700px) {
  #b2b-warehouse-stock-report .site-b2b-stock-report-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#b2b-sales-panel:has(#b2b-documents:not([hidden]) #b2b-reconciliation-acts:not([hidden])) {
  display:flex; flex-direction:column; justify-content:flex-start; gap:0;
  border:0 !important; box-shadow:none !important;
}
#b2b-sales-panel:has(#b2b-documents:not([hidden]) #b2b-reconciliation-acts:not([hidden])) > .panel-title-row {
  height:auto !important; min-height:44px !important; flex:0 0 auto !important;
  padding-top:6px !important; padding-bottom:6px !important;
  border-bottom:0 !important; margin-bottom:0 !important; box-shadow:none !important;
}
#b2b-sales-panel > #b2b-documents:not([hidden]):has(#b2b-reconciliation-acts:not([hidden])) {
  flex:0 0 auto; align-self:stretch; margin-top:0; padding-top:8px;
}
#b2b-reconciliation-acts .reconciliation-toolbar {
  display:flex; align-items:center; justify-content:flex-start;
  gap:16px; margin:0 0 12px; padding:8px;
}
#b2b-reconciliation-acts .site-b2b-receipt-toolbar { display:flex; align-items:center; gap:8px; }
#b2b-reconciliation-acts .site-b2b-product-search { margin:0; }

#b2b-reconciliation-acts .reconciliation-toolbar .site-b2b-receipt-toolbar button {
  display:grid !important; place-items:center; flex:0 0 28px;
  width:28px; height:28px; min-height:28px; margin:0; padding:3px !important;
  border:0 !important; border-radius:0; background:transparent !important;
  box-shadow:none !important; color:var(--fecor-gold-text) !important;
  opacity:1 !important;
}
#b2b-reconciliation-acts .reconciliation-toolbar .site-b2b-receipt-toolbar button svg {
  position:static !important; display:block; width:20px; height:20px;
  margin:0; transform:none; stroke:currentColor;
}
#b2b-reconciliation-acts .reconciliation-toolbar .site-b2b-receipt-toolbar button[aria-label="Удалить"] { color:#e86565 !important; }
#b2b-reconciliation-acts .reconciliation-toolbar .site-b2b-product-search {
  display:flex; align-items:center; gap:8px; box-sizing:border-box;
  height:28px; padding:0 8px !important;
  border:1px solid #c5ceda !important; background:#fff !important;
  color:#65748a !important;
}
#b2b-reconciliation-acts .reconciliation-toolbar .site-b2b-product-search input[type=search] {
  box-sizing:border-box; flex:1; min-width:0; width:100%;
  height:26px; min-height:0; margin:0 !important; padding:0 !important;
  border:0 !important; border-radius:0; outline:0; box-shadow:none !important;
  background:transparent !important; color:#172238 !important; font:inherit; font-size:11px;
}
#b2b-reconciliation-acts .site-b2b-product-search input::placeholder { color:#65748a; opacity:1; }
#b2b-reconciliation-acts .site-b2b-product-search svg { flex:0 0 18px; width:18px; height:18px; }

#b2b-reconciliation-acts .reconciliation-print-link { display:grid; place-items:center; width:28px; height:28px; color:var(--fecor-gold-text); }
#b2b-reconciliation-acts .reconciliation-print-link svg { width:20px; height:20px; }

#b2b-reconciliation-acts .reconciliation-toolbar .site-b2b-receipt-toolbar :is(button,a) {
  display:grid !important; place-items:center; flex:0 0 28px;
  width:28px; height:28px; min-height:28px; padding:3px !important; margin:0;
  border:0; background:transparent; color:var(--fecor-gold-text);
}
#b2b-reconciliation-acts .reconciliation-toolbar .site-b2b-receipt-toolbar :is(button,a) svg {
  width:18px !important; height:18px !important;
}

/* Reconciliation register uses the Realization toolbar dimensions. */
#b2b-reconciliation-acts .reconciliation-toolbar {
  box-sizing:border-box; height:44px; min-height:44px;
  padding:8px 19px; gap:8px; margin-bottom:9px;
  background:rgba(148,163,184,.08);
}
#b2b-reconciliation-acts .reconciliation-toolbar .site-b2b-receipt-toolbar {
  min-height:24px; gap:8px;
}
#b2b-reconciliation-acts .reconciliation-toolbar .site-b2b-receipt-toolbar :is(button,a) {
  box-sizing:border-box; display:inline-grid !important;
  flex:0 0 24px !important; width:24px !important; height:24px !important;
  min-height:24px !important; min-width:24px !important;
  padding:0 !important; border:1px solid transparent !important; border-radius:6px;
}
#b2b-reconciliation-acts .reconciliation-toolbar .site-b2b-receipt-toolbar :is(button,a) svg {
  width:15px !important; height:15px !important; stroke-width:2;
}
#b2b-reconciliation-acts .reconciliation-toolbar .site-b2b-product-search {
  flex:0 1 320px; width:320px; min-width:160px; max-width:320px;
  height:28px; padding:0 9px !important; border-radius:7px;
}
#b2b-reconciliation-acts .reconciliation-toolbar .site-b2b-product-search svg {
  flex:0 0 15px; width:15px; height:15px;
}

/* Shared B2B table text inset. */
#b2b-sales-panel table :is(th,td):not(.b2b-row-number,.b2b-existing-row-number,.is-editing) {
  padding-left:12px !important;
}

#sorber-site-panel { border:0 !important; box-shadow:none !important; }
#site-sorber-support > .panel-title-row { padding-left:28px !important; border-bottom:0 !important; }
#site-sorber-support .site-fecor-card { border-color:var(--fecor-gold-line) !important; box-shadow:none !important; }
#site-sorber-support .site-fecor-form { gap:10px; align-items:start; }
#site-sorber-support .site-fecor-form label { margin:0; }
#site-sorber-support .site-fecor-form :is(select,input:not([type=file]):not([type=hidden])) {
  height:32px; min-height:32px; padding:4px 8px; margin:0;
}
#site-sorber-support .site-fecor-form .site-fecor-upload {
  width:max-content; max-width:100%; min-height:32px;
  justify-self:start; padding:6px 12px; margin:0;
  border:1px solid var(--fecor-gold-line); border-radius:7px;
}
#site-sorber-support .site-fecor-upload span { font-size:12px; }
#site-sorber-support .site-fecor-form > button { min-height:32px; padding:6px 12px; font-size:12px; }

#site-sorber-support .site-fecor-form .site-fecor-upload {
  border:0 !important; padding:0 !important; background:transparent !important;
  box-shadow:none !important;
}
#site-sorber-support .site-fecor-upload > span {
  display:inline-block; padding:8px 14px;
  border:1px dashed var(--fecor-gold-line); border-radius:7px;
}
#site-sorber-support select[name=file_type][hidden] { display:none !important; }
#site-sorber-support .sorber-select { position:relative; margin:0; min-width:0; }
#site-sorber-support .sorber-select > summary {
  display:flex; align-items:center; justify-content:space-between;
  height:32px; padding:4px 16px; border:1px solid var(--line);
  border-radius:8px; background:var(--card); color:var(--text);
  cursor:pointer; list-style:none;
}
#site-sorber-support .sorber-select > summary::-webkit-details-marker { display:none; }
#site-sorber-support .sorber-select > summary::after { content:'⌄'; color:var(--fecor-gold-text); }
#site-sorber-support .sorber-select-menu {
  position:absolute; top:calc(100% + 4px); left:0; right:0; z-index:50;
  padding:4px; border:1px solid var(--fecor-gold-line); border-radius:8px;
  background:var(--card); box-shadow:0 8px 24px #0004;
}
#site-sorber-support .sorber-select-menu button {
  display:block; width:100%; margin:0; padding:8px 12px;
  border:0; border-radius:5px; background:transparent;
  color:var(--text); text-align:left; font:inherit;
}
#site-sorber-support .sorber-select-menu button:is(:hover,:focus-visible,[aria-pressed=true]) {
  background:var(--fecor-gold-soft); color:var(--fecor-gold-text); outline:none;
}


/* Home data control is one continuous surface without an outer frame. */
body #data-quality {
  border:0 !important;
  box-shadow:none !important;
  background:var(--card) !important;
}
body #data-quality > .section-head {
  border:0 !important;
  box-shadow:none !important;
  background:transparent !important;
}
body #data-quality > .quality-grid {
  background:transparent !important;
}


/* Data control tables share the panel surface and retain a continuous gold frame. */
body #data-quality { padding-bottom:12px !important; }
body #data-quality > .table-wrap {
  margin:0 12px 12px !important;
  width:auto !important;
  border:1px solid var(--fecor-gold-line) !important;
  border-radius:10px !important;
  overflow:auto !important;
  background:var(--card) !important;
  box-shadow:none !important;
}
body #data-quality > .table-wrap:last-child { margin-bottom:0 !important; }
body #data-quality > .table-wrap table { margin:0 !important; border:0 !important; }
body #admin-workspace { border:0 !important; box-shadow:none !important; }

/* Finish column uses a consistent inset for its heading and timestamps. */
body #data-quality > .quality-sync-history :is(th,td):first-child {
  padding-left:12px !important;
}

/* Command center windows use the FECOR gold outline. */
body #admin-workspace :is(.admin-menu-group, .admin-menu-links a) {
  border:1px solid var(--fecor-gold-line) !important;
}

/* Align with the first module heading: 1px border plus 10px inner padding. */
body #admin-workspace > .admin-command-head {
  padding-left:11px !important;
  padding-right:0 !important;
  margin-left:0 !important;
  margin-right:0 !important;
  align-items:flex-start !important;
}
body #admin-workspace > .admin-command-head > div,
body #admin-workspace > .admin-command-head h2 {
  padding-left:0 !important;
  margin-left:0 !important;
}

body #data-quality .home-admin-workspace-label {
  color:#38bdf8 !important;
  font:inherit !important;
}

/* Shared home heading alignment and compact sales table separators. */
body #data-quality > .section-head { padding-left:25px !important; }
body #sales-store .sales-store-wrap :is(th,td):first-child {
  padding-left:12px !important;
}
body #sales-store .sales-store-wrap tfoot th {
  border-top:1px solid var(--line) !important;
}

@media (min-width:701px) {
  #b2b-warehouse-stock-report .site-b2b-stock-report-summary { grid-template-columns:repeat(5,minmax(0,1fr)); }
}

/* Movement register: remove the outer frame and heading separator only. */
body #b2b-sales-panel:has(#b2b-product-history:not([hidden])) {
  border:0 !important;
  box-shadow:none !important;
}
body #b2b-sales-panel:has(#b2b-product-history:not([hidden])) > .panel-title-row {
  border-bottom:0 !important;
}
body #b2b-product-history {
  border:0 !important;
  box-shadow:none !important;
}

#b2b-product-history:not([hidden]) {
  display:flex !important; flex-direction:column; min-height:0;
  height:calc(100dvh - var(--b2b-shell-topbar-height, 80px) - 110px);
  box-sizing:border-box; overflow:hidden;
}
#b2b-product-history > .site-b2b-history-head,
#b2b-product-history > .site-b2b-history-pages { flex:0 0 auto; }
#b2b-product-history > .site-b2b-warehouse-table-wrap:not([hidden]) {
  flex:1 1 auto; min-height:0; overflow:auto; max-height:none;
}
#b2b-product-history [hidden] { display:none !important; }
#b2b-product-history .site-b2b-history-head form { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
#b2b-product-history [data-history-mode] { width:auto; min-width:190px; color:var(--fecor-gold-text); border:1px solid var(--fecor-gold-line); background:var(--card); }
#b2b-product-history thead th { position:sticky; top:0; z-index:1; }

#b2b-product-history:not([hidden]) { padding:10px !important; gap:10px; }
#b2b-product-history > .site-b2b-history-head { margin:0 !important; padding:0 !important; border:0 !important; align-items:center; }
#b2b-product-history > .site-b2b-warehouse-table-wrap { margin:0 !important; border:1px solid var(--fecor-gold-line); border-radius:10px; }
#b2b-product-history .site-b2b-history-head form { margin-left:auto; justify-content:flex-end; }
#b2b-product-history [data-history-date] { width:145px; flex:0 0 145px; }
#b2b-product-history .site-b2b-history-head :is(input,select,button) { height:36px; min-height:36px; box-sizing:border-box; margin:0; }

/* Keep the movement toolbar framed and all controls on one axis. */
body #b2b-product-history > .site-b2b-history-head {
  border:1px solid var(--fecor-gold-line) !important;
  border-radius:10px;
  padding:10px !important;
  display:flex !important;
  gap:12px;
}
body #b2b-product-history .site-b2b-history-head form {
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  gap:10px !important;
  width:auto !important;
  min-width:0;
}
body #b2b-product-history .site-b2b-history-head .site-b2b-product-search {
  flex:1 1 260px; min-width:160px; width:280px; max-width:360px;
  margin:0 !important; background:#fff !important;
  border:1px solid #c4cedb; border-radius:8px;
}
body #b2b-product-history .site-b2b-history-head input[type=search] {
  width:100% !important; min-width:0; background:#fff !important; color:#162033 !important;
  border:0 !important; box-shadow:none !important;
}
body #b2b-product-history .site-b2b-product-search svg { color:#64748b !important; }
body #b2b-product-history .site-b2b-history-head button[type=submit] {
  width:auto !important; flex:0 0 auto; padding:6px 14px !important; order:3;
}
body #b2b-product-history [data-history-date] { order:2; }
body #b2b-product-history [data-history-mode] { order:4; flex:0 0 190px; }

/* Compact movement-register spacing without changing other B2B screens. */
body #b2b-sales-panel:has(#b2b-product-history:not([hidden])) {
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:0;
  height:calc(100dvh - var(--b2b-canvas-top,var(--b2b-shell-topbar-height,83px)) - 8px);
  overflow:hidden;
}
body #b2b-sales-panel:has(#b2b-product-history:not([hidden])) > .panel-title-row {
  height:auto !important;
  flex:0 0 auto !important;
  margin:0 !important;
  padding-bottom:5px !important;
}
body #b2b-sales-panel:has(#b2b-product-history:not([hidden])) > #b2b-directories {
  padding:2px 9px 9px !important;
  margin:0 !important;
  gap:5px;
  min-height:0;
  display:flex;
  flex-direction:column;
  flex:1 1 0;
}
body #b2b-product-history:not([hidden]) {
  padding:5px !important;
  gap:5px;
  height:auto;
  flex:1 1 0;
}

/* Navigation shows actual metrics only; unread messages use the label colour. */
body :is(.os-context-tabs,.site-fecor-tabs,.side-nav) strong:empty { display:none; }
body :is(.os-context-tabs,.site-fecor-tabs,.side-nav) a.site-has-new-messages { color:#15803d !important; }
body.admin-dark :is(.os-context-tabs,.site-fecor-tabs,.side-nav) a.site-has-new-messages { color:#65d7a5 !important; }
body :is(.os-context-tabs,.site-fecor-tabs,.side-nav) a.site-has-new-messages .side-nav-link-label { color:inherit !important; }

/* Economics: B2B nomenclature row density. */
.economics-ledger-table tbody td { height:var(--b2b-body-row-height,36px); padding:4px 9px; }
.economics-ledger-table .economics-channel-cell .marketplace-chip { min-height:0; margin:0; padding:3px 8px; white-space:nowrap; }

/* Fit warehouse posting document to the available workspace, including Windows scrollbars. */
@media screen {
  #b2b-warehouse-postings,
  #b2b-warehouse-postings > [data-b2b-posting-dialog],
  #b2b-warehouse-postings [data-b2b-posting-form],
  #b2b-warehouse-postings .site-b2b-receipt-lower,
  #b2b-warehouse-postings .site-b2b-receipt-panel,
  #b2b-warehouse-postings .site-b2b-receipt-lines,
  #b2b-warehouse-postings .b2b-table-scroll {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }
  #b2b-warehouse-postings .site-b2b-receipt-lines table,
  #b2b-warehouse-postings .site-b2b-receipt-lines table.b2b-columns-sized {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
    table-layout: fixed;
  }
  #b2b-warehouse-postings .site-b2b-receipt-lines col.b2b-row-number { width: 32px !important; }
  #b2b-warehouse-postings .site-b2b-receipt-lines col:nth-child(1 of :where(:not(.b2b-row-number))) { width: 12% !important; }
  #b2b-warehouse-postings .site-b2b-receipt-lines col:nth-child(2 of :where(:not(.b2b-row-number))) { width: 40% !important; }
  #b2b-warehouse-postings .site-b2b-receipt-lines col:nth-child(3 of :where(:not(.b2b-row-number))) { width: 14% !important; }
  #b2b-warehouse-postings .site-b2b-receipt-lines col:nth-child(4 of :where(:not(.b2b-row-number))) { width: 18% !important; }
  #b2b-warehouse-postings .site-b2b-receipt-lines col:nth-child(5 of :where(:not(.b2b-row-number))) { width: 16% !important; }
  #b2b-warehouse-postings .site-b2b-receipt-lines th { white-space: normal; overflow-wrap: anywhere; }
  #b2b-warehouse-postings .site-b2b-receipt-lines td { min-width: 0; overflow-wrap: anywhere; }
  #b2b-warehouse-postings .site-b2b-receipt-lines td input { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; }
  #b2b-warehouse-postings .site-b2b-receipt-lines table.b2b-columns-sized > colgroup > col[style*="--b2b-resized-column"] { width: var(--b2b-resized-column) !important; }
}

/* AI reports: canonical FECOR B2B controls and workspace rhythm. */
#marketplace-reports-panel { box-sizing:border-box; min-width:0; min-height:0; max-width:100%; border:1px solid var(--fecor-gold-line); border-radius:8px; background:var(--card); color:var(--text); box-shadow:none; }
#marketplace-reports-panel .marketplace-reports-head { min-height:0; padding:10px 8px; gap:8px; flex-wrap:wrap; }
#marketplace-reports-panel .marketplace-reports-head h2 { margin:0 0 3px; font-size:20px; line-height:1.3; }
#marketplace-reports-panel .marketplace-reports-head > div span { font-size:11px; color:var(--muted); }
#marketplace-reports-panel .marketplace-agent-badge { padding:5px 8px; border-radius:6px; font-size:11px; line-height:1.3; }
#marketplace-reports-panel .marketplace-agent-badge svg { width:15px; height:15px; }
#marketplace-reports-panel .marketplace-report-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:8px; padding:8px; }
#marketplace-reports-panel .marketplace-report-card { box-sizing:border-box; min-width:0; padding:10px 8px; gap:0; border:1px solid var(--fecor-gold-line); border-radius:8px; background:var(--card); box-shadow:none; }
#marketplace-reports-panel .marketplace-report-card > header { min-height:0; gap:8px; margin:0 0 10px; }
#marketplace-reports-panel .marketplace-report-card h3 { margin:0 0 3px; font-size:16px; line-height:1.3; }
#marketplace-reports-panel .marketplace-report-logo { flex:none; width:32px; height:32px; border-radius:6px; border-color:var(--fecor-gold-line); background:var(--fecor-gold-soft); color:var(--fecor-gold-text); font-size:11px; }
#marketplace-reports-panel .marketplace-report-upload { box-sizing:border-box; display:grid; grid-template-columns:minmax(0,1fr); align-content:start; gap:8px; min-height:0; margin:0; padding:0; border:0; border-radius:0; background:transparent; }
#marketplace-reports-panel .marketplace-report-upload label { box-sizing:border-box; width:100%; min-width:0; min-height:52px; margin:0; padding:6px 8px; gap:2px 8px; border:1px solid var(--line); border-radius:6px; background:var(--bg); }
#marketplace-reports-panel .marketplace-report-upload label:hover { border-color:var(--fecor-gold-line); background:var(--fecor-gold-soft); }
#marketplace-reports-panel .marketplace-report-upload label:focus-within { outline:2px solid var(--fecor-gold-text); outline-offset:2px; }
#marketplace-reports-panel .marketplace-report-upload label span { color:var(--text); font-size:12px; }
#marketplace-reports-panel .marketplace-report-upload label small { font-size:10px; color:var(--muted); }
#marketplace-reports-panel .marketplace-report-upload label svg { width:18px; height:18px; color:var(--fecor-gold-text); }
#marketplace-reports-panel .marketplace-report-upload label:has(>input:not([type=file])) { min-height:0; padding:0; border:0; background:transparent; }
#marketplace-reports-panel .marketplace-report-upload input:not([type=file]):not([type=hidden]) { box-sizing:border-box; width:100%; min-width:0; height:var(--fecor-control,35px); min-height:0; margin:0; padding:6px 8px; border:1px solid var(--line); border-radius:6px; background:var(--bg); color:var(--text); font-size:12px; }
#marketplace-reports-panel .marketplace-report-upload > button,
#marketplace-reports-panel .marketplace-report-upload > button:hover { justify-self:start; width:auto; min-height:32px; margin:0; padding:6px 10px; gap:6px; border:1px solid var(--fecor-gold-line)!important; border-radius:6px; background:var(--fecor-gold-soft)!important; color:var(--fecor-gold-text)!important; font-size:12px; line-height:1.3; box-shadow:none; transform:none; }
#marketplace-reports-panel .marketplace-report-upload > button:focus-visible { outline:2px solid var(--fecor-gold-text); outline-offset:2px; }
#marketplace-reports-panel .marketplace-report-latest { margin-top:10px; padding-top:10px; font-size:12px; }
#marketplace-reports-panel .marketplace-report-latest strong { overflow-wrap:anywhere; font-size:12px; }
#marketplace-reports-panel .marketplace-report-latest small { font-size:11px; }
#marketplace-reports-panel .marketplace-reports-footer { margin:0 8px 8px; padding:8px; }
#marketplace-reports-panel .marketplace-report-table :is(th,td) { box-sizing:border-box; height:35px; padding:2px 8px; font-size:11px; }
@media(max-width:900px) { #marketplace-reports-panel .marketplace-report-grid { grid-template-columns:minmax(0,1fr); } }

/* AI reports: clean workspace without decorative frames or dividers. */
#marketplace-reports-panel { border:0; border-radius:0; box-shadow:none; }
#marketplace-reports-panel .marketplace-reports-head { padding:8px; border:0; box-shadow:none; }
#marketplace-reports-panel .marketplace-reports-head h2 { margin:0; }
#marketplace-reports-panel .marketplace-report-card { border:0; border-radius:0; box-shadow:none; }
#marketplace-reports-panel .marketplace-report-latest { padding:8px 0 0; border:0; box-shadow:none; }
#marketplace-reports-panel .marketplace-report-entry { border:0; box-shadow:none; }

/* Reports canvas follows Realization; each marketplace has its own frame. */
#marketplace-reports-panel {
  box-sizing:border-box;
  width:100%;
  border:0;
  border-radius:10px;
  background:var(--card);
  overflow:hidden;
}
#marketplace-reports-panel:not([hidden]) {
  min-height:calc(100dvh - var(--b2b-canvas-top,var(--b2b-shell-topbar-height,83px)) - 8px);
  align-content:start;
}
#marketplace-reports-panel .marketplace-reports-head {
  box-sizing:border-box;
  padding:12px 20px;
  border:0;
}
#marketplace-reports-panel .marketplace-report-grid {
  padding:4px 12px 12px;
  gap:12px;
}
#marketplace-reports-panel .marketplace-report-card {
  border:1px solid var(--fecor-gold-line);
  border-radius:8px;
  padding:12px;
  background:var(--card);
  box-shadow:none;
}

/* Reports canvas fits the actual viewport; guidance stays at its bottom. */
#marketplace-reports-panel:not([hidden]) {
  display:flex; flex-direction:column;
  height:calc(100dvh - var(--reports-canvas-top,160px) - 8px);
  min-height:0; overflow:auto;
}
#marketplace-reports-panel > .marketplace-reports-head,
#marketplace-reports-panel > .marketplace-report-grid,
#marketplace-reports-panel > .marketplace-report-notice { flex:0 0 auto; }
#marketplace-reports-panel > .marketplace-reports-footer {
  flex:0 0 auto; margin: auto 12px 12px; padding:8px 0 0;
  border:0; border-radius:0; background:transparent;
}
