/* «Печать» → «Настроить...» — панель «Настройка шаблонов» МойСклада, старый вид GWT (живая сверка под администратором
   22.10.2026, окно 1996 × 1000): справа 670 px на всю высоту, белая с тенью 0 4px 8px rgba(0,0,0,.5), страница под
   затемнением 0.5; отступы 15/10/0/30; «Закрыть ×» серым, «?» и заголовок 20/22, справка-плашка #ecf8ff; разделы 15 px
   жирным; таблица 556,5 px: «перетаскивание» 15, «Видим.» 45, имя 400,5, «Скачать» 75, «⊗» 21; шапка 30 px с синей чертой,
   строки 29,5 px с серой; «Добавить шаблон» 137,5 × 26,1 (print_settings_panel.php, m_printset.js). */
.ms-ps-layer { position: fixed; inset: 0; z-index: 120; }
.ms-dialog-layer.ms-ps-confirm { z-index: 130; }
.ms-ps-glass { position: fixed; inset: 0; background: #000; opacity: .5; }
.ms-ps-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 670px; max-width: 100vw; overflow-y: auto; background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .5); color: #222; font: 400 12px/normal "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; }
.ms-ps-panel:focus { outline: 0; }
.ms-ps-wrap { position: relative; box-sizing: border-box; padding: 15px 10px 40px 30px; }
.ms-ps-close { display: inline-block; padding: 0 12px 0 0; 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 100% 5px;
  color: #999; line-height: normal; text-decoration: none; }
.ms-ps-close:hover, .ms-ps-close:focus-visible { color: #f88001; text-decoration: underline; outline: 0; }
.ms-ps-head { position: relative; height: 37px; margin: .5px 0 0 25px; }
.ms-ps-help { position: absolute; left: -24px; top: 17.2px; box-sizing: border-box; width: 15px; height: 15px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.ms-ps-help > svg { display: block; flex: none; width: 15px; height: 15px; }
.ms-ps-section-title .ms-ps-help { top: 11.5px; }
.ms-ps-title { margin: 0; padding: 14.5px 0 0 1px; font: 400 20px/22px "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; color: #222; }
.ms-ps-changes { position: absolute; right: 69px; top: 16px; text-align: right; white-space: nowrap; }
.ms-ps-changes-label { color: #8c8c8c; }
.ms-ps-changes-who { color: #186999; }
.ms-ps-changes-at { display: block; margin-top: .5px; color: #186999; font-size: 10px; line-height: normal; }
.ms-ps-note { position: relative; box-sizing: border-box; width: 361px; margin: 15.5px 0 0 25px; padding: 6px 22.5px 10px 27.6px;
  border: 1px solid #e2f4ff; border-radius: 2px; background: #ecf8ff; color: #222; }
.ms-ps-note[hidden] { display: none; }
.ms-ps-note > p { margin: 0; padding: 0; line-height: 16px; }
.ms-ps-note a { color: #186999; text-decoration: underline; }
.ms-ps-note a:hover { color: #f88001; }
.ms-ps-note-icon { position: absolute; left: 7.5px; top: 8.1px; width: 12px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='6' fill='%23186999'/%3E%3Ccircle cx='6' cy='3.3' r='1' fill='%23fff'/%3E%3Cpath d='M6 5.2v4' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat; }
.ms-ps-note-close { position: absolute; right: 7.9px; top: 6px; width: 7px; height: 7px; margin: 0; padding: 0; border: 0; cursor: pointer;
  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='%23888' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat; }
.ms-ps-section { margin: 0 0 0 25px; }
.ms-ps-section-title { position: relative; margin: 29.5px 0 0; padding: 0; font: 700 15px/16.6px "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; color: #222; }
.ms-ps-section-labels .ms-ps-section-title { margin-top: 7px; padding: 13.7px 0 0 1px; }
.ms-ps-section-labels .ms-ps-section-title .ms-ps-help { top: 11.5px; }
.ms-ps-section-labels .ms-ps-note { margin: 16px 0 15.9px; }
.ms-ps-section-labels .ms-ps-dl { text-align: left; }
.ms-ps-section-labels .ms-ps-dl > span { margin-left: -10.4px; }
.ms-ps-table { box-sizing: border-box; width: 556.5px; margin: 0; border-collapse: collapse; table-layout: fixed; }
.ms-ps-c-drag { width: 15px; } .ms-ps-c-vis { width: 45px; } .ms-ps-c-name { width: 400.5px; } .ms-ps-c-dl { width: 75px; } .ms-ps-c-rm { width: 21px; }
/* Раздел шаблонов списка (живая сверка 22.10.2026): имя 339, «Скачать» 75, «Авто» 75 — оба по середине своих ячеек. */
.ms-ps-section-list .ms-ps-table { width: 570px; }
.ms-ps-section-list .ms-ps-c-name { width: 339px; } .ms-ps-c-auto { width: 75px; }
.ms-ps-auto { padding-right: 5px !important; text-align: center; white-space: nowrap; }
.ms-ps-table thead th { height: 30px; padding: 0; border-top: 1.5px solid transparent; border-bottom: 1px solid #186999; font-size: 11px; font-weight: 400;
  line-height: normal; text-align: left; vertical-align: middle; color: #222; }
.ms-ps-table thead th:nth-child(2) { padding-left: 1.7px; }
.ms-ps-table td { box-sizing: border-box; height: 29.5px; padding: 0; border-bottom: 1px solid #bfbfbf; line-height: 14px; vertical-align: middle; }
.ms-ps-vis { padding-left: 16px !important; }
.ms-ps-vis input { display: block; width: 13px; height: 13px; margin: -1.4px 0 0; }
.ms-ps-name { padding: 0 0 0 3px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-ps-dl { padding-right: 5px !important; text-align: center; white-space: nowrap; }
.ms-ps-dl a { color: #186999; text-decoration: none; }
.ms-ps-dl a:hover { color: #f88001; text-decoration: underline; }
.ms-ps-link-off { color: #999; cursor: default; }
.ms-ps-remove { display: block; width: 14px; height: 13px; margin: -.3px 0 0; padding: 0; border: 0; cursor: pointer;
  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='6.5' cy='6.5' r='6.5' fill='%23acacac'/%3E%3Cpath d='M4.3 4.3l4.4 4.4M8.7 4.3L4.3 8.7' stroke='%23fff' stroke-width='1.7'/%3E%3C/svg%3E") no-repeat; }
.ms-ps-remove:hover:not(:disabled) { filter: brightness(.8); }
.ms-ps-remove:disabled { cursor: default; opacity: .6; }
.ms-ps-drag { position: relative; }
.ms-ps-grip { position: absolute; left: 3px; top: 50%; width: 8px; height: 11px; margin-top: -5.5px; cursor: move; opacity: 0;
  background: radial-gradient(circle, #8f9399 1px, transparent 1.2px) 0 0 / 4px 4px; }
.ms-ps-table tr[draggable="true"]:hover .ms-ps-grip { opacity: 1; }
.ms-ps-table tr.ms-ps-dragging { opacity: .4; }
.ms-ps-table tr.ms-ps-drop-before td { box-shadow: inset 0 2px 0 #186999; }
.ms-ps-add { display: block; box-sizing: border-box; height: 26.1px; margin: 20px 0 0; padding: 5px 13px; border: 1px solid #ccc; border-radius: 3px;
  background: linear-gradient(#fff, #e6e6e6); color: #000; font: 400 13.3333px Arial, sans-serif; cursor: pointer; }
.ms-ps-add:hover:not(:disabled) { background: linear-gradient(#fff, #d6d6d6); }
.ms-ps-add:disabled { color: #999; cursor: default; }
.ms-ps-status { min-height: 14px; margin: 12px 0 0 25px; color: #b32424; }
.ms-ps-status:empty { display: none; }
/* Пункт «Настроить...» меню «Печать» карточки — как ссылки меню (card.css). */
.ms-card-print-options .ms-card-print-set { display: block; box-sizing: border-box; width: 100%; margin: 0; padding: 4px 15px; border: 0; border-radius: 0;
  background: transparent; color: #222; font: inherit; line-height: 15px; text-align: left; white-space: nowrap; cursor: pointer; }
.ms-card-print-options .ms-card-print-set:hover, .ms-card-print-options .ms-card-print-set:focus { background: #dcdcdc; outline: 0; }
@media (max-width: 700px) { .ms-ps-panel { width: 100vw; } .ms-ps-table { width: 100%; } .ms-ps-c-name { width: auto; } }
