
* { box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
  background: #f7f7f7;
}
.wrap {
  max-width: 1100px;
  margin: 24px auto;
  background: #fff;
  padding: 16px 18px 24px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
}
header h1 { margin: 0 0 4px; font-size: 20px; }
.hint { font-size: 12px; opacity: 0.7; }
.search-bar { margin: 10px 0 12px; display:flex; gap:8px; align-items:center; }
.search-bar label { width: 180px; font-weight:600; }
.search-bar input { flex:1; padding: 10px 12px; border: 1px solid #cfcfcf; border-radius: 8px; outline: none; }
.suggestions {
  position: absolute; margin: 0; padding: 0; list-style: none; background: #fff; border: 1px solid #ddd; border-radius: 8px;
  width: 600px; max-height: 240px; overflow: auto; z-index: 10;
}
.suggestions li { padding: 8px 10px; cursor:pointer; border-bottom:1px solid #f2f2f2;}
.suggestions li.active { background: #f0f0f0; }
table { width: 100%; border-collapse: collapse; }
thead th { text-align: left; padding: 10px; border-bottom: 2px solid #e6e6e6; font-size: 13px; }
tbody td { padding: 6px 8px; border-bottom: 1px dashed #ececec; font-size: 14px; }
tbody tr.selected { background: #fafafa; }
td input { width: 100%; padding: 6px 8px; border: 1px solid #d7d7d7; border-radius: 6px; text-align: right; }
td input.code, td input.name { text-align: left; }
td.amount { text-align: right; font-variant-numeric: tabular-nums; }
.summary { display:flex; justify-content: space-between; align-items:flex-start; padding-top: 12px; }
.summary .right > div { display:flex; justify-content: space-between; gap: 20px; padding: 6px 0; font-size: 15px; }
.summary .right .grand strong { font-size: 18px; }
.actions { display:flex; gap:10px; align-items:center; margin-top: 12px; }
.actions button { padding: 10px 14px; border: 1px solid #d7d7d7; background:#f9f9f9; border-radius: 8px; cursor: pointer; }
.save-info { margin-left: auto; font-size: 13px; }
.add-row { padding:4px 10px; border:1px solid #ccc; border-radius:6px; background:#f8f8f8; cursor:pointer; }
.add-row:hover { background:#e9e9e9; }
