/* 报价只使用自己的样式命名空间；下面两行沿用已有的底部入口布局。 */
.nav { grid-template-columns: repeat(5, 1fr); }
body.role-manager .nav { grid-template-columns: repeat(4, minmax(0, 150px)); }
html.fq-page-locked { overflow:hidden; overscroll-behavior:none; }
body.fq-open { position:fixed; left:0; right:0; width:100%; height:100%; overflow:hidden; overscroll-behavior:none; }
body.fq-open::before { content:""; position:fixed; inset:0; z-index:190; background:#fff; pointer-events:none; }
body.fq-open > .nav { bottom:var(--fq-keyboard-bottom,0px); z-index:220; }
.nav button { min-height:var(--nav-h); gap:3px; color:#8e8e93; font-size:11px; font-weight:400; font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Helvetica Neue',sans-serif; }
.nav button.active { color:#007aff; }
/* 全部页面复用同一导航和同一组SVG，统一文字、图标与选中颜色。 */
.nav .nav-icon { display:block; width:22px; height:22px; font-size:0; background:currentColor; -webkit-mask:var(--fq-nav-icon) center/contain no-repeat; mask:var(--fq-nav-icon) center/contain no-repeat; }
.nav [data-nav="devices"] { --fq-nav-icon:url('/vendor/quote-icons/camera-regular.svg'); }
.nav [data-nav="ledger"] { --fq-nav-icon:url('/vendor/quote-icons/receipt-regular.svg'); }
.nav [data-nav="stats"] { --fq-nav-icon:url('/vendor/quote-icons/chart-bar-fill.svg'); }
.nav [data-nav="reimburse"] { --fq-nav-icon:url('/vendor/quote-icons/currency-circle-dollar-regular.svg'); }
.nav [data-nav="filmquote"] { --fq-nav-icon:url('/vendor/quote-icons/clipboard-text-regular.svg'); }
.nav [data-nav="filmquote"].active { --fq-nav-icon:url('/vendor/quote-icons/clipboard-text-fill.svg'); }
.fq-app { --fq-blue:#007aff; --fq-ink:#1c1c1e; --fq-line:#dfe1e6; position:fixed; inset:0 0 auto; height:calc(100dvh - 56px - env(safe-area-inset-bottom)); display:flex; flex-direction:column; z-index:200; background:#fff; overflow:hidden; overscroll-behavior:none; color:var(--fq-ink); font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Helvetica Neue','Noto Sans CJK SC',Arial,sans-serif; font-size:15px; line-height:1.4; -webkit-font-smoothing:antialiased; }
body.fq-open #ledger-rent .total-bar,body.fq-open #ledger-stockout .stockout-total-bar { visibility:hidden; pointer-events:none; }
.fq-app * { box-sizing:border-box; }
.fq-app header { display:grid; grid-template-columns:1fr auto 1fr; flex-shrink:0; z-index:5; align-items:center; min-height:54px; padding:0 12px; background:#fff; border-bottom:1px solid #e5e5ea; }
.fq-app header b { font-size:17px; font-weight:600; letter-spacing:-.2px; }
.fq-app header .fq-link { min-height:44px; display:inline-flex; align-items:center; gap:2px; padding:0; font-size:16px; }
.fq-app #fq-back { justify-self:start; }
.fq-app #fq-history { justify-self:end; }
.fq-app button { font:inherit; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.fq-app .fq-link { color:var(--fq-blue); border:0; background:transparent; padding:8px 3px; }
.fq-app h1 { font-size:20px; line-height:26px; font-weight:600; text-align:center; letter-spacing:-.3px; margin:18px 0 14px; }
.fq-content { flex:1; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:none; touch-action:pan-y; width:100%; padding:0 12px 12px; max-width:720px; margin:0 auto; }
.fq-info { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px 10px; margin:0 0 14px; }
.fq-info label { display:block; font-size:13px; line-height:17px; font-weight:400; min-width:0; }
.fq-info .fq-wide { grid-column:1/-1; }
.fq-app input,.fq-app textarea,.fq-app select { width:100%; font:inherit; font-size:16px; border:1px solid var(--fq-line); background:#fff; color:var(--fq-ink); border-radius:4px; padding:9px 7px; min-width:0; }
.fq-info input,.fq-info select { margin-top:4px; min-height:42px; line-height:22px; }
.fq-app input:focus-visible,.fq-app textarea:focus-visible,.fq-app select:focus-visible,.fq-app button:focus-visible { outline:2px solid var(--fq-blue); outline-offset:-2px; }
.fq-app input:disabled,.fq-app textarea:disabled { background:#fff; color:#48484a; -webkit-text-fill-color:#48484a; opacity:1; }
.fq-app textarea { resize:none; overflow:hidden; }
.fq-date { display:grid; grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr); align-items:center; gap:6px; margin-top:4px; }
.fq-date input { padding-inline:4px; font-size:16px; letter-spacing:-.35px; }
.fq-info output { display:block; border-bottom:1px solid var(--fq-line); min-height:42px; margin-top:4px; padding:10px 2px; font-size:16px; line-height:22px; }
.fq-icon { display:inline-block; flex:none; width:16px; height:16px; background:currentColor; -webkit-mask:var(--fq-symbol) center/contain no-repeat; mask:var(--fq-symbol) center/contain no-repeat; }
.fq-back-icon { --fq-symbol:url('/vendor/quote-icons/caret-left-regular.svg'); width:16px; height:20px; margin-left:-4px; }
.fq-date-arrow { --fq-symbol:url('/vendor/quote-icons/arrow-right-regular.svg'); margin-top:20px; }
.fq-table-wrap { border:1px solid var(--fq-line); border-radius:4px; overflow:hidden; touch-action:pan-y; }
.fq-app .fq-table { width:100%; table-layout:fixed; border-collapse:collapse; margin:0; font-size:13px; }
.fq-app .fq-table th { background:#f5f5f7; font-size:13px; font-weight:500; line-height:18px; padding:9px 1px; border-right:1px solid var(--fq-line); white-space:nowrap; }
.fq-app .fq-table td { border-top:1px solid var(--fq-line); border-right:1px solid var(--fq-line); padding:3px 2px; vertical-align:top; word-break:break-word; }
.fq-app .fq-table th:last-child,.fq-app .fq-table td:last-child { border-right:0; }
.fq-app .fq-table textarea,.fq-app .fq-table input { display:block; padding:7px 2px; border:0; border-radius:2px; min-height:32px; font-size:13px; line-height:18px; margin:0; }
.fq-app .fq-table textarea { padding-block:5px; }
.fq-app .fq-table td:nth-child(3) input,.fq-app .fq-table td:nth-child(4) input { text-align:center; font-variant-numeric:tabular-nums; }
.fq-app .fq-table output { display:block; padding:7px 0; min-height:32px; font-variant-numeric:tabular-nums; text-align:center; word-break:normal; overflow-wrap:anywhere; line-height:18px; }
.fq-app .fq-table output { -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
.fq-category-field { position:relative; }
.fq-app .fq-category-field textarea { padding-left:2px; padding-right:12px; pointer-events:none; }
.fq-app .fq-category-toggle { position:absolute; inset:0; width:100%; border:0; background:transparent; padding:0; min-height:34px; }
.fq-category-chevron { --fq-symbol:url('/vendor/quote-icons/caret-down-regular.svg'); position:absolute; right:0; top:12px; width:10px; height:10px; color:#636366; pointer-events:none; }
.fq-table tbody { touch-action:pan-y; }
.fq-table td { background:#fff; transition:transform .18s ease; }
.fq-table .fq-swiped td { transform:translateX(-82px); }
.fq-app #fq-add { display:inline-flex; align-items:center; gap:4px; min-height:44px; padding:8px 0; font-size:16px; line-height:20px; align-items:center; }
.fq-add-icon { --fq-symbol:url('/vendor/quote-icons/plus-regular.svg'); width:18px; height:18px; }
.fq-app .fq-total { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:8px 0 6px; }
.fq-total strong { font-size:24px; font-weight:600; line-height:28px; text-align:right; font-variant-numeric:tabular-nums; max-width:72%; overflow-wrap:anywhere; letter-spacing:-.5px; }
.fq-total span { font-size:14px; }
.fq-actions { display:flex; gap:10px; }
.fq-app .fq-button { border:1px solid var(--fq-blue); border-radius:6px; color:var(--fq-blue); padding:9px 10px; background:#fff; min-height:44px; font-size:16px; font-weight:400; }
.fq-app .fq-primary { background:var(--fq-blue); color:#fff; }
.fq-app button:disabled { opacity:.5; cursor:wait; }
.fq-actions > button { flex:1; min-width:0; }
.fq-footer { position:relative; flex-shrink:0; width:100%; background:#fff; padding:0 12px 9px; z-index:4; border-top:1px solid #e5e5ea; max-width:744px; margin:0 auto; }
.fq-notice { flex-shrink:0; z-index:6; color:#6a4800; background:#faf8f2; padding:10px 14px; font-size:13px; }
.fq-history-bar { display:flex; gap:8px; padding:14px 0; flex-wrap:wrap; }
.fq-history-error { padding:12px; color:#6a4800; border:1px solid #e5e5ea; border-radius:8px; margin-bottom:12px; }
.fq-app[data-page="history"] .fq-content { background:#f6f6f8; padding-top:2px; }
.fq-history-row { padding:17px 16px 10px; border:1px solid #e9e9ed; border-radius:14px; background:#fff; margin:0 0 12px; }
.fq-history-heading { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.fq-history-row h2 { font-size:17px; margin:0 0 7px; font-weight:600; overflow-wrap:anywhere; }
.fq-status { color:#8e8e93; font-size:12px; flex:none; }
.fq-history-row .fq-history-amount { font-size:22px; font-weight:600; margin:12px 0 10px; font-variant-numeric:tabular-nums; }
.fq-muted { color:#8e8e93; font-size:13px; }
.fq-history-row p { margin:7px 0; }
.fq-row-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.fq-row-actions button { font-size:14px; padding:8px 10px; min-height:44px; }
.fq-row-actions { align-items:center; border-top:1px solid #f0f0f2; padding-top:6px; }
.fq-row-actions .fq-history-more { margin-left:auto; }
.fq-summary { border-bottom:1px solid #e5e5ea; padding:16px 0; }
.fq-summary strong { font-size:28px; font-weight:600; display:block; margin:8px 0; }
.fq-overlay { position:fixed; inset:0; background:#0005; z-index:260; display:grid; place-items:center; padding:20px; }
.fq-dialog { background:#fff; padding:20px; border-radius:14px; width:100%; max-width:420px; max-height:85dvh; overflow:auto; }
.fq-dialog h2 { margin:0 0 14px; font-size:19px; font-weight:600; }
.fq-dialog label { display:block; margin:12px 0; }
.fq-empty { padding:40px 5px; text-align:center; color:#8e8e93; }
.fq-ui-layer { --fq-blue:#007aff; --fq-ink:#1c1c1e; position:fixed; inset:0; z-index:250; pointer-events:none; color:var(--fq-ink); font:15px/1.4 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif; }
.fq-ui-layer * { box-sizing:border-box; }
.fq-ui-layer button { font:inherit; -webkit-tap-highlight-color:transparent; cursor:pointer; }
.fq-category-menu,.fq-more-menu { position:fixed; pointer-events:auto; overflow:hidden; background:#fff; border:1px solid #e5e5ea; border-radius:13px; box-shadow:0 8px 32px #0002; }
.fq-more-menu { overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; touch-action:pan-y; }
.fq-category-menu { display:flex; flex-direction:column; }
.fq-category-shade { position:fixed; inset:0; pointer-events:auto; border:0; background:#0002; touch-action:none; }
.fq-category-editing { z-index:1; }
.fq-category-menu button,.fq-more-menu button { display:block; width:100%; min-height:44px; text-align:left; padding:11px 14px; border:0; border-bottom:1px solid #f0f0f2; background:#fff; color:var(--fq-ink); font-size:15px; }
.fq-more-menu button:last-child { border-bottom:0; }
.fq-category-options { min-height:0; max-height:224px; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; touch-action:pan-y; }
.fq-category-options [aria-selected="true"] { color:#007aff; }
.fq-menu-tabs { display:flex; flex-shrink:0; gap:3px; padding:7px; border-bottom:1px solid #e5e5ea; background:#f6f6f8; }
.fq-menu-tabs button { min-height:36px; font-size:14px; padding:7px 4px; text-align:center; border:0; border-radius:7px; background:transparent; }
.fq-menu-tabs button.selected { background:#fff; color:#007aff; box-shadow:0 1px 4px #0001; }
.fq-category-custom { min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:13px; }
.fq-category-custom label { display:block; font-size:13px; }
.fq-category-custom input { width:100%; min-height:44px; margin:7px 0 12px; padding:8px; font:inherit; font-size:16px; line-height:1.4; border:1px solid #dfe1e6; border-radius:7px; }
.fq-category-custom button { background:#007aff; color:#fff; border:0; text-align:center; border-radius:7px; }
.fq-custom-error { color:#ff3b30; font-size:13px; margin:6px 0 0; }
.fq-swipe-delete { position:fixed; pointer-events:auto; border:0; color:#fff; background:#ff3b30; font-size:15px; }
.fq-ui-layer .fq-danger-text { color:#ff3b30; }
.fq-app .fq-danger { background:#ff3b30; border-color:#ff3b30; color:#fff; }
.fq-toast { position:fixed; top:70px; left:50%; transform:translateX(-50%); z-index:290; border-radius:22px; padding:11px 22px; background:#1c1c1ef0; color:#fff; font:15px -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif; pointer-events:none; box-shadow:0 4px 20px #0002; }
@media (prefers-reduced-motion:reduce) { .fq-table td { transition:none; } }
@media (max-width:360px) { .fq-app .fq-table,.fq-app .fq-table th,.fq-app .fq-table input,.fq-app .fq-table textarea { font-size:12px; } .fq-app h1 { font-size:19px; } .fq-content,.fq-footer { padding-inline:10px; } }

/* 软件键盘出现时把有限高度让给输入区域；收起后恢复同一底部导航。 */
body.fq-keyboard-visible > .nav { visibility:hidden; pointer-events:none; }
.fq-app.fq-keyboard .fq-footer { display:none; }

.fq-app.fq-keyboard > .fq-passive-notice { display:none; }

.fq-category-editing .fq-menu-tabs { padding:4px; }
.fq-category-editing .fq-menu-tabs button { min-height:32px; padding:4px; }
.fq-category-editing .fq-category-custom { padding:8px; }
.fq-category-editing .fq-category-custom label { line-height:16px; }
.fq-category-editing .fq-category-custom input { margin:4px 0 6px; }

/* 影视成交统计与收款分开显示，沿用简洁统计卡片。 */
.fq-income-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:22px 0}
.fq-income-kpis>div{border:1px solid #e5e5ea;border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:8px;min-width:0}
.fq-income-kpis>div:first-child{grid-column:1/-1}.fq-income-kpis strong{font-size:25px;overflow-wrap:anywhere}.fq-income-kpis small{color:#8e8e93}
.fq-store-line{display:flex;justify-content:space-between;width:100%;border:0;background:transparent;padding:16px 0;border-bottom:1px solid #e5e5ea;color:inherit;font:inherit;text-align:left}
.fq-store-summary h2{font-size:17px}

/* 门店收入：四档时间、三店圆环与对应占比。 */
.fq-income-tabs{display:flex;padding:4px;border-radius:10px;background:#f2f3f5;gap:4px;margin:8px 0 12px}
.fq-income-tabs button{flex:1;border:0;border-radius:7px;padding:9px 2px;background:transparent;font:inherit;font-size:14px;color:#6b7280}
.fq-income-tabs button.selected{background:white;color:#1d1d1f;box-shadow:0 1px 4px #0000000d;font-weight:600}
.fq-income-period{font-size:12px;color:#8e8e93;margin:8px 0 16px}
.fq-income-kpis{margin:0 0 22px}.fq-income-kpis>.fq-ring-card{padding:12px 16px 8px;gap:0}
.fq-income-ring{position:relative;width:min(100%,280px);margin:0 auto;aspect-ratio:1}
.fq-income-ring svg{display:block;width:100%;height:100%}.fq-ring-center{position:absolute;inset:25% 13%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;pointer-events:none;min-width:0}
.fq-ring-center span,.fq-ring-center small{font-size:12px;color:#8e8e93}.fq-ring-center strong{font-size:clamp(16px,5vw,25px);max-width:100%;overflow-wrap:anywhere;text-align:center}
.fq-store-line{gap:8px;align-items:center;font-size:14px}.fq-store-line>span{display:flex;gap:7px;align-items:center;white-space:nowrap}.fq-store-line i{width:8px;height:8px;border-radius:50%;display:inline-block}.fq-store-line b{margin-left:auto;font-weight:600}.fq-store-line em{min-width:46px;text-align:right;color:#8e8e93;font-style:normal;font-size:12px}.fq-store-line:last-child{border:0}.fq-store-line.selected>span{font-weight:600}
.fq-unassigned{padding:12px;border-radius:10px;background:#f5f5f7;color:#6b7280;font-size:13px;margin-bottom:18px}.fq-income-detail-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.fq-income-detail-title h2{font-size:16px}
#fq-app[data-page="income"]>header>b{font-size:15px}#fq-app[data-page="income"]>header{gap:5px}
@media(max-width:350px){.fq-store-line{font-size:12px;gap:4px}.fq-store-line em{min-width:38px}#fq-app[data-page="income"]>header>b{font-size:13px}}

/* 报价记录三标签与分组（Q5） */
.fq-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:8px 10px 0;background:#fff;position:sticky;top:0;z-index:3}
.fq-tab{border:0;background:transparent;border-bottom:3px solid transparent;padding:10px 4px;font-size:14px;line-height:1.2;color:#5b6b7c;white-space:nowrap}
.fq-tab.selected{color:#2c5f96;border-bottom-color:#2c5f96;font-weight:600}
.fq-subbar{display:flex;align-items:center;gap:10px;padding:6px 12px 2px;flex-wrap:wrap}
.fq-subbar .fq-link{padding:4px 0;font-size:12px}
.fq-subbar span:first-child{flex:1}
.fq-subtitle{font-size:12px;color:#5b6b7c;margin-left:auto}
.fq-warn{color:#a15c00}
.fq-record{padding:12px}
.fq-record h2{margin:2px 0 4px;font-size:17px}
.fq-record h3{margin:14px 0 6px;font-size:14px;color:#2c5f96}
.fq-record-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;margin:10px 0}
.fq-record-fields div{background:#f6f9fc;border-radius:8px;padding:8px 10px}
.fq-record-fields dt{font-size:11px;color:#6b7a89}
.fq-record-fields dd{margin:2px 0 0;font-size:14px;font-weight:600;color:#22303c;word-break:break-all}
@media (max-width:359px){.fq-tab{font-size:12px}}

/* Q6：详情更多操作与设备清单 */
.fq-more-actions{margin:6px 0}
.fq-more-actions summary{cursor:pointer;color:#2c5f96;font-size:13px;padding:4px 0;list-style:none}
.fq-more-actions summary::-webkit-details-marker{display:none}
.fq-more-actions summary::after{content:' ›';font-size:12px}
.fq-more-actions[open] summary::after{content:' ⌄'}
.fq-more-actions>div{padding:4px 0}
.fq-record-table{font-size:12px}
.fq-record-table td,.fq-record-table th{padding:6px 4px}
.fq-record-table small{display:block;color:#7b8794;font-size:10px}
