/* Visual reference: https://www.2can.ru/payments/ (observed 2026-11-17).
   MuseoSansCyrl is not bundled without a supplied font licence. System sans
   fallback keeps the existing CSP and never loads a remote font. */
:root {
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #111;
  background: #fff;
  --ink: #111;
  --muted: #62676b;
  --accent: #ff8c00;
  --accent-hover: #ff9d27;
  --accent-soft: #fff3e4;
  --line: #e0e7eb;
  --surface: #fff;
  --surface-alt: #f2f9fb;
  --green: #217a46;
  --radius: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #fff; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #242424;
  outline-offset: 3px;
}
button {
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: 1000px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
button:hover { border-color: #ffc173; background: #fffaf3; box-shadow: 0 4px 20px #0000000d; }
button:disabled { color: #656565; background: #eee; border-color: #ddd; box-shadow: none; cursor: default; }
.primary { background: var(--accent); border-color: var(--accent); color: #201607; box-shadow: 0 0 14px #ed47003d; }
.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #201607; }
.primary:disabled { color: #565656; background: #ddd; border-color: #ddd; box-shadow: none; }
button:active:not(:disabled) { box-shadow: inset 0 1px 3px #00000018; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding: 20px max(24px, calc((100vw - 1308px) / 2));
  background: #fff;
  border-bottom: 1px solid #f0f2f3;
}
.brand-block { min-width: 0; display: grid; grid-template-columns: auto auto; align-items: center; gap: 5px 26px; }
.brand-line { display: flex; align-items: center; gap: 18px; grid-column: 1; }
.corporate-logo { display: block; width: 105px; height: 30px; flex-shrink: 0; object-fit: contain; }
.brand { font-size: 19px; font-weight: 800; letter-spacing: .02em; color: #111; }
.subtitle { grid-column: 1; grid-row: 2; color: var(--muted); font-size: 11px; }
.demo-banner { grid-column: 2; grid-row: 1 / 3; display: inline-block; padding: 6px 10px; border-radius: 6px; color: #795014; background: #fff4e4; font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.identity { display: flex; align-items: center; gap: 18px; min-width: 0; max-width: 100%; font-size: 13px; }
.identity > span, .identity-name, .identity-details { min-width: 0; overflow-wrap: anywhere; }
.identity-name { font-weight: 700; }
.identity-role { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.identity > button { flex-shrink: 0; }
main { max-width: 1200px; margin: 0 auto; padding: 26px 16px 56px; }
.cabinet-main > button { margin: 0 10px 16px 0; }
.cabinet-nav, nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 0 16px; margin-bottom: 26px; border-bottom: 1px solid var(--line); max-width: 100%; }
nav button { border-color: transparent; background: transparent; padding: 10px 16px; font-weight: 400; white-space: nowrap; }
nav button::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; vertical-align: 2px; border-radius: 50%; background: transparent; }
nav button:hover { background: #f7f8fa; border-color: transparent; box-shadow: none; }
nav [aria-current="page"] { color: #111; font-weight: 700; }
nav [aria-current="page"]::before { background: #ee375e; }
.context { display: inline-block; margin: 0 0 26px; padding: 12px 18px; border-radius: 10px; background: var(--surface-alt); max-width: 100%; overflow-wrap: anywhere; }
.eyebrow { color: #62676b; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.context strong { font-size: 14px; font-weight: 700; }
.context p { margin: 5px 0 0; }
h1 { font-family: "Arial Black", Arial, sans-serif; font-size: 38px; font-weight: 900; letter-spacing: -.035em; line-height: 1.2; margin: 0 0 24px; color: #000; }
h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; line-height: 1.35; color: #111; }
p { line-height: 1.6; }
.page-heading { margin-bottom: 30px; }
.page-heading h1 { margin-bottom: 10px; }
.page-description { margin: 0; max-width: 760px; color: #4e5357; font-size: 15px; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.6; }
.panel { padding: 26px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; min-width: 0; }
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: 18px; }
.filter-panel { background: var(--surface-alt); border-color: transparent; }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; color: #202020; font-size: 13px; font-weight: 600; min-width: 0; }
.field input, .field select, input[aria-label="Выданная ссылка"] { width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #111; font-size: 14px; font-weight: 400; transition: border-color 150ms ease, box-shadow 150ms ease; }
.field input:hover, .field select:hover { border-color: #abb6bd; }
.field input:focus, .field select:focus { border-color: #c5720c; box-shadow: 0 0 0 3px #fff0db; }
input::placeholder { color: #70777c; opacity: 1; }
.field input:disabled, .field select:disabled { color: #74797d; background: #f4f5f6; }
.actions, .form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.filter-panel .actions { padding-top: 20px; border-top: 1px solid #dfe9ed; }
.settings-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.settings-fields > .field + .field { margin-top: 20px; }
.settings-fields > button { margin: 8px 10px 0 0; }
.settings-fields input[readonly] { background: #f5f7f8; color: #69727a; border-style: dashed; }
.check-field { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; margin: 12px 0; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfd; font-size: 14px; line-height: 1.5; }
.check-field input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: #a65300; cursor: pointer; }
.settings-fields .filters { margin-top: 22px; }
.form-panel { max-width: 760px; }
.table-wrap { overflow-x: auto; min-width: 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
th { padding: 13px 16px; color: #5f666b; font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line); background: var(--surface-alt); white-space: nowrap; }
th:first-child { border-top-left-radius: 6px; }
th:last-child { border-top-right-radius: 6px; }
td { padding: 18px 16px; border-bottom: 1px solid #edf0f2; vertical-align: top; overflow-wrap: anywhere; line-height: 1.6; }
td:first-child { color: var(--muted); font-size: 12px; }
td:nth-child(4) { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
td .mono { color: var(--muted); margin: 8px 0 0; }
tbody tr:hover { background: #fbfdfe; }
tbody tr:last-child td { border-bottom: 0; }
.order-link { min-height: 32px; border: 0; padding: 0; text-align: left; color: var(--green); background: none; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #83c69c; font-size: 12px; font-weight: 600; word-break: break-all; border-radius: 2px; }
.order-link:hover { color: #15572f; background: none; text-decoration-color: currentColor; box-shadow: none; }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12px; line-height: 1.7; word-break: break-all; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #e0e5e9; border-radius: 6px; background: #f1f4f6; color: #535e68; font-size: 12px; font-weight: 600; line-height: 1.5; max-width: 100%; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.succeeded { color: #217a46; background: #e8f7e9; border-color: #d7edda; }
.review, .outcome_unknown { color: #875300; background: #fff4df; border-color: #f3e2bd; }
.failed, .blocked, .rejected { color: #a52c43; background: #fff0f2; border-color: #f3dae0; }
.awaiting_payer, .preparing { color: #365f8e; background: #edf4fd; border-color: #dce8f6; }
.notice { padding: 16px 19px; margin: 22px 0; border: 1px solid #dfe9ed; border-radius: 10px; background: var(--surface-alt); color: #445963; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.warning { color: #805100; background: #fff6e8; border-color: #f1dfbf; }
.error { color: #a12c40; background: #fff1f2; border-color: #efd4db; }
.notice:empty, .muted:empty { display: none; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-bottom: 24px; }
.grid > .panel { margin: 0; }
.detail-panel h2 { padding-bottom: 17px; margin-bottom: 21px; border-bottom: 1px solid #edf0f2; }
dl { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 1.7fr); gap: 18px 22px; margin: 0; font-size: 13px; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.amount { color: #111; font-size: 30px; letter-spacing: -.035em; font-weight: 800; line-height: 1.3; font-variant-numeric: tabular-nums; }
.payment-summary { padding: 22px 26px; margin-bottom: 24px; border: 1px solid #e0e9ed; border-radius: var(--radius); background: var(--surface-alt); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.payment-summary .mono { color: var(--muted); margin-bottom: 0; }
.payment-summary .badge { font-size: 12px; }
.merchant-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.merchant-list .panel { margin: 0; overflow-wrap: anywhere; background: var(--surface-alt); border-color: transparent; }
.merchant-list button { margin-top: 18px; }
.merchant-list .panel:hover { border-color: #d4e2e8; }
.merchant-list h2 { margin-bottom: 8px; font-size: 23px; }
.operator-list { margin-top: 24px; }
.operator-list .panel { overflow-wrap: anywhere; }
.operator-list button { max-width: 100%; overflow-wrap: anywhere; margin: 8px 8px 0 0; }
.operator-list .mono { color: var(--muted); }
.customer-row, .panel .panel { background: #fbfdfe; border-radius: 8px; }
.customer-row:last-child, .panel .panel:last-child { margin-bottom: 0; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.screen-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 32px 20px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.7; }
.empty::before { content: ""; display: block; width: 80px; height: 80px; flex-shrink: 0; border-radius: 25px; background: #f2f9fb url('/cabinet/assets/nomvia-empty-payments.svg') center / 44px 44px no-repeat; pointer-events: none; }
[data-view="customers"] .empty::before { height: 88px; border-radius: 0; background: url('/cabinet/assets/nomvia-empty-customers.svg') center / contain no-repeat; }
[data-view="operators"] .empty::before { border-radius: 0; background: url('/cabinet/assets/nomvia-empty-operators.svg') center / contain no-repeat; }
.demo { max-width: 1200px; margin: 0 auto; padding: 0 16px 32px; font-size: 12px; color: #62676b; line-height: 1.8; }
[data-view="login"] { min-height: 100vh; background: #fff; }
.login-main { max-width: 1340px; display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 70px; align-items: center; min-height: 610px; padding-top: 36px; padding-bottom: 52px; }
.login { max-width: none; margin: 0; padding: 20px 0; border: 0; background: transparent; }
.login-main .page-heading, .login-intro { text-align: left; }
.login-main .page-heading { margin-bottom: 20px; }
.login-main h1 { font-size: 60px; line-height: 1.16; letter-spacing: -.04em; }
.product-label { display: inline-block; width: fit-content; padding: 4px 8px; border-radius: 4px; background: #daf2dc; color: #237a49; font-size: 12px; line-height: 16px; margin-bottom: 24px; }
.login > .muted { font-size: 16px; line-height: 1.5; max-width: 380px; margin: 0 0 28px; color: #4b5054; }
.login form { max-width: 400px; }
.login .field { margin-top: 20px; font-size: 14px; }
.login button { min-width: 180px; min-height: 50px; margin-top: 26px; padding: 14px 40px; }
.login [role="alert"]:not(:empty) { margin-top: 18px; color: #a12c40; }
.login-visual { width: 100%; aspect-ratio: 2133 / 1593; pointer-events: none; }
.login-visual img { display: block; width: 100%; height: auto; aspect-ratio: 2133 / 1593; pointer-events: none; }
[data-view="login"] .demo { max-width: 1340px; }
.boot-state, .initial-loading { padding: 60px 24px; text-align: center; color: var(--muted); }
[hidden] { display: none !important; }
@media (max-width: 1100px) {
  header { padding: 20px 24px; }
  .brand-block { column-gap: 16px; }
  .demo-banner { grid-column: 1; grid-row: 3; margin-top: 4px; width: fit-content; }
  main { padding: 24px 24px 48px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: 1fr; }
  .panel { padding: 24px; }
  .login { padding: 20px 0; }
  .login-main { gap: 28px; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
  .login-main h1 { font-size: 48px; }
  .demo { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 900px) {
  .login-main { display: block; max-width: 540px; min-height: 0; padding-top: 40px; padding-bottom: 44px; }
  .login-visual { display: none; }
  .login form { max-width: none; }
  [data-view="login"] .demo { max-width: 540px; }
}
@media (max-width: 700px) {
  header { padding: 18px 16px; gap: 16px; }
  .brand-block { width: 100%; }
  .corporate-logo { width: 91px; height: 26px; }
  .brand-line { gap: 16px; }
  .brand { font-size: 17px; padding-left: 16px; }
  .identity { width: 100%; justify-content: space-between; padding-top: 14px; border-top: 1px solid #edf0f2; }
  .identity > button { min-height: 40px; }
  main { padding: 20px 16px 40px; }
  nav, .cabinet-nav { width: 100%; margin-bottom: 22px; gap: 2px; padding-bottom: 12px; }
  nav button { flex: 1 0 calc(33.333% - 2px); padding: 10px 5px; font-size: 12px; }
  nav button::before { margin-right: 5px; width: 5px; height: 5px; }
  .context { margin-bottom: 22px; padding: 12px 14px; width: 100%; }
  .context strong { font-size: 14px; }
  h1 { font-size: 30px; line-height: 1.2; }
  h2 { font-size: 18px; }
  .page-heading { margin-bottom: 24px; }
  .page-description { font-size: 14px; }
  .filters, .grid, .merchant-list { grid-template-columns: 1fr; }
  .filters { gap: 18px; }
  .panel { padding: 22px 18px; margin-bottom: 20px; }
  .grid { gap: 20px; margin-bottom: 20px; }
  .field input, .field select { font-size: 16px; }
  .actions, .form-actions { gap: 10px; }
  .actions button, .form-actions button { flex: 1 1 auto; }
  .check-field { padding: 13px; }
  .notice { padding: 15px 16px; margin: 20px 0; }
  .table-wrap { overflow: visible; }
  table, tbody, tr, td { display: block; }
  thead { display: none; }
  tbody tr { border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; background: #fff; margin-bottom: 16px; }
  tbody tr:last-child { margin-bottom: 0; }
  td, td:first-child { padding: 10px 0; font-size: 13px; border: 0; }
  td::before { content: attr(data-label); display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 500; }
  td:nth-child(4) { font-size: 18px; }
  td .mono { margin-top: 7px; }
  dl { grid-template-columns: 1fr; gap: 5px; }
  dt { font-size: 12px; }
  dd { margin-bottom: 16px; }
  dd:last-child { margin-bottom: 0; }
  .amount { font-size: 28px; }
  .payment-summary { padding: 22px 18px; gap: 16px; }
  .pagination { gap: 8px; }
  .pagination button { padding-left: 14px; padding-right: 14px; }
  .pagination .muted { font-size: 12px; }
  .screen-title { display: block; }
  .empty { gap: 16px; padding: 24px 8px; }
  .demo { padding: 0 16px 28px; }
  .login-main { padding-top: 30px; padding-bottom: 38px; }
  .login { padding: 0; margin: 0; }
  .login-main h1 { font-size: 32px; line-height: 37px; }
  .login > .muted { font-size: 15px; }
  .login button { width: 100%; }
  .product-label { margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
