/* Approved A7 table system. Screen-only so print rules stay authoritative. */
@media screen {
  html[data-ui="a7"] .a7-page .task-type,
  html[data-ui="a7"] .a7-page .price-tag-mode>span { font-size:11px!important; }
  html[data-ui="a7"] .tomak-report button { min-height:44px; }
  html[data-ui="a7"] .tomak-report header button { min-width:44px; }
  html[data-ui="a7"] .topbar .a7-mobile-tools, html[data-ui="a7"] .a7-nav-backdrop, html[data-ui="a7"] .a7-page[data-page="products"] .catalog-mobile-toggle { display:none; }
  html[data-ui="a7"] {
    --a7-table-head-height: 40px;
    --a7-table-row-height: 46px;
    --a7-table-dense-row-height: 36px;
    --a7-table-cell-x: 12px;
    --a7-table-cell-y: 7px;
    --a7-table-radius: 10px;
  }

  html[data-ui="a7"] .a7-page table,
  html[data-ui="a7"] .modal table,
  html[data-ui="a7"] .inspector table {
    border-collapse: separate;
    border-spacing: 0;
    background: var(--a7-panel);
    color: var(--a7-text);
    font-family:Montserrat,Arial,sans-serif;
    font-size: 12px;
    line-height: 17px;
  }
  html[data-ui="a7"] .table-scroll{ max-width:100%; overflow:auto; scrollbar-gutter:auto; }
  html[data-ui="a7"] .table-card { border:1px solid var(--a7-line-strong); border-radius:var(--a7-table-radius); background:var(--a7-panel); overflow:hidden; }
  html[data-ui="a7"] .a7-data-table { width:100%; min-width:0; table-layout:auto; }
  html[data-ui="a7"] .a7-table-content{ width:max-content; min-width:0; max-width:100%; }
  html[data-ui="a7"] .a7-table-wide{ width:100%; min-width:var(--a7-table-min-width,900px); }
  html[data-ui="a7"] .a7-table-standard :is(th,td){ font-size:12px; height:var(--a7-table-row-height); padding:var(--a7-table-cell-y) var(--a7-table-cell-x); vertical-align:middle; }
  html[data-ui="a7"] .a7-table-dense :is(th,td){ font-size:11px; height:var(--a7-table-dense-row-height); padding:5px 8px; vertical-align:middle; }
  html[data-ui="a7"] :is(.a7-table-standard,.a7-table-dense) th { height:var(--a7-table-head-height); color:var(--a7-muted); background:var(--a7-panel-soft); font-weight:500; }
  html[data-ui="a7"] :is(.a7-table-standard,.a7-table-dense) :is(th,td) { border-right:1px solid var(--a7-line); border-bottom:1px solid var(--a7-line); }
  html[data-ui="a7"] :is(.a7-table-standard,.a7-table-dense) tr>*:last-child { border-right:0; }
  html[data-ui="a7"] :is(.a7-table-standard,.a7-table-dense) tbody tr:last-child>* { border-bottom:0; }
  html[data-ui="a7"] :is(.a7-table-standard,.a7-table-dense) tbody tr:hover>td { background:color-mix(in srgb,var(--a7-brand-soft) 48%,var(--a7-panel)); }
  html[data-ui="a7"] :is(th,td)[data-col-kind="number"]{ text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
  html[data-ui="a7"] :is(th,td)[data-col-kind="date"] { width:1%; white-space:nowrap; font-variant-numeric:tabular-nums; }
  html[data-ui="a7"] :is(th,td)[data-col-kind="status"] { width:1%; white-space:nowrap; }
  html[data-ui="a7"] :is(th,td)[data-col-kind="actions"] { width:1%; white-space:nowrap; }
  html[data-ui="a7"] [data-col-kind="document"] :is(a,.link-btn){ color:var(--a7-brand); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }
  html[data-ui="a7"] [data-col-kind="document"] :is(a,.link-btn):hover { text-decoration-thickness:2px; }
  html[data-ui="a7"] .a7-table-actions { display:flex; align-items:center; gap:6px; flex-wrap:nowrap; }
  html[data-ui="a7"] .a7-table-actions .btn{ min-height:32px; padding:0 10px; border-radius:7px; font:500 11px/16px Montserrat,Arial,sans-serif; }
  /* A status must keep whole words even when a responsive table is narrow. */
  html[data-ui="a7"] table .badge { overflow-wrap:normal; word-break:normal; }
  html[data-ui="a7"] .a7-data-table :is(th,td)[data-col-kind="status"] { min-width:140px; }

  html[data-ui="a7"] .a7-page[data-page="integrations"] .integrations-health-table { table-layout:auto; }
  html[data-ui="a7"] .a7-page[data-page="integrations"] .integrations-health-table :is(th,td):first-child { width:180px; }
  html[data-ui="a7"] .a7-page[data-page="integrations"] .integrations-health-table :is(th,td):nth-child(2) { width:180px; }
  html[data-ui="a7"] .a7-page[data-page="integrations"] .integrations-health-table td { padding:12px; vertical-align:top; }
  html[data-ui="a7"] .a7-page[data-page="integrations"] .integrations-health-table .badge { white-space:nowrap; font-size:12px; line-height:18px; }
  html[data-ui="a7"] .a7-page[data-page="integrations"] .integration-detail { display:grid; gap:6px; }
  html[data-ui="a7"] .a7-page[data-page="integrations"] .integration-detail :is(div,span,strong) { font-size:12px; line-height:18px; }
  html[data-ui="a7"] .a7-page[data-page="integrations"] .integration-metrics { display:flex; flex-wrap:wrap; gap:4px 18px; color:var(--a7-muted); }
  html[data-ui="a7"] .a7-page[data-page="integrations"] .integration-metrics strong { color:var(--a7-text); font-weight:500; }
  html[data-ui="a7"] .a7-page[data-page="integrations"] .integration-last-success { color:var(--a7-muted); }
  html[data-ui="a7"] .a7-page[data-page="integrations"]>.section-line { padding:0 0 12px; min-height:0; }
  html[data-ui="a7"] .a7-page[data-page="integrations"] .integrations-bank-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; align-items:stretch; }
  html[data-ui="a7"] .a7-page[data-page="integrations"] .integrations-bank-card { display:flex; flex-direction:column; gap:16px; min-width:0; }
  html[data-ui="a7"] .a7-page[data-page="integrations"] .integrations-bank-card>.card-title { margin:0; color:var(--a7-text); }
  html[data-ui="a7"] .a7-page[data-page="integrations"] .integrations-bank-card>.task-detail { margin:0; font-size:12px; line-height:18px; }
  html[data-ui="a7"] .a7-page[data-page="integrations"] .integrations-bank-card .form-grid { margin:0; gap:16px; }
  html[data-ui="a7"] .a7-page[data-page="integrations"] .integrations-bank-card .form-label { font-size:12px; line-height:18px; }
  html[data-ui="a7"] .a7-page[data-page="integrations"] .integrations-bank-card .form-control { height:40px; font-size:12px; }
  html[data-ui="a7"] .a7-page[data-page="integrations"] .integrations-bank-card input[type="file"] { padding:7px; }
  html[data-ui="a7"] .a7-page[data-page="integrations"] .integrations-bank-card .toolbar { margin:auto 0 0; padding:16px 0 0; border:0; border-top:1px solid var(--a7-line); gap:8px; align-items:stretch; }
  html[data-ui="a7"] .a7-page[data-page="integrations"] .integrations-bank-card .toolbar .btn { flex:1 1 200px; justify-content:center; min-height:40px; white-space:normal; }
  html[data-ui="a7"] .a7-page[data-page="integrations"] .integrations-modules-table :is(th,td):first-child { width:160px; }
  html[data-ui="a7"] .a7-page[data-page="integrations"] .integrations-modules-table :is(th,td):nth-child(3) { width:170px; }
  html[data-ui="a7"] .a7-page[data-page="integrations"] .integrations-modules-table :is(th,td):last-child { width:27%; }
  @media(max-width:1100px) {
    html[data-ui="a7"] .a7-page[data-page="integrations"] .integrations-bank-grid { grid-template-columns:minmax(0,1fr); }
  }
  html[data-ui="a7"] :is(a,button):focus-visible { outline:3px solid color-mix(in srgb,var(--a7-brand) 24%,transparent); outline-offset:2px; }

  /* Sort labels inherit the dense header scale instead of the legacy 14px span rule.
     Keep whole words readable while allowing multi-word labels to wrap at spaces. */
  html[data-ui="a7"] :is(.a7-page[data-page],.modal,.inspector) table .table-sort-button {
    font-size:inherit;
    line-height:inherit;
    padding:6px;
    gap:4px;
    overflow-wrap:normal;
    word-break:normal;
  }
  html[data-ui="a7"] :is(.a7-page[data-page],.modal,.inspector) table .table-sort-button>span {
    font-size:inherit;
    line-height:inherit;
    overflow-wrap:normal;
    word-break:normal;
  }
  html[data-ui="a7"] :is(.a7-page[data-page],.modal,.inspector) table .table-sort-indicator { flex-shrink:0; }

  /* Inventory registers */
  html[data-ui="a7"] .a7-page[data-page="products"] .catalog-product-table :is(th,td) { height:36px; padding:5px 8px; font:500 11px/16px Montserrat,Arial,sans-serif; }
  html[data-ui="a7"] .a7-page[data-page="products"] .catalog-product-table td { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  html[data-ui="a7"] .a7-page[data-page="stock"] table,
  html[data-ui="a7"] .a7-page[data-page="pricing"] table { font-variant-numeric:tabular-nums; }
  html[data-ui="a7"] .a7-page[data-page="revaluation"] .revaluation-list-table,
  html[data-ui="a7"] .a7-page[data-page="returns"] .returns-table,
  html[data-ui="a7"] .a7-page[data-page="writeoffs"] .writeoffs-table,
  html[data-ui="a7"] .a7-page[data-page="stocktakes"] .a7-data-table,
  html[data-ui="a7"] .a7-page[data-page="expiry"] .a7-data-table { width:100%; min-width:0; }
  html[data-ui="a7"] .a7-page[data-page="writeoffs"] .writeoffs-table [data-col-kind="actions"] .btn { min-width:78px; }
  html[data-ui="a7"] .a7-page[data-page="writeoffs"] .writeoffs-table { table-layout:fixed; min-width:1040px; }
  html[data-ui="a7"] .a7-page[data-page="writeoffs"] .writeoffs-table :is(th,td):first-child { width:112px; white-space:nowrap; }
  html[data-ui="a7"] .a7-page[data-page="writeoffs"] .writeoffs-table :is(th,td):nth-child(2) { width:180px; }
  html[data-ui="a7"] .a7-page[data-page="writeoffs"] .writeoffs-table :is(th,td):nth-child(3) { width:176px; white-space:nowrap; }
  html[data-ui="a7"] .a7-page[data-page="writeoffs"] .writeoffs-table :is(th,td):nth-child(4) { width:126px; white-space:nowrap; }
  html[data-ui="a7"] .a7-page[data-page="writeoffs"] .writeoffs-table :is(th,td):nth-child(5) { min-width:150px; }
  html[data-ui="a7"] .a7-page[data-page="writeoffs"] .writeoffs-table :is(th,td):nth-child(6) { width:150px; white-space:nowrap; }
  html[data-ui="a7"] .a7-page[data-page="writeoffs"] .writeoffs-table :is(th,td):nth-child(7) { width:190px; white-space:nowrap; }
  html[data-ui="a7"] .a7-page[data-page="writeoffs"] .writeoffs-table tbody td { height:50px; }
  html[data-ui="a7"] .a7-page[data-page="stocktakes"] .stocktakes-table { table-layout:fixed; min-width:1180px; }
  html[data-ui="a7"] .a7-page[data-page="stocktakes"] .stocktakes-table :is(th,td) { overflow-wrap:normal; word-break:normal; }
  html[data-ui="a7"] .a7-page[data-page="stocktakes"] .stocktakes-table :is(th,td):first-child { width:112px; white-space:nowrap; }
  html[data-ui="a7"] .a7-page[data-page="stocktakes"] .stocktakes-table :is(th,td):nth-child(2) { width:180px; }
  html[data-ui="a7"] .a7-page[data-page="stocktakes"] .stocktakes-table :is(th,td):nth-child(3) { width:210px; }
  html[data-ui="a7"] .a7-page[data-page="stocktakes"] .stocktakes-table :is(th,td):nth-child(4),
  html[data-ui="a7"] .a7-page[data-page="stocktakes"] .stocktakes-table :is(th,td):nth-child(5),
  html[data-ui="a7"] .a7-page[data-page="stocktakes"] .stocktakes-table :is(th,td):nth-child(6) { width:135px; white-space:nowrap; }
  html[data-ui="a7"] .a7-page[data-page="stocktakes"] .stocktakes-table :is(th,td):nth-child(7) { width:160px; white-space:nowrap; }
  html[data-ui="a7"] .a7-page[data-page="stocktakes"] .stocktakes-table :is(th,td):nth-child(8) { width:150px; white-space:nowrap; }
  html[data-ui="a7"] .a7-page[data-page="stocktakes"] .stocktakes-table tbody td { height:50px; }
  html[data-ui="a7"] .a7-page[data-page="stocktakes"] .stocktakes-table td:nth-child(8) .btn { min-width:112px; }
  html[data-ui="a7"] .a7-page[data-page="scales"] .scales-compact-table :is(th,td) { height:36px; padding:5px 8px; font-size:11px; line-height:16px; }

  /* The receipt register has fourteen columns. Reserve space for both status
     columns and actions instead of squeezing them into the old eleven-column grid. */
  html[data-ui="a7"] .a7-page[data-page="receipts"] .invoice-ledger-table { min-width:1640px!important; table-layout:fixed; }
  html[data-ui="a7"] .a7-page[data-page="receipts"] .invoice-ledger-table th:nth-child(2) { width:170px; }
  html[data-ui="a7"] .a7-page[data-page="receipts"] .invoice-ledger-table th:nth-child(6) { width:100px; }
  html[data-ui="a7"] .a7-page[data-page="receipts"] .invoice-ledger-table th:nth-child(8) { width:76px; }
  html[data-ui="a7"] .a7-page[data-page="receipts"] .invoice-ledger-table th:nth-child(12) { width:110px; }
  html[data-ui="a7"] .a7-page[data-page="receipts"] .invoice-ledger-table th:nth-child(13) { width:125px; }
  html[data-ui="a7"] .a7-page[data-page="receipts"] .invoice-ledger-table th:nth-child(14) { width:165px; }
  html[data-ui="a7"] .a7-page[data-page="receipts"] .invoice-ledger-table :is(th,td):nth-child(n+9):nth-child(-n+11) { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
  html[data-ui="a7"] .a7-page[data-page="receipts"] .invoice-ledger-table td:last-child .btn { white-space:nowrap; }
  html[data-ui="a7"] .a7-page[data-page="receipts"] .invoice-ledger-table :is(.badge,.entity-badge) { font-size:11px; }
  html[data-ui="a7"] .a7-page[data-page="receipts"] .a7-table-narrow>.invoice-ledger-table { min-width:0!important; }

  /* Purchasing and counterparties */
  html[data-ui="a7"] .a7-page[data-page="receipts"] .invoice-ledger-table { font-family:Montserrat,Arial,sans-serif; font-size:11px; line-height:16px; }
  html[data-ui="a7"] .a7-page[data-page="receipts"] .invoice-ledger-table :is(th,td) { height:44px; padding:6px 9px; }
  html[data-ui="a7"] .a7-page[data-page="suppliers"] .supplier-fit-table :is(th,td) { font-family:Montserrat,Arial,sans-serif; font-size:11px; line-height:16px; }
  html[data-ui="a7"] .a7-page[data-page="suppliers"] .supplier-fit-table tbody td { height:44px; padding:6px 8px; }
  html[data-ui="a7"] .a7-page[data-page="supplier-payments"] .payment-register-card table,
  html[data-ui="a7"] .a7-page[data-page="reconciliation"] table,
  html[data-ui="a7"] .a7-page[data-page="contacts"] .premium-register-table { font-family:Montserrat,Arial,sans-serif; font-size:12px; line-height:17px; }
  html[data-ui="a7"] .a7-page[data-page="contacts"] .premium-register-table td { height:46px; padding:7px 10px; }
  html[data-ui="a7"] .contacts-register .contacts-table { width:100%; min-width:1000px; table-layout:fixed; }
  html[data-ui="a7"] .contacts-table .contact-col-name { width:170px; }
  html[data-ui="a7"] .contacts-table .contact-col-organization { width:140px; }
  html[data-ui="a7"] .contacts-table .contact-col-category { width:82px; }
  html[data-ui="a7"] .contacts-table .contact-col-phone { width:145px; }
  html[data-ui="a7"] .contacts-table .contact-col-responsibility { width:130px; }
  html[data-ui="a7"] .contacts-table .contact-col-actions { width:90px; }
  html[data-ui="a7"] .contacts-table td { white-space:normal; overflow-wrap:anywhere; }
  html[data-ui="a7"] .contacts-table td:nth-child(4) { white-space:nowrap; font-variant-numeric:tabular-nums; }
  html[data-ui="a7"] .contacts-table td.contact-comment { white-space:pre-wrap; overflow-wrap:anywhere; }
  html[data-ui="a7"] .contacts-table .contact-actions { display:flex; align-items:center; justify-content:center; gap:6px; }
  html[data-ui="a7"] .contacts-table .contact-action { display:inline-flex; align-items:center; justify-content:center; flex:0 0 32px; width:32px; height:32px; min-width:32px; min-height:32px; padding:0; margin:0; border-radius:6px; }
  html[data-ui="a7"] .contacts-table .contact-action svg { width:16px; height:16px; flex:none; }
  html[data-ui="a7"] .ocr-review-table :is(th,td) { font-family:Montserrat,Arial,sans-serif; font-size:11px; line-height:14px; }

  /* Finance, payroll, equipment, and legal records */
  html[data-ui="a7"] .a7-page[data-page="acquiring"]>.toolbar { align-items:flex-end; gap:12px; }
  html[data-ui="a7"] .a7-page[data-page="acquiring"]>.toolbar>label { display:grid; gap:6px; font-size:12px; }
  html[data-ui="a7"] .a7-page[data-page="acquiring"]>.toolbar :is(.field,.btn) { min-height:40px; }
  html[data-ui="a7"] .a7-page[data-page="acquiring"]>.summary-strip { grid-template-columns:repeat(5,minmax(0,1fr)); }
  html[data-ui="a7"] .a7-page[data-page="acquiring"] .acquiring-days-table td:nth-child(7) { min-width:220px; overflow-wrap:normal; }
  html[data-ui="a7"] .a7-page[data-page="acquiring"] .acquiring-days-table :is(th,td):nth-child(n+2):nth-child(-n+6) { text-align:right; }
  html[data-ui="a7"] .a7-page[data-page="acquiring"] .acquiring-days-table th { white-space:normal; }
  html[data-ui="a7"] .a7-page[data-page="reconciliation"] .reconciliation-register-table :is(th,td):nth-child(3),
  html[data-ui="a7"] .a7-page[data-page="reconciliation"] .reconciliation-register-table :is(th,td):nth-child(4) { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
  html[data-ui="a7"] .a7-page[data-page="supplier-payments"] .payment-register-card table { table-layout:auto; }
  html[data-ui="a7"] .a7-page[data-page="supplier-payments"] .payment-register-card :is(th,td):last-child { width:148px; min-width:148px; }
  html[data-ui="a7"] .a7-page[data-page="supplier-payments"] .payment-register-card td .btn { white-space:nowrap; }
  html[data-ui="a7"] .a7-page[data-page="scales"] .scales-compact-table table { table-layout:fixed; }
  html[data-ui="a7"] .a7-page[data-page="scales"] .scales-compact-table th:nth-child(n) { width:auto; }
  html[data-ui="a7"] .a7-page[data-page="scales"] .scales-compact-table td:nth-child(3) .link-button { white-space:normal; overflow:visible; text-overflow:clip; line-height:18px; }
  html[data-ui="a7"] .a7-page[data-page="scales"] .scales-compact-table col:nth-child(1):not([style*="width"]) { width:96px; }
  html[data-ui="a7"] .a7-page[data-page="scales"] .scales-compact-table col:nth-child(2):not([style*="width"]) { width:44%; }
  html[data-ui="a7"] .a7-page[data-page="scales"] .scales-compact-table col:nth-child(3):not([style*="width"]) { width:120px; }
  html[data-ui="a7"] .a7-page[data-page="scales"] .scales-compact-table col:nth-child(4):not([style*="width"]) { width:auto; }
  html[data-ui="a7"] .a7-page[data-page="expiry"] .expiry-register-table td:nth-child(2) { white-space:nowrap; }
  html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-register-row { grid-template-columns:minmax(0,1fr) 86px 102px 78px 78px!important; min-height:48px; height:auto; gap:5px; padding:6px 44px 6px 32px; }
  html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-main { display:flex; align-items:center; gap:8px; height:auto; min-height:32px; }
  html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-main-icon { flex:0 0 16px; width:16px; height:16px; }
  html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-main span { min-width:0; }
  html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-main small { display:none; }
  html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-amount { display:contents; }
  html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-amount>strong { grid-column:3; grid-row:1; justify-self:end; white-space:nowrap; }
  html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-register-row .expense-status { grid-column:2; grid-row:1; justify-self:start; padding:5px 8px; font-size:11px; line-height:16px; white-space:nowrap; }
  html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-add { display:grid; grid-column:4; grid-row:1; }
  html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-add small { display:none; }
  html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-inline-plus { grid-column:1; grid-row:1; }
  html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-increment-input { grid-column:2; grid-row:1; }
  html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-pay-button { grid-column:5; grid-row:1; }
  html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-select { position:absolute; left:0; top:10px; width:28px; min-width:28px; height:28px; }
  html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-row-delete { position:absolute; right:6px; top:10px; width:28px; min-width:28px; height:28px; min-height:28px; }
  html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-main strong { white-space:normal; overflow:visible; text-overflow:clip; line-height:16px; }
  html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-amount>strong { font-size:12px; line-height:18px; }
  html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-add { min-width:0; grid-template-columns:20px minmax(0,1fr); }
  html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-increment-input { width:100%; min-width:0; }
  html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-pay-button { width:78px; min-width:78px; white-space:nowrap; text-transform:none; }
  @media(max-width:1200px) {
    html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-month-grid { grid-template-columns:minmax(0,1fr); }
  }
  @media(max-width:620px) {
    html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-register-row { grid-template-columns:minmax(0,1fr) 124px!important; gap:8px 12px; padding:12px 16px; }
    html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-main { grid-column:1/-1; grid-row:1; padding:0 30px; min-height:44px; }
    html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-main strong { font-size:13px; line-height:19px; }
    html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-plan-list { max-height:none; overflow:visible; }
    html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-register-row .expense-status { grid-column:1; grid-row:2; justify-self:start; }
    html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-amount>strong { grid-column:2; grid-row:2; }
    html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-add { grid-column:1; grid-row:3; height:44px; grid-template-columns:44px minmax(0,1fr); }
    html[data-ui="a7"] .a7-page[data-page="expenses"] :is(.expense-inline-plus,.expense-increment-input) { min-height:44px; height:44px; }
    html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-inline-plus { width:44px; min-width:44px; }
    html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-pay-button { grid-column:2; grid-row:3; width:100%; min-height:44px; height:44px; }
    html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-month-card .card-header { height:auto; min-height:64px; }
    html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-row-delete { width:44px; min-width:44px; height:44px; min-height:44px; top:12px; border:0; background:transparent; opacity:1; transform:none; }
    html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-select { width:44px; min-width:44px; height:44px; top:12px; opacity:1; pointer-events:auto; }
    html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-select input { width:18px; height:18px; }
    html[data-ui="a7"] .a7-page[data-page="expenses"] .sber-expense-summary { grid-template-columns:44px minmax(0,1fr); gap:8px; padding:12px; }
    html[data-ui="a7"] .a7-page[data-page="expenses"] .sber-expense-summary>span:last-child { grid-column:2; align-items:flex-start; text-align:left; }
    html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-circle-plus { min-width:44px; min-height:44px; }
    html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-inline-plus { color:#fff; }
    html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-stack>summary { flex-wrap:wrap; gap:10px; min-height:56px; padding:12px; }
    html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-stack>summary>span { min-width:0; flex-wrap:wrap; }
    html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-stack>summary .expense-stack-actions { flex:1 1 100%; justify-content:space-between; }
    html[data-ui="a7"] .a7-page[data-page="expenses"] .expense-plan-row.fixed:not(.expense-register-row) { grid-template-columns:minmax(0,1fr) auto; }
  }
  html[data-ui="a7"] .a7-page[data-page="assets"] .a7-data-table,
  html[data-ui="a7"] .a7-page[data-page="legal-records"] .premium-register-table { width:100%; min-width:0; }
  html[data-ui="a7"] .a7-page[data-page="assets"] :is(th,td),
  html[data-ui="a7"] .a7-page[data-page="legal-records"] .premium-register-table :is(th,td) { height:46px; padding:7px 10px; font:500 12px/17px Montserrat,Arial,sans-serif; }
  html[data-ui="a7"] .a7-page[data-page="payroll"] :is(.payroll-calc-grid,.payroll-time-grid) { font-family:Montserrat,Arial,sans-serif; font-size:11px; }
  html[data-ui="a7"] .a7-page[data-page="payroll"] .payroll-time-grid { --time-employee:190px; --time-hours:74px; width:calc(var(--time-employee) + var(--time-hours) + var(--payroll-days)*124px)!important; }
  html[data-ui="a7"] .payroll-time-grid .payroll-col-time-employee { width:var(--time-employee); }
  html[data-ui="a7"] .payroll-time-grid .payroll-col-time-hours { width:var(--time-hours); }
  html[data-ui="a7"] .payroll-time-grid thead th { position:sticky; left:auto; z-index:3; width:auto; }
  html[data-ui="a7"] .payroll-time-grid thead tr:nth-child(2) th { top:40px; }
  html[data-ui="a7"] .payroll-time-grid :is(thead tr:first-child,tbody tr)>:first-child { position:sticky; left:0; width:var(--time-employee); background:var(--a7-panel); }
  html[data-ui="a7"] .payroll-time-grid :is(thead tr:first-child,tbody tr)>:nth-child(2) { position:sticky; left:var(--time-employee); width:var(--time-hours); background:var(--a7-panel); }
  html[data-ui="a7"] .payroll-time-grid thead tr:first-child>th[rowspan] { z-index:5; background:var(--a7-panel-soft); }
  @media(max-width:620px) {
    html[data-ui="a7"] .a7-page[data-page="payroll"] .payroll-time-grid { --time-employee:128px; --time-hours:44px; }
    html[data-ui="a7"] .payroll-time-grid .payroll-employee-cell { white-space:normal; overflow-wrap:normal; }
    html[data-ui="a7"] .payroll-time-grid .payroll-employee-cell strong { font-size:12px; line-height:16px; }
    html[data-ui="a7"] .payroll-time-grid .payroll-employee-cell small { font-size:11px; line-height:15px; }
  }
  html[data-ui="a7"] .a7-page[data-page="payroll"] .payroll-table :is(th,td) { min-height:36px; padding:5px 6px; font-size:11px; line-height:16px; }
  html[data-ui="a7"] .a7-page[data-page="payroll"] .payroll-table .row-actions :is(.btn,.icon-btn) { font-family:Montserrat,Arial,sans-serif; }

  /* Payroll keeps its column roles and monetary values on one line.
     The scroll container carries the wide editable grid on narrow screens. */
  html[data-ui="a7"] .a7-page[data-page="payroll"] .payroll-calc-grid { width:100%; min-width:1360px!important; }
  html[data-ui="a7"] .a7-page[data-page="payroll"] .a7-table-narrow>.payroll-calc-grid { min-width:0!important; }
  html[data-ui="a7"] .a7-page[data-page="payroll"] .payroll-col-actions { width:190px; }
  html[data-ui="a7"] .a7-page[data-page="payroll"] .row-actions { display:flex; flex-wrap:nowrap; gap:4px; }
  html[data-ui="a7"] .a7-page[data-page="payroll"] .row-actions .icon-btn { flex:0 0 32px; width:32px; min-height:32px; padding:0; }
  html[data-ui="a7"] .a7-page[data-page="payroll"] .row-actions .btn { white-space:nowrap; }
  html[data-ui="a7"] .a7-page[data-page="payroll"] .payroll-col-position { width:130px; }
  html[data-ui="a7"] .a7-page[data-page="payroll"] .payroll-calc-grid td:nth-child(2) { overflow-wrap:normal; word-break:normal; }
  html[data-ui="a7"] .a7-page[data-page="payroll"] .payroll-calc-grid td:nth-child(3)>strong,
  html[data-ui="a7"] .a7-page[data-page="payroll"] .payroll-calc-grid td:nth-child(9)>strong,
  html[data-ui="a7"] .a7-page[data-page="payroll"] .payroll-calc-grid td:nth-child(10)>strong { font-size:11px; line-height:16px; white-space:nowrap; }
  html[data-ui="a7"] .a7-page[data-page="payroll"] .payroll-calc-grid td .badge { font-size:11px; line-height:16px; white-space:nowrap; padding:2px 6px; }

  /* Editors, nested registers, reports, and remaining specialized tables */
  html[data-ui="a7"] :is(.receipt-editor-table,.return-editor-table,.revaluation-editor-table,.inventory-document-table) { font-family:Montserrat,Arial,sans-serif; font-size:11px; line-height:16px; }
  html[data-ui="a7"] :is(.receipt-editor-table,.return-editor-table,.revaluation-editor-table,.inventory-document-table) :is(th,td) { height:36px; padding:5px 7px; }
  html[data-ui="a7"] :is(.product-price-table,.product-movement-table,.report-top-table,.premium-register-table) { font-family:Montserrat,Arial,sans-serif; }
  html[data-ui="a7"] .modal :is(.table-scroll,.product-movement-scroll) { max-width:100%; }
  html[data-ui="a7"] .modal .table-card { border-radius:8px; }
  html[data-ui="a7"] .modal .table-card .table-card { border:0; border-radius:0; }
  html[data-ui="a7"] :is(.modal,.inspector) .empty-text { font-size:12px; line-height:18px; }
  html[data-ui="a7"] .modal .modal-header { flex-wrap:nowrap; align-items:flex-start; }
  html[data-ui="a7"] .modal .modal-header>div:first-child { min-width:0; flex:1; }
  html[data-ui="a7"] .modal .modal-header>.modal-close { flex:none; }
  html[data-ui="a7"] .modal .permission-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  html[data-ui="a7"] .modal .permission-group { min-width:0; margin:0; padding:8px 12px; border:1px solid var(--a7-line); border-radius:8px; }
  html[data-ui="a7"] .modal .permission-group legend { padding:0 4px; font-size:12px; font-weight:600; }
  html[data-ui="a7"] .modal .permission-group .check-row { display:flex; align-items:flex-start; gap:8px; min-height:32px; padding:5px 0; font-size:12px; line-height:18px; }
  html[data-ui="a7"] .modal .permission-group .check-row input { flex:none; margin:1px 0 0; }
  html[data-ui="a7"] .modal .permission-group .check-row span { min-width:0; }
  html[data-ui="a7"] .modal .inventory-document-table .cell-note,
  html[data-ui="a7"] .ocr-review-sheet .ocr-tax-mode-note,
  html[data-ui="a7"] .ocr-review-sheet .ocr-review-table .form-control { font-size:11px; }
  html[data-ui="a7"] .modal:has(.sber-payment-total) .payment-documents { max-height:min(320px,40dvh); overflow:auto; margin-bottom:14px; }
  html[data-ui="a7"] .modal:has(.sber-payment-total) .payment-documents li>span:first-child { min-width:0; }
  html[data-ui="a7"] .modal:has(.sber-payment-total) .payment-documents li :is(strong,small) { display:block; }
  html[data-ui="a7"] .modal:has(.sber-payment-total) .payment-documents li small { margin-top:3px; font-size:11px; white-space:normal; }
  html[data-ui="a7"] .modal:has(.sber-payment-total) .payment-documents li>span:last-child { flex:none; text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }

  @media(max-width:820px) {
    html[data-ui="a7"] .topbar { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:8px; padding:8px 16px; }
    html[data-ui="a7"] .topbar .breadcrumb { min-width:0; text-align:center; }
    html[data-ui="a7"] .topbar .breadcrumb strong { overflow-wrap:normal; font-size:12px; line-height:16px; }
    html[data-ui="a7"] .topbar :is(.sidebar-mobile-toggle,.a7-mobile-tools) { display:inline-flex; min-height:44px; height:44px; padding:0 10px; gap:6px; }
    html[data-ui="a7"] .topbar .a7-mobile-tools .status-dot { flex:none; }
    html[data-ui="a7"] .topbar .top-actions { grid-column:1/-1; width:100%; gap:8px; }
    html[data-ui="a7"] body:not(.a7-tools-open) .topbar .top-actions>:not(.store-switcher) { display:none; }
    html[data-ui="a7"] .topbar .top-actions .store-switcher { flex:1 1 130px; min-width:0; width:0; min-height:44px; height:44px; padding:0 8px; }
    html[data-ui="a7"] .topbar .store-switcher select { width:100%; min-width:0; font-size:12px; }
    html[data-ui="a7"] body:not(.a7-tools-open) .quick-access-bar { display:none; }
    html[data-ui="a7"] .topbar .top-actions .status-text { display:inline; }
    html[data-ui="a7"] .topbar .top-actions>.status-chip { min-width:130px; min-height:44px; }
    html[data-ui="a7"] .topbar .top-actions>.icon-btn { min-width:44px; min-height:44px; }
    html[data-ui="a7"] .quick-access-link { min-height:44px; }
    html[data-ui="a7"] body.a7-nav-open .a7-nav-backdrop { display:block; position:fixed; inset:0; z-index:79; width:100%; height:100dvh; border:0; background:rgba(16,34,27,.4); }
    html[data-ui="a7"] .mobile-scan { right:16px; bottom:max(16px,env(safe-area-inset-bottom)); background:var(--a7-brand); color:#fff; }
    html[data-ui="a7"] .mobile-scan svg { stroke:currentColor; }
    html[data-ui="a7"] .page { padding-bottom:80px; }
    html[data-ui="a7"] .page-title { font-size:24px; line-height:30px; }
    html[data-ui="a7"] .page-actions { width:100%; justify-content:flex-start; gap:8px; }
    html[data-ui="a7"] .page-actions>.btn { flex:1 1 140px; justify-content:center; min-height:44px; white-space:normal; }
    html[data-ui="a7"] .a7-page .toolbar>label { display:grid; gap:6px; flex:1 1 140px; min-width:0; font-size:12px; }
    html[data-ui="a7"] .a7-page .toolbar :is(.field,select) { min-height:44px; }
    html[data-ui="a7"] .a7-page .toolbar select { display:block; max-width:100%; }
    html[data-ui="a7"] .a7-page .toolbar .search { flex-basis:100%; width:100%; }
    html[data-ui="a7"] .a7-page .section-line { flex-wrap:wrap; gap:10px; height:auto; }
    html[data-ui="a7"] .a7-page[data-page="products"] .catalog-mobile-toggle { display:flex; align-items:center; justify-content:flex-start; min-height:44px; white-space:normal; }
    html[data-ui="a7"] .a7-page[data-page="products"] .catalog-layout:not(.catalog-tree-open)>.catalog-tree { display:none; }
    html[data-ui="a7"] .a7-page[data-page="products"] .catalog-layout>.catalog-tree { position:static; max-height:320px; width:100%; }
    html[data-ui="a7"] .a7-page[data-page="products"] .catalog-tree-hint { display:none; }
    html[data-ui="a7"] .a7-page[data-page="receipts"] .ocr-folders-a7 header { flex-wrap:wrap; gap:8px; padding:12px; }
    html[data-ui="a7"] .a7-page[data-page="receipts"] .ocr-folders-a7 header strong { width:100%; }
    html[data-ui="a7"] .a7-page[data-page="receipts"] .ocr-register .ocr-entry { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; padding:10px; }
    html[data-ui="a7"] .a7-page[data-page="receipts"] .ocr-register .ocr-entry.head { display:none; }
    html[data-ui="a7"] .a7-page[data-page="receipts"] .ocr-entry>span { white-space:normal; overflow:visible; text-overflow:clip; padding:0; text-align:left; min-width:0; }
    html[data-ui="a7"] .a7-page[data-page="receipts"] .ocr-entry>span:first-child { grid-column:1/-1; }
    html[data-ui="a7"] .a7-page[data-page="receipts"] .ocr-entry>span:nth-child(2)::before { content:'Накладная: '; color:var(--a7-muted); }
    html[data-ui="a7"] .a7-page[data-page="receipts"] .ocr-entry>span:nth-child(3)::before { content:'Файлов: '; color:var(--a7-muted); }
    html[data-ui="a7"] .a7-page[data-page="receipts"] .ocr-entry>span:nth-child(4)::before { content:'Позиций: '; color:var(--a7-muted); }
    html[data-ui="a7"] .a7-page[data-page="receipts"] .ocr-entry .ocr-actions { grid-column:1/-1; flex-direction:row; justify-content:flex-start; gap:16px; flex-wrap:wrap; }
    html[data-ui="a7"] .a7-page[data-page="receipts"] .ocr-entry button { min-height:44px; white-space:normal; }
    html[data-ui="a7"] .modal .form-grid { grid-template-columns:minmax(0,1fr)!important; }
    html[data-ui="a7"] .modal .form-grid .form-group.full { grid-column:1/-1; }
    html[data-ui="a7"] .modal .permission-grid { grid-template-columns:1fr; }
    html[data-ui="a7"] .ocr-review-sheet .ocr-summary-line { flex-wrap:wrap; gap:8px; }
    html[data-ui="a7"] .ocr-review-sheet .ocr-summary-total { flex-basis:100%; margin-left:0; }
    html[data-ui="a7"] .table-scroll { max-width:100%; overflow-x:auto; overscroll-behavior-inline:contain; }
    html[data-ui="a7"] .a7-table-actions :is(.btn,.icon-btn) { min-height:48px; min-width:48px; }
    html[data-ui="a7"] :is(.a7-table-standard,.a7-table-dense) :is(th,td) { white-space:nowrap; }
    html[data-ui="a7"] [data-col-kind="text"] { white-space:normal; }
  }
  html[data-ui="a7"] .a7-page[data-page="payroll"] .payroll-tabs [data-action="payroll-add-employee"] {
    padding:6px 12px; border-radius:7px; min-height:36px; margin-bottom:6px;
  }
  /* Once a table becomes cards, release every desktop row/column constraint. */
  html[data-ui="a7"] :is(.a7-page,.modal,.inspector) .a7-table-narrow { height:auto!important; max-height:none!important; overflow:visible; }
  html[data-ui="a7"] :is(.a7-page,.modal,.inspector) .table-card:has(>.a7-table-narrow) { height:auto!important; min-height:0; max-height:none; }
  html[data-ui="a7"] :is(.a7-page,.modal,.inspector) .payment-table-card>.a7-table-narrow { flex:none; overflow:visible; }
  html[data-ui="a7"] :is(.a7-page,.modal,.inspector) .a7-table-narrow>table.a7-responsive-table,
  html[data-ui="a7"] :is(.a7-page,.modal,.inspector) .a7-table-narrow>table.a7-responsive-table>:is(tbody,tfoot) { height:auto!important; max-height:none!important; overflow:visible; }
  html[data-ui="a7"] :is(.a7-page,.modal,.inspector) .a7-table-narrow>table.a7-responsive-table>:is(tbody,tfoot)>tr:not([hidden]) {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); height:auto!important; min-height:0!important;
    contain-intrinsic-size:none; content-visibility:visible; padding:10px 0; gap:0;
  }
  html[data-ui="a7"] :is(.a7-page,.modal,.inspector) .a7-table-narrow>table.a7-responsive-table>:is(tbody,tfoot)>tr>:is(td,th) {
    display:block; width:auto!important; min-width:0!important; max-width:100%; height:auto!important; min-height:0!important;
    padding:6px 12px; text-align:left; white-space:normal; overflow:visible; border:0!important; font-size:13px; line-height:19px;
  }
  html[data-ui="a7"] :is(.a7-page,.modal,.inspector) .a7-table-narrow>table.a7-responsive-table>:is(tbody,tfoot)>tr>:is(td,th):is(:first-child,:last-child,[colspan]) { grid-column:1/-1; }
  html[data-ui="a7"] :is(.a7-page,.modal,.inspector) .a7-table-narrow>table.a7-responsive-table td[data-a7-label]::before { font-size:11px; line-height:16px; margin-bottom:3px; }
  html[data-ui="a7"] :is(.a7-page,.modal,.inspector) .a7-table-narrow>table.a7-responsive-table :is(.btn,.link-button,.link-btn) { white-space:normal; max-width:100%; }
  html[data-ui="a7"] .a7-page[data-page="products"] .a7-table-narrow>.catalog-product-table tbody>tr:not([hidden]) { position:relative; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:center; }
  html[data-ui="a7"] .a7-page[data-page="products"] .a7-table-narrow>.catalog-product-table tbody>tr>td { grid-column:span 1; }
  html[data-ui="a7"] .a7-page[data-page="products"] .a7-table-narrow>.catalog-product-table tbody>tr>td:nth-child(1) { position:absolute; left:4px; top:12px; width:44px!important; padding:0; display:grid; place-items:center; min-height:44px!important; }
  html[data-ui="a7"] .a7-page[data-page="products"] .a7-table-narrow>.catalog-product-table tbody>tr>td:nth-child(2) { position:absolute; left:48px; top:22px; padding:0; }
  html[data-ui="a7"] .a7-page[data-page="products"] .a7-table-narrow>.catalog-product-table tbody>tr>td:nth-child(3) { grid-column:1/-1; padding-left:84px; min-height:56px!important; }
  html[data-ui="a7"] .a7-page[data-page="products"] .a7-table-narrow>.catalog-product-table tbody>tr>td:nth-child(3)::before { display:none; }
  html[data-ui="a7"] .a7-page[data-page="products"] .a7-table-narrow>.catalog-product-table tbody>tr>td:last-child:empty { display:none; }
  html[data-ui="a7"] .a7-page[data-page="products"] .a7-table-narrow>.catalog-product-table .product-name-link { border:0; padding:0; font-size:13px; line-height:19px; text-align:left; background:transparent; }
  html[data-ui="a7"] .a7-page[data-page="products"] .a7-table-narrow>.catalog-product-table .catalog-product-check { width:20px; height:20px; }
  @media(max-width:820px) {
    html[data-ui="a7"] .table-pagination { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; padding:12px; }
    html[data-ui="a7"] .table-pagination>[data-page-count] { width:100%; font-size:12px; }
    html[data-ui="a7"] .table-pagination label { display:flex; align-items:center; gap:8px; margin:0; }
    html[data-ui="a7"] .table-pagination .table-page-controls { display:flex; align-items:center; gap:8px; }
    html[data-ui="a7"] .table-pagination :is(button,select) { min-height:44px; min-width:44px; }
    html[data-ui="a7"] .a7-table-narrow :is(button,.btn,.icon-btn,.link-button,.link-btn) { min-height:44px!important; min-width:44px; }
    html[data-ui="a7"] :is(.a7-page,.modal,.inspector) :is(input:not([type="checkbox"]):not([type="radio"]),textarea) { font-size:16px; }
  }
  @media(pointer:coarse) {
    html[data-ui="a7"] .modal button { min-height:44px!important; }
    html[data-ui="a7"] .modal :is(.copy-btn,.receipt-product-quick) { min-width:44px!important; width:44px!important; }
    html[data-ui="a7"] .modal .receipt-tabbar { flex-wrap:wrap; }
    html[data-ui="a7"] .modal .permission-group .check-row { min-height:44px; }
    html[data-ui="a7"] .ocr-review-sheet .ocr-review-table .form-control { height:44px!important; min-height:44px!important; }
    html[data-ui="a7"] .ocr-review-sheet .ocr-product-choice { grid-template-columns:44px 44px 44px minmax(0,1fr); }
    html[data-ui="a7"] .ocr-review-sheet .ocr-product-picker { width:44px; min-width:44px; height:44px; min-height:44px; }
    html[data-ui="a7"] .ocr-review-sheet :is(.ocr-match-icon,.ocr-apply-price) { width:44px; min-width:44px; height:44px; min-height:44px; }
    html[data-ui="a7"] .ocr-review-sheet .ocr-price-apply { grid-template-columns:minmax(0,1fr) 44px; }
    html[data-ui="a7"] .ocr-review-sheet .ocr-tax-mode-switch { height:auto; min-height:52px; }
    html[data-ui="a7"] .ocr-review-sheet .ocr-tax-mode-switch button { min-height:44px; height:44px; }
    html[data-ui="a7"] :is(.a7-page,.modal,.inspector) :is(.btn,.icon-btn,.field,.form-control,.modal-close,.table-sort-button) {
      min-height:44px!important;
    }
    html[data-ui="a7"] :is(.modal,.inspector) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select) {
      min-height:44px!important;
    }
    html[data-ui="a7"] :is(.a7-page,.modal,.inspector) :is(.icon-btn,.modal-close) { min-width:44px; }
    html[data-ui="a7"] .ocr-review-sheet .ocr-control-top { height:44px; }
    html[data-ui="a7"] .ocr-review-sheet .ocr-control-bottom { grid-template-columns:repeat(3,44px); gap:4px; }
    html[data-ui="a7"] .ocr-review-sheet .ocr-row-control { width:44px; height:44px; }
    html[data-ui="a7"] .ocr-review-sheet .ocr-insert-between { position:static; width:44px; height:44px; margin:4px auto 0; transform:none; opacity:1; }
  }

  /* Account identifiers need the complete card width; never clip a payment destination. */
  html[data-ui="a7"] .a7-page[data-page="acquiring"] .a7-table-narrow .acquiring-days-table td:nth-child(7) { grid-column:1/-1; overflow-wrap:anywhere; white-space:normal; }
  html[data-ui="a7"] .a7-page[data-page="supplier-payments"] .a7-table-narrow td:has(details) { grid-column:1/-1; }
  html[data-ui="a7"] .a7-table-narrow details ul { max-width:100%; padding-left:18px; white-space:normal; overflow-wrap:anywhere; }
  html[data-ui="a7"] .cash-register-breakdown { max-width:100%; }
  @media(max-width:820px) {
    html[data-ui="a7"] .a7-page details>summary { min-height:44px; padding-top:10px; padding-bottom:10px; box-sizing:border-box; }
    html[data-ui="a7"] .cash-register-breakdown { padding:8px 0; }
    html[data-ui="a7"] .cash-register-breakdown table { min-width:880px; }
  }
  @media(pointer:coarse) {
    html[data-ui="a7"] .a7-page :is(.return-action-group,.row-actions,.copy-cell,.supplier-name-line) :is(button,.icon-btn) { min-width:44px!important; min-height:44px!important; }
    html[data-ui="a7"] .a7-table-narrow button { min-width:44px!important; }
    html[data-ui="a7"] .column-resize-grip { display:none; }
  }

  html[data-ui="a7"] .a7-page[data-page="suppliers"] .a7-table-narrow .supplier-fit-table tr>td:nth-child(2),
  html[data-ui="a7"] .a7-page[data-page="suppliers"] .a7-table-narrow .supplier-fit-table tr>td:nth-child(5),
  html[data-ui="a7"] .a7-page[data-page="suppliers"] .a7-table-narrow .supplier-fit-table tr>td:nth-child(6) { grid-column:1/-1; }
  html[data-ui="a7"] .a7-page[data-page="suppliers"] .a7-table-narrow :is(.supplier-name-copy,.copy-cell>span) { white-space:normal; overflow:visible; text-overflow:clip; max-width:none; overflow-wrap:anywhere; font-size:13px; line-height:19px; }

  @media(max-width:620px) {
    html[data-ui="a7"] .sber-flow-card .owner-summary-grid>div,
    html[data-ui="a7"] .a7-page[data-page="management-accounting"] .register-row { display:grid; grid-template-columns:minmax(0,1fr); gap:4px; }
    html[data-ui="a7"] .sber-flow-card .owner-summary-grid>div>strong,
    html[data-ui="a7"] .a7-page[data-page="management-accounting"] .register-row>strong { justify-self:end; max-width:100%; text-align:right; }
  }

  html[data-ui="a7"] table.a7-responsive-table th { overflow-wrap:normal; word-break:normal; }
  html[data-ui="a7"] .catalog-product-table th:nth-child(8) { white-space:nowrap; }

}
