/* PasoFlow固有のスタイル。土台は共通の common.css（/common/css/common.css）。
   ここには共通CSSに無いものだけを置く。 */
:root {
  --gap-xs: 6px;
  --gap-s: 10px;
  --gap-m: 16px;
  --gap-l: 24px;
  --gap-xl: 36px;
}

.field-row { display: flex; gap: var(--gap-s); }
.field-row > * { flex: 1; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: var(--gap-s); }
.text-muted { color: var(--text-muted); font-size: 0.82rem; }
.text-right { text-align: right; }
.empty-state { text-align: center; padding: var(--gap-l) 0; color: var(--text-muted); font-size: 0.85rem; }
.loading { text-align: center; padding: var(--gap-l) 0; color: var(--text-muted); }
.total-caption { font-size: 0.78rem; color: var(--text-muted); }
img.receipt-thumb { max-width: 100%; border-radius: var(--radius-m); margin-top: var(--gap-s); }

/* 状態ピルの色（共通のロール色を利用。ダークモードでも色変数が切り替わる） */
.pill-unpaid { background: var(--orange); color: #fff; }
.pill-reported { background: var(--cyan); color: #fff; }
.pill-confirmed, .pill-approved { background: var(--green); color: #fff; }
.pill-cancelled, .pill-rejected { background: #A6A6A6; color: #fff; }
.pill-charge { background: var(--magenta); color: #fff; }
.pill-refund { background: var(--turquoise); color: #fff; }
.pill-pending { background: var(--yellow); color: #2D2D2D; }
.pill-driver { background: var(--purple); color: #fff; }

.list-row.is-me { background: color-mix(in srgb, var(--cyan) 12%, transparent); border-radius: var(--radius-m); padding-left: 8px; padding-right: 8px; }
.card p.hint, p.hint { font-size: 0.8rem; color: var(--text-muted); margin: 4px 0 0; }
.tab-btn.has-pending { background: var(--orange); color: #fff; border-color: var(--orange); }
details.detail-box summary { cursor: pointer; font-size: 0.82rem; color: var(--cyan); font-weight: 700; list-style: none; }
details.detail-box summary::-webkit-details-marker { display: none; }
.choice-card { display: block; text-decoration: none; color: inherit; }
.choice-card:hover { text-decoration: none; }
.choice-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 10px; color: #fff; }

/* common.css のフォーム部品に合わせた余白など（PasoFlowのフォームは縦積み） */
.card label { display: block; }
.card input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.card select, .card textarea { margin-bottom: var(--gap-s); }
.card form > .btn:not(.btn-small), .card > .btn:not(.btn-small) { display: block; width: 100%; }
.card form > .btn + .btn { margin-top: var(--gap-s); }
.list-row .name { font-weight: 600; }
.list-row .meta { font-size: 0.78rem; color: var(--text-muted); }
.total-amount { font-size: 1.9rem; font-weight: 800; }
.total-amount .unit { font-size: 1rem; font-weight: 600; margin-left: 2px; }
.alert-error:empty { display: none; }

/* タブ・ボタンの折り返し防止（スマホで縦書きのように潰れないように） */
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: var(--gap-m); padding-bottom: 2px; }
.tab-btn { flex: none; white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.btn { white-space: nowrap; }
.field-row { flex-wrap: wrap; }
.field-row > .btn { flex: 1 1 auto; }
.list-row > div:first-child { min-width: 0; }
