/* 「經銷商」管理員頁(平台管理頁的 #rs-root,public/reseller-ui.js)與設定頁的店家卡「授權經銷商」(#reseller-grant-card)。
 * 版面元件(卡片、頁籤、徽章、按鈕列、表單欄)沿用 plan-ui.css 的 .pl- 系列,這裡只放經銷商頁自己用到的幾條,只用 .rs- / #rs- / #rg- 開頭的名字。
 * 商米舊 WebView 守則同 app.css:橫排用 margin 隔開、不靠 flex gap;不用 grid、:has()、:is()、min()、clamp()。觸控區一律 >= 44px。 */
.rs-code { font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: 14px; letter-spacing: .3px; }
.rs-total { margin: 6px 0 2px; font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; color: #067647; }
.rs-total .pl-sub { font-size: 13px; font-weight: 500; }
.pl-filter input[type="date"], .pl-month input[type="date"] { min-height: 44px; font-size: 15px; box-sizing: border-box; max-width: 100%; }
.pl-filter label.pl-month { display: inline-block; margin: 0 10px 8px 0; }
.pl-filter .pl-btn, .pl-filter .pl-b { margin: 0 8px 8px 0; vertical-align: top; }
#reseller-grant-card { padding: 14px; }
/* 作者樣式的 display 會蓋掉 [hidden](本專案踩過多次) */
#reseller-grant-card.nav-hidden { display: none !important; }

/* ---------- 經銷商申請(public/reseller-apply-ui.js):登入畫面的申請表 + 平台管理「申請」分頁 ---------- */
.ra-box { text-align: left; }
.ra-entry, .ra-box button { min-height: 44px; }
.ra-box h2, .ra-box .login-sub, .ra-commission { text-align: center; }
.ra-commission { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.ra-field { display: block; }
.ra-label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 6px; }
.ra-field input[type="text"], .ra-field input[type="email"], .ra-field input[type="tel"], .ra-field select, .ra-field textarea { display: block; width: 100%; box-sizing: border-box; }
.ra-field select, .ra-field textarea { font-size: 17px; padding: 12px 14px; border-radius: 11px; border: 1.5px solid var(--line); background: #faf7f2; min-height: 48px; font-family: inherit; }
.ra-hint { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin-top: 4px; }
.ra-err { color: var(--warn); font-size: 13.5px; font-weight: 700; margin-top: 4px; }
.ra-err:empty { display: none; }
.ra-bad input, .ra-bad select, .ra-bad textarea { border-color: var(--warn); }
.ra-choice { display: block; }
.ra-choice .ra-opt { display: inline-flex; align-items: center; min-height: 44px; margin-right: 22px; cursor: pointer; }
.ra-opt input, .ra-agree input { width: 20px; height: 20px; margin-right: 6px; }
.ra-agree { display: flex; align-items: center; min-height: 44px; cursor: pointer; line-height: 1.5; }
.ra-doc summary { cursor: pointer; min-height: 44px; line-height: 44px; font-weight: 700; color: var(--primary-text); }
.ra-doc-text { white-space: pre-wrap; font-size: 13px; line-height: 1.6; max-height: 240px; overflow: auto; background: #faf7f2; border-radius: 10px; padding: 10px 12px; }
.ra-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ra-done { line-height: 1.6; }
.ra-next { font-weight: 800; }
.ra-steps { padding-left: 22px; margin: 6px 0; }
.ra-steps li + li { margin-top: 6px; }
.ra-contact { color: var(--muted); font-size: 13.5px; }
.ra-set { margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.ra-set summary, .ra-block summary { cursor: pointer; min-height: 44px; line-height: 44px; font-weight: 800; }
.ra-set-body { padding-bottom: 12px; }
.ra-pre { font-size: 13.5px; line-height: 1.7; margin-bottom: 6px; }
.ra-set-l { display: block; margin-top: 10px; font-size: 14px; font-weight: 700; }
.ra-set-l[hidden] { display: none; }
.ra-set-l input, .ra-set-l select, .ra-set-l textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; min-height: 44px; font-size: 15px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; background: #fff; }
.ra-warn { color: var(--warn); }
.ra-pre-wrap { white-space: pre-wrap; }
/* 名冊每一家的「登入帳號」那一段(public/reseller-login-ui.js,2026-10-26 併進名冊) */
.rs-login { margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed var(--line); }
