/* Собственная вёрстка по замерам двух денежных отчётов, 2048 × 1089 CSS px. */
.ms-page-list.ms-page-money { --ms-list-filter-cols:5; padding-bottom:48px; }
.ms-page-money .ms-list-title { line-height:22px; }
.ms-page-money .ms-list-filter-actions > .ms-btn-green { padding-left:21px; padding-right:21px; }
.ms-page-money .ms-list-filter-actions > a.ms-btn:not(.ms-btn-circle) { padding-left:12px; padding-right:12px; }
.ms-money-views { margin-right:10px; }
.ms-page-money .ms-money-filter-grid { grid-template-columns:repeat(5,264px); }
.ms-page-money .ms-select { appearance:none; background-image:linear-gradient(45deg,transparent 50%,#888 50%),linear-gradient(135deg,#888 50%,transparent 50%); background-position:calc(100% - 10px) 8px,calc(100% - 6px) 8px; background-size:4px 4px; background-repeat:no-repeat; padding-right:20px; }
.ms-money-filter[hidden] { display:none; }
.ms-money-table-wrap { margin-top:25px; overflow-x:auto; }
.ms-money-table { border-collapse:collapse; border-spacing:0; table-layout:fixed; width:1069px; max-width:none; margin:0; font:11px/normal Tahoma,Geneva,sans-serif; color:#222; }
.ms-money-table th { position:relative; box-sizing:content-box; height:30px; padding:0 5px 0 0; border:0; border-top:1px solid #fff; border-bottom:2px solid #186999; font:400 11px/normal Tahoma,Geneva,sans-serif; color:#555; text-align:right; white-space:nowrap; }
.ms-money-table td { box-sizing:content-box; height:30px; padding:0 5px 0 0; border:0; border-bottom:1px solid #ddd; text-align:right; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:400 11px/normal Tahoma,Geneva,sans-serif; }
.ms-money-table th:first-child,.ms-money-table td:first-child { padding-left:10px; text-align:left; }
.ms-money-table th:last-child,.ms-money-table td:last-child { padding-right:10px; }
.ms-money-table th > a { display:block; overflow:hidden; text-overflow:ellipsis; color:#186999; text-decoration:none; }
.ms-money-table td > a { display:block; overflow:hidden; text-overflow:ellipsis; text-decoration:underline; }
.ms-money-table td > .ms-money-amount { text-decoration:none; color:#222; }
.ms-money-table .ms-money-bands th { height:30px; border-top:0; border-bottom:1px solid #ddd; color:#222; font-weight:700; text-align:center; }
.ms-money-cashflow .ms-money-table thead tr:last-child th { border-top:0; }
.ms-money-cashflow .ms-money-table .ms-money-bands th { height:31px; }
.ms-money-table .ms-money-bands th:first-child,.ms-money-table .ms-money-bands th:last-child { border-bottom-color:transparent; }
.ms-money-table .ms-money-balance td { font-weight:700; background:#ededed; }
.ms-money-table tbody tr[data-money-href] { cursor:pointer; }
.ms-money-table tbody tr[data-money-href]:hover td { background:#fffb8c; }
.ms-money-table tbody tr.on td { background:#dff3df; }
.ms-money-table td.ms-money-empty { height:60px; text-align:center; color:#777; }
.ms-money-table th[aria-sort]::before { content:""; position:absolute; top:1px; left:50%; width:0; height:0; border:3px solid transparent; border-bottom:0; border-top-color:#849aa7; }
.ms-money-table th[aria-sort="ascending"]::before { border-top:0; border-bottom:3px solid #849aa7; }
.ms-money-table .ms-list-gear { margin-left:0; }
.ms-money-cashflow .ms-money-table td:first-child > a { text-decoration:none; color:#222; }
/* Движение денежных средств как у МойСклада (живая сверка 20.10.2026): заголовки — #333, суммы — с отступом 2 px от
   разделителя столбцов (5 px разделителя + 2), «По счетам» и «По статьям расходов» — узкие столбцы МойСклада. */
.ms-money-cashflow .ms-money-table th { color:#333; }
.ms-money-cashflow .ms-money-table td[data-money-column] { padding-right:7px; }
.ms-money-cashflow[data-money-view="account"] .ms-money-table td[data-money-column] { overflow:visible; text-overflow:clip; }
.ms-money-cashflow[data-money-view="account"] .ms-money-table th > span { display:block; overflow:hidden; text-overflow:ellipsis; }
.ms-money-cashflow[data-money-view="account"] .ms-money-table :is(th,td):nth-child(2),
.ms-money-cashflow[data-money-view="account"] .ms-money-table :is(th,td):nth-child(7) { text-align:left; }
.ms-money-table.ms-money-balances { width:514px; }
.ms-money-table.ms-money-accounts { width:674px; }
.ms-money-cashflow[data-money-view="account"] .ms-money-accounts { width:644px; }
.ms-money-table .ms-money-account-group td { font-weight:700; text-align:left; background:#ededed; }
.ms-money-table .ms-money-account-group td[data-money-column] { text-align:right; }
.ms-money-table .ms-money-account-group td:first-child { overflow:visible; text-overflow:clip; }
.ms-money-table.ms-money-expenses { width:419px; }
.ms-money-notice { max-width:1070px; margin:12px 0 18px; color:#777; font-size:11px; line-height:16px; }
.ms-money-notice a { white-space:nowrap; margin-left:6px; }
.ms-money-help { max-width:1060px; padding:10px; margin:12px 0 0; background:#edf5fa; line-height:18px; }
.ms-money-error { color:#a32121; padding:8px 10px; margin:8px 0; }
.ms-money-footer { display:flex; position:fixed; z-index:12; left:0; bottom:0; right:0; height:24px; padding-left:30px; background:#fff; box-shadow:0 -2px 5px rgba(0,0,0,.4),0 2px 4px rgba(0,0,0,.2); white-space:nowrap; font:700 11px/24px Tahoma,Geneva,sans-serif; overflow:hidden; }
.ms-money-pager { display:inline-flex; align-items:center; gap:3px; width:175px; height:24px; padding:0 0 0 10px; flex:none; font:400 11px/normal "Helvetica Neue",Helvetica,Arial,sans-serif; }
.ms-money-range { min-width:92px; flex:1; padding:0 2px; text-align:center; }
.ms-money-footer strong,.ms-money-footer-gap { display:inline-block; box-sizing:border-box; width:95px; padding:0 5px 0 0; flex:none; text-align:right; overflow:hidden; text-overflow:ellipsis; }
.ms-money-settlements .ms-money-footer .ms-money-pager { width:175px; }
.ms-money-settlements .ms-money-footer strong:first-of-type { margin-left:-80px; pointer-events:none; }
.ms-money-accounts ~ .ms-money-footer strong { width:115px; }
.ms-money-cashflow[data-money-view="organization"] .ms-money-footer strong { width:115px; }
.ms-money-cashflow[data-money-view="account"] .ms-money-footer .ms-money-pager { width:210px; }
.ms-money-cashflow[data-money-view="account"] .ms-money-footer strong { width:75px; padding-right:7px; }
.ms-money-cashflow[data-money-view="account"] .ms-money-footer .ms-money-footer-currency { width:105px; padding:0; text-align:left; }
.ms-money-columns { min-width:220px; padding:15px; }
.ms-money-columns strong { display:block; margin-bottom:12px; }
.ms-money-columns .ms-check { display:flex; margin:8px 0; }
.ms-money-columns p { margin:15px 0 6px; }
.ms-money-columns > .ms-btn { margin-top:12px; }
.ms-page-money [data-money-column][hidden] { display:none; }
.ms-money-detail { position:fixed; z-index:20; top:99px; bottom:24px; right:0; width:min(1040px,calc(100vw - 70px)); box-sizing:border-box; background:#fff; border-left:1px solid #b7b7b7; box-shadow:-3px 0 8px rgba(0,0,0,.2); overflow:auto; padding:18px 20px 30px; }
.ms-money-close { display:block; text-align:right; margin-bottom:16px; }
.ms-money-detail h2 { font-size:20px; margin:14px 0 18px; }
.ms-money-detail-totals { display:flex; gap:24px; margin:0 0 20px; }
.ms-money-detail-totals dt { color:#777; margin-bottom:6px; }
.ms-money-detail-totals dd { margin:0; font-size:16px; font-weight:700; }
.ms-money-detail-scroll { overflow:auto; margin-top:20px; }
.ms-money-documents { width:980px; }
.ms-money-documents th { text-align:left; }
.ms-money-documents td { text-align:left; }
.ms-money-documents th:nth-child(1) { width:155px; }
.ms-money-documents th:nth-child(2) { width:75px; }
.ms-money-documents th:nth-child(3) { width:125px; }
.ms-money-documents th:nth-child(4),.ms-money-documents th:nth-child(5) { width:100px; }
.ms-money-documents th:nth-child(6) { width:200px; }
.ms-money-documents td:nth-child(4),.ms-money-documents td:nth-child(5) { text-align:right; }
.ms-money-verify { margin-left:14px; }
.ms-money-verification { padding:10px; background:#f1f6f8; line-height:18px; }
.ms-money-resize { position:absolute; top:0; right:0; bottom:0; width:5px; cursor:col-resize; }
/* «Прибыли и убытки» (27.09.2026): узкая таблица статей, итоговые строки жирные, статьи расходов с отступом,
   убыток — в скобках и красным, как у МойСклада. */
/* Как у МойСклада (#pnl3, живая сверка под администратором 21.10.2026): таблица 455 px — «Статья» 300, сумма 155 с отступом
   15 справа (правый край сумм — 470 от края страницы), заголовки #333. */
.ms-money-table.ms-plr-table { width:455px; }
.ms-plr-table th { color:#333; }
.ms-plr-table th:last-child,.ms-plr-table td:last-child { padding-right:15px; }
.ms-plr-table .ms-plr-bold td { font-weight:700; }
.ms-plr-table .ms-plr-sub td:first-child { padding-left:35px; }
.ms-plr-table td.ms-plr-neg { color:#d0021b; }
.ms-plr-table tbody tr:hover td { background:#f5f9fb; }
.ms-plr-stamp { max-width:470px; }
@media(max-width:899px) {
  .ms-money-table.ms-plr-table { width:100%; min-width:320px; }
  .ms-page-money { margin-left:15px; margin-right:15px; }
  .ms-page-money .ms-list-head-slot { overflow:auto; }
  .ms-page-money .ms-list-head { width:max-content; }
  .ms-money-filter { max-width:calc(100vw - 65px); overflow:auto; }
  .ms-money-detail { top:99px; width:calc(100vw - 20px); }
  .ms-money-detail-totals { flex-wrap:wrap; }
}
@media print {
  .ms-page-money { margin:0; padding:0; }
  .ms-page-money .ms-list-head-slot,.ms-money-filter,.ms-money-footer,.ms-money-close,.ms-money-verify,.ms-page-money .ms-menu,.ms-page-money .ms-btn,.ms-money-notice a { display:none!important; }
  .ms-money-table { width:100%; font-size:10px; }
  .ms-money-table td,.ms-money-table th { height:24px; font-size:10px; }
  .ms-money-detail { position:static; border:0; box-shadow:none; width:100%; padding:0; overflow:visible; }
  .ms-money-settlements:has(.ms-money-detail) > .ms-money-table-wrap { display:none; }
  .ms-money-detail-scroll { overflow:visible; }
}
.ms-money-print-page .ms-page-money .ms-list-head-slot,.ms-money-print-page .ms-money-filter,.ms-money-print-page .ms-money-footer,.ms-money-print-page .ms-money-close,.ms-money-print-page .ms-money-verify,.ms-money-print-page .ms-menu,.ms-money-print-page .ms-btn { display:none; }
.ms-money-print-page .ms-money-detail { position:static; width:100%; padding:0; border:0; box-shadow:none; }
.ms-money-print-page .ms-money-settlements:has(.ms-money-detail) > .ms-money-table-wrap { display:none; }

/* ДДС: график в свободной области справа; детализация не меняет отбор основной таблицы. */
.ms-cashflow-body { display:flex; flex-wrap:wrap; align-items:flex-start; gap:0 30px; }
.ms-cashflow-body > .ms-money-table-wrap { flex:0 1 auto; min-width:0; }
.ms-cashflow-chart { flex:1 1 600px; max-width:780px; min-width:0; margin:25px 0 12px; }
.ms-cashflow-chart-head { display:flex; align-items:center; justify-content:space-between; gap:15px; }
.ms-cashflow-chart-head h2 { font-size:14px; line-height:20px; font-weight:400; margin:0; color:#e65418; }
.ms-cashflow-chart-period { margin:8px 0 0; font-size:11px; color:#777; }
.ms-cashflow-plot { display:block; width:100%; height:auto; overflow:visible; }
.ms-cashflow-chart-axis { font:10px Arial,sans-serif; fill:#666; }
.ms-cashflow-plot [data-cashflow-series][hidden] { display:none; }
.ms-cashflow-plot-point { cursor:pointer; outline:none; }
.ms-cashflow-plot-point:hover > rect,.ms-cashflow-plot-point:focus > rect { fill:#d7eaf7; fill-opacity:.3; stroke:#87b2d0; stroke-width:1px; }
.ms-cashflow-legend { display:flex; justify-content:center; gap:32px; margin-top:-12px; }
.ms-cashflow-legend button { display:inline-flex; align-items:center; gap:8px; padding:4px 2px; border:0; background:none; font:12px Arial,sans-serif; cursor:pointer; color:#222; }
.ms-cashflow-legend button[aria-pressed="false"],.ms-cashflow-legend button:disabled { color:#999; }
.ms-cashflow-legend button[aria-pressed="false"] { text-decoration:line-through; }
.ms-cashflow-legend button:disabled { cursor:default; }
.ms-cashflow-legend i { display:inline-block; width:9px; height:9px; border:1px solid; border-radius:50%; }
.ms-cashflow-swatch-in { background:#daf3c0; border-color:#9fcf6a!important; }
.ms-cashflow-swatch-out { background:#ffabab; border-color:#d04a49!important; }
.ms-cashflow-swatch-closing { background:#b3e0f7; border-color:#6ab0cf!important; }
.ms-cashflow-chart-tip { display:block; min-height:30px; margin:10px 0 0; font-size:11px; line-height:15px; color:#555; }
.ms-cashflow-chart-note,.ms-cashflow-detail-note { margin:8px 0 14px; color:#777; font-size:11px; line-height:16px; }
.ms-cashflow-detail { width:min(1160px,calc(100vw - 70px)); }
.ms-cashflow-detail h2 { color:#222; }
.ms-cashflow-summary { border-collapse:collapse; width:660px; max-width:100%; font:12px Arial,sans-serif; margin:10px 0 18px; }
.ms-cashflow-summary th,.ms-cashflow-summary td { width:25%; padding:7px 10px; border-bottom:1px solid #ddd; text-align:right; }
.ms-cashflow-summary th:first-child { text-align:left; font-weight:400; }
.ms-cashflow-summary thead th { border-bottom:2px solid #186999; }
.ms-cashflow-summary td { font-weight:700; }
.ms-cashflow-detail-actions { display:flex; align-items:center; gap:20px; }
.ms-cashflow-documents { width:1085px; }
.ms-cashflow-documents th,.ms-cashflow-documents td { text-align:left; }
.ms-cashflow-documents td:nth-child(5),.ms-cashflow-documents td:nth-child(6) { text-align:right; }
.ms-money-cashflow .ms-cashflow-documents td a { color:#186999; text-decoration:underline; }
@media(max-width:899px) {
  .ms-cashflow-body { display:block; }
  .ms-cashflow-chart-head { flex-wrap:wrap; }
  .ms-cashflow-detail { width:calc(100vw - 20px); }
}
@media print {
  .ms-cashflow-body { display:block; }
  .ms-cashflow-chart { max-width:760px; break-inside:avoid; }
  .ms-cashflow-chart-head .ms-btn-group,.ms-cashflow-chart-tip,.ms-cashflow-chart-note a,.ms-cashflow-detail-actions { display:none; }
  .ms-cashflow-legend button { display:inline-flex!important; }
  .ms-cashflow-detail { position:static; width:100%; padding:0; }
  .ms-cashflow-detail .ms-money-pager { display:none; }
}
