/* BASIC css start */
@page { size: A4; margin: 18mm; }
*{ box-sizing:border-box; }
body { font-family: -apple-system,system-ui,"Apple SD Gothic Neo","Noto Sans KR",sans-serif; color:#111; }
h1 { font-size: 22px; margin: 0 0 12px; }
.grid { display:grid; grid-template-columns: 1fr 1fr; gap:10px; margin: 10px 0 14px; }
.box { border:1px solid #ddd; border-radius:8px; padding:10px; }
.row { display:flex; gap:8px; align-items:center; }
.label { width: 120px; color:#555; font-size:12px; }
.value[contenteditable="true"]{ border-bottom:1px dashed #bbb; outline: none; padding:0 2px; }
table { width:100%; border-collapse: collapse; margin-top: 8px; }
th, td { border:1px solid #ddd; padding:8px; font-size:13px; vertical-align:middle; }
th { background:#fafafa; text-align:center; }
td.right { text-align:right; }
input.cell { width: 100%; padding:6px 8px; border:1px solid #ddd; border-radius:6px; font-size:13px; }
input.cell.num { text-align:right; }
.totals { margin-top:12px; display:grid; grid-template-columns: 1fr 220px; gap:10px; align-items:start; }
.signs { height:120px; border:1px dashed #bbb; border-radius:8px; display:flex; align-items:center; justify-content:center; color:#777; margin-top:12px; }
.note { font-size:12px; color:#555; line-height:1.5; white-space:pre-wrap; }
.title-row { display:flex; justify-content:space-between; align-items:flex-end; }
.title-row small { font-size:12px; color:#666; }
.actions { margin:10px 0 12px; display:flex; gap:8px; }
.actions .primary { background:#1a73e8; color:#fff; border:1px solid #1a73e8; }
.print-hide{ }
@media print { .print-hide{ display:none !important; } }

/* Drag handle */
.drag-handle { cursor: move; user-select: none; color:#999; text-align:center; }
tr[draggable="true"] { background: #fff; }
tr.dragging { opacity: .5; }

/* Autocomplete */
#suggest-box {
  position: absolute;
  z-index: 9999;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  border:1px solid #ddd;
  border-radius:8px;
  background:#fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  max-height: 220px;
  overflow: auto;
  display: none;
}
#suggest-box li {
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
}
#suggest-box li:hover { background:#f3f6ff; }

/* BASIC css end */

