/* «Новый заказ», «Оплата и счёт» in the order card, «Реквизиты для счёта» (unlayered, like the tidy files). */
.mo-dialog, .mo-settings { width: min(1180px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 14px; background: #f6f7f8; color: #1f262b; box-shadow: 0 24px 60px rgba(15, 20, 24, 0.28); }
.mo-settings { width: min(820px, calc(100vw - 32px)); }
.mo-dialog::backdrop, .mo-settings::backdrop { background: rgba(15, 20, 24, 0.45); }
.mo, .mo-settings__form { display: flex; flex-direction: column; max-height: calc(100vh - 32px); margin: 0; }
.mo__head { position: relative; display: flex; align-items: baseline; gap: 12px; padding: 16px 56px 12px 20px; border-bottom: 1px solid #e3e6e8; background: #fff; }
.mo__head h2 { margin: 0; font-size: 20px; }
.mo__head span { color: #5f6972; font-size: 13px; }
.mo__close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: #46525a; cursor: pointer; }
.mo__close:hover { background: #eef1f3; }
.mo__close svg { width: 18px; height: 18px; }
.mo__body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; padding: 14px; overflow: auto; }
.mo__main, .mo__side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mo__side { position: sticky; top: 0; align-self: start; }
.mo-block { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid #e3e6e8; border-radius: 12px; background: #fff; }
.mo-block h3 { margin: 0; font-size: 15px; }
.mo-block__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mo-block__head small { color: #5f6972; font-size: 12px; }
.mo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mo-grid[hidden] { display: none; }
.mo-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mo-field[hidden] { display: none; }
.mo-field > span { color: #46525a; font-size: 12px; font-weight: 650; }
.mo-field input, .mo-field select, .mo-field textarea { width: 100%; min-height: 36px; padding: 6px 10px; border: 1px solid #cfd6db; border-radius: 8px; background: #fff; color: inherit; font: 14px/1.35 Inter, "Segoe UI", Arial, sans-serif; }
.mo-field textarea { resize: vertical; }
.mo-field input:focus-visible, .mo-field select:focus-visible, .mo-field textarea:focus-visible { outline: none; border-color: #c9470a; box-shadow: 0 0 0 3px rgba(201, 71, 10, 0.18); }
.mo-field input[readonly], .mo-field textarea[readonly] { background: #f6f7f8; }
.mo-field small { color: #7a848b; font-size: 11px; }
.mo-field.is-wide { grid-column: span 1; }
.mo-field.is-full, .mo-settings__grid .is-full { grid-column: 1 / -1; }
.mo-seg { display: inline-flex; padding: 2px; border-radius: 9px; background: #eef1f3; }
.mo-seg label { position: relative; cursor: pointer; }
.mo-seg input { position: absolute; opacity: 0; pointer-events: none; }
.mo-seg span { display: block; padding: 5px 12px; border-radius: 7px; color: #46525a; font-size: 13px; font-weight: 650; }
.mo-seg input:checked + span { background: #fff; color: #1f262b; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.mo-seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(201, 71, 10, 0.22); }
.mo-suggest { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mo-suggest[hidden] { display: none; }
.mo-suggest > span { color: #5f6972; font-size: 12px; }
.mo-suggest button { display: flex; flex-direction: column; align-items: flex-start; max-width: 100%; padding: 6px 10px; border: 1px solid #e0c3b4; border-radius: 9px; background: #fff8f4; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mo-suggest button:hover { border-color: #c9470a; }
.mo-suggest b { font-size: 13px; }
.mo-suggest small { color: #5f6972; font-size: 11px; }
.mo-search { position: relative; }
.mo-search svg { position: absolute; top: 50%; left: 11px; width: 16px; height: 16px; color: #7a848b; transform: translateY(-50%); }
.mo-search input { width: 100%; min-height: 38px; padding: 6px 12px 6px 34px; border: 1px solid #cfd6db; border-radius: 9px; font: 14px Inter, "Segoe UI", Arial, sans-serif; }
.mo-search input:focus-visible { outline: none; border-color: #c9470a; box-shadow: 0 0 0 3px rgba(201, 71, 10, 0.18); }
.mo-results { display: flex; flex-direction: column; max-height: 280px; overflow-y: auto; border: 1px solid #e3e6e8; border-radius: 10px; }
.mo-results[hidden] { display: none; }
.mo-result { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 12px; border: 0; border-bottom: 1px solid #f0f2f3; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mo-result:last-child { border-bottom: 0; }
.mo-result:hover:not(:disabled), .mo-result:focus-visible { background: #fff6f1; outline: none; }
.mo-result:disabled { cursor: not-allowed; opacity: 0.6; }
.mo-result b { display: block; font-size: 13px; }
.mo-result small { color: #5f6972; font-size: 12px; }
.mo-result em { flex: none; font-style: normal; font-weight: 700; font-size: 13px; white-space: nowrap; }
.mo-result s { margin-right: 6px; color: #8a939a; font-weight: 400; }
.mo-stock.is-ok { color: #22744a; }
.mo-stock.is-warn { color: #8a5a00; }
.mo-stock.is-bad { color: #b23b26; }
.mo-empty, .mo-muted { margin: 0; color: #5f6972; font-size: 13px; }
.mo-table { width: 100%; border-collapse: collapse; }
.mo-table th { padding: 4px 6px; border-bottom: 1px solid #e3e6e8; color: #5f6972; font-size: 11px; font-weight: 650; text-align: left; text-transform: uppercase; letter-spacing: 0.03em; }
.mo-table td { padding: 8px 6px; border-bottom: 1px solid #f0f2f3; vertical-align: middle; font-size: 13px; }
.mo-table td b { display: block; }
.mo-table td small { color: #5f6972; font-size: 12px; }
.mo-qty { width: 76px; min-height: 32px; padding: 4px 8px; border: 1px solid #cfd6db; border-radius: 7px; font: 14px Inter, Arial, sans-serif; }
.mo-price { width: 104px; min-height: 32px; padding: 4px 8px; border: 1px solid #cfd6db; border-radius: 7px; font: 14px Inter, Arial, sans-serif; text-align: right; }
.mo-qty:focus-visible, .mo-price:focus-visible { outline: none; border-color: #c9470a; box-shadow: 0 0 0 3px rgba(201, 71, 10, 0.18); }
.mo-sum { font-weight: 700; text-align: right; white-space: nowrap; }
.mo-sum small { display: block; font-weight: 400; }
.mo-remove { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: #7a848b; cursor: pointer; }
.mo-remove:hover { background: #fbe9e7; color: #b23b26; }
.mo-remove svg { width: 16px; height: 16px; }
.mo-total { padding: 14px; border: 1px solid #e3e6e8; border-radius: 12px; background: #fff; }
.mo-total dl { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.mo-total dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.mo-total dt { color: #46525a; }
.mo-total dd { margin: 0; font-weight: 650; white-space: nowrap; }
.mo-total .is-total { margin-top: 4px; padding-top: 8px; border-top: 1px solid #e3e6e8; font-size: 16px; }
.mo-total .is-total dt { color: #1f262b; font-weight: 700; }
.mo-total .is-total dd { font-weight: 800; }
.mo-error { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: #b23b26; font-size: 13px; }
.mo-error svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.mo-note { margin: 12px 20px 0; padding: 8px 12px; border-radius: 8px; background: #eef1f3; color: #46525a; font-size: 13px; }
.mo__actions { display: flex; justify-content: flex-end; gap: 8px; }
.mo-settings .mo__actions { padding: 12px 20px 16px; border-top: 1px solid #e3e6e8; background: #fff; }
.mo-settings__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; padding: 14px 20px; overflow: auto; }
.mo-settings .mo-error { margin: 12px 20px 0; }
/* order card */
.mo-pay { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; padding: 12px 14px; border: 1px solid #e3e6e8; border-radius: 12px; background: #fff; }
.mo-pay__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.mo-pay h3 { margin: 0; font-size: 15px; }
.mo-pay__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mo-pay__state { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: #46525a; font-size: 13px; }
.mo-pay__state svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.mo-pay__state.is-paid { color: #22744a; }
.mo-pay__state em { display: block; color: #8a5a00; font-style: normal; font-weight: 650; }
.mo-pay__form { display: grid; grid-template-columns: 130px 200px 150px minmax(0, 1fr); gap: 8px; align-items: end; padding-top: 6px; border-top: 1px dashed #e3e6e8; }
.mo-pay__form[hidden] { display: none; }
.mo-pay__form-actions { display: flex; gap: 6px; grid-column: 1 / -1; }
.mo-link { padding: 0 4px; border: 0; background: none; color: #c9470a; font: 600 12px Inter, Arial, sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ow-actions .button.primary.compact { margin-right: 4px; }
@media (max-width: 980px) {
  .mo__body { grid-template-columns: minmax(0, 1fr); }
  .mo__side { position: static; }
  .mo-grid, .mo-settings__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mo-pay__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .mo-dialog, .mo-settings { width: 100vw; max-width: 100vw; max-height: 100vh; border-radius: 0; }
  .mo, .mo-settings__form { max-height: 100vh; }
  .mo-grid, .mo-settings__grid, .mo-pay__form { grid-template-columns: minmax(0, 1fr); }
  .mo__head { flex-wrap: wrap; }
  .mo-table th:nth-child(3), .mo-table td:nth-child(3) { display: none; }
}
.site-request-order-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.site-request-order-head h3 { margin: 0; }
.site-request-items-log { margin: 8px 0; font-size: 12px; color: #46525a; }
.site-request-items-log summary { cursor: pointer; font-weight: 650; }
.site-request-items-log p { margin: 6px 0 0; padding-left: 10px; border-left: 2px solid #e3e6e8; }
.mo-block[hidden] { display: none; }
/* buyer's card in the new order dialog and in the order card */
.mo-customer, .mo-buyer { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; border: 1px solid #cfdcef; border-radius: 10px; background: #f3f7fd; font-size: 13px; }
.mo-customer[hidden], .mo-buyer[hidden] { display: none; }
.mo-customer svg, .mo-buyer svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: #2759a5; }
.mo-customer span, .mo-buyer span { flex: 1; min-width: 0; }
.mo-customer small, .mo-buyer small { display: block; color: #46525a; font-size: 12px; }
.mo-customer em { color: #2759a5; font-style: normal; font-weight: 700; }
.mo-buyer { align-items: center; margin: 10px 0; }
.mo-buyer__tag { display: inline-flex; padding: 0 6px; border-radius: 999px; background: #e1ebfa; color: #2759a5; font-size: 11px; font-style: normal; font-weight: 700; }
.mo-suggest em { color: #c9470a; font-style: normal; font-weight: 700; font-size: 11px; }
/* orders list: picking sheet already printed */
.ow-printed { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: #eef1f3; color: #46525a; font-size: 11px; font-weight: 650; }
.ow-printed svg { width: 12px; height: 12px; }
