@import url('../salary/styles.css?v=6436914440');

main { max-width: 850px; }
.panel { margin: 24px 0; padding: 24px; background: #fff; border: 1px solid #d6deea; border-radius: 12px; }
.question { border: 0; padding: 0; margin: 24px 0; min-width: 0; }
.question legend { font-weight: 600; margin-bottom: 12px; }
.question > .choice { display: flex; align-items: flex-start; margin: 8px 0; }
.question > .choice input { flex: 0 0 20px; margin-top: 3px; }
.question > .choice span { min-width: 0; overflow-wrap: anywhere; }
.question .choice small { display: block; margin-top: 4px; font-weight: 400; }
.field { display: block; }
.field textarea { display: block; margin-top: 8px; min-height: 100px; resize: vertical; }
.field-error { color: #9c2020; }
.checkline { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; }
.checkline input { min-width: 22px; min-height: 22px; }
.result p { overflow-wrap: anywhere; }
.review-facts { margin: 20px 0; }
.review-facts > div { padding: 10px 0; border-bottom: 1px solid #d6deea; }
.review-facts dt { color: #52657a; font-size: .9rem; }
.review-facts dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.schedule-scroll { overflow-x: auto; }
.schedule { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
.schedule th, .schedule td { padding: 9px 12px; border-bottom: 1px solid #d6deea; white-space: nowrap; }
.schedule caption { text-align: left; font-weight: 600; margin: 16px 0 8px; }
.paper .sheet { margin-bottom: 32px; overflow-wrap: anywhere; }
.paper .sheet h4 { text-align: center; font-size: 1.1em; }
.paper .sheet .to { margin-left: 32%; }
.paper .sheet .sign { display: flex; justify-content: space-between; gap: 12px; }
[hidden] { display: none !important; }
@media (max-width: 500px) {
  .panel { padding: 16px; }
  .paper .sheet .to { margin-left: 12%; }
  .schedule th, .schedule td { padding: 8px 3px; font-size: .86rem; }
  .paper .sheet .sign { flex-wrap: wrap; }
  .paper .sheet .sign span { white-space: nowrap; }
}
@media screen and (max-width: 500px) {
  .paper .sheet-table { display: block; width: 100%; }
  .paper .sheet-table thead { display: none; }
  .paper .sheet-table tbody { display: block; }
  .paper .sheet-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; padding: 10px 0; border-bottom: 1px solid #d6deea; }
  .paper .sheet-table td { min-width: 0; white-space: nowrap; font-size: .88rem; }
  .paper .sheet-table td:nth-child(1)::before { content: '№ '; }
  .paper .sheet-table td:nth-child(2)::before { content: 'Дата: '; }
  .paper .sheet-table td:nth-child(3)::before { content: 'Платёж: '; }
  .paper .sheet-table td:nth-child(4)::before { content: 'Остаток: '; }
}
@media print {
  body[data-print-ready] #main > * { display: none !important; }
  body[data-print-ready='sample'] #sample, body[data-print-ready='document'] #review { display: block !important; border: 0; padding: 0; }
  body[data-print-ready='sample'] #sample > *, body[data-print-ready='document'] #review > * { display: none !important; }
  body[data-print-ready='sample'] #sample-paper, body[data-print-ready='document'] #paper { display: block !important; border: 0; padding: 0; }
  body[data-print-ready='document'] .sheet + .sheet { break-before: page; }
  body[data-print-ready='schedule'] #main > #content { display: block !important; }
  body[data-print-ready='schedule'] #content > :not(#plan-result),
  body[data-print-ready='schedule'] #plan-result > :not(#print-schedule) { display: none !important; }
  body[data-print-ready='schedule'] #plan-result { padding: 0; border: 0; background: none; color: #000; }
  body[data-print-ready='schedule'] .schedule-scroll { overflow: visible; }
  body[data-print-ready='schedule'] .schedule thead { display: table-header-group; }
  body[data-print-ready='schedule'] .schedule tr { break-inside: avoid; }
}
