/* POM v1.1.4.22: distinct score selection and content-aware scorecard columns. */
@media screen {
  .pom-six-print { display: none !important; }
  .pom-six-table-wrap, .pom-score-fit-wrap {
    container: pom-scorecard / inline-size;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }
  body.pom-signature table.pom-six-scorecard,
  body.pom-signature table.pom-score-fit {
    table-layout: fixed;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  body.pom-signature .pom-six-scorecard th,
  body.pom-signature .pom-six-scorecard td,
  body.pom-signature .pom-score-fit th,
  body.pom-signature .pom-score-fit td {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
    padding: 8px 6px;
  }
  body.pom-signature .pom-six-scorecard th:nth-child(1),
  body.pom-signature .pom-score-fit th:nth-child(1) { width: var(--pom-score-content-width, 22%); }
  body.pom-signature .pom-six-scorecard th:nth-child(2),
  body.pom-signature .pom-score-fit th:nth-child(2) { width: auto; }
  body.pom-signature .pom-six-scorecard th:nth-child(3),
  body.pom-signature .pom-score-fit:not(.pom-score-fit-opinion) th:nth-child(3) { width: var(--pom-score-max-width, 50px); }
  body.pom-signature .pom-six-scorecard th:nth-child(4),
  body.pom-signature .pom-score-fit:not(.pom-score-fit-opinion) th:nth-child(4) { width: var(--pom-score-value-width, 38%); }
  body.pom-signature .pom-score-fit-opinion th:nth-child(3) { width: var(--pom-score-value-width, 40%); }
  body.pom-signature .pom-score-fit .score-content-cell,
  body.pom-signature .pom-score-fit .score-indicator-cell { padding-inline: clamp(5px, .75cqw, 8px); }
  body.pom-signature .pom-score-fit .score-indicator-cell { word-break: keep-all; overflow-wrap: anywhere; }
  body.pom-signature .pom-score-fit textarea { min-width: 0; max-width: 100%; }
  body.pom-signature .pom-score-fit .score-select { min-width: 0; width: 100%; max-width: 100%; }
  .pom-six-choice { container: pom-six-choice / inline-size; display: block; min-width: 0; width: 100%; text-align: left; }
  .pom-six-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; min-width: 0; }
  body.pom-signature .pom-six-option {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 4px;
    border: 1px solid #c9d5e6;
    border-radius: 7px;
    background: #fff;
    color: #294465;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.25;
    cursor: pointer;
  }
  body.pom-signature .pom-six-option > input[type=radio] {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
    accent-color: #2459c5;
    box-shadow: none;
  }
  body.pom-signature .pom-six-option > span { white-space: nowrap; }
  body.pom-signature .pom-six-option > .pom-six-check { position: absolute; top: 2px; right: 4px; width: 5px; height: 8px; border: 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); visibility: hidden; }
  body.pom-signature .pom-six-option:has(input:checked) > .pom-six-check { visibility: visible; }
  body.pom-signature .pom-six-option:has(input:checked) { border-color: #1d4ed8; background: #1d4ed8; color: #fff; font-weight: 800; }
  body.pom-signature .pom-six-option:has(input:not(:checked):not(:disabled)):hover { border-color: #8eaae0; background: #f0f5ff; }
  body.pom-signature .pom-six-option:has(input:focus-visible) { outline: 3px solid #0f172a; outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
  body.pom-signature .pom-six-option:has(input:disabled) { cursor: default; background: #f2f5f9; color: #60738e; }
  body.pom-signature .pom-six-option:has(input:disabled:checked) { background: #365882; border-color: #365882; color: #fff; }
  .pom-six-single .pom-six-grid { grid-template-columns: minmax(44px, 96px); }
  .pom-six-state { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .pom-six-instruction { margin: 10px 0; color: #50627b; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
  .pom-six-choice:has(.missing-input) .pom-six-grid { outline: 2px solid #bd3535; outline-offset: 3px; border-radius: 7px; }
  @container pom-six-choice (min-width: 284px) {
    .pom-six-choice:not(.pom-six-single):not(.pom-six-fractional) .pom-six-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  }
  @container pom-scorecard (max-width: 580px) {
    body.pom-signature table.pom-six-scorecard,
    body.pom-signature .pom-six-scorecard tbody,
    body.pom-signature table.pom-score-fit,
    body.pom-signature .pom-score-fit tbody { display: block; width: 100%; min-width: 0; }
    body.pom-signature .pom-six-scorecard thead,
    body.pom-signature .pom-score-fit thead { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); }
    body.pom-signature .pom-six-scorecard tbody tr,
    body.pom-signature .pom-score-fit tbody tr {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 9px 12px;
      width: 100%;
      min-width: 0;
      margin: 0 0 12px;
      padding: 12px;
      border: 1px solid #d5dfed;
      border-radius: 10px;
      background: #fff;
    }
    body.pom-signature .pom-six-scorecard tbody tr > td,
    body.pom-signature .pom-score-fit tbody tr > td { display: block; width: auto; min-width: 0; padding: 0; border: 0; background: transparent; }
    body.pom-signature .pom-score-fit .score-content-cell,
    body.pom-signature .pom-six-scorecard .score-content-cell { grid-column: 1; grid-row: 1; font-size: 12px; }
    body.pom-signature .pom-score-fit .score-indicator-cell,
    body.pom-signature .pom-six-scorecard .score-indicator-cell { grid-column: 1 / -1; grid-row: 2; }
    body.pom-signature .pom-score-fit .score-max-cell,
    body.pom-signature .pom-six-scorecard .score-max-cell { grid-column: 2; grid-row: 1; text-align: right !important; white-space: nowrap; font-size: 12px; }
    body.pom-signature .pom-score-fit .score-max-cell::before,
    body.pom-signature .pom-six-scorecard .score-max-cell::before { content: '배점 '; }
    body.pom-signature .pom-score-fit .score-value-cell,
    body.pom-signature .pom-six-scorecard .score-value-cell { grid-column: 1 / -1; grid-row: 3; text-align: left !important; }
    body.pom-signature .pom-score-fit-opinion .score-content-cell { grid-column: 1 / -1; }
    body.pom-signature .pom-score-fit-opinion tbody tr > td:last-child { grid-column: 1 / -1; grid-row: 3; }
    body.pom-signature .pom-score-fit:not(.pom-six-scorecard) .score-select { width: min(160px, 100%); }
  }
}
@media print {
  .pom-six-choice, .pom-six-instruction { display: none !important; }
  .pom-six-print { display: inline !important; }
}
