/* Только справка: размеры таблиц и существующих форм не меняются. */
.context-help-button { align-self: center; flex: 0 0 40px; width: 40px; height: 40px; margin: 0; border: 2px solid #315b87; border-radius: 50%; background: #fff; color: #244b73; font: bold 24px/1 Arial, sans-serif; cursor: pointer; }
.context-help-button:focus-visible, .context-help-close:focus-visible { outline: 3px solid #1773c7; outline-offset: 3px; }
.context-help-dialog { box-sizing: border-box; inset: 0; margin: auto; width: min(680px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 32px); padding: 24px; border: 0; border-radius: 12px; background: #fff; color: #252d38; overflow: auto; font: 16px/1.5 Arial, sans-serif; }
.context-help-dialog::backdrop { background: rgb(15 27 40 / 55%); }
.context-help-dialog [hidden] { display: none !important; }
.context-help-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.context-help-heading h2 { margin: 0; font-size: 23px; line-height: 1.3; overflow-wrap: anywhere; }
.context-help-close { flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid #b5c1cd; border-radius: 6px; background: #fff; color: #243e59; font-size: 28px; cursor: pointer; }
.context-help-dialog h3 { margin: 20px 0 8px; font-size: 19px; line-height: 1.4; }
.context-help-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.context-help-topic { margin: 12px 0; border-bottom: 1px solid #d9e1e8; padding-bottom: 12px; }
.context-help-topic summary { cursor: pointer; font-weight: bold; padding: 8px 0; }
.context-help-topic summary:focus-visible { outline: 3px solid #1773c7; }
.context-help-topic .context-help-text { padding: 8px 0; }
.context-help-footer { padding-top: 16px; margin: 20px 0 0; border-top: 1px solid #d9e1e8; color: #526171; font-size: 14px; }
.context-help-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.context-help-dialog .btn { max-width: 100%; white-space: normal; }
.knowledge-page { max-width: 1080px; margin: 24px auto; padding: 0 16px 32px; }
.knowledge-page h1 { font-size: 28px; line-height: 1.3; }
.knowledge-page p { line-height: 1.5; }
.knowledge-notice { padding: 14px; margin: 16px 0; background: #eaf5ed; color: #204f30; }
.knowledge-list { margin-top: 20px; display: grid; gap: 16px; }
.knowledge-item { padding: 16px; border: 1px solid #cbd5df; border-radius: 8px; overflow-wrap: anywhere; }
.knowledge-item h2 { margin: 0 0 8px; font-size: 20px; }
.knowledge-item p { margin: 8px 0; }
.knowledge-form { max-width: 760px; }
.knowledge-field { margin: 20px 0; }
.knowledge-field label { display: block; margin-bottom: 6px; font-weight: 600; }
.knowledge-field input[type=text], .knowledge-field select, .knowledge-field textarea { box-sizing: border-box; width: 100%; padding: 10px 12px; font: inherit; border: 1px solid #8294a5; border-radius: 5px; background: white; color: #253446; }
.knowledge-field textarea { min-height: 300px; resize: vertical; line-height: 1.5; }
.knowledge-field small { display: block; margin-top: 6px; line-height: 1.5; }
.knowledge-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.knowledge-page .validation-summary-errors, .knowledge-page .field-validation-error { color: #a51c25; line-height: 1.5; }
.knowledge-page .input-validation-error { border: 2px solid #a51c25; }
@media (max-width: 600px) {
    .context-help-button { flex-basis: 36px; width: 36px; height: 36px; }
    .context-help-dialog { padding: 18px; }
    .context-help-heading h2 { font-size: 21px; }
    .knowledge-page h1 { font-size: 24px; }
    .knowledge-actions .btn { white-space: normal; max-width: 100%; }
}

.to-element-help-dock { position: fixed; z-index: 2147483102; bottom: 12px; left: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: calc(100% - 24px); padding: 8px 10px; border: 1px solid #1968a9; border-radius: 8px; background: #fff; color: #203448; box-shadow: 0 3px 14px #0003; font: 14px/1.3 Arial,sans-serif; }
.to-element-help-ui[hidden] { display: none !important; }
.to-element-help-dock button { min-height: 36px; margin: 0; padding: 6px 10px; border: 1px solid #647b90; border-radius: 6px; background: #fff; color: #203448; font: inherit; cursor: pointer; }
.to-element-help-tip { position: fixed; z-index: 2147483101; box-sizing: border-box; padding: 16px; padding-right: 38px; border: 2px solid #1968a9; border-radius: 10px; background: #fff; color: #203448; box-shadow: 0 4px 18px #0004; font: 15px/1.45 Arial,sans-serif; max-height: calc(100dvh - 110px); overflow: auto; }
.to-element-help-tip h3 { font-size: 18px; margin: 0 0 10px; overflow-wrap: anywhere; }
.to-element-help-tip p { margin: 0; overflow-wrap: anywhere; }
.to-element-help-tip > button { position: absolute; top: 3px; right: 3px; width: 30px; height: 30px; margin: 0; padding: 0; border: 0; border-radius: 4px; background: #fff; color: #203448; font: 25px Arial,sans-serif; cursor: pointer; }
.to-element-help-target { outline: 3px solid #1976c5 !important; outline-offset: 3px; }
.to-element-help-ui button:focus-visible { outline: 3px solid #1968a9; outline-offset: 2px; }
#portal-element-help-start { margin: 0 0 16px 8px; }
@media(max-width:700px) { .to-element-help-dock { right: 12px; } .to-element-help-dock span { font-size: 12px; } #portal-element-help-start { margin-left: 0; } }
.to-element-help-tip { pointer-events: none; } .to-element-help-tip > button { pointer-events: auto; }
.to-element-help-enabled #editCard .ModalFS__content { padding-bottom: 110px; }
.to-element-help-enabled .modal-window-content { padding-bottom: 140px; scroll-padding-bottom: 140px; }
.to-element-help-enabled .messenger-admin-content { padding-bottom: 140px; }
.to-element-help-enabled .document-names-guide { padding-bottom: 140px; }
.to-element-help-enabled #share-page { padding-bottom: 140px; }
.to-element-help-enabled #task-form-page { padding-bottom: 140px; }
html:has(body.to-element-help-enabled) { scroll-padding-bottom: 140px; }



body.to-element-help-enabled #FormSendAddFiles { padding-bottom: 140px; }

body.to-element-help-enabled input[readonly],
body.to-element-help-enabled textarea[readonly] { pointer-events: auto !important; }

body.to-element-help-enabled form:has(#Tabs) { padding-bottom: 140px; }

body.to-element-help-enabled { padding-bottom: 140px; }

.to-element-help-enabled .ModalMidd__content { padding-bottom: 140px; scroll-padding-bottom: 140px; }

.to-element-help-enabled .planning-container { padding-bottom: 280px; }
.to-element-help-enabled #report-monitor #rm-detail { padding-bottom: 140px; }
.to-element-help-enabled .incident-form { padding-bottom: 140px; }
.to-element-help-enabled #report-journal { padding-bottom: 140px; }
.to-element-help-enabled #shift-composition { padding-bottom: 140px; }
.to-element-help-enabled .receipt-create-page { padding-bottom: 140px; }
body.to-element-help-enabled.warehouse-directories-page main.body-content > .section.product-card { padding-bottom: 140px; }
body.to-element-help-enabled .import1c { padding-bottom: 140px; }
body.to-element-help-enabled .carForm { padding-bottom: 140px; }
body.to-element-help-enabled .toForm { padding-bottom: 140px; }
