/* 택 출력 전용 스타일 — 택은 mm 좌표로 절대배치한다 */
.edit { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
#tg-canvas { box-shadow: 0 0 0 1px #aaa; background: #fff; touch-action: none; }
.tg-sheet { display: flex; flex-wrap: wrap; gap: 12px; }
:is(#tg-canvas,.tg-sheet,#tg-printsheet) .tag { position: relative; background: #fff; color: #000; overflow: hidden; border-radius: 0; padding: 0; font-family: "Malgun Gothic", "Pretendard", sans-serif; box-shadow: 0 0 0 1px #bbb; }
:is(#tg-canvas,.tg-sheet,#tg-printsheet) .tag .el { position: absolute; white-space: nowrap; line-height: 1; }
:is(#tg-canvas,.tg-sheet,#tg-printsheet) .tag .el.c { transform: translate(-50%, -50%); }
:is(#tg-canvas,.tg-sheet,#tg-printsheet) .tag .el.l { transform: translate(0, -50%); }
:is(#tg-canvas,.tg-sheet,#tg-printsheet) .tag .el.bar { transform: none; line-height: 0; }
:is(#tg-canvas,.tg-sheet,#tg-printsheet) .tag .el.bar svg { display: block; width: 100%; height: 100%; }
:is(#tg-canvas,.tg-sheet,#tg-printsheet) .tag .g { position: absolute; white-space: nowrap; color: #b9b9b9; line-height: 1; transform: translate(0, -50%); pointer-events: none; }
:is(#tg-canvas,.tg-sheet,#tg-printsheet) .tag .g.c { transform: translate(-50%, -50%); }
:is(#tg-canvas,.tg-sheet,#tg-printsheet) .tag .cut { position: absolute; left: 0; right: 0; border-top: 1px dashed #cfcfcf; pointer-events: none; }
:is(#tg-canvas,.tg-sheet,#tg-printsheet) .tag.edit-on .el { cursor: move; outline: 1px dashed transparent; }
:is(#tg-canvas,.tg-sheet,#tg-printsheet) .tag.edit-on .el:hover { outline-color: #1d4ed8; }
:is(#tg-canvas,.tg-sheet,#tg-printsheet) .tag.edit-on .el.sel { outline: 1.5px solid #1d4ed8; background: rgba(29, 78, 216, .07); }
#tg-ltbody tr.sel td { background: var(--blue-bg); }
.inp.num { width: 70px; }
.x { border: 0; background: none; color: var(--red); cursor: pointer; font-size: 16px; }
#tg-printsheet { display: none; }
/* 이카운트 품목 정보 시각 */
.tg-sync { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; border-left: 4px solid var(--rule); }
.tg-sync[data-s="ok"] { border-left-color: var(--green); }
.tg-sync[data-s="warn"] { border-left-color: var(--amber); }
.tg-sync .k { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.tg-sync .t { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tg-sync .a { font-size: 13px; color: var(--ink-3); }
.tg-sync[data-s="warn"] .a { color: var(--amber); font-weight: 700; }
.tg-sync .h { flex-basis: 100%; font-size: 12px; color: var(--ink-3); }
.tg-when { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tg-when.old { color: var(--amber); font-weight: 700; }
/* 단품 검색 */
.tg-search label, .tg-label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.tg-search > div { display: flex; gap: 8px; max-width: 560px; }
.tg-search .btn { flex: none; }
.msg { margin-top: 6px; color: var(--ink-3); }
.msg.ok { color: var(--green); font-weight: 600; }
.msg.bad { color: var(--red); font-weight: 600; }
.tg-found { margin-top: 10px; }
.tg-found .scroll { max-height: 360px; overflow: auto; }
.tg-found tbody tr { cursor: pointer; }
.tg-found tbody tr.on td { background: var(--blue-bg); }
.tg-found tbody tr.in { cursor: default; color: var(--ink-3); }
.tg-found input[type=checkbox] { width: 17px; height: 17px; cursor: pointer; }
.tg-found input:disabled { cursor: default; }
.tg-found td.n { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tg-found td.name { min-width: 220px; }
.tg-excel { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
@media print {
  body.tag-printing .app, body.tag-printing .tabbar, body.tag-printing #cmdk, body.tag-printing #toast { display: none !important; }
  body.tag-printing { background: #fff; }
  body.tag-printing #tg-printsheet { display: block; }
  body.tag-printing .tag { box-shadow: none; break-after: page; page-break-after: always; }
  body.tag-printing .tag .g, body.tag-printing .tag .cut { display: none !important; }
}
