/* 자문 건 흐름·프로젝트 보기 (advisory-flow.js · advisory-project.js) */
.advstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(160px, 1.6fr); gap: 8px; }
.advstats > div { background: var(--soft); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; min-width: 0; }
.advstats b { font-size: 18px; font-variant-numeric: tabular-nums; }
.advstats span { font-size: 12px; color: var(--muted); }
.advstats .red b { color: var(--red); }
.advspark { flex-direction: row !important; align-items: flex-end; gap: 4px; }
.advspark i { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 46px; position: relative; font-style: normal; }
.advspark i::before { content: ''; width: 70%; height: max(2px, calc(var(--h) * .34)); background: var(--accent); opacity: .75; border-radius: 3px 3px 0 0; order: 1; }
.advspark em { font-style: normal; font-size: 10px; color: var(--muted); order: 0; }
.advspark u { text-decoration: none; font-size: 10px; color: var(--faint); order: 2; }
.advpend { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent); font-size: 13px; }
.advpend .item { background: var(--card); border-radius: 8px; margin-top: 6px; padding: 6px 8px; gap: 6px; }
.advboard { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(158px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.advcol { background: var(--soft); border-radius: 12px; padding: 6px; min-height: 120px; display: flex; flex-direction: column; gap: 6px; transition: outline-color .15s; outline: 2px dashed transparent; }
.advcol.over { outline-color: var(--accent); }
.advcol-h { display: flex; gap: 6px; align-items: baseline; padding: 2px 4px; font-size: 13px; }
.advcol-e { font-size: 12px; color: var(--faint); padding: 6px; }
.advc { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 9px; cursor: pointer; box-shadow: var(--shadow); }
.advc:hover { border-color: var(--line-strong); }
.advc.drag { opacity: .5; }
.advc .t { font-weight: 600; font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.advc .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.advc .m { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 6px; }
.advc .tg, .advtags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.advc .tg span { font-size: 11px; color: var(--muted); background: var(--soft); border-radius: 6px; padding: 1px 6px; }
.advc.soon, .advli.soon, tr.soon td:first-child { box-shadow: inset 3px 0 0 var(--amber); }
.advc.late, .advli.late, tr.late td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.advc.late { border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.advtags label { display: inline-flex; cursor: pointer; }
.advtags input { position: absolute; opacity: 0; pointer-events: none; }
.advtags span { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.advtags input:checked + span { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.advtags input:focus-visible + span { outline: 2px solid var(--accent); }
.advmodal { max-width: 1080px; }
.advstep { display: flex; gap: 2px; overflow-x: auto; }
.advstep button { flex: 1; min-width: 64px; border: 0; background: var(--soft); color: var(--muted); font: inherit; font-size: 12.5px; padding: 7px 4px; cursor: pointer; white-space: nowrap; }
.advstep button:first-child { border-radius: 8px 0 0 8px; } .advstep button:last-child { border-radius: 0 8px 8px 0; }
.advstep button.past { background: var(--accent-soft); color: var(--text); }
.advstep button.on { background: var(--accent); color: #fff; font-weight: 600; }
.advstep button:disabled { cursor: default; }
.advsug { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--green-soft); font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.advq-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 16px; margin-top: 12px; }
.advq section { margin-bottom: 14px; }
.advq h4 { font-size: 13px; margin: 0 0 6px; display: flex; gap: 6px; align-items: baseline; }
.advreq { white-space: pre-wrap; font-size: 13px; background: var(--soft); border-radius: 8px; padding: 8px 10px; margin: 6px 0; max-height: 220px; overflow: auto; }
.advfile { padding: 5px 0; gap: 8px; }
.advmails { display: flex; flex-direction: column; border-left: 2px solid var(--line); margin-left: 4px; }
.advmail { display: flex; gap: 6px; align-items: baseline; padding: 4px 8px; font-size: 13px; color: inherit; text-decoration: none; min-width: 0; position: relative; }
.advmail::before { content: ''; position: absolute; left: -6px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.advmail.out::before { background: var(--accent); }
.advmail > span:first-child, .advmail > b, .advmail .chip { flex: none; white-space: nowrap; }
.advmail > b { max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.advmail .ell { min-width: 0; flex: 1; }
.advmail:hover { background: var(--hover); border-radius: 6px; }
.advnote { font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.advdeliver { background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.advmailbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; padding: 7px 10px; border-radius: 10px; background: var(--soft); margin-bottom: 10px; }
.advmailbar.hint { background: var(--accent-soft); }
.advmailbar svg { width: 15px; height: 15px; }
.advmk { font-size: 10.5px; margin-left: 6px; padding: 0 5px; border-radius: 5px; background: var(--soft); color: var(--muted); vertical-align: 1px; }
.advmk.suggest { background: var(--accent-soft); color: var(--accent); }
/* 프로젝트 */
.pjgrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
.pjgrid > .card:last-child { grid-column: 1 / -1; }
.pjgrid2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); gap: 14px; }
.pjgoal { font-size: 15px; font-weight: 600; }
.pjprog { margin: 14px 0 6px; }
.pjbar { height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; margin: 5px 0; }
.pjbar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.pjbar.red i { background: var(--red); }
.pjkpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; }
.pjkpi > div { background: var(--soft); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.pjkpi b { font-size: 16px; } .pjkpi span { font-size: 12px; color: var(--muted); } .pjkpi .red b { color: var(--red); }
.pjtl { position: relative; overflow-x: auto; }
.pjtl-axis { position: relative; height: 22px; margin-left: 120px; border-bottom: 1px solid var(--line); min-width: 480px; }
.pjtl-axis span { position: absolute; font-size: 11px; color: var(--muted); transform: translateX(-50%); }
.pjtl i.today { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--red); opacity: .6; }
.pjtl-g { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); min-height: 40px; }
.pjtl-n { width: 120px; flex: none; font-size: 12.5px; padding: 8px 6px 8px 0; font-weight: 600; }
.pjtl-r { position: relative; flex: 1; min-width: 480px; }
.pjtl-bar, .pjtl-dot { position: absolute; top: 9px; height: 22px; border: 0; font: inherit; cursor: pointer; padding: 0; }
.pjtl-bar { background: var(--accent-soft); border-radius: 6px; color: var(--text); overflow: hidden; }
.pjtl-bar span, .pjtl-dot span { font-size: 11.5px; white-space: nowrap; padding: 0 6px; line-height: 22px; }
.pjtl-dot { background: none; transform: translateX(-7px); display: flex; align-items: center; color: var(--text); }
.pjtl-dot::before { content: ''; width: 12px; height: 12px; transform: rotate(45deg); background: var(--accent); border-radius: 2px; flex: none; }
.pjtl-bar.done, .pjtl-dot.done::before { background: var(--green-soft); } .pjtl-dot.done::before { background: var(--green); }
.pjtl-bar.late { background: var(--red-soft); color: var(--red); } .pjtl-dot.late::before { background: var(--red); }
.pjtl-r i.ws-end { position: absolute; top: 4px; bottom: 4px; border-left: 2px dashed var(--line-strong); }
.pjdec { margin: 8px 0 0; padding-left: 18px; font-size: 13px; } .pjdec li { margin: 2px 0; }
.pjdec li::marker { color: var(--accent); }
.pjhbar { position: relative; height: 10px; background: var(--soft); border-radius: 99px; }
.pjhbar u { position: absolute; inset: 0 auto 0 0; border-radius: 99px; border: 1px dashed var(--line-strong); }
.pjhbar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 99px; }
.pjhbar i.red { background: var(--red); }
@media (max-width: 760px) {
  .advstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .advspark { grid-column: span 2; }
  .advq-grid, .pjgrid, .pjgrid2 { grid-template-columns: minmax(0, 1fr); }
  .pjgrid .pjhead { grid-row: auto; }
  .advstep button { min-width: 56px; font-size: 12px; }
}
.pjkpi .pjper b { font-size: 14px; white-space: nowrap; }
