/* goods_card.css — 굿즈 타이틀 「상품」 카드 (198 · 새 파일)
   왼쪽 상품 목록 · 오른쪽 고른 상품 한 장. 상세 칸이 좁으면(760px 아래) 목록 위 · 카드 밑. 이름은 칸 바로 위(가까이). */

.gd-wrap { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 14px; align-items: start; }
@container tdetail (max-width: 760px) { .gd-wrap { grid-template-columns: minmax(0, 1fr); } }

.gd-list { display: flex; flex-direction: column; gap: 4px; max-height: 640px; overflow: auto; }
.gd-row { display: grid; grid-template-columns: 40px auto minmax(0, 1fr) auto auto; align-items: center; gap: 6px; text-align: left;
          padding: 4px 6px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: inherit; cursor: pointer; }
.gd-row:hover { background: var(--bg); }
.gd-row.on { border-color: var(--accent, #6c8cff); background: var(--bg); }
.gd-row .thumb { width: 40px; height: 30px; object-fit: cover; border-radius: 4px; background: var(--line); display: block; }
.gd-row .gd-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-row .gd-chk { font-size: 12px; }
.gd-bc .ic { width: 15px; height: 15px; }
.gd-bc.ok { color: #2f9e6f; }
.gd-bc.none { color: #d9822b; }
.gd-add { display: flex; gap: 4px; margin-top: 6px; }
.gd-add input { flex: 1; min-width: 0; }

.gd-one { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gd-shead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gd-shead .spacer { flex: 1; }
.gd-tasks { display: inline-flex; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.gd-task { display: inline-flex; align-items: center; gap: 4px; }
.gd-sec { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 12px; }
.gd-sec h3 { font-size: 13px; margin: 0 0 8px; color: var(--muted); }
.gd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 12px; }
.gd-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 13px; position: relative; }
.gd-field .gd-lab { font-size: 12px; color: var(--muted); }
.gd-field input[type="text"], .gd-field input[type="url"], .gd-field input[type="date"] { width: 100%; min-width: 0; box-sizing: border-box; }
.gd-namef { grid-column: 1 / -1; }
.gd-url { grid-column: span 2; }
.gd-open { position: absolute; right: 6px; bottom: 5px; }
.gd-open .ic { width: 15px; height: 15px; }
.gd-check { flex-direction: row; align-items: center; gap: 6px; }
.gd-check .gd-day { width: auto; flex: 1; min-width: 0; }
.gd-sec-make .gd-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.gd-bcrow { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.gd-bcin { display: flex; flex-direction: column; gap: 6px; min-width: 200px; flex: 1; }
.gd-bcnum { font-family: Consolas, monospace; letter-spacing: .06em; }
.gd-hint { font-size: 12px; min-height: 1em; }
.gd-hint.ok { color: #2f9e6f; }
.gd-hint.bad { color: #d64545; }
.gd-bctools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.gd-btn { display: inline-flex; align-items: center; gap: 4px; }
.gd-btn .ic, .gd-lib .ic { width: 15px; height: 15px; }
.gd-lib { display: inline-flex; align-items: center; font-size: 12px; }
.gd-bcimg { width: 200px; height: auto; background: #fff; border-radius: 6px; padding: 6px; border: 1px solid var(--line); }
.gd-bcimg.none { height: 90px; display: flex; align-items: center; justify-content: center; font-size: 13px; background: var(--bg); }
.gd-block { display: flex; align-items: center; gap: 4px; color: #d9822b; font-size: 13px; margin: 8px 0 0; }
.gd-block .ic { width: 15px; height: 15px; }
.gd-actions { display: flex; justify-content: flex-end; }
.gd-save { display: inline-flex; align-items: center; gap: 6px; }
.gd-save .ic { width: 16px; height: 16px; }
.gd-note { font-size: 12px; margin: 0; }

/* 상품(컷) 상세 안 한 장 — 컷리스트 「굿즈」 탭에서 줄을 열면 */
.gd-shot { margin: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.gd-shot > .doc-h { margin: 0; }

/* 바코드 여러 줄 (215 · 2.225.1) — 단추 넉넉히(버티컬 마우스) */
.gd-bchead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.gd-bcadd { min-height: 36px; padding: 4px 14px; }
.gd-bclist { display: flex; flex-direction: column; gap: 8px; }
.gd-bcline { min-width: 0; display: flex; gap: 12px; align-items: flex-start; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.gd-bcline.keep { opacity: .62; }
.gd-bcline.fresh { border-style: dashed; }
.gd-bcpic { flex: 0 0 104px; }
.gd-bcimg.sm { width: 104px; padding: 4px; }
.gd-bcimg.sm.none { height: 62px; font-size: 12px; }
.gd-bcbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.gd-bcfields { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px 12px; min-width: 0; }
.gd-bcline .gd-bctools { align-items: center; }
.gd-bcline .gd-bctools .spacer { flex: 1; }
.gd-bcb { min-height: 34px; padding: 4px 12px; }
.gd-bcdel { color: #d64545; }
.gd-bckeep { margin-top: 10px; }
.gd-bckeep-sum { cursor: pointer; padding: 8px 4px; font-size: 13px; color: var(--muted); user-select: none; }
.gd-bckeep > .gd-bclist { margin-top: 6px; }
.gd-bcempty { margin: 4px 0; font-size: 13px; }
.gd-bc small { font-size: 11px; margin-left: 2px; }
