/* Карточки справочников. Значения измерены на локальных эталонах при ширине 2048 px. */
.ms-page-co-card { padding:20px 40px 40px; color:#222; font:12px/normal "Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif; min-width:1036px; }
.ms-co-toolbar { display:flex; align-items:center; width:989px; height:28px; }
.ms-co-toolbar .ms-co-close { margin-right:32px; }
.ms-co-pager { display:flex; align-items:center; gap:5px; white-space:nowrap; }
.ms-co-pager .ms-btn-group { margin:0; }
.ms-co-pager .ms-co-arrow { width:26px; height:26px; padding:0; margin:0; color:#888; }
.ms-co-changes { margin-left:auto; align-self:flex-start; padding-top:1px; color:#999; font-size:12px; text-align:right; }
.ms-co-changes span { color:#186999; }
.ms-co-columns { display:grid; grid-template-columns:463px 461px; gap:65px; margin-top:43px; align-items:start; }
.ms-co-general { padding-top:10px; }
.ms-page-co-card h2 { margin:0 0 10px; padding:0; font-size:15px; line-height:17px; font-weight:400; color:#cc420c; }
.ms-co-field { display:flex; align-items:flex-start; min-height:21px; margin:0 0 10px; padding:0; }
.ms-co-label { box-sizing:border-box; flex:0 0 196px; width:196px; padding:2px 15px 0 25px; text-align:right; font-size:12px; line-height:14px; color:#222; }
.ms-co-required .ms-co-label::before { content:'* '; color:#f33; }
.ms-co-control { position:relative; min-width:0; }
.ms-page-co-card .ms-input, .ms-page-co-card .ms-select { box-sizing:border-box; width:250px; height:21px; min-height:0; padding:1px; margin:0; border:1px solid #bfbfbf; border-radius:0; font:12px/normal Arial,sans-serif; background:#f0f0f0; color:#888; opacity:1; -webkit-text-fill-color:#888; box-shadow:none; }
.ms-page-co-card .ms-select { padding-left:2px; }
.ms-page-co-card textarea.ms-input { box-sizing:content-box; display:block; width:250px; height:42px; padding:0; resize:both; line-height:14px; }
.ms-page-co-card textarea.ms-co-address { width:226px; height:28px; }
.ms-co-pick { box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; position:absolute; top:0; right:0; width:19px; height:19px; padding:0; border:1px solid #ccc; border-radius:2px; color:#999; background:linear-gradient(#fff,#e6e6e6); }
.ms-co-address-row { margin-bottom:13px; min-height:30px; }
.ms-co-address-row .ms-co-control { width:250px; }
.ms-co-address-comment { padding-top:5px; margin-bottom:13px; }
.ms-co-address-comment .ms-co-label { margin-top:-5px; }
.ms-co-fias { margin-bottom:20px; }
.ms-co-fias-note { display:block; font-size:12px; color:#3585b1; text-decoration:underline; width:252px; margin-top:4px; line-height:14px; }
.ms-co-description { margin-bottom:13px; }
.ms-co-description textarea.ms-input { height:70px; }
.ms-co-legal-title textarea.ms-input { height:73px; }
.ms-co-two-line { min-height:31px; }
.ms-co-value { display:inline-block; min-height:17px; padding-top:2px; line-height:17px; }
.ms-co-short .ms-input { width:120px; }
.ms-co-control .ms-check { margin:2px 0 0; min-height:0; }
.ms-co-control .ms-check input { margin:0; }
.ms-co-plain-block { margin-top:20px; }
.ms-co-marking h2 { color:#888; }
.ms-co-block { width:461px; padding:10px 0 5px; margin:0 0 10px; background:#f2f2f2; border-radius:4px; }
.ms-co-block h2 { margin-left:10px; margin-bottom:10px; }
.ms-co-block .ms-co-field:last-child { margin-bottom:10px; }
.ms-co-kind { min-height:23px; }
.ms-co-kind .ms-select { height:23px; }
.ms-co-bank { background:#d9ecff; padding-bottom:14px; }
.ms-co-cash { padding-top:12.5px; padding-bottom:2.5px; }
.ms-co-cash .ms-co-field { margin-top:15px; }
.ms-co-default { margin-left:196px; height:31.89px; margin-top:0; }
.ms-co-default .ms-check { display:inline-flex; align-items:center; gap:3px; font-size:11px; }
.ms-co-default input { width:13px; height:13px; margin:0; }
.ms-co-tax { display:flow-root; margin-top:20px; padding-bottom:0; }
.ms-co-details { margin-top:20px; }
.ms-co-details > summary { cursor:pointer; color:#3585b1; margin-bottom:12px; }
.ms-co-note { color:#888; font-size:12px; line-height:16px; }
.ms-co-links { display:flex; gap:20px; margin:10px 0; }
.ms-co-table { border-collapse:collapse; width:100%; table-layout:fixed; font:11px/normal Tahoma,Geneva,sans-serif; }
.ms-co-table th { font-weight:400; color:#333; height:30px; text-align:left; border-bottom:2px solid #3585b1; }
.ms-co-table td { height:30px; border-bottom:1px solid #ddd; }
.ms-co-table th, .ms-co-table td { padding:0 5px 0 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ms-co-table th:first-child, .ms-co-table td:first-child { padding-left:10px; }
.ms-co-table tbody tr:last-child td { border-bottom:1px solid #3585b1; }
.ms-co-table a { color:#186999; text-decoration:underline; }
.ms-co-table .ms-co-num { text-align:right; }
.ms-co-table tfoot td { font-weight:700; }
.ms-co-employee .ms-co-columns { grid-template-columns:463px 520px; gap:130px; }
.ms-co-employee .ms-co-toolbar { width:1036px; }
.ms-co-employee-description { margin-bottom:0; }
.ms-co-images { margin-top:13px; }
.ms-co-images h2 { margin-bottom:25px; }
.ms-co-employee-info { margin-top:25px; }
.ms-co-employee-access { padding-top:20px; }
.ms-co-employee-access p { width:445px; font-size:13px; line-height:14px; margin:10px 0 0; }
.ms-co-counterparty { padding-left:32px; padding-right:20px; min-width:1264px; }
.ms-co-counterparty .ms-co-toolbar { width:1264px; }
.ms-co-name { margin-top:38px; margin-bottom:32px; }
.ms-co-name > label { display:block; font-size:12px; color:rgba(0,0,0,.45); line-height:14px; margin:0 0 10px; padding-left:10px; }
.ms-co-name > label::before { content:'*'; color:#f33; position:absolute; margin-left:-8px; }
.ms-co-name > .ms-input { width:600px; height:29px; font-size:20px; font-weight:700; padding:1px 5px; }
.ms-co-counterparty-columns { display:grid; grid-template-columns:464px 768px; gap:32px; align-items:start; }
.ms-co-disclosure { background:#f7f7f7; border-radius:2px; padding-bottom:12px; margin-bottom:12px; }
.ms-co-disclosure > summary { box-sizing:border-box; position:relative; height:28px; padding:12px 32px 0; font-size:14px; line-height:16px; font-weight:700; cursor:auto; list-style:none; }
.ms-co-disclosure > summary::-webkit-details-marker { display:none; }
.ms-co-disclosure > summary > svg { cursor:pointer; position:absolute; right:16px; top:12px; width:16px; height:16px; color:#444; transform:rotate(-90deg); }
.ms-co-disclosure[open] > summary > svg { transform:rotate(0); }
.ms-co-disclosure > summary:focus-visible { outline:0; }
.ms-co-disclosure-body { padding:16px 25px 0 7px; }
.ms-co-counterparty .ms-co-field { margin-bottom:5px; min-height:21px; }
.ms-co-counterparty .ms-co-label { flex-basis:185.42px; width:185.42px; padding:4px 18px 0 24.7px; text-align:left; color:rgba(0,0,0,.45); line-height:14px; }
.ms-co-counterparty .ms-co-label .ms-help { vertical-align:middle; margin-left:2px; }
.ms-co-counterparty .ms-input, .ms-co-counterparty .ms-select { width:240px; }
.ms-co-counterparty .ms-co-name .ms-input { width:600px; }
.ms-co-counterparty textarea.ms-input { box-sizing:border-box; width:240px; height:78px; }
.ms-co-counterparty textarea.ms-co-address { width:215px; height:36px; }
.ms-co-counterparty .ms-co-control { width:240px; }
.ms-co-counterparty .ms-co-contact-short .ms-input { width:215px; }
.ms-co-counterparty .ms-co-short .ms-input { width:120px; }
.ms-co-counterparty .ms-co-full-title textarea { height:50px; }
.ms-co-counterparty .ms-co-legal-comment textarea { height:36px; }
.ms-co-counterparty .ms-co-fias { margin-bottom:10px; }
.ms-co-counterparty .ms-co-state-row { min-height:22px; }
.ms-co-state { box-sizing:border-box; display:block; width:240px; height:22px; padding:3px 10px; background:#eee; color:#fff; border-radius:1px; }
.ms-co-groups { box-sizing:border-box; width:240px; min-height:21px; border:1px solid #bfbfbf; padding:1px 3px; background:#f0f0f0; }
.ms-co-groups > span { display:inline-block; padding:0 4px; border:1px solid #c6e5f6; color:#3d8dbb; background:#e4f4fe; border-radius:9px; font-size:11px; line-height:13px; margin-right:2px; }
.ms-co-divider { height:1px; background:#e5e5e5; margin:12px 0 10px 24px; }
.ms-co-contacts .ms-co-note, .ms-co-disclosure-body > .ms-co-note { display:block; margin-left:10px; line-height:21px; }
.ms-co-contact + .ms-co-contact { border-top:1px solid #ddd; padding-top:12px; }
.ms-co-tabs { display:inline-flex; width:768px; height:40px; border-radius:3px; overflow:hidden; background:#e2e2e2; }
.ms-co-tabs > a { box-sizing:border-box; width:153.6px; flex:0 0 153.6px; display:flex; align-items:center; justify-content:center; color:#222; font-size:12px; text-decoration:none; border-right:1px solid #ccc; }
.ms-co-tabs > a.on { background:#1f75a8; color:#fff; border:0; border-radius:3px; }
.ms-co-tabs > a:hover { text-decoration:none; }
.ms-co-tabs > a:not(.on):hover { background:#ccc; }
.ms-co-subtabs { display:flex; margin-top:32px; height:28px; }
.ms-co-subtabs > a { box-sizing:border-box; padding:5px 20px; border:1px solid #ccc; border-right:0; font-size:12px; line-height:16px; color:#222; text-decoration:none; background:#fff; }
.ms-co-subtabs > a:first-child { border-radius:2px 0 0 2px; }
.ms-co-subtabs > a:last-child { border-right:1px solid #ccc; border-radius:0 2px 2px 0; }
.ms-co-subtabs > a.on { color:#186999; border-color:#3585b1; border-right:1px solid #3585b1; }
.ms-co-subtabs > a.on + a { border-left:0; }
.ms-co-documents { border-top:1px solid #e5e5e5; margin-top:32px; padding-top:32.5px; }
.ms-co-doc-table { width:768px; }
.ms-co-doc-table th, .ms-co-doc-table td { box-sizing:border-box; }
.ms-co-doc-table th { height:31.5px; }
.ms-co-doc-table td { height:31.5px; }
.ms-co-doc-state { display:inline-block; max-width:100%; box-sizing:border-box; padding:2px 8px; background:#888; color:#fff; font:11px/14px Tahoma,Geneva,sans-serif; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; vertical-align:middle; }
.ms-co-metrics { margin-top:32px; }
@media(max-width:900px) { .ms-page-co-card { padding-left:20px; padding-right:20px; } }

.ms-co-org .ms-co-general > .ms-co-field:nth-child(12) { min-height:20px; }

.ms-co-label-text { position:relative; }
.ms-co-label-text > svg { position:absolute; right:calc(100% + 7px); top:0; }
.ms-co-counterparty .ms-co-contact-short .ms-input { padding:1px 3px; }

.ms-co-org .ms-co-address-comment .ms-co-label-text, .ms-co-org .ms-co-fias .ms-co-label-text { display:block; font:12px/20px Tahoma,Geneva,sans-serif; }

.ms-co-org .ms-co-primary > .ms-co-plain-block { margin-top:23px; }
.ms-co-org .ms-co-primary > .ms-co-marking { margin-top:21px; }
.ms-co-marking h2 { margin-bottom:12px; }
.ms-co-two-line .ms-co-control { align-self:center; }
.ms-co-metrics { overflow-x:auto; }
.ms-co-metrics .ms-co-balance-table { min-width:1080px; }
.ms-co-metrics .ms-co-balance-table th { white-space:normal; height:42px; }

.ms-page-co-card .ms-co-pick { margin:0; gap:0; }
.ms-page-co-card .ms-co-pick > svg { width:12px; height:12px; }

/* Состояния старых карточек: меняются сразу, без затухания и движения блоков. */
.ms-page-co-card :is(a,button,input,textarea,select,summary) { transition:none; animation:none; }
.ms-page-co-card :is(a,button,summary):focus-visible { outline:0; }
.ms-page-co-card :is(input,textarea,select):disabled { cursor:default; }
.ms-page-co-card .ms-co-pager .ms-co-arrow { width:27px; }
.ms-page-co-card .ms-co-pager .ms-co-arrow:disabled { color:#c0c0c0; }
.ms-page-co-card .ms-co-pager .ms-co-arrow:disabled > svg { opacity:1; }
.ms-page-co-card .ms-co-pager .ms-co-arrow:not(:disabled):hover { color:#888; }
.ms-co-table tbody tr[data-ms-co-doc-url] { cursor:pointer; }
.ms-co-table tbody tr[data-ms-co-doc-url] td { background:#fff; }
.ms-co-table tbody tr[data-ms-co-doc-url]:hover td { background:#fffb8c; }
.ms-co-table tbody tr.current-row td, .ms-co-table tbody tr.current-row:hover td { background:#dff3df !important; }
.ms-co-table a:visited { color:#186999; }
.ms-co-table a:hover { color:#f88001; }
.ms-co-table a:active { text-decoration:none; }
.ms-co-tabs > a:visited { color:#222; }
.ms-co-tabs > a.on:visited { color:#fff; }
.ms-co-subtabs { display:flex; width:max-content; height:26px; border:1px solid #d2d2d2; border-radius:3px; }
.ms-co-subtabs > a { position:relative; height:28px; padding:0 20px; margin:-1px -1px 0; line-height:26px; border:1px solid transparent; background:transparent; color:#222; }
.ms-co-subtabs > a:visited, .ms-co-subtabs > a:hover, .ms-co-subtabs > a:active { background:transparent; color:#222; text-decoration:none; }
.ms-co-subtabs > a:first-child { border-radius:3px 0 0 3px; }
.ms-co-subtabs > a:last-child { border-right:1px solid transparent; border-radius:0 3px 3px 0; }
.ms-co-subtabs > a.on { border:1px solid #186999; border-radius:3px; color:#186999; z-index:1; }
.ms-co-subtabs > a.on:hover, .ms-co-subtabs > a.on:active, .ms-co-subtabs > a.on:visited { color:#186999; }
.ms-co-subtabs > a.on + a { border-left:1px solid transparent; }
.ms-co-groups > span { max-width:200px; padding:0 6px; border:1px solid #c2e0f3; border-radius:10px; font-family:Tahoma,Geneva,sans-serif; color:#bfbfbf; background:#f0f0f0; }

.ms-page-co-card .ms-co-help { box-sizing:content-box; position:relative; width:15px; height:15px; margin:0; padding:0; border:0; border-radius:0; background:transparent; cursor:pointer; vertical-align:middle; }
.ms-co-label-text > .ms-co-help { position:absolute; right:calc(100% + 10px); top:0; }
.ms-co-help svg { display:block; width:15px; height:15px; }
.ms-co-help:hover svg > circle:first-child { stroke:#186999; }
.ms-co-help[aria-expanded="true"] svg > circle:first-child { fill:#186999; stroke:#186999; }
.ms-co-help[aria-expanded="true"] svg > path { stroke:#fff; }
.ms-co-help[aria-expanded="true"] svg > circle:last-child { fill:#fff; }
.ms-co-help-panel { position:relative; box-sizing:content-box; width:360px; max-width:calc(100% - 2px); margin:16px 0; padding:6px 0 10px; border:1px solid #e2f4ff; border-radius:2px; background:#ecf8ff; color:#222; font:12px/normal "Helvetica Neue",Helvetica,Arial,sans-serif; }
.ms-co-help-panel p { padding:0 18px 0 12px; margin:0; }
.ms-page-co-card .ms-co-help-close { position:absolute; top:5px; right:6px; width:12px; height:12px; padding:0; margin:0; border:0; background:transparent; font:14px/12px Arial,sans-serif; color:#186999; }
.ms-co-disclosure:not([open]) .ms-co-help-panel { display:none; }


.ms-page-co-card .ms-co-help-close > svg { width:7px; height:7px; }

/* Старые ячейки используют строку текста 1.4; это сохраняет положение букв при DPR 1.25/1.5. */
.ms-co-doc-table :is(th,td) { line-height:1.4; text-overflow:clip; }
.ms-co-doc-state { box-sizing:content-box; padding:1px 10px 3px; border-radius:2px; font:11px/13px Tahoma,Geneva,sans-serif; vertical-align:baseline; }
.ms-co-status-text { display:inline; margin-right:5px; vertical-align:middle; }

.ms-co-doc-table td { height:31px; }
.ms-co-doc-table tr:first-child td { height:31.5px; }
.ms-co-status-wrap { display:flex; align-items:center; min-height:18.5px; }

.ms-co-fias-note { text-decoration:none; }
.ms-co-fias-note a, .ms-co-fias-note a:visited { color:#186999; text-decoration:underline; }
.ms-co-fias-note a:hover { color:#f88001; }
.ms-co-fias-note a:active { text-decoration:none; }

.ms-co-cell-text { display:block; overflow:hidden; white-space:nowrap; }

/* Уточнения по контрольным замерам Q2/Q5. */
.ms-co-changes span { font-size:10px; line-height:11px; }
.ms-co-doc-table th { line-height:1.2; padding-top:2px; border-bottom-color:#186999; }
.ms-co-doc-table td.ms-co-num { padding-right:7px; }
@media print {
  .ms-page-co-card .ms-co-toolbar,
  .ms-page-co-card .ms-co-tabs,
  .ms-page-co-card .ms-co-subtabs,
  .ms-page-co-card .ms-co-help,
  .ms-page-co-card .ms-co-help-panel { display:none !important; }
}

/* A5: вход, роли и права. Собственная разметка по размерам старых карточек. */
.ms-co-employee .ms-co-close, .ms-co-org .ms-co-close { margin-right:12px; }
.ms-co-archive { margin-left:24px; }
.ms-co-delete, .ms-co-add-link, .ms-co-link { border:0; background:none; padding:0; font:12px Arial,sans-serif; color:#186999; text-decoration:underline; cursor:pointer; }
.ms-co-delete { margin-left:14px; color:#c0c0c0; text-decoration:none; border-bottom:1px dashed #bbb; }
.ms-co-link:disabled, .ms-co-add-link:disabled { color:#c0c0c0; cursor:default; text-decoration:none; }
.ms-co-images .ms-co-add-link { display:block; margin-top:0; }
.ms-co-employee .ms-co-images h2 { margin-bottom:20px; }
.ms-page-co-card .ms-co-attach { height:17px; border-radius:1px; padding:0 8px; margin:0; line-height:17px; }
.ms-co-fill-inn { margin:0 0 13px 196px; height:28px; }
.ms-co-fill-inn .ms-btn { height:26px; }
.ms-co-marking { position:relative; }
.ms-co-connect-tracking { position:absolute; top:0; right:17px; }
.ms-co-org .ms-co-bank { position:relative; }
.ms-co-org .ms-co-bank:not(.ms-co-cash) { padding-bottom:15px; }
.ms-co-org .ms-co-cash { padding-bottom:3.5px; }
.ms-co-bank-actions { position:absolute; right:8px; top:9px; display:flex; gap:4px; }
.ms-co-bank-actions button { border:0; padding:0; background:none; width:14px; height:16px; color:#aaa; }
.ms-co-owner { position:relative; margin-left:auto; margin-right:14px; min-width:85px; max-width:160px; font-size:12px; color:#186999; }
.ms-co-owner summary { cursor:pointer; list-style:none; text-overflow:ellipsis; white-space:nowrap; overflow:hidden; }
.ms-co-owner summary::after { content:' ▾'; font-size:10px; }
.ms-co-owner small { display:block; color:#999; font-size:10px; }
.ms-co-owner-panel { position:absolute; top:30px; right:0; z-index:40; width:390px; padding:16px; border:1px solid #ccc; background:#fff; box-shadow:0 3px 12px #0003; }
.ms-co-owner-panel .ms-co-label { flex-basis:105px; width:105px; padding-left:0; }
.ms-co-owner-panel .ms-co-field { margin-bottom:5px; }
.ms-co-owner-panel > a { display:block; margin:0 0 12px 105px; }
.ms-co-employee .ms-co-changes, .ms-co-org .ms-co-changes { flex:0 0 auto; margin-left:0; }
.ms-co-changes a { color:#999; text-decoration:underline; }
.ms-co-employee-access { padding-top:10px; }
.ms-co-employee-access > .ms-co-field .ms-co-label { flex-basis:95px; width:95px; padding-left:0; }
.ms-co-login-toggle { margin:14px 0 20px; }
.ms-co-login-toggle .ms-check { font-size:12px; }
.ms-co-access-buttons { margin:15px 0 24px 95px; display:flex; }
.ms-co-access-buttons .ms-btn { margin-right:8px; }
.ms-co-system-roles { margin-top:24px; }
.ms-co-system-roles h2 { margin-bottom:12px; }
.ms-co-system-role { padding:10px 12px; margin-bottom:4px; border-radius:3px; }
.ms-co-system-role.selected { background:#edf6fe; }
.ms-co-system-role > label { display:flex; align-items:center; gap:5px; font-size:13px; }
.ms-co-system-role input { margin:0; width:13px; height:13px; }
.ms-co-system-role > p { font-size:12px; line-height:16px; width:auto; margin:7px 0 0 18px; color:#888; }
.ms-co-system-role .ms-co-rights-button { margin:10px 0 0 18px; }
.ms-co-system-roles > .ms-btn { margin:8px 0 0 30px; }
.ms-co-network { margin-top:26px; }
.ms-co-network-columns { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.ms-co-network h3 { font-size:12px; font-weight:400; margin:6px 0 14px; }
.ms-co-network .ms-co-field .ms-co-label { width:55px; flex-basis:55px; padding-left:0; padding-right:8px; white-space:nowrap; }
.ms-co-network .ms-co-field .ms-input { width:180px; }
.ms-co-network p { width:auto; margin:0 0 10px; font-size:12px; }
.ms-co-notifications { margin-top:24px; }
.ms-co-notifications table { width:100%; border-collapse:collapse; }
.ms-co-notifications th, .ms-co-notifications td { font-size:12px; font-weight:400; padding:9px 6px; border-bottom:1px solid #e6e6e6; text-align:center; }
.ms-co-notifications th:first-child { text-align:left; }
.ms-co-notifications thead th { color:#888; }
.ms-co-data-stamp { font:11px/16px Arial,sans-serif; color:#999; }
.ms-co-employee-access > .ms-co-data-stamp { width:auto; margin-top:24px; font-size:11px; }
.ms-co-read-error, .ms-co-data-stamp.stale, .ms-co-balance-status.stale { color:#a55d18; }
.ms-co-balance-status { font-size:11px; margin-bottom:10px; line-height:16px; }
.ms-co-balance-control { display:flex; flex-wrap:wrap; align-items:center; gap:8px; min-height:21px; }
.ms-co-balance-control > span { white-space:nowrap; }
.ms-co-add-account { margin-top:4px; }
.ms-co-list-actions { display:inline-flex; align-items:center; white-space:nowrap; margin-right:10px; }
.ms-co-list-access-status { position:fixed; bottom:52px; left:30px; max-width:800px; padding:6px 12px; border:1px solid #e4d8bd; background:#fff9e9; z-index:20; font-size:12px; }
.ms-co-list-menu { position:fixed; z-index:1100; min-width:190px; }
.ms-co-list-employees [data-column="login_allowed"] .ms-list-cell { color:#70a942; }
.ms-co-list-employees [data-column="login_allowed"] .ms-list-cell[title="—"] { color:#999; }
.ms-co-dialog { position:fixed; inset:0; z-index:1200; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.2); font:12px Arial,sans-serif; }
.ms-co-dialog-panel { position:relative; width:1660px; max-width:calc(100vw - 60px); max-height:calc(100vh - 60px); overflow:auto; background:#fff; border:1px solid #ccc; border-radius:3px; box-shadow:0 6px 24px #0004; }
.ms-co-dialog-close { position:absolute; right:10px; top:6px; z-index:2; width:22px; height:22px; padding:0; border:0; background:transparent; color:#888; font:24px/22px Arial,sans-serif; cursor:pointer; }
.ms-co-dialog-body > p, .ms-co-dialog-body > h2 { margin:24px; }
/* Окно «Настройка доступа» по живому окну МойСклада (27.09.2026). Свои правила: светлый фон, Arial 12–13px,
   тонкие серые разделители, серые заглавные заголовки столбцов. Все элементы неактивны — только просмотр. */
.ms-co-dialog-panel.ms-co-rights-dialog { width:1200px; }
.ms-co-rights-dialog > .ms-co-dialog-close { top:20px; right:25px; width:23px; height:23px; border-radius:50%; background:#eee; color:#666; font:700 18px/23px Arial,sans-serif; }
.ms-co-rights-dialog > .ms-co-dialog-close:hover { background:#ccc; color:#222; }
.ms-co-rights-page { box-sizing:border-box; padding:20px 25px 18px; color:#222; font:12px Arial,sans-serif; }
.ms-co-rights-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 16px; }
.ms-co-rights-heading h1 { margin:0; padding:0; font:700 20px/24px Arial,sans-serif; color:#222; }
.ms-co-rights-x, .ms-co-rights-x:visited { flex:none; display:inline-flex; align-items:center; justify-content:center; width:23px; height:23px; border-radius:50%; background:#eee; color:#666; font:700 18px/23px Arial,sans-serif; text-decoration:none; }
.ms-co-rights-x:hover { background:#ccc; color:#222; text-decoration:none; }
.ms-co-dialog .ms-co-rights-x { display:none; }
.ms-co-rights-role { display:flex; align-items:center; gap:15px; margin:0 0 18px; }
.ms-co-rights-role .ms-select { box-sizing:border-box; width:250px; height:21px; padding:0 0 0 2px; font:12px Arial,sans-serif; }
.ms-co-rights-change { padding:0; margin:0; border:0; border-bottom:1px dashed currentColor; border-radius:0; background:none; color:#186999; font:12px/15px Arial,sans-serif; opacity:.6; cursor:default; }
.ms-co-rights-note { margin:0 0 12px; }
.ms-co-rights-page > .ms-co-read-error { margin:0 0 12px; }
.ms-co-rights-layout { display:grid; grid-template-columns:190px minmax(0,1fr); align-items:start; align-content:start; min-height:440px; }
.ms-co-rights-nav { position:sticky; top:0; display:flex; flex-direction:column; min-width:0; }
.ms-co-rights-nav a, .ms-co-rights-nav a:visited { box-sizing:border-box; display:block; height:30px; padding:0 22px 0 12px; color:#222; font:13px/30px Arial,sans-serif; text-decoration:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ms-co-rights-nav a:hover { color:#186999; text-decoration:none; }
.ms-co-rights-nav a.on, .ms-co-rights-nav a.on:hover { color:#222; background:#dcedf8; clip-path:polygon(0 0,calc(100% - 12px) 0,100% 50%,calc(100% - 12px) 100%,0 100%); }
.ms-co-rights-nav a:focus-visible { outline:1px dotted #186999; outline-offset:-3px; }
.ms-co-rights-panels { min-width:0; padding-left:25px; }
.ms-co-rights-section[hidden] { display:none; }
.ms-co-rights-section + .ms-co-rights-section { margin-top:28px; }
.ms-co-rights-title { margin:0 0 8px; padding:0; font:700 13px/16px Arial,sans-serif; color:#222; }
.ms-co-rights-sr, .ms-co-rights-tabs .ms-co-rights-title { position:absolute; width:1px; height:1px; margin:-1px; padding:0; border:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.ms-co-rights-tabs .ms-co-rights-section { margin-top:0; }
/* Высота — по самому длинному разделу (Маркировка), чтобы окно не прыгало при переключении разделов. */
.ms-co-rights-tabs .ms-co-rights-layout { min-height:575px; }
.ms-co-rights-scroll { overflow-x:auto; }
.ms-co-rights-table { border-collapse:collapse; font:12px Arial,sans-serif; color:#222; }
.ms-co-rights-table th, .ms-co-rights-table td { box-sizing:border-box; height:30px; padding:0 16px 0 0; border-bottom:1px solid #e8e8e8; text-align:left; vertical-align:middle; font-weight:400; white-space:nowrap; }
.ms-co-rights-table thead th { height:24px; padding-bottom:6px; vertical-align:bottom; border-bottom-color:#d6d6d6; color:#999; font-size:11px; line-height:13px; letter-spacing:.3px; text-transform:uppercase; }
.ms-co-rights-table .ms-co-rights-name, .ms-co-rights-table tbody th { width:220px; min-width:220px; padding:0 16px 0 8px; text-align:right; color:#222; }
.ms-co-rights-kind-tasks .ms-co-rights-table .ms-co-rights-name, .ms-co-rights-kind-tasks .ms-co-rights-table tbody th { width:0; min-width:0; padding:0; }
.ms-co-rights-table .ms-co-rights-help { margin:-2px 0 0 5px; cursor:help; }
.ms-co-rights-table select { box-sizing:border-box; width:156px; height:21px; margin:0; padding:0 0 0 2px; border:1px solid #bfbfbf; border-radius:0; background:#f0f0f0; color:#888; font:12px Arial,sans-serif; opacity:1; cursor:default; }
.ms-co-rights-kind-tasks .ms-co-rights-table select { width:180px; }
.ms-co-rights-table input[type="checkbox"] { width:13px; height:13px; margin:0; vertical-align:middle; cursor:default; }
.ms-co-rights-indent td:first-of-type { padding-left:16px; }
.ms-co-rights-checklist { display:flex; flex-direction:column; align-items:flex-start; gap:12px; padding:4px 0 0 8px; }
.ms-co-rights-page .ms-co-rights-checklist .ms-check { gap:8px; color:#222; font:12px/16px Arial,sans-serif; cursor:default; }
.ms-co-rights-checklist input[type="checkbox"] { width:13px; height:13px; margin:0; }
.ms-co-rights-footer { display:flex; align-items:center; margin-top:20px; padding-top:15px; border-top:1px solid #e5e5e5; }
/* Недоступная «Сохранить настройки» использует общий серый вид .ms-btn-green:disabled. */
.ms-co-rights-footer .ms-co-data-stamp { margin-left:auto; padding-left:16px; text-align:right; }
@media(max-width:900px) {
  /* Документы контрагента (768 px) — прокруткой внутри таблицы, не всей страницы (сценарий w19_r1 на 390 px: 784 px вбок). */
  .ms-co-doc-table { display:block; max-width:100%; overflow-x:auto; }
  .ms-co-dialog-panel { max-width:calc(100vw - 20px); max-height:calc(100vh - 20px); }
  .ms-co-rights-page { padding:16px 16px 14px; }
  .ms-co-rights-layout { grid-template-columns:150px minmax(0,1fr); }
  .ms-co-rights-panels { padding-left:12px; }
  .ms-co-rights-role { flex-wrap:wrap; }
  .ms-co-rights-footer { flex-wrap:wrap; row-gap:8px; }
}
@media(max-width:640px) {
  .ms-co-rights-layout, .ms-co-rights-tabs .ms-co-rights-layout { grid-template-columns:minmax(0,1fr); row-gap:12px; min-height:0; }
  .ms-co-rights-nav { position:static; flex-direction:row; flex-wrap:wrap; gap:4px; }
  .ms-co-rights-table .ms-co-rights-name, .ms-co-rights-table tbody th { width:auto; min-width:120px; padding-top:4px; padding-bottom:4px; line-height:14px; white-space:normal; }
  .ms-co-rights-nav a, .ms-co-rights-nav a:visited { height:26px; padding:0 10px; line-height:26px; border-radius:3px; }
  .ms-co-rights-nav a.on, .ms-co-rights-nav a.on:hover { clip-path:none; }
  .ms-co-rights-panels { padding-left:0; }
  .ms-co-rights-role .ms-select { width:100%; max-width:250px; }
}
@media print { .ms-co-list-actions, .ms-co-list-access-status, .ms-co-dialog, .ms-co-list-menu { display:none !important; } }

.ms-co-rights-change:disabled { opacity:1; color:#c0c0c0; }

/* Волна 45 (18.10.2026): юрлицо в просмотре — как у Михаила в МойСкладе (живая опись ИП Евдокимов С. М., обезличенный эталон
   ms_card_mycompany, окно 1984×963 при 192,5 %). Полоса: «Закрыть», владелец (блок 140 × 30 в 10 px за кнопкой: имя 12 px
   #186999 и отдел 10 px #909090 прижаты вправо в 120, стрелка в правых 20) и «Изменения: кто» с датой в 8 px за ним. Слева
   с x 40 — подписи до 221 (в 156 между отступами 25 и 15; «?» — перед подписью), поля с 236; справа с x 567,04 — блоки 461
   с радиусом 5. Под многострочным полем и кнопкой — ещё 3,12, как в строке таблицы МойСклада. Та же раскладка — у формы
   правки (m_refedit.css, «Юрлицо»). */
.ms-co-org .ms-co-toolbar { width:auto; align-items:flex-start; }
.ms-co-org .ms-co-toolbar .ms-co-close, .ms-co-org .ms-co-toolbar .ms-co-edit { margin:0 10px 0 0; }
.ms-co-org .ms-co-owner { flex:none; box-sizing:border-box; width:140px; max-width:none; min-width:0; height:30px; margin:0 8px 0 10px; }
.ms-co-org .ms-co-owner > summary { position:relative; display:flex; flex-direction:column; box-sizing:border-box; width:140px; height:30px; padding:0 20px 0 0;
  color:#186999; font:400 12px/14px "Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif; text-align:right; white-space:nowrap; overflow:visible; }
.ms-co-org .ms-co-owner > summary::-webkit-details-marker { display:none; }
.ms-co-org .ms-co-owner > summary::after { content:""; position:absolute; left:125px; top:13px; width:8px; height:4px; background:#186999; clip-path:polygon(0 0,100% 0,50% 100%); }
.ms-co-org .ms-co-owner > summary:hover .ms-co-owner-name, .ms-co-org .ms-co-owner[open] > summary .ms-co-owner-name { color:#f88001; }
.ms-co-org .ms-co-owner-name { display:block; overflow:hidden; text-overflow:ellipsis; }
.ms-co-org .ms-co-owner > summary > small { display:block; overflow:hidden; text-overflow:ellipsis; color:#909090; font-size:10px; line-height:11px; }
.ms-co-org .ms-co-owner-panel { left:0; right:auto; top:32px; }
.ms-co-org .ms-co-changes { display:flex; flex-direction:column; align-items:flex-end; flex:none; margin:0; padding:0; color:#222; font-size:12px; line-height:14px; text-align:right; white-space:nowrap; }
.ms-co-org .ms-co-changes .ms-co-changes-label { color:#8c8c8c; font-size:12px; line-height:14px; }
.ms-co-org .ms-co-changes .ms-co-changes-label::after { content:": "; white-space:pre; }
.ms-co-org .ms-co-changes a, .ms-co-org .ms-co-changes a:visited { color:#186999; text-decoration:none; }
.ms-co-org .ms-co-changes a:hover { color:#f88001; }
.ms-co-org .ms-co-changes .ms-co-changes-date { font-size:10px; line-height:normal; }
.ms-co-org .ms-co-columns { grid-template-columns:462.04px 461px; gap:65px; margin-top:42.16px; }
.ms-co-org h2 { line-height:normal; }
.ms-co-org .ms-co-label-text > .ms-co-help { position:static; display:inline-block; vertical-align:top; margin:0 10px 0 -25px; }
.ms-co-org .ms-co-address-row { min-height:0; margin-bottom:13.12px; }
.ms-co-org textarea.ms-co-address { height:28.05px; }
.ms-co-org .ms-co-pick { left:231.04px; right:auto; width:18px; height:18px; border-color:#c4c4c4; border-radius:3px; }
.ms-co-org .ms-co-address-comment { margin-bottom:13.11px; }
.ms-co-org .ms-co-address-comment textarea.ms-input { height:42.08px; }
.ms-co-org .ms-co-address-comment .ms-co-label-text, .ms-co-org .ms-co-fias .ms-co-label-text { color:#000; }
.ms-co-org .ms-co-fias { margin-bottom:20.02px; }
.ms-co-org .ms-co-description { margin-bottom:13.12px; }
.ms-co-org .ms-co-description textarea.ms-input { height:70.13px; }
.ms-co-org .ms-co-legal-title textarea.ms-input { height:42.08px; }
/* «Прикрепить файл» — системная кнопка браузера: рамку и фон не задаём, иначе браузер рисует не системную. */
.ms-co-org .ms-co-file-row { min-height:20px; }
.ms-co-org .ms-co-file-row .ms-co-control { min-height:20px; }
.ms-co-file-button { box-sizing:border-box; height:18.18px; margin:0; padding:0 10px; font:13.3333px Arial,sans-serif; line-height:normal; white-space:nowrap; }
.ms-co-file-name { margin-right:8px; color:#222; }
.ms-co-org .ms-co-two-line { min-height:0; }
.ms-co-org .ms-co-three-line .ms-co-control { align-self:center; top:-0.64px; }
.ms-co-org .ms-co-control .ms-check input { width:13px; height:13px; }
.ms-co-org .ms-co-primary > .ms-co-discounts { margin-top:25px; }
.ms-co-org .ms-co-note-row { min-height:18.02px; }
.ms-co-org .ms-co-note-row .ms-co-value { min-height:0; padding-top:4px; line-height:normal; }
.ms-co-org .ms-co-primary > .ms-co-marking { margin-top:25px; }
.ms-co-org .ms-co-connect-tracking { top:3.01px; right:16.04px; }
.ms-co-org .ms-co-connect-tracking:disabled { color:#186999; text-decoration:none; font:12px "Helvetica Neue",Helvetica,Arial,sans-serif; }
.ms-co-org .ms-co-check-connection { min-height:0; padding-top:15px; margin-bottom:13.11px; }
.ms-co-org .ms-co-check-connection .ms-btn { margin:0; }
.ms-co-org .ms-co-marking-log { box-sizing:border-box; width:196px; padding:10px 15px 0 0; text-align:right; }
.ms-co-org .ms-co-marking-log .ms-co-link:disabled { color:#186999; text-decoration:underline; font:12px "Helvetica Neue",Helvetica,Arial,sans-serif; }
.ms-co-org .ms-co-block { border-radius:5px; }
.ms-co-org .ms-co-kind { min-height:22.03px; }
.ms-co-org .ms-co-kind .ms-select { width:249.03px; height:22.03px; }
.ms-co-org .ms-co-fill-inn { position:relative; height:27.04px; margin:0 0 13.12px 196px; }
.ms-co-org .ms-co-fill-inn > .ms-co-help { position:absolute; left:-25px; top:7.73px; }
.ms-co-org .ms-co-fill-inn .ms-btn { box-sizing:content-box; width:170px; height:26px; margin:0; justify-content:flex-start; }
.ms-co-org .ms-co-cash { padding:12.47px 0 17.45px; }
.ms-co-org .ms-co-cash h2 { margin-bottom:14.93px; }
.ms-co-org .ms-co-block .ms-co-balance-row { min-height:0; margin:0; }
.ms-co-org .ms-co-balance-control { align-items:flex-start; gap:0; min-height:0; padding-top:2px; line-height:normal; }
.ms-co-org .ms-co-balance-control > * + * { margin-left:20px; }
.ms-co-org .ms-co-balance-value { color:#222; white-space:nowrap; }
.ms-co-org .ms-co-balance-value.is-cash { color:#186999; }
.ms-co-org .ms-co-balance-control .ms-co-link { font:12px "Helvetica Neue",Helvetica,Arial,sans-serif; line-height:normal; }
.ms-co-org .ms-co-balance-control .ms-co-balance-change:disabled { color:#186999; text-decoration:underline; }
.ms-co-org .ms-co-bank.ms-co-account { padding-bottom:33.81px; }
.ms-co-org .ms-co-account .ms-co-balance-row { margin-bottom:10px; }
.ms-co-org .ms-co-bank-actions { position:static; }
.ms-co-org .ms-co-bank-actions button { position:absolute; box-sizing:border-box; margin:0; padding:0; border:0; background:transparent; cursor:default; }
.ms-co-org .ms-co-bank-actions .ms-co-bank-move { left:382px; top:6px; display:flex; align-items:center; justify-content:center; width:24px; height:24px; color:#8c8c8c; }
.ms-co-org .ms-co-bank-actions .ms-co-bank-down { left:408.01px; top:8px; }
.ms-co-org .ms-co-bank-actions .ms-co-bank-remove { left:437px; top:12.99px; width:13.99px; height:13px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='13' viewBox='0 0 14 13'%3E%3Ccircle cx='7' cy='6.5' r='6.5' fill='%23b3b3b3'/%3E%3Cpath d='m4.6 4.1 4.8 4.8m0-4.8-4.8 4.8' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E") center / 13.99px 13px no-repeat; }
.ms-co-org .ms-co-default { height:auto; margin:0 0 0 196px; padding-top:1.87px; }
.ms-co-org .ms-co-default > label { display:inline-flex; align-items:flex-start; gap:3px; color:#222; font-size:12px; line-height:normal; }
.ms-co-org .ms-co-default input { width:13px; height:12px; margin:0.12px 0 0; }
@media(max-width:1100px) {
  .ms-co-org { min-width:0; }
  .ms-co-org .ms-co-columns { grid-template-columns:minmax(0,462.04px); row-gap:24px; }
}
@media(max-width:520px) {
  .ms-co-org .ms-co-toolbar { flex-wrap:wrap; height:auto; row-gap:8px; }
  .ms-co-org .ms-co-field { flex-wrap:wrap; }
  .ms-co-org .ms-co-label { flex-basis:100%; width:100%; padding:0 0 4px 25px; text-align:left; }
  .ms-co-org .ms-co-block { width:auto; }
  .ms-co-org .ms-page-co-card .ms-input, .ms-co-org .ms-input, .ms-co-org .ms-select { max-width:calc(100vw - 72px); }
  .ms-co-org .ms-co-fill-inn, .ms-co-org .ms-co-default { margin-left:25px; }
  .ms-co-org .ms-co-marking-log { width:auto; text-align:left; padding-left:25px; }
  .ms-co-org .ms-co-connect-tracking { position:static; display:block; margin:0 0 8px; }
  .ms-co-org .ms-co-bank-actions .ms-co-bank-move { left:auto; right:55px; }
  .ms-co-org .ms-co-bank-actions .ms-co-bank-down { left:auto; right:29px; }
  .ms-co-org .ms-co-bank-actions .ms-co-bank-remove { left:auto; right:10px; }
}
