.ts-sheet {
  min-width: 0;
  margin: 1rem 0;
  padding: clamp(0.8rem, 2vw, 1.4rem);
  border: 1px solid #3d5e68;
  border-radius: 0.65rem;
  background: #10252d;
  color: #deebea;
}
.ts-sheet .ts-stages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
}
.ts-sheet fieldset {
  min-width: 0;
  margin: 0;
  border: 1px solid #496670;
  padding: 0.7rem;
  border-radius: 0.35rem;
}
.ts-sheet legend {
  width: auto;
  padding: 0 0.3rem;
  color: #e1f3eb;
  font-weight: 700;
}
.ts-sheet .ts-controls,
.ts-note-fields {
  display: grid;
  gap: 0.55rem;
}
.ts-sheet label {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  color: #cbe2dc;
  font-size: 0.95rem;
}
.ts-sheet :is(select, input, textarea, button) {
  box-sizing: border-box;
  min-width: 0;
  min-height: 44px;
  font: inherit;
  border: 1px solid #587780;
  border-radius: 0.35rem;
  background: #10232b;
  color: #e1f1ef;
  padding: 0.45rem 0.55rem;
}
.ts-sheet :is(select, input, textarea) {
  width: 100%;
}
.ts-sheet button {
  cursor: pointer;
  color: #baf2df;
  background: #173b41;
}
.ts-sheet button:disabled {
  opacity: 0.48;
  cursor: default;
}
.ts-output,
.ts-sheet .ts-status {
  color: #a9e5d3;
  font-variant-numeric: tabular-nums;
}
.ts-sheet .ts-output {
  margin: 0.65rem 0 0;
}
.ts-sheet h4 {
  font-size: 1.15rem;
  margin: 1.2rem 0 0.45rem;
}
.ts-risks {
  padding-left: 1.25rem;
}
.ts-sheet .ts-warning {
  padding: 0.55rem 0.7rem;
  border-left: 3px solid #daab62;
  color: #efd7b1;
}
.ts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.ts-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.ts-table th,
.ts-table td {
  text-align: right;
  padding: 0.35rem 0.42rem;
  border-bottom: 1px solid #45606a;
}
.ts-table th:first-child {
  text-align: left;
}
.ts-table tr :is(th, td):not(:first-child) {
  white-space: nowrap;
}
.ts-sheet .ts-basis,
.ts-sheet .ts-note-fields {
  margin: 0.8rem 0;
}
.ts-basis summary {
  cursor: pointer;
  color: #b4e6d8;
}
.ts-paper {
  display: none !important;
}
@media (max-width: 680px) {
  .ts-sheet .ts-stages {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 470px) {
  .ts-sheet .ts-table {
    font-size: 0.875rem;
  }
  .ts-sheet .ts-table th,
  .ts-sheet .ts-table td {
    padding: 0.3rem 0.15rem;
  }
}
@page scale-transfer-record {
  size: A4 portrait;
  margin: 13mm;
}
@media print {
  html.ts-printing body {
    page: scale-transfer-record;
  }
  html.ts-printing body > :not(main.brc-page):not(:has(main.brc-page)),
  html.ts-printing body :has(main.brc-page) > :not(main.brc-page):not(:has(main.brc-page)),
  html.ts-printing main.brc-page > :not(.ts-paper) {
    display: none !important;
  }
  html.ts-printing :is(body, main.brc-page) {
    background: white !important;
    color: #1a2627 !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html.ts-printing main.brc-page > .ts-paper {
    display: block !important;
    font:
      10.25pt/1.28 Arial,
      sans-serif;
    background: white;
    color: #172823;
  }
  .ts-paper :is(h2, h3, p, li, th, td) {
    color: #172823 !important;
    overflow-wrap: anywhere;
  }
  .ts-paper h2 {
    font-size: 18pt;
    margin: 0 0 2mm;
  }
  .ts-paper h3 {
    font-size: 11pt;
    margin: 2mm 0 1mm;
  }
  .ts-paper :is(p, ul) {
    font:
      10.25pt/1.28 Arial,
      sans-serif;
    margin: 1.5mm 0;
  }
  .ts-paper ul {
    padding-left: 5mm;
  }
  .ts-paper .ts-table {
    margin: 2mm 0;
    width: 100%;
  }
  .ts-paper .ts-table :is(th, td) {
    font:
      10.25pt/1.28 Arial,
      sans-serif;
    padding: 0.8mm 1.5mm;
    border-color: #adbcb8;
  }
  .ts-paper .ts-table th {
    font-weight: bold;
  }
  .ts-paper .ts-print-basis {
    font-size: 9pt;
  }
}
