/* css/report-autocalc.css — 측정값 입력 서랍(report-autocalc.js). report.css 다음에 로드. 색은 style.css 토큰만 쓴다. */
.ac-drawer {
  position: fixed; top: 96px; right: 12px; z-index: 70;
  width: min(380px, calc(100vw - 24px)); max-height: calc(100vh - 112px);
  display: flex; flex-direction: column;
  background: var(--c-surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.28);
}
.ac-drawer[hidden] { display: none; }
.ac-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.ac-head .ac-x { padding: 3px 9px; }
.ac-scroll { overflow-y: auto; padding: 8px 12px 14px; }
.ac-help { font-size: .76rem; color: var(--muted); line-height: 1.55; margin: 4px 0 8px; }
.ac-d { border-top: 1px solid var(--line-soft); padding: 6px 0; }
.ac-d > summary { cursor: pointer; font-weight: 700; font-size: .84rem; color: var(--strong-ink); padding: 4px 0; }
.ac-grp { margin: 8px 0 12px; padding: 8px 10px; background: var(--glass); border: 1px solid var(--line-soft); border-radius: 9px; }
.ac-grp-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .82rem; margin-bottom: 6px; }
.ac-skip { font-size: .74rem; color: var(--muted); font-weight: 400; cursor: pointer; white-space: nowrap; }
.ac-reason { width: 100%; box-sizing: border-box; margin: 0 0 6px; padding: 5px 8px; font-size: .78rem; font-family: inherit;
  background: var(--glass-2); color: var(--ink); border: 1px solid var(--line); border-radius: 7px; }
.ac-row { display: grid; grid-template-columns: 1fr 96px 46px; gap: 6px; align-items: center; margin: 3px 0; }
.ac-lab { font-size: .78rem; color: var(--ink-2); line-height: 1.3; }
.ac-in { width: 100%; box-sizing: border-box; padding: 4px 7px; font-size: .84rem; font-family: "SFMono-Regular", Consolas, monospace; text-align: right;
  background: var(--glass-2); color: var(--ink); border: 1px solid var(--line); border-radius: 7px; }
.ac-in:focus { outline: none; border-color: var(--accent-line); }
.ac-in.ac-bad { border-color: var(--red-ink); }
.ac-u { font-size: .72rem; color: var(--muted); }
.ac-row.ac-calc .ac-val { text-align: right; font-family: "SFMono-Regular", Consolas, monospace; font-size: .84rem; color: var(--muted); }
.ac-slot { margin: 6px 0 10px; }
.ac-slot-h { font-size: .76rem; font-weight: 700; color: var(--muted); margin-bottom: 3px; }
.ac-cand { display: flex; gap: 6px; align-items: flex-start; font-size: .8rem; line-height: 1.5; margin: 3px 0; cursor: pointer; }
.ac-cand input { margin-top: 4px; }
.ac-none { font-size: .76rem; color: var(--muted); }
.ac-stat { font-size: .8rem; color: var(--ink-2); margin: 4px 0 6px; }
.ac-stat.ac-warn { color: var(--red-ink); }
.ac-mini { padding: 4px 10px; font-size: .76rem; margin: 3px 6px 3px 0; }
.ac-jump { display: block; width: 100%; text-align: left; margin: 2px 0; padding: 4px 8px; font-family: inherit; font-size: .76rem; color: var(--ink-2);
  background: var(--glass); border: 1px solid var(--line-soft); border-radius: 7px; cursor: pointer; }
.ac-jump:hover { border-color: var(--accent-line); }
.ac-prev { width: 100%; height: auto; background: #fff; border: 1px solid var(--line-soft); border-radius: 6px; margin: 4px 0; }
.ac-flash { outline: 2px solid var(--accent-line); outline-offset: 2px; background: var(--accent-tint); }
[data-ac-lock] { background: var(--accent-tint); }
@media (max-width: 700px) { .ac-drawer { top: 64px; max-height: calc(100vh - 76px); } .ac-row { grid-template-columns: 1fr 80px 38px; } }
@media print { .ac-drawer, #rt-ac-btn, .ac-store { display: none !important; } [data-ac-lock] { background: none; } }
body.rt-focus .ac-drawer { top: 64px; }
