/* Обороты и склады: собственная разметка по измеренным размерам эталонов. */
.ms-stock2 { position:relative; color:#222; font:12px/normal "Helvetica Neue",Helvetica,Arial,sans-serif; }
.ms-turnover,.ms-stores { margin:20px 20px 0 30px; padding-bottom:20px; }
.ms-stock2 .ms-list { table-layout:fixed; border-collapse:collapse; border-spacing:0; min-width:0; max-width:none; margin:0; padding:0; background:#fff; font:11px/normal Tahoma,Geneva,sans-serif; color:#222; }
.ms-stock2 .ms-list th { box-sizing:content-box; position:relative; height:30px; padding:0 5px 0 0; border:0; border-top:1px solid #fff; border-bottom:2px solid #186999; vertical-align:middle; background:#fff; color:#186999; font:400 11px/normal Tahoma,Geneva,sans-serif; white-space:nowrap; }
.ms-stock2 .ms-list td { box-sizing:content-box; height:30px; padding:0 5px 0 0; border:0; border-bottom:1px solid #ddd; vertical-align:middle; background:#fff; font:400 11px/normal Tahoma,Geneva,sans-serif; white-space:nowrap; }
.ms-stock2 .ms-list .ms-list-check-cell { padding:0 7px 0 10px; text-align:left; }
.ms-stock2 .ms-list tr[data-stock2-row]:hover td { background:#fffb8c; }
.ms-stock2 .ms-list tr.is-selected td { background:#e4f1fa; }
.ms-stock2 .ms-list tr.ms-list-archived td { color:#888; font-style:italic; }
.ms-stock2 .ms-list td .ms-link { color:#186999; font:inherit; text-decoration:underline; }
.ms-stock2 .ms-list td .ms-link:hover { color:#f88001; }
.ms-stock2 .ms-list td .ms-list-reference-link { color:inherit; text-decoration:none; }
.ms-stock2 .ms-list th .ms-stock2-heading-plain { color:#333; cursor:default; }
.ms-stock2 .ms-list th[aria-sort]::before { content:''; position:absolute; top:6px; left:50%; border:3px solid transparent; border-top-color:#849aa7; border-bottom:0; }
.ms-stock2 .ms-list th[aria-sort="ascending"]::before { border-top:0; border-bottom:3px solid #849aa7; }
.ms-stock2 .ms-list-head .ms-list-help { padding:0; top:10.7px; }
.ms-stock2 .ms-list-refresh { display:inline-flex; align-items:center; }
/* Столбцов фильтра столько, сколько входит в окно, как у МойСклада (окно 1984 px — семь; волна 46, 20.10.2026). */
.ms-stock2 { --ms-stock2-cols:7; }
.ms-stock2-filter { width:calc(var(--ms-stock2-cols) * 264px); }
.ms-stock2-filter .ms-list-filter-grid { width:calc(var(--ms-stock2-cols) * 264px); grid-template-columns:repeat(var(--ms-stock2-cols),264px); }
@media(max-width:1927px) { .ms-stock2 { --ms-stock2-cols:6; } }
@media(max-width:1663px) { .ms-stock2 { --ms-stock2-cols:5; } }
.ms-stock2-filter .ms-pick { width:250px; box-sizing:border-box; }
.ms-stock2-filter .ms-pick .ms-input { min-width:0; }
.ms-stock2-picker { max-width:550px; max-height:200px; overflow:auto; }
.ms-stock2-store-select { position:relative; text-align:left; display:block; font:12px Arial,sans-serif; }
.ms-stock2-store-select::after { content:'▾'; position:absolute; right:7px; top:2px; color:#888; }
.ms-stock2-help { margin:10px 0; padding:10px; background:#ecf8ff; border:1px solid #e2f4ff; max-width:600px; line-height:18px; }
.ms-stock2-notice { margin:12px 0; color:#777; }
.ms-stock2-stamp { color:#888; margin:8px 0 0 10px; font-size:11px; }
.ms-stock2-stamp.is-stale { color:#a76b18; }
.ms-stock2-source a { color:#186999; }
/* Сумма, которую посчитает ночной расчёт себестоимости: пометка с подсказкой вместо числа. */
.ms-stock2-pending { color:#a76b18; cursor:help; }
.ms-stock2-table-wrap { overflow-x:auto; margin-top:25px; max-width:100%; }
.ms-stock2-table { table-layout:fixed; }
.ms-stock2 .ms-list .ms-stock2-part-head th { height:30px; border:0; font-weight:700; color:#222; text-align:center; }
.ms-stock2 .ms-list .ms-stock2-part-head th[colspan="2"] { border-bottom:1px solid #ddd; }
.ms-stock2 .ms-list .ms-stock2-group td { padding-left:20px; background:#ededed; font-weight:700; }
.ms-stock2 .ms-list .ms-stock2-image { padding-left:10px; }
/* Картинка товара (28.09.2026): клетка 29 точек с полями 3 (tiny-image-panel МойСклада), без заливки; без картинки — пусто. */
.ms-stock2-image span { display:flex; align-items:center; justify-content:center; box-sizing:content-box; width:29px; height:29px; padding:3px 0; }
.ms-stock2-image img { display:block; width:auto; height:auto; max-width:26px; max-height:26px; }
.ms-stock2 .ms-list tr:has(.ms-stock2-image span) td { height:35px; }
.ms-stock2 [data-stock2-row] { cursor:pointer; }
.ms-stock2-footer { min-height:24px; }
.ms-stock2-totals { position:absolute; top:0; left:0; table-layout:fixed; border-collapse:collapse; font:700 11px Tahoma,sans-serif; background:#fff; }
.ms-stock2-totals td { height:18px; padding:0 5px 5px 0; white-space:nowrap; }
.ms-stock2-footer .ms-list-pager { background:#fff; }
.ms-stock2-footer.is-floating { position:fixed; bottom:0; left:30px; }
.ms-stock2-columns { top:6px; left:900px; }
.ms-stock2 .ms-list th .ms-list-heading { line-height:1.4; }
.ms-stock2-plus { display:inline-flex; border-radius:50%; width:14px; height:14px; align-items:center; justify-content:center; background:#1a9ec5; color:white; font-weight:700; }
.ms-stock2-selected { width:48px; height:26px; border:1px solid #ccc; border-radius:3px 0 0 3px; line-height:26px; text-align:center; margin-right:-1px; }
.ms-stock2-store-body { display:flex; align-items:flex-start; gap:44px; margin:25px 0 0 -14px; }
.ms-stock2-tree { width:290px; flex:none; font:12px/32px Arial,sans-serif; }
.ms-stock2-tree a { text-decoration:none; }
.ms-stock2-tree-root { display:block; padding-left:24px; }
.ms-stock2-tree .on { background:#e4f1fa; }
.ms-stock2-tree-root.on { clip-path:polygon(0 0,calc(100% - 10px) 0,100% 50%,calc(100% - 10px) 100%,0 100%); }
.ms-stock2-tree-node { display:flex; align-items:center; box-sizing:border-box; height:32px; position:relative; white-space:nowrap; }
.ms-stock2-tree-node>a:first-of-type { display:block; max-width:calc(100% - 22px); overflow:hidden; text-overflow:ellipsis; line-height:normal; }
.ms-stock2-tree-node>button { background:none; border:0; position:absolute; left:24px; top:8px; color:#888; cursor:pointer; }
.ms-stock2-tree-card { display:none; margin-left:4px; }
.ms-stock2-tree-node:hover .ms-stock2-tree-card,.ms-stock2-tree-node.on .ms-stock2-tree-card { display:inline-block; }
.ms-stock2-store-list { min-width:0; }
.ms-stores .ms-stock2-table-wrap { margin-top:0; }
.ms-stores .ms-stock2-filter { margin-top:0; }
.ms-stock2 [data-stock2-select],.ms-stock2 [data-stock2-select-all] { margin:0; width:14px; height:14px; vertical-align:middle; }
.ms-stock2 .ms-list tbody tr:last-child td { border-bottom-color:#4a98c6; }
.ms-store { margin:20px 40px 0; }
.ms-stock2-card-head { display:flex; align-items:flex-start; height:40px; }
.ms-stock2-card-actions { display:flex; align-items:flex-start; margin-left:260px; gap:28px; }
.ms-stock2-card-actions>.ms-help { margin-top:7px; margin-right:-18px; padding:0; flex:none; width:15px; height:15px; }
.ms-stock2-card-actions>.ms-btn:not(.ms-btn-drop) { box-sizing:border-box; width:132px; }
.ms-stock2 .ms-help>svg { flex:none; width:15px; height:15px; }
.ms-stock2-card-actions>.ms-btn { margin:0; }
.ms-stock2-owner { min-width:100px; text-align:right; color:#186999; }
.ms-stock2-owner button { padding:0; border:0; background:none; color:inherit; cursor:pointer; font:12px Arial,sans-serif; }
.ms-stock2-owner small,.ms-stock2-audit small { display:block; font-size:10px; }
.ms-stock2-owner small { color:#888; }
.ms-stock2-audit { text-align:right; color:#186999; }
.ms-stock2-audit a { color:#888; text-decoration:none; }
.ms-stock2-card-body { display:flex; gap:162px; margin-top:18px; }
.ms-stock2-card-fields { width:250px; flex:none; }
.ms-stock2-card-field { display:block; margin-bottom:18px; }
.ms-stock2-card-field>span,.ms-stock2-card-field>label { display:block; margin-bottom:4px; }
.ms-stock2-card-field b { color:#d33; }
.ms-stock2-card-field .ms-input { display:block; box-sizing:border-box; width:250px; height:21px; padding:1px; background:#f3f3f3; color:#777; }
.ms-stock2-card-field textarea.ms-input { resize:vertical; min-height:30px; padding:2px; }
.ms-stock2-address { display:flex; gap:5px; align-items:flex-start; }
.ms-stock2-address textarea.ms-input { width:228px; height:30px; }
.ms-stock2-address button { margin:0; padding:2px; border:1px solid #ccc; border-radius:2px; color:#888; background:#e3e3e3; cursor:pointer; }
.ms-stock2-card-field textarea.ms-stock2-address-comment { height:44px; }
.ms-stock2-card-field textarea.ms-stock2-description { height:72px; }
.ms-stock2-address-fields { padding:8px 0; }
.ms-stock2-address-fields label { display:block; margin:8px 0; }
.ms-stock2-parent { position:relative; }
.ms-stock2-parent>a,.ms-stock2-parent>span { position:absolute; right:5px; top:3px; color:#888; }
.ms-stock2-external summary { display:inline; color:#186999; text-decoration:underline; cursor:pointer; }
.ms-stock2-external[open] .ms-input { display:block; width:244px; margin-top:7px; }
.ms-stock2-extra-fields { margin-top:61px; width:350px; }
.ms-stock2 h2 { font:400 16px/20px Arial,sans-serif; margin:0 0 10px; color:#e65b21; }
.ms-stock2-extra-fields p { line-height:18px; }
.ms-stock2-storage { width:760px; position:relative; padding-top:3px; }
.ms-stock2-storage h2 { margin:0 0 35px; }
.ms-stock2-storage h2 .ms-help { position:absolute; left:-25px; top:2px; padding:0; width:15px; height:15px; }
.ms-stock2-storage table { border-collapse:collapse; table-layout:fixed; font:12px Arial,sans-serif; }
.ms-stock2-storage th { font-weight:400; text-align:left; height:29px; border-bottom:2px solid #2785a0; padding:0 5px 0 0; white-space:nowrap; }
.ms-stock2-storage td { height:29px; padding:0 5px 0 0; border-bottom:1px solid #ddd; }
.ms-stock2-zones { width:576px; }
.ms-stock2-zones th:first-child { padding-left:40px; }
.ms-stock2-zones td:first-child { padding-left:40px; }
.ms-stock2-zones tbody tr:first-child td:first-child { color:#999; font-style:italic; }
.ms-stock2-zones tbody tr:last-child td { border-bottom:2px solid #2785a0; }
.ms-stock2-slots { width:761px; margin-top:29px; }
.ms-stock2-slots th { height:30px; }
.ms-stock2-slots th:first-child { padding-left:25px; }
.ms-stock2-slots td:first-child { padding-left:25px; }
.ms-stock2-add { padding:0; border:0; background:none; color:#7e9bab; font:14px/24px Arial,sans-serif; margin-top:7px; }
.ms-stock2-storage-missing { color:#888; font-size:11px; margin-top:18px; }
.ms-stock2-operations { position:fixed; right:0; top:99px; bottom:0; z-index:45; width:min(1180px,calc(100vw - 64px)); padding:24px; background:white; box-shadow:0 0 10px #aaa; overflow:auto; }
.ms-stock2-op-head { display:flex; justify-content:space-between; align-items:flex-start; }
.ms-stock2-op-head h2 { font-size:18px; }
.ms-stock2-op-table { width:100%; min-width:900px; }
.ms-stock2-op-scroll { overflow:auto; }
.ms-stock2-op-summary { width:100%; max-width:800px; border-collapse:collapse; margin:15px 0; }
.ms-stock2-op-summary th,.ms-stock2-op-summary td { text-align:right; padding:7px 10px; border-bottom:1px solid #ddd; }
.ms-stock2-op-summary th:first-child { text-align:left; }
.ms-stock2 .ms-stock2-op-table th,.ms-stock2 .ms-stock2-op-table td { padding:5px 8px; white-space:normal; }
@media(max-width:1400px) { .ms-stock2 { --ms-stock2-cols:4; } .ms-stock2-card-actions { margin-left:80px; gap:15px; } }
@media(max-width:1100px) { .ms-stock2 { --ms-stock2-cols:3; } .ms-stock2-card-body { gap:45px; } .ms-stock2-storage { overflow:auto; } }
@media(max-width:850px) { .ms-stock2 { --ms-stock2-cols:2; } .ms-stock2-store-body { gap:20px; } .ms-stock2-tree { width:210px; } .ms-stock2-card-head { height:auto; flex-wrap:wrap; gap:8px; } .ms-stock2-card-actions { margin-left:0; flex-wrap:wrap; gap:10px; } .ms-stock2-card-body { flex-wrap:wrap; } .ms-store { margin:20px; } .ms-stock2-columns { left:auto; right:10px; } }
@media(max-width:570px) { .ms-stock2 { --ms-stock2-cols:1; } .ms-stock2-stamp { display:none; } }
@media print { body:has(.ms-stock2) #ms-header { display:none; } .ms-stock2 .ms-list-head .ms-btn,.ms-stock2 .ms-list-filter,.ms-stock2 .ms-list-columns,.ms-stock2 .ms-list-pager,.ms-stock2 .ms-help,.ms-stock2 .ms-refresh { display:none!important; } .ms-stock2-table-wrap { overflow:visible; } .ms-stock2-footer,.ms-stock2-footer.is-floating { position:relative; left:0; } .ms-stock2 .ms-list { width:100%!important; } .ms-stock2 { margin:0; } }


.ms-e4-multi{position:relative;display:flex;align-items:center;flex-wrap:wrap;min-height:23px;max-width:100%;background:#fff;border:1px solid #b7b7b7;border-radius:2px;box-sizing:border-box}.ms-e4-multi>.ms-input{flex:1;width:45px;min-width:30px;border:0;box-shadow:none}.ms-e4-multi>button{border:0;background:transparent;width:22px;cursor:pointer}.ms-e4-multi [data-e4-tags]{display:contents}.ms-e4-multi .ms-e4-tag{border:0;background:#e1f1fa;border-radius:3px;margin:1px;padding:2px 4px;max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;cursor:pointer}.ms-e4-options{position:fixed;z-index:1200;max-height:265px;overflow:auto;background:white;border:1px solid #b9b9b9;box-shadow:0 3px 9px #0003;padding:5px}.ms-e4-options[hidden]{display:none}.ms-e4-options .ms-check{display:flex;padding:4px;cursor:pointer}.ms-e4-options .ms-check:hover{background:#e5f2fa}.ms-e4-empty{padding:8px;display:block}.ms-e4-range{display:flex;align-items:center;gap:5px}.ms-e4-range input{width:80px;min-width:0}.ms-e4-stock-detail{position:fixed;z-index:900;left:90px;right:30px;bottom:15px;max-height:65vh;overflow:auto;background:#fff;border:1px solid #bbb;box-shadow:0 1px 8px #0003;padding:15px}.ms-e4-stock-detail[hidden]{display:none}.ms-e4-stock-detail>button{float:right}.ms-e4-stock-detail h2{font-size:18px;margin:0 0 10px}.ms-e4-stock-detail table{border-collapse:collapse;width:100%;margin:12px 0}.ms-e4-stock-detail td,.ms-e4-stock-detail th{padding:5px 8px;text-align:right;border-bottom:1px solid #ddd}.ms-e4-stock-detail th{font-weight:normal;background:#f1f1f1}.ms-e4-stock-detail td:first-child{text-align:left}.ms-stock2-columns .ms-list-page-size input{position:absolute;opacity:0;width:1px;height:1px}.ms-stock2-columns .ms-list-page-size label:has(:checked){background:#d4eafa}.ms-stock2-columns .ms-list-page-size{display:flex;gap:8px;padding:8px}.ms-e4-bulk{position:fixed;z-index:950;top:130px;left:35%;width:360px;padding:20px;background:white;border:1px solid #bbb;box-shadow:0 3px 12px #0003}.ms-e4-bulk[hidden]{display:none}.ms-e4-bulk .ms-e4-multi{margin:10px 0}

.ms-pnl-ledger-source[hidden],.ms-dash-money-note[hidden]{display:none!important}

/* X2: измерено по ms_stock_goods: только селекторы отчёта, другие формы не меняются. */
.ms-page-stock .ms-e4-multi { min-height:21px; height:21px; border:1px solid #bfbfbf; border-radius:0; flex-wrap:nowrap; }
.ms-page-stock .ms-e4-multi>.ms-input { box-sizing:border-box; height:19px; padding:0 2px; }
.ms-page-stock .ms-e4-multi>button { flex:none; box-sizing:border-box; width:18px; height:19px; padding:0; }
/* Стрелка поля выбора — сплошной треугольник, как у МойСклада и .ms-pick (живая сверка 10.10.2026; было «⌄» и двойная). */
.ms-e4-multi>button::after { content:""; display:block; width:8px; height:4px; margin:auto; background:#888; clip-path:polygon(0 0,100% 0,50% 100%); }
.ms-page-stock .ms-e4-multi .ms-e4-tag { box-sizing:border-box; height:17px; padding:1px 3px; max-width:198px; }
.ms-page-stock .ms-list-filter-actions .ms-btn-circle { margin-top:8px; }
.ms-x2-fields { position:fixed; z-index:1201; width:250px; max-height:calc(100vh - 30px); overflow:auto; }
.ms-x2-fields>strong { display:block; margin-bottom:8px; }
.ms-x2-fields[hidden],.ms-stock-filter .ms-list-field[hidden],.ms-stock2-filter .ms-list-field[hidden] { display:none; }
.ms-stock-columns .ms-list-column-option:has([name=report_price_type]) { display:block; height:auto; padding:5px 0; }
.ms-stock-columns [name=report_price_type] { display:block; width:100%; margin-top:4px; }
.ms-store[data-refedit] .ms-stock2-card-actions>.ms-help { margin-top:6px; }
.ms-store[data-refedit] .ms-stock2-storage h2 .ms-help { left:-24px; top:7px; }
/* Склад — как у МойСклада (живая сверка склада Ковров 18.10.2026, масштаб 192,5 %): полоса кнопок 30,15 и поля на 27 ниже
   (верх «Наименования» 175,67); многострочные поля — по строкам (rows 2/3/5), content-box без полей, шрифтом формы (было
   30/44/72 — каждое на 0,9 px выше, к «Внешнему коду» +12); «Группа» 250; заголовки разделов 15/18 #cc420c (было 16/20
   #e65b21); «+ Зона» — синий «+» и ссылка 13 px (было серое «+ Зона» 14 px). */
.ms-store .ms-stock2-card-head { height:30.15px; }
.ms-store .ms-stock2-card-body { margin-top:27px; }
.ms-store .ms-stock2-card-field textarea.ms-input { box-sizing:content-box; width:250px; height:auto; min-height:0; padding:0; font:12px "Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif; line-height:normal; resize:both; }
.ms-store .ms-stock2-address textarea.ms-input { width:226px; }
.ms-store .ms-stock2-address { gap:4px; }
.ms-store .ms-stock2-address button { box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; padding:0; border:1px solid #d9d9d9; border-radius:3px; background:#f4f4f4; color:#8c8c8c; }
.ms-store[data-refedit] .ms-stock2-card-field > .ms-sel { width:250px; }
.ms-store h2 { font:400 15px/18px "Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif; color:#cc420c; }
.ms-store .ms-stock2-add { display:inline-flex; align-items:center; height:20px; margin-top:12px; font:13px/20px "Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif; color:#186999; cursor:pointer; }
.ms-store .ms-stock2-add:disabled { cursor:default; }
.ms-store .ms-stock2-add-icon { flex:none; width:16px; height:12px; background:linear-gradient(#186999,#186999) 1px 50%/10px 2px no-repeat, linear-gradient(#186999,#186999) 5px 50%/2px 10px no-repeat; }
/* «Группа» — поле и стрелка во всю высоту рамки (19,96, как у МойСклада; было 19 по центру); «Внешний код» — строкой 14 px в 14 px
   под полем (было ниже на 7,6); правая колонка: заголовок 181,19 и на 1 px правее, таблицы и «+» — по строкам МойСклада. */
.ms-store .ms-stock2-card-field > .ms-sel > .ms-sel-text, .ms-store .ms-stock2-card-field > .ms-sel > .ms-sel-arrow { height:auto; align-self:stretch; }
.ms-store .ms-stock2-external { margin-top:-7.63px; line-height:14px; }
.ms-store .ms-stock2-storage { padding-top:5.02px; }
.ms-store .ms-stock2-storage h2 { margin-bottom:34.24px; padding-left:1px; }
.ms-store .ms-stock2-slots { margin-top:27.73px; }

/* Окно использует оформление печати документов; только оболочка native dialog относится к отчётам. */
.ms-stock-print-dialog { border:0; padding:0; background:transparent; overflow:visible; max-width:calc(100vw - 30px); max-height:calc(100vh - 40px); color:#222; font:12px/1.4 'Helvetica Neue',Helvetica,Arial,sans-serif; }
.ms-stock-print-dialog::backdrop { background:rgba(0,0,0,.5); }
.ms-stock-print-dialog .ms-print-dialog-close { border:0; padding:0; cursor:pointer; }
.ms-stock-export { margin:24px; font:12px Arial,sans-serif; color:#222; }
.ms-stock-export h1 { font-size:20px; }
.ms-stock-export table { border-collapse:collapse; width:100%; }
.ms-stock-export th,.ms-stock-export td { border:1px solid #ccc; padding:5px 8px; }
.ms-stock-export th { text-align:left; }
.ms-stock-export .num { text-align:right; }
.ms-stock-export-group,.ms-stock-export-total { font-weight:bold; background:#f5f5f5; }
@media print { .ms-stock-export { margin:0; } .ms-stock-export-actions,.ms-stock-export-hint { display:none; } .ms-stock-export thead { display:table-header-group; } .ms-stock-export tr { break-inside:avoid; } }

/* Волна 33 (живая сверка 10.10.2026): пустая «На дату» у МойСклада показывает текущий момент — у нас подсказкой (значение
   пустое = «сейчас») тем же чёрным; «Дней на складе» — поля во всю ширину, «от»/«до» и числа справа. */
.ms-stock-filter .ms-date > .ms-input::placeholder { color:#222; opacity:1; }
.ms-stock-filter .ms-e4-range { width:100%; }
.ms-stock-filter .ms-e4-range .ms-input { flex:1 1 0; width:0; min-width:0; text-align:right; }
