.ms-pricelist{padding:16px;color:#333}.ms-pricelist-toolbar,.ms-price-fill{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.ms-pricelist-toolbar h1{font-size:20px;margin:0 16px 0 0}.ms-price-header{display:grid;grid-template-columns:repeat(3,minmax(200px,1fr));gap:14px;margin-bottom:20px;max-width:1100px}.ms-price-header label{display:flex;flex-direction:column;gap:5px}.ms-price-header input[type=checkbox]{width:auto}.ms-price-columns{border:1px solid #ccc;margin:16px 0;padding:12px}.ms-price-columns>span{display:block;font-size:12px;color:#666;margin-top:8px}.ms-price-columns [data-price-column-editor]>div{display:flex;gap:8px;margin:8px 0}.ms-price-fill .ms-lookup{min-width:230px}.ms-price-table-wrap{overflow:auto}.ms-price-table{border-collapse:collapse;width:100%;font-size:13px}.ms-price-table th,.ms-price-table td{border:1px solid #ddd;padding:8px;text-align:left}.ms-price-table th{background:#f3f3f3;white-space:nowrap}.ms-price-table input{min-width:90px;width:100%;box-sizing:border-box}.ms-pricelist [data-price-status]{color:#b12424;min-height:20px}.ms-pricelist details{margin-top:22px}.ms-pricelist summary{cursor:pointer}.ms-price-table td:first-child{min-width:200px}@media(max-width:800px){.ms-price-header{grid-template-columns:1fr}}@media print{.ms-price-no-print,.ms-pricelist button{display:none}.ms-pricelist{padding:0}.ms-price-header{display:none}.ms-price-table{font-size:11px}.ms-price-table thead{display:table-header-group}.ms-price-table tr{break-inside:avoid}}

.ms-price-header .ms-price-check{flex-direction:row;align-items:center;justify-content:flex-start;gap:6px}.ms-price-header .ms-price-check input{margin:0;flex:none}

/* «Новый прайс-лист» — окно МойСклада, старый вид GWT (живая сверка под администратором 22.10.2026, окно 1996 × 1000):
   кнопки с x 40 и y 118,5; поля — через 40 px под полосой; подписи прижаты вправо до x 221 (поле с 236), шаг строк 31;
   «Добавить» — значок 19 × 15 и ссылка; строки колонок по 35,7 px (ms_pricelist_new.php, m_pricelist.js). */
.ms-plnew { padding: 20px 0 40px 40px; color: #222; font: 400 12px/normal "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; }
.ms-plnew-bar { display: flex; align-items: flex-start; gap: 10px; height: 30.2px; }
.ms-plnew-bar > .ms-btn { margin: 0; }
.ms-plnew-body { margin-top: 40px; }
/* Сообщение МойСклада (FlashMessage) над полями: значок 16 px, текст на 2,5 px ниже верха; поля сдвигаются на 31,5 px. */
.ms-plnew-flash { position: relative; box-sizing: border-box; height: 16.5px; margin: 0 0 15px; padding: 2.5px 0 0 16px; line-height: normal; }
.ms-plnew-flash[hidden] { display: none; }
.ms-plnew-flash::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23eba4a1'/%3E%3Cstop offset='.4' stop-color='%23c9534d'/%3E%3Cstop offset='1' stop-color='%239b221b'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='8' cy='8' r='7.6' fill='url(%23g)' stroke='%239c3a35' stroke-width='.8'/%3E%3Cpath d='M5.3 5.3l5.4 5.4M10.7 5.3l-5.4 5.4' stroke='%23f2f2f2' stroke-width='2.1'/%3E%3C/svg%3E") no-repeat; }
.ms-plnew-row { display: flex; align-items: flex-start; height: 21px; margin: 0 0 10px; }
.ms-plnew-legend { box-sizing: border-box; display: flex; align-items: flex-start; justify-content: flex-end; flex: none; width: 196px; padding: 2px 15px 0 0; }
.ms-plnew-legend > label { color: #222; line-height: normal; }
.ms-plnew-required { position: relative; }
.ms-plnew-required::before { content: "*"; position: absolute; left: -8px; top: 0; color: red; }
/* Поля GWT у МойСклада — 1 px отступа (у общих полей gwt m_controls — 2 px): своё правило сильнее [data-ms-controls="gwt"] input. */
.ms-plnew[data-ms-controls] .ms-input { box-sizing: border-box; height: 21px; padding: 1px; line-height: normal; }
.ms-plnew[data-ms-controls] .ms-plnew-field { width: 250px; }
.ms-plnew-help { position: relative; display: inline-block; flex: none; width: 15px; height: 15px; margin: 0 10px 0 0; }
.ms-plnew-help > .ms-help { display: block; width: 15px; height: 15px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.ms-plnew-help > .ms-help > svg { display: block; width: 15px; height: 15px; }
/* Справка — над значком, как у МойСклада: 352 px, низ на 8,5 px выше значка, «хвостик» 9 × 9 к значку, серый «×» 7 × 7. */
.ms-plnew .ms-refedit-help-pop { left: -7.5px; bottom: calc(100% + 8.5px); }
.ms-plnew .ms-refedit-help-pop::after { content: ""; position: absolute; left: 12.5px; bottom: -9px; width: 9px; height: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 9 9'%3E%3Cpath d='M0 0h9L0 9z' fill='%23f0f7fa'/%3E%3Cpath d='M.5 0v8.5M8.6.4L.4 8.6' fill='none' stroke='%23c8e0eb'/%3E%3C/svg%3E") no-repeat; }
.ms-plnew .ms-refedit-help-pop button { top: 11.5px; right: 9.5px; width: 7px; height: 7px; font-size: 0; line-height: 0; color: transparent; overflow: hidden;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7' viewBox='0 0 7 7'%3E%3Cpath d='M.6.6l5.8 5.8M6.4.6L.6 6.4' stroke='%23999' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat; }
.ms-plnew-add { height: 19.1px; margin: 0; }
.ms-plnew-add-link { appearance: none; display: inline-flex; align-items: flex-start; height: 19.1px; margin: 0; padding: 4px 0 0; border: 0; background: transparent; color: #186999; font: inherit; cursor: pointer; }
.ms-plnew-add-icon { flex: none; width: 19px; height: 15px; margin: 0 6px 0 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='15' viewBox='0 0 19 15' shape-rendering='crispEdges'%3E%3Cdefs%3E%3ClinearGradient id='p' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f0ebec'/%3E%3Cstop offset='1' stop-color='%23d0dce8'/%3E%3C/linearGradient%3E%3ClinearGradient id='q' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f2fac6'/%3E%3Cstop offset='1' stop-color='%23faf3ae'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M7.5.5h7l4 4v10h-11z' fill='url(%23p)' stroke='%23b0b0b0'/%3E%3Cpath d='M14.5.5v4h4' fill='%23f0ecec' stroke='%23b0b0b0'/%3E%3Cpath d='M10 5.5h3M10 8.5h7M10 11.5h7' stroke='%23b0b0b0'/%3E%3Crect x='.5' y='3.5' width='9' height='9' fill='url(%23q)' stroke='%23279811'/%3E%3Cpath d='M4 5h2v2h2v2H6v2H4V9H2V7h2z' fill='%23279811'/%3E%3C/svg%3E") no-repeat; }
.ms-plnew-add-text { border-bottom: 1px dashed currentColor; line-height: normal; }
.ms-plnew-add-link:hover, .ms-plnew-add-link:focus-visible { color: #f88001; outline: 0; }
.ms-plnew-columns { border-collapse: collapse; table-layout: fixed; width: 850.8px; margin: 0; }
.ms-plnew-columns td { box-sizing: border-box; height: 35.7px; padding: 0; vertical-align: top; }
.ms-plnew-col-label { padding-top: 10.7px !important; line-height: normal; white-space: nowrap; }
.ms-plnew[data-ms-controls] .ms-plnew-col-name { width: 278.4px; margin-top: 7.3px; }
.ms-plnew[data-ms-controls] .ms-plnew-col-percent { width: 53.9px; margin-top: 7.3px; text-align: right; }
.ms-plnew[data-ms-controls] .ms-plnew-col-percent:disabled { background: #fff; color: #545454; }
.ms-plnew-col-flag { display: flex; align-items: flex-start; padding-top: 11px !important; }
.ms-plnew-col-flag > label { display: inline-flex; align-items: flex-start; color: #222; line-height: normal; white-space: nowrap; }
.ms-plnew-col-flag input[type="checkbox"] { flex: none; width: 13px; height: 13px; margin: 0.7px 10px 0 0; }
.ms-plnew-delete { appearance: none; margin: 10.9px 0 0; padding: 0; border: 0; border-bottom: 1px dashed currentColor; border-radius: 0; background: transparent; color: #d04a49; font: inherit; line-height: normal; cursor: pointer; }
.ms-plnew-delete:hover, .ms-plnew-delete:focus-visible { color: #b3302f; outline: 0; }
.ms-plnew-delete:disabled { color: #c0c0c0; cursor: default; }

/* Карточка прайс-листа — старый вид МойСклада (живая сверка 22.10.2026, окно 1996 × 1000; pricelist.php, m_pricelist.js):
   «Сохранить | Закрыть | Действия ▾ Изменить ▾ Печать ▾ Отправить ▾» (четыре — встык), «Прайс-лист № … от …», «Организация»,
   вкладка «Главная»; «+ Добавить позицию» и «Удалить» — скруглённые 25 px (11 px жирным), «Фильтр» и поиск 205 × 20; таблица
   Tahoma 11 px: шапка 33 px жирным синим по центру, строки 30,3 px с чертой #ddd; листалка жирным синим; комментарий 807 × 63. */
/* «Закрыть» — в 9,4 px за «Сохранить», «Действия» — в 10 px за «Закрыть» (замер: 40 / 131 / 208). */
.ms-pl-toolbar > .ms-card-close { margin-left: 9.4px; }
.ms-pl-toolbar > .ms-card-close + .ms-card-action-menu > summary.ms-btn { margin-left: 0; border-radius: 3px 0 0 3px; }
/* Заголовок (замер МойСклада 22.10.2026): «Прайс-лист №» с 40, название с 165,1 под длину текста (строка с правкой на
   месте: 18 px, поля по 5 px, высота 23), «от» в 5 px за ним, рамка даты 167 px в 3,4 px за «от» (значок в 3 px от рамки);
   «Статус» — рамка 78 × 23 в 5,6 px за датой; «?» в 40 px за статусом, флажок 13 × 13 в 10 px за «?», «Проведено» в 5 px. */
.ms-pl-heading { gap: 0; margin-top: 8.6px; }
.ms-pl-heading h1 { align-items: center; gap: 0; }
.ms-pl-card .ms-pl-heading .ms-pl-name { box-sizing: border-box; field-sizing: content; width: auto; min-width: 40px; max-width: 900px; height: 23px; margin: 0 5px 0 0; padding: 0 5px;
  border: 1px solid transparent; background: transparent; color: #222; font: 400 18px/21px "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; -webkit-text-fill-color: #222; opacity: 1; }
.ms-pl-card .ms-pl-heading .ms-pl-name:not(:disabled):hover { border-color: #bfbfbf; }
.ms-pl-card .ms-pl-heading .ms-pl-name:focus { border-color: #2f9bff; outline: 1px solid #2f9bff; }
.ms-pl-heading .ms-pl-from { margin-right: 5.1px; }
.ms-pl-heading .ms-dt.ms-dt-title { width: 167px; }
.ms-pl-heading .ms-dt-title > .ms-date { padding: 0 0 0 3px; }
.ms-pl-heading .ms-card-state-menu { margin-left: 5.1px; }
.ms-pl-heading .ms-card-status-toggle > .ms-btn { box-sizing: border-box; width: 78px; height: 23px; margin: 0; line-height: 21px; padding: 0 0 0 12.5px; justify-content: flex-start; border-radius: 2px; }
.ms-pl-heading .ms-card-flag { gap: 10px; margin: 0 0 0 40px; }
.ms-pl-heading .ms-card-check { gap: 5px; }
.ms-pl-heading .ms-card-check input { flex: none; width: 13px; height: 13px; margin: 0; }
/* «Организация»: рамка выбора 228 × 21 с 122,4, «+» 22 px за ней (замер). */
.ms-pl-fields .ms-pl-org { display: flex; align-items: center; }
.ms-pl-fields .ms-pl-org .ms-sel { width: 228px; }
.ms-pl-card .ms-pl-fields .ms-pl-plus, .ms-pl-dialog .ms-pl-plus { width: 22px; }
.ms-pl-body { margin-top: 22.9px; }
/* «Задачи» — в 19 px под комментарием, «Файлы» — в 74 px под «Задачами» (замер; у карточек документов отступ больше). */
.ms-pl-card .ms-card-lower-blocks { padding-top: 12px; }
.ms-pl-card .ms-card-lower-block { margin-bottom: 20px; }
.ms-pl-tools { display: flex; align-items: center; height: 27px; }
/* «+ Добавить позицию» 141 × 25 (текст с 26 px), «Удалить» 66 × 25 в 34 px, «Фильтр» 67 × 27 в 137 px, поиск — в 15 px. */
.ms-pl-pill { box-sizing: border-box; display: inline-flex; align-items: center; gap: 4px; height: 25px; margin: 0 34px 0 0; padding: 0 0 0 13px; border: 0.5px solid #e0e0e0; border-radius: 13px;
  background: linear-gradient(#fff, #f2f2f2); color: #222; font: 700 11px/12px Tahoma, Geneva, sans-serif; cursor: pointer; }
.ms-pl-pill[data-pl-add] { width: 141px; }
.ms-pl-pill[data-pl-remove] { width: 66px; }
.ms-pl-pill > span { color: #186999; font: 700 15px/12px Arial, sans-serif; }
.ms-pl-pill:disabled { color: #c0c0c0; cursor: default; }
.ms-pl-pill:not(:disabled):hover { border-color: #b3b3b3; }
.ms-pl-tools .ms-pl-filter { box-sizing: border-box; width: 67px; height: 27px; margin: 0 0 0 103px; justify-content: center; }
.ms-pl-card .ms-pl-search { box-sizing: border-box; width: 205px; height: 20px; margin: 0 0 0 15px; padding: 1px 3px; border: 0.5px solid #bfbfbf; }
.ms-pl-table { box-sizing: border-box; margin: 3px 0 0; border-collapse: collapse; table-layout: fixed; font: 11px Tahoma, Geneva, sans-serif; color: #222; }
/* Шапка: текст по центру со сдвигом под значок сортировки (поля 10 и 15 px); длинный — с левого поля и обрезан, без «…». */
.ms-pl-table th { height: 30.5px; padding: 0 15px 2px 10px; border-bottom: 0.5px solid #c5c5c5; color: #186999; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.ms-pl-table td { height: 30px; padding: 0 5px; border-bottom: 0.5px solid #ddd; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.ms-pl-table td:first-child, .ms-pl-table th:first-child { padding: 0; text-align: center; }
.ms-pl-table th:nth-child(2) { padding: 0; }
.ms-pl-table td:nth-child(2) { padding: 0; }
.ms-pl-table td.num { text-align: right; }
.ms-pl-table td.ms-pl-name-cell { padding-left: 0; text-overflow: ellipsis; }
.ms-pl-table td.ms-pl-name-cell a { color: #186999; text-decoration: underline; }
.ms-pl-table tbody tr { cursor: pointer; }
.ms-pl-table tbody tr.is-current { background: #fff6a8; }
.ms-pl-table tbody tr:hover { background: #f3f8fb; }
.ms-pl-table tbody tr.is-current:hover { background: #fff6a8; }
.ms-pl-empty, .ms-pl-pager { margin: 6px 0 0 12px; color: #186999; font: 700 11px/normal "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; }
.ms-pl-empty[hidden], .ms-pl-pager[hidden] { display: none; }
.ms-pl-card .ms-pl-comment { box-sizing: border-box; display: block; width: 807px; height: 63px; margin: 22px 0 0 3px; padding: 3px; border: 0.5px solid #e4e4e4; background: #fafafa;
  color: #222; font: 400 12px/normal Arial, sans-serif; resize: vertical; }
.ms-pl-card .ms-pl-comment::placeholder { color: #999; font-style: italic; }
.ms-pl-status:empty { display: none; }
.ms-pl-status { margin: 8px 0 0; color: #b32424; }
/* Окна прайс-листа: «Новая позиция» / «Редактирование позиции» — панель 414 × 214 (подписи с 25 px, поля с 124 px: товар
   228 × 21, цены 81 × 20 через 30 px), «Добавить»/«OK» и «Закрыть»/«Отмена» снизу; «Изменение списка позиций» — 439 px. */
.ms-pl-dialog .ms-dialog-panel { box-sizing: content-box; height: auto; min-height: 0; padding: 0 15px 15px; }
.ms-pl-position .ms-dialog-panel { width: 383.7px !important; }
.ms-pl-fill .ms-dialog-panel, .ms-pl-ask .ms-dialog-panel { width: 409px !important; }
.ms-pl-dialog-body { color: #222; font: 400 12px/normal "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; }
.ms-pl-grid-row { display: flex; align-items: center; height: 21px; margin: 0 0 9px; }
.ms-pl-grid-row:first-child { margin-top: 0; }
.ms-pl-grid-label { flex: none; box-sizing: border-box; width: 108.7px; padding-left: 10px; }
.ms-pl-grid-value .ms-lookup { width: 228px; }
.ms-pl-dialog .ms-pl-price { box-sizing: border-box; width: 80.9px; height: 20px; padding: 1px 3px; text-align: right; }
.ms-pl-dialog-error { margin: 4px 0 0 10px; color: #b32424; }
.ms-pl-dialog-error[hidden] { display: none; }
.ms-pl-dialog-actions { display: flex; gap: 10px; margin: 25px 0 0; }
.ms-pl-dialog-actions .ms-btn { box-sizing: border-box; height: 27px; margin: 0; }
.ms-pl-fill-text { width: 362.6px; margin: 0 0 16px; line-height: normal; }
.ms-pl-fill .ms-pl-grid-label { width: 112.8px; padding-left: 0; }
.ms-pl-fill .ms-pl-dialog-actions { margin-top: 10px; }
.ms-pl-ask-text { margin: 0 0 14px; line-height: normal; }
.ms-pl-ask-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }
.ms-pl-ask-actions .ms-btn { box-sizing: border-box; height: 27px; margin: 0; }
