/* ══════════════════════════════════════════════════════════
   쿠팡 PL 품목 현황 (pl-status.js, .plst-) — 판정 칩 + 펼침 타임라인
   ══════════════════════════════════════════════════════════ */
.page#page-pl-status { max-width: none; width: 100%; padding: 16px 24px; }
.plst-page { max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.plst-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px; }
.plst-title { font-size: 18px; font-weight: 800; }
.plst-sub { font-size: 12.5px; color: var(--text2); }
.plst-head-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.plst-btn {
  height: 32px; padding: 0 12px; border: 1px solid var(--border); background: var(--surface);
  border-radius: 8px; font: inherit; font-size: 12.5px; color: var(--text); cursor: pointer;
}
.plst-btn:hover { border-color: var(--accent); color: var(--accent); }

.plst-search {
  display: flex; align-items: center; gap: 10px; background: var(--surface);
  border: 2px solid var(--accent); border-radius: 10px; padding: 0 14px; height: 48px; color: var(--accent);
}
.plst-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--text); }
.plst-kbd { font-size: 11.5px; color: var(--text3); border: 1px solid var(--border); border-radius: 4px; padding: 0 6px; white-space: nowrap; }

.plst-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.plst-kpis { display: flex; flex-wrap: wrap; gap: 8px; flex: 3 1 560px; }
.plst-kpi {
  flex: 1 1 170px; display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  font: inherit; text-align: left; cursor: pointer;
}
.plst-kpi b { font-size: 24px; line-height: 1; }
.plst-kpi > span { display: flex; flex-direction: column; }
.plst-kpi-label { font-weight: 700; font-size: 13px; }
.plst-kpi-hint { font-size: 11.5px; color: var(--text2); }
.plst-kpi.is-late b { color: #be123c; }
.plst-kpi.is-warn b { color: #b45309; }
.plst-kpi.is-ok b { color: #047857; }
.plst-kpi.on.is-late { background: #be123c; border-color: #be123c; }
.plst-kpi.on.is-late b, .plst-kpi.on.is-late span { color: #fff; }
.plst-kpi.on.is-warn { background: #fef3c7; border-color: #f59e0b; }
.plst-kpi.on.is-ok { background: #d1fae5; border-color: #10b981; }
.plst-filters { flex: 1 1 320px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.plst-seg { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.plst-seg-btn { border: 0; border-left: 1px solid var(--surface2); padding: 6px 12px; background: var(--surface); font: inherit; font-size: 12.5px; color: var(--text2); cursor: pointer; }
.plst-seg-btn:first-child { border-left: 0; }
.plst-seg-btn.on { background: var(--accent); color: #fff; font-weight: 600; }
.plst-chk { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text2); cursor: pointer; }

.plst-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.plst-table { min-width: 1080px; }
.plst-row {
  display: grid; grid-template-columns: 180px 200px 160px 210px minmax(170px, 1fr) 140px;
  border-bottom: 1px solid var(--surface2); min-height: 60px; cursor: pointer; font-size: 12.5px;
}
.plst-row > div { padding: 9px 10px; display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; }
.plst-row > div:first-child { padding-left: 14px; }
.plst-row:hover { background: #f8fafc; }
.plst-row.is-open { background: #f1f8fa; }
.plst-row-head { min-height: 0; cursor: default; font-weight: 700; color: var(--text2); font-size: 12px; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 1; }
.plst-row-head:hover { background: var(--surface); }

.plst-v { align-self: flex-start; font-size: 12px; font-weight: 700; border-radius: 5px; padding: 1px 9px; }
.plst-v.is-late { background: #be123c; color: #fff; }
.plst-v.is-warn { background: #fef3c7; color: #78350f; }
.plst-v.is-ok   { background: #d1fae5; color: #065f46; }
.plst-v.is-none { background: var(--surface2); color: var(--text3); }
.plst-reason { font-size: 12px; line-height: 1.4; color: var(--text3); }
.plst-reason.is-late { color: #9f1239; font-weight: 600; }
.plst-reason.is-warn { color: #92400e; }

.plst-name { display: flex; align-items: center; gap: 4px; font-weight: 600; font-size: 13px; color: var(--text); }
.plst-caret { display: inline-block; width: 14px; color: var(--text3); transition: transform .12s; flex: none; }
.plst-row.is-open .plst-caret { transform: rotate(90deg); }
.plst-tags { display: flex; flex-wrap: wrap; gap: 4px; padding-left: 18px; }
.plst-tag { font-size: 11px; color: var(--text2); background: var(--surface2); border-radius: 4px; padding: 0 6px; }
.plst-tag.is-empty { color: var(--text3); }
.plst-tag.is-warn { color: #92400e; background: #fef3c7; font-weight: 600; }
.plst-stage { display: flex; align-items: center; gap: 6px; color: var(--text); }
.plst-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; margin-right: 4px; }
.plst-dim { font-size: 12px; color: var(--text3); }
.plst-dim.is-warn { color: #b45309; font-weight: 700; }
.plst-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.plst-est { font-size: 10.5px; color: #92400e; background: #fef3c7; border-radius: 3px; padding: 0 4px; }
.plst-item { font-size: 12.5px; }
.plst-mini { display: flex; width: 170px; height: 6px; border-radius: 3px; overflow: hidden; background: var(--surface2); }
.plst-mini i { display: block; height: 100%; }
.plst-note { font-size: 11.5px; font-weight: 600; color: var(--accent-text); }
.plst-note.is-late { color: #be123c; font-weight: 700; }
.plst-empty { padding: 36px 20px; text-align: center; color: var(--text3); font-size: 13px; }
.plst-foot { font-size: 12px; color: var(--text3); }

/* 펼침 */
.plst-detail { border-bottom: 1px solid var(--border); background: #f8fafc; cursor: default; }
.plst-detail-in { display: flex; flex-wrap: wrap; gap: 24px; padding: 14px 16px 16px 32px; }
.plst-tl { flex: 999 1 620px; min-width: 0; }
.plst-tl-cap, .plst-side-cap { font-size: 12px; font-weight: 700; color: var(--text2); margin-bottom: 6px; }
.plst-tl-grid { display: grid; grid-template-columns: 110px minmax(0, 1fr); row-gap: 6px; font-size: 11.5px; }
.plst-tl-label { color: var(--text2); display: flex; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-right: 6px; }
.plst-tl-months { position: relative; height: 16px; color: var(--text3); }
.plst-tl-month { position: absolute; top: 0; transform: translateX(-2px); border-left: 1px solid var(--border); padding-left: 3px; }
.plst-tl-track { position: relative; height: 22px; }
.plst-tl-track::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--surface2); }
.plst-tl-bands { height: 26px; background: var(--surface); border: 1px solid var(--surface2); border-radius: 4px; }
.plst-tl-bands::before { display: none; }
.plst-tl-band {
  position: absolute; top: 2px; bottom: 2px; border-radius: 3px; overflow: hidden; white-space: nowrap;
  font-size: 10.5px; font-weight: 600; color: var(--text); padding: 3px 4px; box-sizing: border-box;
}
.plst-tl-band.is-est { opacity: .6; border: 1px dashed var(--border2); }
.plst-tl-note { position: absolute; left: 6px; top: 4px; color: var(--text3); font-size: 11px; }
.plst-tl-bar { position: absolute; top: 5px; height: 12px; border-radius: 3px; background: #93c5fd; }
.plst-tl-bar.is-done { background: #cbd5e1; }
.plst-tl-over { position: absolute; top: 5px; height: 12px; border-radius: 0 3px 3px 0; background: repeating-linear-gradient(45deg, #be123c 0 4px, #fda4af 4px 8px); }
.plst-tl-pt { position: absolute; top: 4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; box-sizing: border-box; background: #fff; border: 2px solid #1e40af; }
.plst-tl-pt.is-late { border-color: #be123c; background: #ffe4e6; }
.plst-tl-pt.is-done { border-color: #94a3b8; background: #e2e8f0; }
.plst-tl-txt { position: absolute; top: 3px; white-space: nowrap; color: var(--text2); font-size: 11px; }
.plst-tl-txt.is-late { color: #be123c; font-weight: 700; }
.plst-tl-today { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--accent); }
.plst-tl-log { position: absolute; top: 6px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #475569; }
.plst-side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.plst-recent { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; background: var(--surface); border: 1px solid var(--surface2); border-radius: 6px; font-size: 12.5px; }
.plst-skus { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--surface2); border-radius: 6px; }
.plst-sku { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; font-size: 12px; }
.plst-link { border: 0; background: transparent; padding: 0; font: inherit; font-size: 12px; color: var(--accent); cursor: pointer; }
.plst-side-actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* 모달 */
.plst-form-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.plst-form-row > label { width: 130px; flex: none; color: var(--text2); display: flex; align-items: center; }
.plst-form-row .form-input { flex: 0 1 200px; }
.plst-form-hint { font-size: 11.5px; color: var(--text3); margin: -4px 0 10px 140px; }
.plst-bf-sec { font-weight: 700; font-size: 13px; margin: 14px 0 6px; }
.plst-bf-list { max-height: 34vh; overflow: auto; border: 1px solid var(--surface2); border-radius: 8px; }
.plst-bf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 7px 10px; border-bottom: 1px solid var(--surface2); font-size: 12.5px; }
.plst-bf-row:last-child { border-bottom: 0; }
.plst-bf-name { font-weight: 600; min-width: 160px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plst-bf-row select.form-input { margin-left: auto; width: 240px; font-size: 12.5px; }
.plst-bf-date { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text2); }
.plst-bf-date:first-of-type { margin-left: auto; }
.plst-bf-date .form-input { font-size: 12px; padding: 3px 6px; width: 140px; }

@media (max-width: 700px) {
  .page#page-pl-status { padding: 12px 16px; }
  .plst-detail-in { padding-left: 14px; }
  .plst-form-hint { margin-left: 0; }
}

/* 보류 = 판정 대신 회색 표시 · 정렬 구분 줄 (2026-10) */
.plst-v.is-hold { background: #e5e7eb; color: #374151; }
.plst-reason.is-hold { color: var(--text3); }
.plst-divider {
  padding: 7px 14px; font-size: 12px; font-weight: 600; color: var(--text2);
  background: var(--surface2); border-bottom: 1px solid var(--border);
}
/* 런칭 예정일·실제 런칭일 (sql/291) */
.plst-launch { font-size: 11.5px; font-weight: 600; margin-top: 2px; }
.plst-launch.is-plan { color: #0e7490; }
.plst-launch.is-late { color: #be123c; font-weight: 700; }
.plst-launch.is-done { color: #047857; }
