/* Approved layered light palette, shared by every role. */
:root {
  font: 15px/1.45 "Segoe UI", system-ui, sans-serif;
  --canvas: #e0e6e8; --paper: #eff3f4; --ink: #202a30; --muted: #495c68;
  --rule: #c3cdd2; --control: #728590; --blue: #8c492b; --blue-wash: #efe2d8;
  --steel: #416176; --steel-soft: #dfe9ef; --control-hover: #e4e9ed; --danger: #ad5654; --success: #39785b;
  --receipt-read: #126aa8;
  --gutter: 24px; --metal: linear-gradient(90deg, #aebdc5, #a3694e 31%, #7291a4 68%, #b9c6cd);
  --panel-surface: linear-gradient(110deg, rgb(248 242 236 / 86%), rgb(241 245 247 / 82%) 38%, rgb(223 234 240 / 85%));
  --panel-shadow: 0 14px 32px -24px rgb(44 70 86 / 48%);
  --panel-radius: 7px; --table-heading: #e1e7ea;
  --received-ink: #316b5e; --received-accent: #6e9a8a; --received-fill: #deeee7;
  --shipped-ink: #675080; --shipped-accent: #9277ac; --shipped-fill: #ece4f3;
  font-variant-numeric: tabular-nums;
}
html, body { height: 100%; overflow: hidden; }
body { background: repeating-linear-gradient(0deg, rgb(39 62 75 / 1.8%) 0 1px, transparent 1px 6px), linear-gradient(123deg, transparent 71%, rgb(68 101 122 / 6%) 71.3%, transparent 84%), radial-gradient(ellipse at 13% 3%, rgb(172 112 78 / 25%), transparent 47%), radial-gradient(ellipse at 88% 19%, rgb(87 123 146 / 26%), transparent 59%), linear-gradient(148deg, #edf0ee, var(--canvas) 72%, #d4dee3); }
#app { height: 100dvh; overflow: hidden; }
.layout { height: 100%; min-height: 0; display: flex; flex-direction: column; }
button { min-height: 36px; min-width: 32px; padding: 6px 12px; font-size: 14px; transition: none; }
button:disabled { opacity: .55; }
.icon { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { button:active:not(:disabled):not(:focus-visible) { transform: scale(.98); } }
.masthead { position: relative; z-index: 5; flex: none; display: flex; align-items: center; gap: 20px; min-height: 54px; padding-inline: var(--gutter); border-bottom: 1px solid var(--rule); background: linear-gradient(104deg, rgb(247 242 237 / 85%), rgb(237 242 245 / 90%)); }
.brand { flex: none; font-size: 14px; letter-spacing: .1em; gap: 8px; }
.brand .icon { width: 26px; height: 26px; color: var(--blue); }
.masthead nav { display: flex; gap: 0; align-self: stretch; padding: 0; min-width: 0; }
.masthead nav button { background: none; color: var(--muted); border-radius: 0; padding-inline: 10px; font-size: 13px; border-bottom: 2px solid transparent; white-space: nowrap; }
.masthead nav button:hover { background: var(--steel-soft); }
.masthead nav button[aria-current] { border-bottom-color: var(--blue); color: var(--blue); }
/* New notifications: a red count in the menu, a marked card with the "Прочитано" box on the page. */
.nav-count { display: inline-block; min-width: 18px; margin-left: 4px; padding: 1px 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; font-variant-numeric: tabular-nums; }
.notifications-actions { margin-bottom: 12px; }
.card.notification { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.card.notification.is-unread { border-left: 4px solid var(--danger); }
.card.notification.is-unread p { font-weight: 600; }
.notification-read { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; }
.notification-read:has(:disabled) { color: var(--muted); cursor: default; }
.account { margin-left: auto; gap: 8px; font-size: 12px; }
.account strong { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-login { max-width: 140px; min-width: 0; min-height: 32px; margin: 0; padding: 4px 6px; overflow: hidden; border: 1px solid transparent; background: transparent; color: var(--ink); font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.account-login:hover:not(:disabled) { background: var(--steel-soft); color: var(--blue); }
.language-selector { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; margin: 0; }
.language-selector select { width: auto; min-width: 66px; max-width: 74px; min-height: 30px; padding: 4px 6px 4px 28px; font-size: 12px; }
.language-globe { position: absolute; z-index: 1; left: 7px; width: 16px; height: 16px; pointer-events: none; color: var(--steel); }
.login-panel { position: relative; }
.login-panel > .language-selector { position: absolute; top: 20px; right: 20px; }
@media (pointer: coarse) { .language-selector select { min-height: 44px; } }
.account button { min-width: 36px; padding: 6px; }
.currency-switch { display: flex; padding: 2px; border: 1px solid var(--rule); border-radius: 5px; }
.account .currency-switch button { position: relative; margin: 0; min-height: 28px; min-width: 34px; padding: 3px 5px; font-size: 14px; background: transparent; color: var(--muted); border-color: transparent; }
.account .currency-switch button[data-currency="TJS"] { min-width: 42px; font-size: 10px; font-weight: 650; }
.account .currency-switch button[aria-pressed=true] { background: #dcebf5; color: #14547d; border-color: #94b7cc; }
.account .currency-switch button:hover:not(:disabled) { background: #e1e9ee; color: #263b48; }
.account .currency-switch button[data-tooltip]::after { content: attr(data-tooltip); position: absolute; z-index: 12; display: none; top: calc(100% + 7px); left: 50%; transform: translateX(-50%); padding: 4px 7px; border: 1px solid var(--rule); border-radius: 3px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 600; line-height: 1.2; white-space: nowrap; box-shadow: var(--panel-shadow); }
.account .currency-switch button[data-tooltip]:is(:hover,:focus-visible)::after { display: block; }
.masthead .menu-button { display: none; }
#workspace { flex: 1; min-height: 0; display: flex; overflow: hidden; }
.workspace-body { width: 100%; max-width: 1920px; min-height: 0; margin-inline: auto; padding: 14px var(--gutter); display: flex; flex-direction: column; }
.heading { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 320px) minmax(0, 1fr); align-items: center; gap: 14px; margin: 0 0 12px; }
h1 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.04em; line-height: 1.15; }
h2 { font-size: 18px; } h3 { font-size: 16px; }
.heading-actions { display: flex; justify-content: end; gap: 8px; }
.heading-actions button { white-space: nowrap; }
.record-search { display: flex; align-items: center; gap: 7px; background: rgb(246 248 248 / 80%); border: 1px solid var(--control); border-radius: 4px; padding-inline: 9px; }
.record-search input { min-height: 34px; padding: 4px 0; border: 0; background: transparent; font-size: 14px; outline: none; }
.record-search input:focus { box-shadow: none; }
.record-search:focus-within { border-color: var(--steel); box-shadow: 0 0 0 1px var(--steel); }
.pending-note { flex: none; font-size: 12px; color: var(--muted); margin: -3px 0 9px; }
.pending-note strong { color: var(--blue); }
#content { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.records-view #content { overflow: hidden; }
.record-workspace { height: 100%; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(470px, 35vw, 560px); gap: 14px; }
.registry, .supplier-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: var(--panel-radius); overflow: hidden; background: var(--panel-surface); box-shadow: var(--panel-shadow); }
.record-filters { display: flex; flex: none; flex-wrap: nowrap; gap: 10px; align-items: center; min-height: 49px; padding: 7px 10px; background: var(--metal) top / 100% 2px no-repeat; }
.records-title { flex: none; margin: 0; color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; }
/* One line (owner, 17.11.2026): sideways scroll styled like the table scroll; margin-left keeps it right-aligned while it fits. */
.record-filter-buttons { display: flex; flex: 0 1 auto; min-width: 0; gap: 3px; margin-left: auto; padding-bottom: 2px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--control) var(--canvas); }
.record-filters button { flex: none; background: transparent; color: var(--muted); min-height: 32px; font-size: 13px; padding: 3px 6px; gap: 5px; white-space: nowrap; text-transform: lowercase; }
.filter-menu-button .icon { width: 14px; height: 14px; margin-inline: -2px; }
.filter-menu { inset: auto; margin: 0; padding: 4px; min-width: 200px; }
.filter-menu:popover-open { display: grid; gap: 2px; }
.filter-menu button { justify-content: space-between; width: 100%; }
.filter-menu > .filter-menu-option { flex: none; min-height: 32px; padding: 3px 6px; gap: 5px; border-color: transparent; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: lowercase; white-space: nowrap; }
.filter-menu > .filter-menu-option span { font-size: 12px; }
.filter-menu > .filter-menu-option[aria-pressed=true] { background: var(--blue-wash); color: var(--blue); border-color: #ad8269; }
.filter-menu > .filter-menu-option:hover:not(:disabled), .filter-menu > .filter-menu-option:focus-visible { background: var(--control-hover); color: #263b48; border-color: #9aaab5; }
.filter-menu > .filter-menu-option[aria-pressed=true]:hover:not(:disabled), .filter-menu > .filter-menu-option[aria-pressed=true]:focus-visible { background: #dcebf5; color: #14547d; border-color: #7da4be; }
.filter-menu > .filter-menu-option[class*=tone-][aria-pressed=true],
.filter-menu > .filter-menu-option[class*=tone-][aria-pressed=true]:hover:not(:disabled),
.filter-menu > .filter-menu-option[class*=tone-][aria-pressed=true]:focus-visible { color: var(--status-ink); background: var(--status-fill); border-color: var(--status-accent); }
.record-filters button span { font-size: 12px; }
.record-filters button[aria-pressed=true] { background: var(--blue-wash); color: var(--blue); border-color: #ad8269; }
.record-filters button:hover:not(:disabled), .record-filters button:focus-visible { background: var(--control-hover); color: #263b48; border-color: #9aaab5; }
.record-filters button[aria-pressed=true]:hover:not(:disabled), .record-filters button[aria-pressed=true]:focus-visible { background: #dcebf5; color: #14547d; border-color: #7da4be; }
.record-scroll { flex: 1; min-height: 0; overflow: auto; border-block: 1px solid var(--rule); overscroll-behavior: contain; scrollbar-color: var(--control) var(--canvas); }
.records { width: 100%; min-width: 860px; table-layout: fixed; margin: 0; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.records .status-col { width: 19%; }.records .article-col { width: 17%; }.records .brand-col { width: 13%; }.records .qty-col { width: 10.5%; }.records .analogs-col { width: 8.5%; }.records .count-col { width: 12%; }.records .number-col { width: 9%; }.records .date-col { width: 11%; }.records .actions-col { width: 84px; }
.records th, .records td { padding: 5px 9px; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.records th { position: sticky; top: 0; z-index: 2; height: 34px; background: var(--table-heading); color: var(--steel); font-size: 12px; }
.records td { height: 37px; background: var(--paper); color: var(--muted); }
.records th:first-child, .records td:first-child { position: sticky; left: 0; box-shadow: 1px 0 var(--rule); }
.records th:first-child { z-index: 3; }
.records tbody tr { cursor: pointer; }
.records .numeric { text-align: right; }.records .centered { text-align: center; }
.records tr.selected td, .records tr:focus-within td { background-color: var(--steel-soft); }
@media (hover: hover) and (pointer: fine) { .records tbody tr:hover td { background-color: var(--steel-soft); } }
.records .needs-decision .status-cell { background-image: linear-gradient(90deg, #f1e5d9, rgb(241 229 217 / 24%) 82%, transparent); box-shadow: inset 3px 0 #a56a44, 1px 0 var(--rule); }
.records tbody tr.is-draft td { color: #89939a; background: #eef1f2; }
.records tbody tr.is-draft .record-status { color: var(--status-ink); }
.records tbody tr.is-draft .article-link { color: #6f7a81; }
.record-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.status-neutral, .record-status.neutral { --status-ink: #495c68; --status-accent: #8b9da8; --status-fill: #e5ebee; }
.status-attention, .record-status.attention { --status-ink: #884725; --status-accent: #a56a44; --status-fill: #f1e5d9; }
.record-status.neutral { color: var(--status-ink); }
.record-status.attention { color: var(--status-ink); font-weight: 700; }
.status-partial, .record-status.partial { --status-ink: #76591e; --status-accent: #ad8b4b; --status-fill: #f2ead7; }
.status-declined, .record-status.declined { --status-ink: #884e50; --status-accent: #b47779; --status-fill: #f2e3e3; }
.status-success, .record-status.success { --status-ink: #3f6853; --status-accent: #6f9981; --status-fill: #e2ede5; }
.status-received, .record-status.received { --status-ink: var(--received-ink); --status-accent: var(--received-accent); --status-fill: var(--received-fill); }
.status-danger, .record-status.danger { --status-ink: #8b3d44; --status-accent: #b77a80; --status-fill: #f2e0e2; }
.status-shipped, .record-status.shipped { --status-ink: var(--shipped-ink); --status-accent: var(--shipped-accent); --status-fill: var(--shipped-fill); }
.record-status.danger, .record-status.shipped { color: var(--status-ink); font-weight: 700; }
.records :is(.status-danger, .status-shipped) .status-cell { background-image: linear-gradient(90deg,var(--status-fill),transparent); box-shadow: inset 3px 0 var(--status-accent),1px 0 var(--rule); }
.public-identity { display: inline-flex; align-items: center; gap: 5px; color: var(--steel); font-variant-numeric: tabular-nums; }
.public-identity svg { width: 14px; height: 14px; }
.offer-order-link { display: flex; justify-content: flex-end; gap: 8px; align-items: center; margin-block: 8px; }
.offer-order-link .secondary { min-width: 0; }
.supplier-order-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-block: 8px; }
.supplier-order-summary .public-identity { flex: none; }
.supplier-order-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-left: auto; min-width: 0; }
.supplier-order-summary .offer-order-link { margin-block: 0; }
.record-status.partial, .record-status.declined, .record-status.success, .record-status.received { color: var(--status-ink); font-weight: 700; }
.records :is(.status-partial, .status-declined, .status-success, .status-received) .status-cell {
  background-image: linear-gradient(90deg, var(--status-fill), transparent);
  box-shadow: inset 3px 0 var(--status-accent), 1px 0 var(--rule);
}
.record-filters button.status-filter[aria-pressed=true],
.record-filters button.status-filter[aria-pressed=true]:hover:not(:disabled),
.record-filters button.status-filter[aria-pressed=true]:focus-visible {
  color: var(--status-ink); background: var(--status-fill); border-color: var(--status-accent);
}
.request-status-list { display: flex; flex-direction: column; align-items: start; gap: 4px; }
.request-status-list .record-status { padding: 2px 4px; border-left: 2px solid var(--status-accent); }
.record-status .icon { flex-shrink: 0; }
.record-status .icon { width: 14px; height: 14px; }
.article-cell-content { display: flex; align-items: center; gap: 4px; min-width: 0; }
.article-link { display: inline-flex; align-items: center; min-height: 24px; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--steel); font-weight: 700; font-size: 13px; overflow-wrap: anywhere; }
.article-link:hover:not(:disabled) { background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.article-copy { flex: none; width: 28px; min-width: 28px; height: 28px; min-height: 28px; padding: 5px; border-color: transparent; background: transparent; color: var(--steel); }
.article-copy .icon { width: 14px; height: 14px; }
.article-copy:hover:not(:disabled), .article-copy:focus-visible { background: var(--control-hover); color: #263b48; border-color: #9aaab5; }
.requests-table .article-link { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.requests-table .article-link > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.requests-table .brand-value { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.selected .article-link { color: var(--ink); }
.records tr.is-favorite .article-link::after { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); margin-left: 6px; }
.analog { display: inline-flex; vertical-align: middle; }.analog.yes { color: var(--success); }.analog.no { color: var(--danger); }.analog .icon { stroke-width: 2; }
.date-cell time { display: flex; align-items: baseline; gap: 6px; font-size: 12px; line-height: 1.1; white-space: nowrap; }
.date-cell time span + span { font-size: 11px; color: var(--steel); }
.table-date, .table-date-sort { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 4px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: inherit; font: inherit; }
.table-date { font-variant-numeric: tabular-nums; text-decoration: underline dotted; text-underline-offset: 3px; }
.table-date-sort { font-weight: inherit; }
button.table-date:hover, button.table-date:focus-visible, button.table-date[aria-expanded=true], button.table-date-sort:hover, button.table-date-sort:focus-visible { color: #263b48; background: var(--control-hover); border-color: #9aaab5; }
.date-sort-icon { display: inline-flex; transform: rotate(-90deg); }
.date-sort-icon.descending { transform: rotate(90deg); }
.date-sort-icon .icon { width: 12px; height: 12px; }
.floating-panel.request-history-panel { max-height: min(440px, calc(100dvh - 16px)); }
.history-zone { margin: 0 0 12px; color: var(--steel); font-size: 12px; }
.request-history { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.request-history li { display: grid; gap: 3px; padding-left: 10px; border-left: 2px solid var(--control); overflow-wrap: anywhere; }
.request-history time { display: flex; gap: 6px; font-variant-numeric: tabular-nums; color: var(--steel); font-size: 12px; }
@media (pointer: coarse), (max-width: 650px) { .table-date, .table-date-sort { min-height: 44px; } }
.table-actions { vertical-align: middle; padding-inline: 6px !important; }
.table-action-group { display: flex; align-items: center; justify-content: end; gap: 4px; }
.records .table-decision[aria-disabled=true], .records .table-decision[aria-disabled=true]:hover { color: #6b767e; background: #e4e8eb; border-color: #bcc5cb; cursor: not-allowed; opacity: 1; }
.records .table-decision[aria-disabled=true]:active { transform: none; }
.table-actions-heading { text-align: right; }
.table-decision { width: 32px; min-width: 32px; height: 28px; min-height: 28px; padding: 4px; border-radius: 4px; }
.table-decision .icon { width: 15px; height: 15px; }
.record-pagination { flex: none; min-height: 45px; display: flex; align-items: center; justify-content: space-between; padding: 5px 12px; color: var(--muted); font-size: 12px; }
.record-pagination > div { display: flex; align-items: center; gap: 8px; }.record-pagination button { padding: 4px; min-height: 32px; background: transparent; }
.supplier-head { flex: none; min-height: 49px; display: flex; align-items: center; padding: 10px 15px; border-bottom: 1px solid var(--rule); background: var(--metal) top / 100% 2px no-repeat; }
.supplier-head { justify-content: space-between; gap: 12px; }
.supplier-head h2 { font-size: 15px; font-weight: 650; }
.supplier-head-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.supplier-head .panel-answer { min-height: 32px; padding-block: 4px; }
.response-countdown { flex: none; margin-left: auto; color: var(--blue); font-size: 13px; font-weight: 750; letter-spacing: .03em; white-space: nowrap; }
.response-countdown.is-expired { color: var(--danger); }
.request-context { flex: none; padding: 10px 15px; border-bottom: 1px solid var(--rule); }
.request-context > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.request-context small { font-size: 12px; }.request-context h3 { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; margin-top: 4px; }
.request-context h3 span { font-size: 12px; color: var(--muted); font-weight: 500; }
.supplier-list { flex: 1; min-height: 0; padding: 12px; overflow: auto; overscroll-behavior: contain; scrollbar-color: var(--control) var(--canvas); }
.supplier-offer { background: var(--paper); border: 1px solid var(--rule); padding: 12px; border-radius: 5px; margin: 0 0 10px; }
.supplier-offer:last-child { margin-bottom: 0; }
.supplier-offer.is-ordered { background: #e2ede5; border-color: #9fbea9; }
.supplier-offer.is-rejected { background: #e4e7e9; border-color: #b9c1c6; color: #52616b; }
.supplier-offer.is-rejected .offer-calculator { display: none; }
.reason-list { display: grid; gap: 12px; }
.reason-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto auto auto; align-items: end; gap: 8px 16px; padding-block: 10px; border-bottom: 1px solid var(--rule); }
.reason-row > .option { min-height: 44px; margin: 0; white-space: nowrap; }
.reason-row > button { min-height: 44px; }
@media (max-width: 850px) {
  .reason-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; }
  .reason-row > label:first-child { grid-column: 1 / -1; }
  .reason-row > button { white-space: normal; }
}
.supplier-offer.is-favorite { border-left: 3px solid var(--blue); }
.offer-heading { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 8px; }
.offer-heading h3, .offer-heading .offer-brand { font-size: 13px; line-height: 1.4; letter-spacing: 0; }
.offer-heading h3 { margin: 0; }.offer-brand { color: var(--muted); }
.offer-heading .offer-heading-photos { display: flex; align-items: center; gap: 4px; margin: 0; }
.offer-heading .offer-heading-photos .photo-button { min-width: 26px; min-height: 26px; padding: 3px; gap: 2px; }
.offer-heading .offer-heading-photos .photo-button .icon { width: 14px; height: 14px; }
.offer-status { display: inline-flex; flex: none; flex-wrap: wrap; justify-content: flex-end; max-width: 100%; align-items: center; gap: 8px; margin-left: auto; }
.offer-status .response-countdown { margin: 0; }
.table-offer-count { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 30px; padding: 4px 6px; background: transparent; color: var(--steel); border: 1px solid transparent; font-size: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.offer-counts { display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }
.offer-count-divider { color: var(--steel); }
button.table-offer-count:hover:not(:disabled), button.table-offer-count:focus-visible, button.table-offer-count[aria-expanded=true] { background: var(--control-hover); color: #263b48; border-color: #9aaab5; }
.floating-panel { position: fixed; z-index: 20; box-sizing: border-box; width: max-content; max-width: min(360px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); overflow: auto; padding: 12px; border: 1px solid var(--control); border-radius: 6px; background: var(--paper); color: var(--ink); box-shadow: 0 8px 24px rgb(32 42 48 / 18%); font: 13px/1.5 "Segoe UI", system-ui, sans-serif; }
.floating-panel h3 { margin: 0 0 8px; font-size: 13px; }
.offer-refs-list { display: grid; gap: 4px; }
.offer-ref { display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.offer-ref > span { user-select: text; overflow-wrap: anywhere; }
.copy-off { flex: none; min-width: 32px; min-height: 32px; padding: 6px; }
.copy-feedback { min-height: 1.5em; max-width: 280px; margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.floating-info-text { margin: 0; white-space: normal; overflow-wrap: anywhere; font-weight: 400; }
.clipboard-helper { position: fixed; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; padding: 0; }
.offer-metrics .offer-price-cell { gap: 4px; }
.calc-info { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 24px; width: 24px; min-height: 30px; height: 30px; padding: 3px; color: var(--steel); background: transparent; border: 1px solid transparent; border-radius: 4px; }
.calc-info:hover, .calc-info:focus-visible, .calc-info[aria-expanded=true] { color: var(--ink); background: var(--control-hover); }
.calc-info.has-error { color: var(--danger); }
.offer-number { color: var(--muted); font-size: 11px; white-space: nowrap; }
.records .number-col { width: 110px; }
.records .photo-col { width: 48px; }
.records th { white-space: nowrap; }
.records.requests-table { --status-width: 150px; --actions-width: 0px; width: calc(var(--status-width) + 102ch + 144px + var(--actions-width)); min-width: 0; }
.records.requests-table.has-row-actions { --actions-width: 84px; }
.records.requests-table .status-col { width: var(--status-width); }
.records.requests-table .actions-col { width: var(--actions-width); }
.requests-table .article-col, .requests-table .brand-col { width: calc(20ch + 18px); }
.requests-table .qty-col, .requests-table .analogs-col { width: calc(7ch + 18px); }
.requests-table .photo-col { width: calc(5ch + 18px); }
.requests-table .count-col { width: calc(10ch + 18px); }
.requests-table .number-col { width: calc(15ch + 18px); }
.requests-table .date-col { width: calc(18ch + 18px); }
.photo-request { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.photo-request.requested { color: var(--steel); }
.photo-request .icon { width: 16px; height: 16px; }
.action-dialog form .grid.request-fields { grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr); }
.request-options { gap: 8px 24px; margin-bottom: 16px; }
.order-references { color: var(--muted); font-size: 12px; }
.supplier-offer.variant { margin-top: 0; }
.supplier-panel .offer-heading .favorite-button { min-height: 26px; min-width: 26px; padding: 4px; }
.delivery-status { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; gap: 5px; min-height: 26px; padding: 0; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; line-height: 1.4; white-space: nowrap; }
button.delivery-status { cursor: help; }
button.delivery-status:hover { background: transparent; color: var(--muted); }
.request-delivery .offer-heading { padding-bottom: 0; }
.delivery-status .icon { width: 16px; height: 16px; }
.delivery-status:focus-visible { border-radius: 3px; }
.delivery-status.is-read, button.delivery-status.is-read:hover { color: var(--receipt-read); }
.offer-outcome { margin-top: 6px; text-align: right; }
@media (pointer: coarse) {
  .supplier-panel .offer-heading .photo-button, .supplier-panel .offer-heading .favorite-button { min-width: 44px; min-height: 44px; }
  button.delivery-status { min-height: 44px; }
}
.offer-metrics { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr; gap: 8px; padding-top: 10px; border-top: 1px solid var(--rule); }
.offer-metrics dt { color: var(--muted); font-size: 12px; margin-bottom: 4px; }.offer-metrics dd { font-size: 14px; font-weight: 600; white-space: nowrap; }.offer-metrics small { font-size: 12px; font-weight: 400; }
.offer-metrics .offer-price { color: var(--blue); font-size: 21px; line-height: 1.2; font-weight: 750; letter-spacing: -.03em; }
.offer-actions { display: flex; align-items: center; justify-content: end; gap: 8px; margin-top: 12px; }
.offer-actions .favorite-button, .offer-actions .public-identity { margin-right: auto; }
.supplier-panel .favorite-button { font-size: 0; padding: 5px; min-width: 30px; min-height: 30px; gap: 0; background: transparent; border-color: transparent; }
.supplier-panel .favorite-button.selected { color: var(--blue); }
.offer-calculator { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--rule); }
.offer-calculator { --calc-control-size: 32px; --calc-gap: 6px; }
.calc-row { display: flex; align-items: center; gap: var(--calc-gap); flex-wrap: wrap; }
.calc-tax-group, .calc-transport { display: flex; flex: none; align-items: center; gap: var(--calc-gap); }
.calc-transport { margin-left: auto; }
.calc-transport .calc-button::after { left: auto; right: 0; }
.calc-row .calc-button { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--calc-control-size); min-width: var(--calc-control-size); height: var(--calc-control-size); min-height: var(--calc-control-size); padding: 5px; border: 1px solid #aebcc4; border-radius: 4px; color: #405967; background: #e9eef1; }
.calc-row .calc-button:hover:not(:disabled) { background: #dce5eb; color: #263b48; }
.calc-row .calc-button[aria-pressed=true] { color: #1672b5; background: #e1eef7; border-color: #8ab4d2; }
.calc-row .calc-button[aria-pressed=true]:hover { background: #cfe4f4; color: #14547d; }
.calc-caption { font-size: 11px; color: var(--muted); line-height: 1.3; }
.vat-symbol { display: inline-block; font-size: 9px; line-height: 1; font-weight: 700; white-space: nowrap; }
.calc-note[hidden] { display: none; }
.calc-markup { position: relative; flex: none; display: flex; align-items: center; margin: 0; }
.calc-markup > span[aria-hidden] { position: absolute; right: 6px; font-size: 11px; pointer-events: none; color: var(--muted); }
.offer-calculator .calc-markup input { width: 68px; height: var(--calc-control-size); min-height: var(--calc-control-size); margin: 0; padding: 3px 19px 3px 6px; font-size: 12px; appearance: textfield; -moz-appearance: textfield; }
.calc-markup input::-webkit-inner-spin-button, .calc-markup input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.offer-metrics dd { min-height: 30px; display: flex; align-items: center; gap: 3px; }
.offer-metrics .calc-quantity { width: 72px; height: 30px; min-height: 30px; padding: 3px 6px; font-size: 14px; margin: 0; }
/* Client quantity: entered value and the supplier's available amount share one frame, "1 / 2". */
.offer-metrics .qty-field { display: inline-flex; align-items: center; height: 30px; border: 1px solid var(--control); border-radius: var(--radius); background: var(--paper); padding-right: 8px; }
.offer-metrics .qty-field:focus-within { border-color: var(--steel, var(--blue)); box-shadow: 0 0 0 1px var(--steel, var(--blue)); }
.offer-metrics .qty-field .calc-quantity { width: 48px; height: 28px; min-height: 28px; border: 0; background: transparent; box-shadow: none; }
.offer-metrics .qty-max { color: var(--muted); font-weight: 400; }
.offer-quantity-terms,.variant-quantity-hint { grid-column: 1 / -1; color: var(--muted); }
.offer-metrics .offer-quantity-terms dd { min-height: 0; font-size: 12px; font-weight: 400; white-space: normal; }
.offer-metrics .calc-quantity[readonly] { color: inherit; background: transparent; border-color: transparent; cursor: default; }
.calc-button[aria-disabled=true] { cursor: default; }
.calc-button[data-option=documents][aria-disabled=true] { color: #73818b; background: #e5e9eb; border-color: #c3cdd2; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.participants-table { border: 1px solid var(--rule); border-radius: 5px; background: var(--paper); }
.participants-table table { margin: 0; min-width: 760px; }
.participants-table th { font-weight: 500; }
.participants-table td, .participants-table th { padding: 9px 12px; vertical-align: middle; }
.participants-table td { max-width: 260px; overflow-wrap: anywhere; font-size: 13px; }
.participants-table td small, .participants-table td > span { display: block; }
.participants-table td small { color: var(--muted); margin-top: 2px; font-size: 11px; }
.participants-table tbody tr:hover { background: var(--canvas); }
.participants-table .participant-access { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: var(--muted); }
.participants-table .participant-access.approved { color: #32664d; }
.participant-access .icon { width: 15px; height: 15px; }
.participant-edit { min-height: 30px; padding: 4px 8px; font-size: 12px; }
#participant fieldset { min-width: 0; border: 0; padding: 0; margin: 0 0 18px; }
#participant legend { width: 100%; padding-bottom: 7px; margin-bottom: 12px; border-bottom: 1px solid var(--rule); font-size: 13px; font-weight: 650; }
#participant label { min-width: 0; }
#participant label small { font-size: 11px; color: var(--muted); }
.participant-options { display: grid; gap: 8px; }
.participant-options .option { margin: 0; }
.participant-options [hidden] { display: none; }
@media (pointer: coarse) { .participant-edit { min-height: 44px; } }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 360px); align-items: start; gap: 18px; max-width: 1200px; margin-inline: auto; }
.cart-layout > * { min-width: 0; }
.cart-line h2 { font-size: 16px; overflow-wrap: anywhere; }
.cart-line h2 small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.cart-options { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: end; margin-block: 14px; }
.cart-options input[type=number] { width: 95px; }
.cart-line-price { font-size: 16px; font-weight: 600; margin-bottom: 5px; }
.cart-summary { display: grid; gap: 16px; }
.cart-summary > h2, .cart-summary > p, .cart-summary > p:not(:last-child) { margin: 0; }
.cart-summary > label { margin: 0; }
.cart-breakdown { display: grid; gap: 10px; font-size: 13px; }
.cart-breakdown > div { display: flex; gap: 12px; justify-content: space-between; }
.cart-breakdown dt { color: var(--muted); }
.cart-breakdown dd { margin: 0; text-align: right; white-space: nowrap; }
@media (max-width: 800px) { .cart-layout { grid-template-columns: minmax(0, 1fr); }.cart-summary { order: 2; } }
.calc-button::after { content: attr(data-tooltip); display: none; position: absolute; z-index: 4; bottom: calc(100% + 7px); left: 0; width: max-content; max-width: 190px; padding: 7px 9px; border-radius: 4px; background: #263b48; color: #fff; box-shadow: 0 3px 9px #263b4826; white-space: normal; text-align: left; font-size: 12px; font-weight: 400; line-height: 1.4; pointer-events: none; }
.calc-button:focus-visible::after { display: block; }
@media (hover: hover) and (pointer: fine) { .calc-button:hover::after { display: block; } }
@media (pointer: coarse) {
  .offer-calculator { --calc-control-size: 44px; }
  .offer-calculator .calc-markup input { font-size: 16px; }
  .account .currency-switch button, .table-offer-count, .copy-off, .article-copy { min-height: 44px; min-width: 44px; }
  .article-copy { width: 44px; height: 44px; }
  .calc-info { min-width: 30px; width: 30px; position: relative; }
  .calc-info::before { content: ""; position: absolute; inset: -7px; }
}
@media (max-width: 400px) { .offer-calculator { --calc-gap: 4px; } }
@media (max-width: 600px) { .account { flex-wrap: wrap; justify-content: flex-end; }.account strong { display: none; }.account-login { max-width: 65px; } }
.decision { min-height: 34px; font-size: 13px; font-weight: 650; }
button.decline, button.danger { color: var(--danger); background: #f1e3e1; border-color: #c18a85; }
button.accept { color: #2f684e; background: #e4eee9; border-color: #7cae98; }
button.accept:hover:not(:disabled) { background: #d5e7de; }
button.decline:hover:not(:disabled) { background: #e8d2d0; }
.offer-deadline { margin-top: 8px; }.offer-deadline .badge, .request-context .badge { padding: 0; font-size: 11px; background: transparent; border: 0; }
.panel-empty { padding: 24px 12px; text-align: center; color: var(--muted); font-size: 13px; }.panel-empty h3 { margin: 8px 0; font-size: 15px; }
.admin-identity { font-size: 12px; margin-block: 6px; color: var(--muted); }
.offer-supplier-identity { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--rule); white-space: nowrap; }
.offer-supplier-identity > .admin-user-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (pointer: coarse) { .offer-supplier-identity > .admin-user-link { min-height: 44px; } }
.admin-request-client { flex: none; padding: 8px 15px; margin: 0; border-bottom: 1px solid var(--rule); }
.admin-user-link { min-width: 0; min-height: 24px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--steel); font-size: inherit; font-weight: 650; text-decoration: underline; text-decoration-color: rgb(65 97 118 / 35%); text-underline-offset: 3px; }
.admin-user-link:hover:not(:disabled) { background: transparent; color: var(--blue); text-decoration-color: currentColor; }
.back-to-list { display: none; }
.variant-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0 0 12px; padding: 12px; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); }
.variant-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; }
.variant-row:first-child { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.variant-row label { overflow-wrap: anywhere; }
.card, .empty { border-radius: 6px; padding: 20px; }.card + .card { margin-top: 12px; }.cards .card + .card { margin-top: 0; }
.action-dialog { position: fixed; width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 24px; overflow: auto; border: 1px solid var(--control); border-radius: 7px; color: var(--ink); background: linear-gradient(142deg, #f0e7df, var(--paper) 36%, #e0e9ed); }
.action-dialog [hidden] { display: none; }.action-dialog > label + label { margin-top: 12px; }.action-dialog > label + button { margin-top: 16px; }
.action-dialog::backdrop { background: rgb(32 50 61 / 42%); }.action-dialog h2 { padding-right: 30px; margin-bottom: 18px; }.action-dialog > p { margin-bottom: 16px; }.dialog-close { position: absolute; top: 12px; right: 12px; padding: 4px; }.action-dialog form .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.action-dialog .price { font-size: 19px; }
.supplier-answer { padding: 4px 3px; }
.answer-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.answer-heading > span:last-child { font-size: 12px; color: var(--muted); }
.supplier-answer p { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 42ch; }
.response-dialog { width: min(680px, calc(100% - 24px)); }
.response-context { font-size: 14px; line-height: 1.7; }.response-context small { color: var(--muted); }
.variant-photos { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 12px; }
.photo-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.photo-picker { position: relative; display: inline-flex; min-height: 38px; padding: 7px 10px; color: var(--steel); border: 1px solid var(--control); background: var(--steel-soft); border-radius: 4px; cursor: pointer; }
.template-link { display: inline-flex; align-items: center; gap: 6px; color: var(--steel); font-size: 13px; font-weight: 600; text-decoration: none; }
.template-link:hover, .template-link:focus-visible { color: #263b48; text-decoration: underline; }
.photo-picker > span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.photo-picker .photo-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.photo-picker:focus-within { outline: 1px solid rgb(65 97 118 / 50%); outline-offset: 2px; }.photo-picker:has(:disabled) { opacity: .5; cursor: default; }
#response { gap: 12px; }#response .variant-fields:last-child { margin-bottom: 0; }
.photo-feedback:empty, .response-error:empty { display: none; }
.photo-guidance { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.photo-count { flex: none; color: var(--steel); font-variant-numeric: tabular-nums; }
.photo-feedback { font-size: 12px; color: var(--steel); line-height: 1.5; }.photo-feedback:not(:empty) { margin-top: 8px; }
.response-error { color: var(--danger); font-size: 13px; line-height: 1.5; }.response-error:not(:empty) { margin-top: 12px; }
.response-footer { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--rule); }
.photo-list, .offer-photos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.photo-list:not(:empty), .offer-photos { margin-top: 12px; }
.offer-photos > span { color: var(--muted); font-size: 12px; margin-right: 2px; }
.photo-button { min-height: 34px; padding: 5px 8px; gap: 5px; font-size: 12px; color: var(--steel); }
.photo-attachment { display: inline-flex; border: 1px solid var(--control); border-radius: 4px; }
.photo-attachment button { border: 0; background: transparent; }.photo-remove { padding: 4px; min-height: 34px; color: var(--danger); }.photo-remove .icon { width: 14px; height: 14px; }
.photo-dialog { width: min(1000px, calc(100% - 24px)); }
.photo-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }.photo-dialog h2 { margin: 0; padding: 0; }
.photo-dialog h2 { font-variant-numeric: tabular-nums; }
.photo-stage { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 12px; height: min(65dvh, 640px); }
.photo-stage.is-single { grid-template-columns: minmax(0, 1fr); }
.photo-frame { display: grid; min-width: 0; height: 100%; min-height: 0; align-items: center; }
.photo-dialog img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.photo-dialog [hidden] { display: none; }
.photo-dialog .photo-nav { width: 44px; height: 44px; padding: 10px; }
.photo-dialog .photo-nav .icon { width: 22px; height: 22px; }
.photo-dialog .photo-close { min-height: 44px; flex-shrink: 0; }
.photo-loading { color: var(--muted); text-align: center; overflow-wrap: anywhere; }
@media (max-width: 600px) { .photo-dialog.action-dialog { padding: 12px; }.photo-stage { gap: 4px; } }
@media (pointer: coarse) { .photo-button, .photo-remove, .response-footer button, .dialog-close { min-height: 44px; min-width: 44px; } }
.login { height: 100dvh; min-height: 0; overflow: auto; }.login-intro { color: var(--ink); background: linear-gradient(145deg, rgb(225 209 195 / 80%), rgb(212 225 233 / 80%)); }.login-mark { color: var(--steel); opacity: .12; }.login-steps li, .login-steps li:last-child { border-color: var(--control); }.login-panel { background: rgb(239 243 244 / 75%); }
@media (max-width: 1300px) { .masthead { gap: 12px; }.masthead nav button { padding-inline: 7px; } }
@media (max-width: 1100px) {
  .masthead { min-height: 54px; }.masthead .menu-button { display: inline-flex; }
  .masthead nav { display: none; position: absolute; top: 100%; left: var(--gutter); right: var(--gutter); max-height: calc(100dvh - 70px); overflow: auto; background: var(--paper); border: 1px solid var(--rule); padding: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); box-shadow: 0 14px 24px rgb(32 50 61 / 15%); }
  .masthead.menu-open nav { display: grid; }.masthead nav button { min-height: 44px; justify-content: start; }
  .record-workspace { grid-template-columns: minmax(0, 1fr); }.supplier-panel { display: none; }.mobile-detail .registry { display: none; }.mobile-detail .supplier-panel { display: flex; }
  .back-to-list { display: flex; flex: none; min-height: 44px; justify-content: start; background: transparent; border: 0; border-radius: 0; }
  .heading { grid-template-columns: minmax(0, 1fr) minmax(200px, 280px) minmax(0, 1fr); }.heading-actions { flex-wrap: wrap; }.heading h1 { font-size: 21px; }
}
@media (max-width: 650px) {
  .records.requests-table { --status-width: 166px; }
  .records.requests-table.has-row-actions { --actions-width: 104px; }
  :root { --gutter: 10px; }.masthead { flex-wrap: wrap; gap: 4px 10px; padding-block: 6px; }.account strong { max-width: 65px; }.brand { font-size: 12px; }.brand .icon { width: 22px; height: 22px; }
  .workspace-body { padding-block: 9px; }.heading { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-bottom: 9px; }.heading h1 { font-size: 18px; }.heading-actions { grid-column: 2; grid-row: 1; gap: 5px; }.heading-actions button { font-size: 12px; padding-inline: 8px; }.record-search { grid-column: 1 / -1; grid-row: 2; }.record-search input { min-height: 42px; font-size: 16px; }
  .record-filters { flex-wrap: wrap; padding: 4px; align-items: flex-start; }.records-title { padding: 8px 5px; }.record-filter-buttons { width: 100%; margin-left: 0; }.record-filters button, .filter-menu > .filter-menu-option { min-height: 44px; font-size: 12px; padding-inline: 5px; }.record-filters button span, .filter-menu > .filter-menu-option span { font-size: 11px; }
  .pending-note { font-size: 11px; }.records td { height: 44px; }.article-link { min-height: 34px; }.records .status-col { width: 166px; }
  .supplier-head h2 { font-size: 14px; }.supplier-list { padding: 8px; }.supplier-offer { padding: 10px; }.offer-metrics { grid-template-columns: 1fr 1fr; row-gap: 10px; }.offer-actions .decision { min-height: 44px; }.offer-actions .favorite-button { min-height: 44px; min-width: 36px; }
  .table-decision { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }.records .actions-col { width: 96px; }
  .card { padding: 14px; }.action-dialog { padding: 18px; }.action-dialog form .grid, .action-dialog form .grid.request-fields { grid-template-columns: minmax(0, 1fr); }.record-pagination button { min-height: 44px; min-width: 44px; }
}
@media (max-height: 500px) { .workspace-body { padding-block: 6px; }.heading { margin-bottom: 6px; }.supplier-head { min-height: 36px; padding-block: 6px; }.request-context { padding-block: 5px; } }

/* Let each column fit its content while keeping the table at least as wide as the panel. */
.records, .records.requests-table { width: max-content; min-width: 100%; table-layout: auto; }
.records col { width: auto !important; }
.records th, .records td { white-space: nowrap; }
.records .article-link, .requests-table .brand-value { max-width: none; overflow: visible; text-overflow: clip; }

.offer-ref-details { border-bottom:1px solid var(--rule); padding-block:8px; }
.offer-ref-details summary { cursor:pointer; display:flex; justify-content:space-between; gap:16px; min-height:32px; align-items:center; }
.offer-ref-details p { margin:6px 0; font-size:12px; }
