/* fix168: факсимиле подписи и печати */
.fx { font-size: 14px; color: inherit; }
.fx-lead { margin: 0 0 10px; }
.fx-muted { color: var(--muted, #64748b); }
.fx-err { color: #b42318; }
.fx-small { font-size: 12px; color: var(--muted, #64748b); margin: 8px 0 0; line-height: 1.4; }
.fx-disc-wrap { margin: 0 0 14px; border: 1px solid rgba(15, 23, 42, .12); border-radius: 10px; padding: 8px 12px; background: rgba(241, 245, 249, .6); }
.fx-disc-wrap summary { cursor: pointer; font-weight: 600; }
.fx-disc p { margin: 8px 0 0; line-height: 1.45; }
.fx-disc--soft { background: rgba(241, 245, 249, .7); border-radius: 10px; padding: 4px 12px 10px; margin: 10px 0; font-size: 13px; max-height: 40vh; overflow: auto; }
.fx-reqs { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 14px; }
.fx-req { display: flex; gap: 12px; border: 1px solid rgba(15, 23, 42, .12); border-radius: 10px; padding: 10px; min-width: 280px; flex: 1 1 320px; }
.fx-req__img { width: 160px; height: 100px; display: grid; place-items: center; border-radius: 8px;
  background: repeating-conic-gradient(#f1f5f9 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.fx-req__img img { max-width: 100%; max-height: 100%; }
.fx-req__meta { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.fx-range { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.fx-range input { flex: 1; min-width: 90px; }
.fx-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.fx-up { border-top: 1px solid rgba(15, 23, 42, .1); padding-top: 12px; }
.fx-up h4 { margin: 0 0 8px; font-size: 15px; }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 14px; }
.fx-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.fx-grid small { color: var(--muted, #64748b); }
.fx-grid input:not([type=checkbox]):not([type=range]), .fx-grid select, .fx-edit input { padding: 7px 9px; border: 1px solid rgba(15, 23, 42, .2); border-radius: 8px; font: inherit; background: #fff; }
.fx-grid--tools { margin-top: 10px; align-items: center; }
.fx-grid--tools label.fx-range { flex-direction: row; }
.fx-check { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; font-size: 13px; }
.fx-check--own { margin: 12px 0 4px; font-weight: 600; }
.fx-check--ack { margin: 8px 0; font-weight: 600; }
.fx-prev { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.fx-prev small { display: block; color: var(--muted, #64748b); margin-bottom: 4px; }
.fx-prev img { width: 100%; border: 1px solid rgba(15, 23, 42, .12); border-radius: 8px; background: #fff; }
.fx-status { font-size: 13px; color: var(--muted, #64748b); }
.fx-rights, .fx-log { margin-top: 14px; }
.fx-rights summary, .fx-log summary { cursor: pointer; font-weight: 600; }
.fx-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.fx-table th, .fx-table td { border-bottom: 1px solid rgba(15, 23, 42, .08); padding: 6px 8px; text-align: left; vertical-align: top; }
.fx-banner { margin: 8px 0; padding: 9px 12px; border-radius: 10px; background: rgba(59, 130, 246, .08); border: 1px solid rgba(59, 130, 246, .25); font-size: 13px; }
.fx-banner a { font-weight: 600; }

.fx-modal { position: fixed; inset: 0; z-index: 13000; background: rgba(15, 23, 42, .45); display: grid; place-items: center; padding: 16px; }
.fx-modal__box { background: var(--surface, #fff); color: var(--text, #0f172a); border-radius: 14px; width: min(1180px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(15, 23, 42, .3); }
.fx-modal__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid rgba(15, 23, 42, .1); }
.fx-modal__head h3 { margin: 0; font-size: 17px; }
.fx-x { border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: inherit; }
.fx-modal__body { padding: 14px 18px; overflow: auto; }
.fx-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 42px 16px; border: 2px dashed rgba(15, 23, 42, .2); border-radius: 12px; cursor: pointer; text-align: center; }
.fx-drop.is-over { border-color: #2563eb; background: rgba(37, 99, 235, .05); }
.fx-sign { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.fx-page { position: relative; border: 1px solid rgba(15, 23, 42, .15); background: #fff; user-select: none; }
.fx-page > img[data-fx-pageimg] { display: block; width: 100%; height: auto; }
.fx-ov { position: absolute; cursor: move; touch-action: none; outline: 1px dashed rgba(37, 99, 235, .55); }
.fx-ov.is-drag { outline-style: solid; }
.fx-sign__side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; }
.fx-docname { margin: 0; }
.fx-edit, .fx-pick { border: 1px solid rgba(15, 23, 42, .12); border-radius: 10px; padding: 8px 12px 12px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.fx-edit legend, .fx-pick legend { font-size: 13px; font-weight: 600; padding: 0 4px; }
.fx-edit label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted, #64748b); }
.fx-edit label input { color: var(--text, #0f172a); }
.fx-repl { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
.fx-repl input { min-width: 0; }
.fx-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-confirm { position: fixed; inset: 0; z-index: 13010; background: rgba(15, 23, 42, .35); display: grid; place-items: center; padding: 16px; }
.fx-confirm__box { background: var(--surface, #fff); color: var(--text, #0f172a); border-radius: 14px; width: min(620px, 100%); padding: 18px 20px; box-shadow: 0 20px 60px rgba(15, 23, 42, .3); }
.fx-confirm__box h4 { margin: 0 0 4px; font-size: 16px; line-height: 1.35; }
@media (max-width: 860px) { .fx-sign { grid-template-columns: 1fr; } .fx-prev { grid-template-columns: 1fr; } }
