/* PDFページの並べ替え・回転・削除 */
.po__work { display: grid; gap: var(--az-space-3); }
.po__bar { position: sticky; top: var(--az-header-height); z-index: 2; padding: var(--az-space-2) 0; background: var(--az-color-bg-surface); }
.pk-thumbs.po__grid { grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.po__ccw { transform: scaleX(-1); }
.po__cap .az-check { align-items: center; font-weight: var(--az-font-weight-bold); color: var(--az-color-text-strong); }
.po__orig { font-size: var(--az-text-2xs); color: var(--az-color-text-muted); font-weight: var(--az-font-weight-regular); }
.po__tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.po__item[data-off="true"] { border-style: dashed; background: var(--az-color-bg-subtle); }
.po__item[data-off="true"] [data-act="rotl"], .po__item[data-off="true"] [data-act="rotr"] { visibility: hidden; }
.po__gone { display: none; }
.po__item[data-off="true"] .po__gone { display: inline-flex; }
@media (max-width: 600px) {
  .pk-thumbs.po__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .po__bar { position: static; }
}
.po__item .pk-thumb__img img { transform: rotate(var(--rot, 0deg)); }
.po__label { white-space: nowrap; }
