/* 催事管理 →「備品管理」（2026-11-10・pages/saiji-equipment.js） */
.eqa-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.eqa-err { margin: 8px 0; padding: 10px 12px; border-radius: 8px; background: #fdecec; border: 1px solid #e3a1a1; color: #8a1f1f; font-weight: 700; }
.eqa-err[hidden] { display: none; }
.eqa-none { color: #b45309; font-weight: 700; }
.eqa-tag { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #eef0f3; color: #4b5563; }
.eqa-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0; }
.eqa-row select { min-height: 34px; padding: 4px 8px; border: 1px solid var(--line, #d1d5db); border-radius: 6px; font: inherit; background: #fff; }
.eqa-lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.eqa-search { min-height: 34px; padding: 4px 10px; border: 1px solid var(--line, #d1d5db); border-radius: 6px; font: inherit; min-width: 180px; box-sizing: border-box; }
.eqa-people { display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .eqa-people { grid-template-columns: 1fr; } }
.eqa-plist { display: grid; gap: 8px; }
.eqa-plist .eqa-search { width: 100%; }
.eqa-pl { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 70vh; overflow: auto; }
.eqa-p { display: grid; gap: 2px; width: 100%; text-align: left; padding: 8px 10px; border: 1px solid var(--line, #d1d5db); border-radius: 8px; background: #fff; font: inherit; cursor: pointer; }
.eqa-p:hover { border-color: #1c6b45; }
.eqa-p.is-on { border-color: #1c6b45; background: #eaf5ef; box-shadow: inset 3px 0 0 #1c6b45; }
.eqa-p__n { font-weight: 700; }
.eqa-p__m { font-size: 12px; color: var(--muted, #6b7280); }
.eqa-detail { min-width: 0; }
.eqa-h3 { font-size: 16px; margin: 12px 0 6px; }
.eqa-memo { margin: 4px 0 8px; padding: 6px 10px; border-left: 3px solid #1c6b45; background: #f6f8f7; font-size: 13px; }
.eqa-tablewrap { overflow: auto; max-width: 100%; border: 1px solid var(--line, #d1d5db); border-radius: 8px; background: #fff; }
.eqa-tablewrap--mx { max-height: 75vh; }
.eqa-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.eqa-table th, .eqa-table td { padding: 6px 10px; border-bottom: 1px solid #edf0f2; text-align: left; vertical-align: middle; }
.eqa-table--log td { vertical-align: top; }
.eqa-table thead th { position: sticky; top: 0; z-index: 2; background: #f3f5f7; font-weight: 700; white-space: nowrap; }
.eqa-table tbody th { font-weight: 600; }
.eqa-table tr.is-off td, .eqa-table tr.is-off th { color: #9ca3af; }
.eqa-table--log td { white-space: normal; }
.eqa-table--log td:first-child { white-space: nowrap; }
.eqa-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.eqa-num small { margin-left: 2px; font-size: 11px; color: var(--muted, #6b7280); }
.eqa-num.is-up { color: #166534; font-weight: 700; }
.eqa-num.is-down { color: #b91c1c; font-weight: 700; }
.eqa-num.is-zero { color: #9ca3af; }
.eqa-total { font-weight: 800; background: #f8faf9; }
.eqa-table--mx { width: auto; }
.eqa-table--mx thead th { text-align: center; }
.eqa-table--mx thead th small { display: block; font-weight: 400; font-size: 11px; color: var(--muted, #6b7280); }
.eqa-stick { position: sticky; left: 0; z-index: 1; background: #fff; min-width: 200px; }
.eqa-table--mx thead .eqa-stick { z-index: 3; background: #f3f5f7; }
.eqa-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: #1c6b45; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.eqa-kind { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef0f3; white-space: nowrap; }
.eqa-kind--takeout { background: #fff3d6; color: #8a5a00; }
.eqa-kind--holding { background: #e3f1ea; color: #1c6b45; }
.eqa-table--items td { vertical-align: middle; }
.eqa-ord { white-space: nowrap; }
.eqa-ord .admin-btn + .admin-btn { margin-left: 4px; }
.eqa-in { width: 100%; min-width: 120px; min-height: 32px; padding: 4px 8px; border: 1px solid var(--line, #d1d5db); border-radius: 6px; font: inherit; box-sizing: border-box; }
.eqa-in--unit { min-width: 56px; width: 64px; }
.eqa-new td { background: #f8faf9; }

/* 2026-11-11 在庫と所持数（在庫一覧・クローザー別・発注管理・履歴・備品マスター） */
.eqa-at { margin-left: auto; }
.eqa-ok { margin: 8px 0; padding: 10px 12px; border-radius: 8px; background: #e7f5ec; border: 1px solid #9fd2b3; color: #14532d; font-weight: 700; }
.eqa-ok[hidden] { display: none; }
.eqa-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.eqa-kpi { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line, #d1d5db); border-radius: 10px; background: #fff; }
.eqa-kpi span { font-size: 12px; color: var(--muted, #6b7280); font-weight: 700; }
.eqa-kpi b { font-size: 22px; font-variant-numeric: tabular-nums; }
.eqa-kpi b small { font-size: 12px; margin-left: 2px; color: var(--muted, #6b7280); }
.eqa-kpi em { font-style: normal; font-size: 11px; color: var(--muted, #6b7280); }
.eqa-kpi.is-alert { border-color: #e3a1a1; background: #fdf1f1; }
.eqa-kpi.is-alert b { color: #b91c1c; }
.eqa-kpi.is-warn { border-color: #f0c987; background: #fff8eb; }
.eqa-kpi.is-warn b { color: #b45309; }
.eqa-tablewrap--tall { max-height: 72vh; }
/* 写真は切らずに全体を見せる（2026-11-17） */
.eqa-th { width: 40px; height: 40px; border-radius: 6px; object-fit: contain; display: block; background: #fff; border: 1px solid #eef0f3; box-sizing: border-box; }
.eqa-th--none { display: grid; place-items: center; font-size: 18px; background: #eef0f3; }
.eqa-table tr.is-short td, .eqa-table tr.is-short th { background: #fdf3f3; }
.eqa-num.is-empty { color: #b45309; font-weight: 800; background: #fff8eb; }
.eqa-stockform td { background: #f8faf9; }
.eqa-sep { color: var(--muted, #6b7280); font-size: 12px; }
.eqa-in--num { width: 90px; min-width: 70px; text-align: right; font-variant-numeric: tabular-nums; }
.eqa-big { font-size: 16px; font-weight: 800; }
.eqa-p__n { display: flex; justify-content: space-between; gap: 8px; }
.eqa-p__a { font-variant-numeric: tabular-nums; color: #1c6b45; }
.eqa-sumrow th, .eqa-sumrow td { font-weight: 800; background: #f3f5f7; border-top: 2px solid #d1d5db; }
.eqa-kind--return { background: #e3f1ea; color: #1c6b45; }
.eqa-kind--stock_in { background: #e0ecfb; color: #1e40af; }
.eqa-kind--stock_set { background: #ede7fb; color: #5b21b6; }
.eqa-kind--hold_set { background: #fde8f0; color: #9d174d; }
.eqa-img { white-space: nowrap; }
.eqa-img .eqa-th { display: inline-block; vertical-align: middle; margin-right: 6px; }
.eqa-imgbtn { display: inline-block; padding: 3px 8px; border: 1px solid var(--line, #d1d5db); border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; background: #fff; vertical-align: middle; }
.eqa-link--sm { font-size: 12px; margin-left: 4px; }
.eqa-sel { min-height: 32px; padding: 2px 6px; border: 1px solid var(--line, #d1d5db); border-radius: 6px; font: inherit; background: #fff; }
.eqa-acts { white-space: nowrap; }
.eqa-acts > * + * { margin-left: 6px; }
/* 削除（2026-11-11 ご指示「保存ボタンの隣に削除ボタン。色は赤で文字は白」） */
.eqa-del { min-height: 30px; padding: 4px 12px; border: 0; border-radius: 999px; background: #dc2626; color: #fff; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.eqa-del:hover { background: #b91c1c; }
.eqa-del:focus-visible { outline: 2px solid #7f1d1d; outline-offset: 2px; }
/* スマホ幅：切り替えは横にすべらせる（ページを横にはみ出させない）・数字のカードは2つずつ */
.eqa-head .bpr-switch { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.eqa-head .bpr-switch__btn { white-space: nowrap; flex: none; }
@media (max-width: 640px) {
  .eqa-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .eqa-kpi b { font-size: 18px; }
  .eqa-at { margin-left: 0; }
}

/* ［編集］の行（2026-11-17）：単価・必要在庫数・備品室の在庫・発注金額をまとめて直す */
.eqa-editgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 14px; align-items: end; padding: 4px 0 8px; }
.eqa-fld { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted, #6b7280); }
.eqa-fld .eqa-in--num { width: 100%; max-width: 160px; }
.eqa-fld--wide { grid-column: span 2; }
.eqa-fld--btns { display: flex; gap: 6px; align-items: center; }
.eqa-inrow { display: inline-flex; align-items: center; gap: 4px; color: var(--text, #222); font-weight: 400; }
.eqa-inrow2 { border-top: 1px dashed #dfe3e6; padding-top: 8px; margin-top: 2px; }
.eqa-manual { display: block; margin-top: 2px; font-size: 10px; font-weight: 700; color: #8a5a00; }
@media (max-width: 640px) { .eqa-fld--wide { grid-column: auto; } }
