/* 写真台帳・入場者教育・電子納品 */
.ph-actions{display:flex;gap:.5rem;flex-wrap:wrap}
.ph-actions .btn{min-width:9.5rem}
.lab{font-size:.8125rem;font-weight:600}

/* 絞り込み・まとめて操作 */
.ph-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.9rem 1.2rem;margin-bottom:1rem;max-width:64rem}
.ph-bulk{display:flex;gap:.6rem 1.2rem;align-items:flex-end;flex-wrap:wrap;padding:.7rem 0;margin-bottom:1rem;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.ph-bulk .choice{min-height:2.25rem;padding:0}
.ph-bulk .hint{align-self:center;min-width:9rem}
.ph-bulk-cat{flex:1 1 14rem;max-width:22rem}
.ph-bulk .btn{min-width:8.5rem}

/* 写真の一覧：スマホ2列、PCで4〜6列、広い画面でも間延びさせない */
.ph-grid{list-style:none;margin:0;padding:0;display:grid;gap:1.2rem .9rem;grid-template-columns:repeat(auto-fill,minmax(13.5rem,1fr));max-width:96rem}
.ph-item{display:grid;gap:.5rem;align-content:start;min-width:0;padding-bottom:.9rem;border-bottom:1px solid var(--line)}
.ph-top{display:flex;align-items:center;justify-content:space-between;gap:.4rem;min-height:2.25rem}
.ph-sel{min-height:2.25rem;padding:0;font-variant-numeric:tabular-nums}
.ph-sel span:not(.sr){font-size:.8125rem;font-weight:700}
.ph-mv{display:grid;grid-template-columns:1fr 1fr;gap:.3rem}
.ph-mv .btn{padding-inline:.45rem;min-width:0;gap:.25rem}
.ph-imgbtn{display:block;width:100%;padding:0;border:1px solid var(--line);background:#fff;border-radius:4px;cursor:zoom-in}
.ph-item img.thumb.ph-img{width:100%;height:auto;aspect-ratio:4/3;max-height:none;object-fit:contain;border:0;background:var(--tint)}
.ph-item .field{gap:.2rem}
.ph-item .field label{font-size:.6875rem;color:var(--muted);font-weight:600}
.ph-item input,.ph-item textarea{min-height:2.25rem;padding:.35rem .55rem;font-size:.8125rem}
.ph-item textarea{resize:vertical;line-height:1.5}
.ph-zoom{display:block;max-width:100%;max-height:70vh;margin:0 auto}

/* 電子納品の表 */
.ed-off td{color:var(--muted)}
.ed-file{font-variant-numeric:tabular-nums;font-weight:600}
.ed-chk{min-height:2.25rem;padding:0}
td select{min-height:2.25rem;padding:.3rem .5rem;font-size:.8125rem;min-width:9.5rem}
.ed-path{font-variant-numeric:tabular-nums}

@media(max-width:899px){
  .ph-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ph-grid{grid-template-columns:repeat(auto-fill,minmax(11.5rem,1fr))}
}
@media(max-width:640px){
  .ph-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem .6rem}
  .ph-actions{width:100%}
  .ph-actions .btn{flex:1 1 9rem}
  .ph-bulk .btn{flex:1 1 8rem}
  .ph-bulk-cat{max-width:none;flex-basis:100%}
  .ph-mv .btn{font-size:.6875rem}
}
@media(max-width:420px){
  .ph-filters{grid-template-columns:1fr}
}
