/* 見積・請求・領収システム — 管理画面スタイル（レンタル本番の型を踏襲、スマホ優先） */
* { box-sizing: border-box; }
body { margin: 0; font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; font-size: 14px; line-height: 1.8; color: #333; background: #faf7f5; }
.wrap { max-width: 760px; margin: 0 auto; padding: 16px 12px 48px; }
h1 { font-size: 22px; margin: 8px 0 12px; }
h2 { font-size: 18px; margin: 0 0 8px; }
h3 { font-size: 15px; margin: 18px 0 8px; }
.banner { background: #fdf0f4; border: 1px solid #eec3d0; border-radius: 8px; padding: 10px 12px; }
.step { background: #fff; border: 1px solid #e5ddd8; border-radius: 10px; padding: 14px; margin: 14px 0; }
.next-btn, .submit-btn { display: block; width: 100%; margin-top: 16px; background: #c84f74; color: #fff; border: none; border-radius: 8px; padding: 12px; font-size: 15px; cursor: pointer; }
.submit-btn:disabled { background: #ccc; cursor: not-allowed; }
.notice { color: #c0392b; }
label select, label input[type="text"], label input[type="tel"], label input[type="email"], label input[type="date"], label input[type="number"], label textarea {
  display: block; width: 100%; max-width: 100%; min-width: 0; padding: 8px; border: 1px solid #ccc; border-radius: 6px; margin-top: 2px; font-size: 14px;
}
/* 項目名と入力欄を必ず縦にそろえる（管理画面の編集フォーム用） */
.fld { display: block; margin: 10px 0; }
.fld > span { display: block; }
.fld > input, .fld > select, .fld > textarea { display: block; width: 100%; max-width: 100%; min-width: 0; }
.opt-note { color: #888; font-size: 12px; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table td { padding: 4px 2px; border-bottom: 1px solid #f0e9e6; }
.price-table td.amt { text-align: right; white-space: nowrap; }
.price-table tr.total td { font-weight: bold; border-top: 2px solid #c84f74; }
footer { color: #888; font-size: 12px; margin-top: 24px; }

/* 管理画面 */
.admin-wrap { max-width: 980px; }
.admin-wrap label { display: block; margin: 10px 0; }
.status-chip { display: inline-block; border-radius: 999px; padding: 0 10px; font-size: 12px; background: #eee; }
.status-draft { background: #fef3c7; }
.status-issued { background: #bbf7d0; }
.status-void { background: #fecaca; }
.flag { display: inline-block; border: 1px solid #c84f74; color: #c84f74; border-radius: 999px; padding: 0 8px; font-size: 11px; margin-right: 4px; }
.btn { display: inline-block; background: #fff; border: 1px solid #999; border-radius: 6px; padding: 3px 12px; cursor: pointer; margin: 2px; font-size: 13px; color: #333; -webkit-appearance: none; appearance: none; text-decoration: none; }
.btn:disabled { background: #eee; border-color: #bbb; color: #888; cursor: default; }
.btn.primary { background: #c84f74; border-color: #c84f74; color: #fff; }
.btn.danger { border-color: #c0392b; color: #c0392b; }
table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th, table.admin-table td { border: 1px solid #e5ddd8; padding: 5px 8px; text-align: left; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.filter-bar select, .filter-bar input[type="text"] { padding: 6px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px; }
input[type="date"], input[type="number"], input[type="text"], select, textarea { font-size: 14px; }

/* 明細エディタ */
.lines-scroll { overflow-x: auto; }
table.lines-table { width: 100%; border-collapse: collapse; min-width: 860px; }
table.lines-table th { font-size: 12px; color: #666; text-align: left; padding: 4px; }
table.lines-table td { padding: 3px; }
table.lines-table input[type="text"], table.lines-table input[type="number"], table.lines-table select {
  width: 100%; min-width: 0; padding: 6px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px;
}
table.lines-table .l-qty, table.lines-table .l-price { text-align: right; }
