/*
 * げんばAI 訪問修理・保守 — 画面ごとの部品。tokens.css → base.css の後に読み込む。
 * スマホ (< 960px) は 1 列・カード・下タブ、PC (≥ 960px) はサイドバー・表・2 列。機能と権限は同じで、並べ方だけを変える。
 *
 * iPhone・iPad (WebKit) で崩れないための決めごと (CLAUDE.md・実測):
 *   - flex: 1 の入れ物の中で割合の高さ (max-height: 100%) を使わない。高さが要る所は JS で測って px で入れる
 *   - 枠に中身から大きさを推し量らせない (shrink-to-fit の枠に背景色を付けない)
 */

html, body { overflow-x: hidden; max-width: 100%; }
img, svg, video, canvas { max-width: 100%; }
body.no-nav .sidebar, body.no-nav .tabbar { display: none; }
button { font: inherit; }
h1, h2, h3 { line-height: 1.35; }
h2 { font-size: var(--text-lg); margin: 0 0 var(--sp-3); }
h3 { font-size: var(--text-base); margin: 0 0 var(--sp-2); }
p { margin: 0 0 var(--sp-2); }
code { font-family: var(--font-mono); font-size: var(--text-sm); background: var(--gray-100); padding: 2px 6px; border-radius: 4px; word-break: break-all; }
.small { font-size: var(--text-sm); }
.xs { font-size: var(--text-xs); }
.strong { font-weight: 700; }
.danger-text { color: var(--danger); font-weight: 600; }
.warn-text { color: var(--warn); font-weight: 600; }
.ok-text { color: var(--ok); font-weight: 600; }
.pre { white-space: pre-wrap; word-break: break-word; }
.hidden-input { position: fixed; left: -1000px; top: -1000px; width: 1px; height: 1px; opacity: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.stack { display: grid; gap: var(--sp-3); }
.stack-lg { display: grid; gap: var(--sp-4); }
.row { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.mt { margin-top: var(--sp-4); }
.mb { margin-bottom: var(--sp-4); }

/* ---- 骨格 ---- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--border); padding-top: env(safe-area-inset-top); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 52px; padding: 0 var(--sp-4); }
.brand { font-weight: 800; font-size: var(--text-lg); color: var(--text); text-decoration: none; display: flex; align-items: center; gap: var(--sp-2); }
.brand-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--primary); color: #fff; font-size: 14px; }
.brand-sub { font-size: var(--text-xs); color: var(--text-muted); font-weight: 600; }
.who { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--text-sm); color: var(--text-muted); }
.who .btn { min-height: 36px; padding: 0 var(--sp-3); font-size: var(--text-sm); }
.layout { min-height: calc(100vh - 53px); }
.main { min-width: 0; }
.sidebar .sect { font-size: var(--text-xs); color: var(--text-muted); padding: var(--sp-4) var(--sp-3) var(--sp-1); font-weight: 600; }
.sidebar .ico, .tabbar .ico { display: inline-block; width: 22px; text-align: center; }
.tabbar a { gap: 2px; align-content: center; }
.tabbar .ico { font-size: 18px; line-height: 1; }
.tabbar { z-index: 20; }
@media (min-width: 960px) {
  .layout { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .sidebar { position: sticky; top: 53px; height: calc(100vh - 53px); overflow-y: auto; }
  .sidebar a { gap: var(--sp-2); }
  .sidebar a:hover { background: var(--gray-50); }
}

/* ---- 見出し・カード ---- */
.page-head { flex-wrap: wrap; }
.page-head .sub { color: var(--text-muted); font-size: var(--text-sm); }
.head-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.card + .card { margin-top: var(--sp-3); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.card-title h2, .card-title h3 { margin: 0; }
.section-title { font-size: var(--text-sm); color: var(--text-muted); font-weight: 700; margin: var(--sp-4) 0 var(--sp-2); }
.notice { border-radius: var(--radius-card); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--border); background: var(--surface); }
.notice-warn { background: var(--warn-bg); border-color: #f3e3a0; color: #5c4306; }
.notice-danger { background: var(--danger-bg); border-color: #f5c2c2; color: #7f1414; }
.notice-info { background: var(--info-bg); border-color: #bfd4fb; color: #173a8a; }
.notice-ok { background: var(--ok-bg); border-color: #b6e6c4; color: #14532d; }

/* ---- ボタン ---- */
.btn { text-decoration: none; white-space: nowrap; }
.btn-sm { min-height: 36px; padding: 0 var(--sp-3); font-size: var(--text-sm); }
.btn-lg { min-height: 56px; font-size: var(--text-lg); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--accent); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-warn { background: #fff; border-color: var(--warn); color: var(--warn); }
.btn-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: var(--sp-2); }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--sp-3); border-radius: 999px; border: 1px solid var(--gray-300); background: var(--surface); font-size: var(--text-sm); cursor: pointer; }
.chip[aria-pressed='true'] { background: var(--primary); border-color: var(--primary); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.seg { display: inline-flex; border: 1px solid var(--gray-300); border-radius: var(--radius-control); overflow: hidden; }
.seg button { min-height: 40px; padding: 0 var(--sp-3); border: 0; background: var(--surface); cursor: pointer; font-size: var(--text-sm); }
.seg button + button { border-left: 1px solid var(--gray-300); }
.seg button[aria-pressed='true'] { background: var(--primary); color: #fff; font-weight: 700; }

/* ---- フォーム ---- */
.form-grid { display: grid; gap: 0 var(--sp-4); }
@media (min-width: 960px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid.three { grid-template-columns: 1fr 1fr 1fr; } }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--danger); }
.form-error { color: var(--danger); font-size: var(--text-sm); font-weight: 600; min-height: 0; }
.form-error:not(:empty) { margin-bottom: var(--sp-3); }
.check { display: flex; align-items: center; gap: var(--sp-2); min-height: var(--tap); }
.check input { width: 22px; height: 22px; }
.input-inline { display: flex; gap: var(--sp-2); align-items: center; }
.input-inline .input { flex: 1 1 auto; min-width: 0; }
.unit { color: var(--text-muted); font-size: var(--text-sm); white-space: nowrap; }
.input.short { max-width: 140px; }
.input.num-input { text-align: right; }
.sticky-actions { position: sticky; bottom: 0; z-index: 10; display: flex; gap: var(--sp-2); padding: var(--sp-3) 0 calc(var(--sp-3) + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, rgba(250, 250, 250, 0), var(--bg) 30%); }
.sticky-actions .btn { flex: 1 1 0; }
@media (max-width: 959px) { .sticky-actions { bottom: calc(56px + env(safe-area-inset-bottom)); } }

/* ---- 一覧 ---- */
.list-item { cursor: pointer; }
.list-item:hover { border-color: var(--gray-300); }
.list-item-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.more { display: flex; justify-content: center; margin-top: var(--sp-3); }
.table td.wrap { white-space: normal; }
.table .nowrap { white-space: nowrap; }
.table th.sortable { cursor: pointer; }
.only-pc { display: none !important; }
@media (min-width: 960px) { .only-pc { display: revert !important; } .only-sp { display: none !important; } }
.pc-table { display: none; }
@media (min-width: 960px) { .pc-table { display: block; } .sp-cards { display: none; } }

/* ---- バッジ (状態) ---- */
.badge-received { background: var(--info-bg); color: var(--info); }
.badge-arranged { background: #ede9fe; color: #5b21b6; }
.badge-moving { background: var(--warn-bg); color: var(--warn); }
.badge-working { background: #ffedd5; color: #9a3412; }
.badge-work_done { background: #cffafe; color: #155e75; }
.badge-completed { background: var(--ok-bg); color: var(--ok); }
.badge-urgent { background: var(--danger); color: #fff; }
.badge-high { background: var(--warn-bg); color: var(--warn); }
.badge-expired { background: var(--danger-bg); color: var(--danger); }
.badge-soon { background: var(--warn-bg); color: var(--warn); }

/* ---- 2 列 (PC で左右に並べる) ---- */
.split { display: grid; gap: var(--sp-4); }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .split.wide-left { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } .split .sticky-col { position: sticky; top: 68px; } }

/* ---- 詳細 ---- */
.kv { display: grid; grid-template-columns: 1fr; gap: 2px var(--sp-3); margin: 0; }
.kv dt { color: var(--text-muted); font-size: var(--text-sm); }
.kv dd { margin: 0 0 var(--sp-2); word-break: break-word; }
@media (min-width: 600px) { .kv { grid-template-columns: 9em minmax(0, 1fr); } .kv dd { margin: 0; } .kv dt, .kv dd { padding: var(--sp-1) 0; } }
.tabs-bar { display: flex; gap: var(--sp-1); overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: var(--sp-3); }
.tabs-bar button { min-height: var(--tap); padding: 0 var(--sp-3); border: 0; border-bottom: 3px solid transparent; background: none; color: var(--text-muted); font-weight: 600; cursor: pointer; white-space: nowrap; }
.tabs-bar button[aria-selected='true'] { color: var(--text); border-bottom-color: var(--primary); }

/* ---- 時系列 (対応履歴) ---- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.timeline li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-3); padding: var(--sp-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.timeline .when { font-size: var(--text-xs); color: var(--text-muted); white-space: nowrap; }
.timeline .kind { font-size: var(--text-xs); font-weight: 700; }
.timeline li.system { background: var(--gray-50); }
.timeline li.corrected { opacity: .7; }
.timeline li.correction { border-color: var(--warn); }

/* ---- 機器の過去履歴・契約 (F04) ---- */
.eq-card { border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--sp-3); background: var(--surface); }
.eq-card + .eq-card { margin-top: var(--sp-2); }
.eq-name { font-weight: 700; }
.terms { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-2) 0; }
.term { display: inline-flex; gap: var(--sp-1); align-items: center; padding: 4px var(--sp-2); border-radius: var(--radius-control); font-size: var(--text-sm); background: var(--gray-100); }
.term.expired { background: var(--danger-bg); color: var(--danger); font-weight: 700; }
.term.soon { background: var(--warn-bg); color: var(--warn); font-weight: 700; }
.term.ok { background: var(--ok-bg); color: var(--ok); }
.history-mini { list-style: none; margin: 0; padding: 0; font-size: var(--text-sm); }
.history-mini li { padding: var(--sp-2) 0; border-top: 1px solid var(--border); }
details.fold > summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; font-weight: 600; }

/* ---- 受付登録 (S01) ---- */
.steps { display: flex; gap: var(--sp-1); margin-bottom: var(--sp-3); }
.steps span { flex: 1; text-align: center; font-size: var(--text-xs); padding: var(--sp-1); border-radius: 999px; background: var(--gray-100); color: var(--text-muted); }
.steps span.on { background: var(--primary); color: #fff; font-weight: 700; }
.pick { display: grid; gap: var(--sp-2); }
.pick button { text-align: left; display: grid; gap: 2px; padding: var(--sp-3); min-height: var(--tap); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); cursor: pointer; }
.pick button[aria-pressed='true'] { border: 2px solid var(--primary); padding: calc(var(--sp-3) - 1px); }
.pick .t { font-weight: 700; }
.pick .s { font-size: var(--text-sm); color: var(--text-muted); }
@media (min-width: 960px) { .intake-steps { display: none; } .intake-step { display: block !important; } }

/* ---- 現場の進捗ボタン (S07) ---- */
.progress-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-2); }
.progress-bar .btn { min-height: 64px; flex-direction: column; gap: 2px; padding: 0 4px; font-size: var(--text-sm); white-space: normal; }
.progress-bar .btn .ico { font-size: 20px; }
.progress-bar .btn.current { background: var(--primary); border-color: var(--primary); color: #fff; }
@media (min-width: 960px) { .progress-sticky { position: sticky; top: 53px; z-index: 15; background: var(--bg); padding: var(--sp-2) 0; } }
@media (max-width: 959px) { .progress-sticky { position: sticky; bottom: calc(56px + env(safe-area-inset-bottom)); z-index: 15; background: var(--bg); padding: var(--sp-2) 0; border-top: 1px solid var(--border); } }

/* ---- 写真 ---- */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: var(--sp-2); }
.thumb { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--radius-control); overflow: hidden; background: var(--gray-100); border: 1px solid var(--border); padding: 0; cursor: pointer; line-height: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .tag { position: absolute; left: 4px; top: 4px; line-height: 1.4; font-size: 11px; padding: 0 4px; border-radius: 4px; background: rgba(0, 0, 0, .65); color: #fff; }
.thumb .pending { position: absolute; inset: auto 0 0 0; line-height: 1.4; font-size: 11px; background: rgba(161, 98, 7, .9); color: #fff; text-align: center; }
.photo-log { white-space: pre-wrap; font-size: var(--text-xs); color: var(--text-muted); font-family: var(--font-mono); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .9); display: grid; place-items: center; padding: var(--sp-4); }
.lightbox img { max-width: 100%; max-height: 90vh; }
.lightbox .btn { position: absolute; top: calc(var(--sp-4) + env(safe-area-inset-top)); right: var(--sp-4); }
.camera-overlay { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.camera-overlay video { width: 100%; height: 100%; object-fit: contain; }
.camera-overlay .actions { display: flex; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom)); }
.camera-overlay .actions .btn { flex: 1; }
.drop { border: 2px dashed var(--gray-300); border-radius: var(--radius-card); padding: var(--sp-4); text-align: center; color: var(--text-muted); }
.drop.over { border-color: var(--accent); background: var(--info-bg); }

/* ---- 作業報告 (S08) ---- */
.line-row { display: grid; gap: var(--sp-2); padding: var(--sp-3); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.line-row + .line-row { margin-top: var(--sp-2); }
@media (min-width: 960px) { .line-row.part { grid-template-columns: minmax(0, 3fr) 90px 110px 110px auto; align-items: end; } .line-row.expense { grid-template-columns: 160px minmax(0, 2fr) 140px auto auto; align-items: end; } }
.line-row .field { margin-bottom: 0; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-1) var(--sp-4); font-variant-numeric: tabular-nums; }
.totals .sum { font-weight: 800; font-size: var(--text-lg); border-top: 1px solid var(--border); padding-top: var(--sp-2); }
.insp-item { padding: var(--sp-3); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.insp-item + .insp-item { margin-top: var(--sp-2); }
.insp-item.ng { border: 2px solid var(--danger); background: #fff8f8; padding: calc(var(--sp-3) - 1px); }
.insp-item .std { font-size: var(--text-sm); color: var(--text-muted); }
.insp-item .ng-label { color: var(--danger); font-weight: 800; }
.okng { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.okng button { min-height: 52px; border-radius: var(--radius-control); border: 1px solid var(--gray-300); background: var(--surface); font-weight: 700; font-size: var(--text-lg); cursor: pointer; }
.okng button[aria-pressed='true'].ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.okng button[aria-pressed='true'].ng { background: var(--danger); border-color: var(--danger); color: #fff; }
.input.out { border: 2px solid var(--danger); color: var(--danger); font-weight: 800; }
.saved-state { font-size: var(--text-xs); color: var(--text-muted); }
@media (min-width: 960px) { .report-table .insp-item { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 3fr); gap: var(--sp-3); align-items: start; } }

/* ---- 報告書の確認とサイン (S09) ---- */
.paper { background: #fff; border: 1px solid var(--gray-300); border-radius: 4px; padding: var(--sp-5); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.paper h1 { text-align: center; font-size: var(--text-xl); margin: 0 0 var(--sp-4); letter-spacing: .1em; }
.paper table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.paper th, .paper td { border: 1px solid var(--gray-300); padding: var(--sp-2); text-align: left; vertical-align: top; }
.paper th { background: var(--gray-50); width: 7.5em; font-weight: 600; }
.paper td.ng { color: var(--danger); font-weight: 700; }
.sign-wrap { display: grid; gap: var(--sp-2); }
.sign-box { position: relative; border: 2px solid var(--gray-400); border-radius: var(--radius-card); background: #fff; touch-action: none; overflow: hidden; line-height: 0; }
.sign-box canvas { display: block; touch-action: none; }
.sign-box .hint { position: absolute; left: 0; right: 0; top: 50%; text-align: center; color: var(--gray-400); line-height: 1.4; pointer-events: none; transform: translateY(-50%); font-size: var(--text-lg); }
.sign-box .baseline { position: absolute; left: 6%; right: 6%; bottom: 22%; border-bottom: 1px dashed var(--gray-300); pointer-events: none; }

/* ---- 予定一覧 (S06) ---- */
.day-block + .day-block { margin-top: var(--sp-4); }
.day-head { font-weight: 800; margin-bottom: var(--sp-2); }
.sched-table th:first-child, .sched-table td:first-child { width: 10em; }

/* ---- 様式の編集 (S12) ---- */
.layout-preview { width: 100%; background: #fff; border: 1px solid var(--gray-300); }
.layout-preview text { font-family: var(--font); }
.el-table input, .el-table select { min-height: 36px; font-size: var(--text-sm); padding: 2px 6px; width: 100%; border: 1px solid var(--gray-300); border-radius: 4px; }
.el-table td { padding: 4px; }
.el-table .n { width: 64px; }

/* ---- 開けないとき・ログイン ---- */
.auth-page { max-width: 520px; margin: 0 auto; padding: var(--sp-8) var(--sp-4); }
.auth-card h1 { font-size: var(--text-xl); margin: 0 0 var(--sp-4); }
.auth-card p { margin-bottom: var(--sp-3); }
.diag { margin-top: var(--sp-4); padding: var(--sp-3); background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--radius-control); font-size: var(--text-xs); color: var(--text-muted); word-break: break-all; }
.diag h3 { font-size: var(--text-sm); }

/* ---- トースト・ダイアログ ---- */
.toast { z-index: 200; opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.show { opacity: 1; }
.toast.error { background: var(--danger); }
.dialog-back { position: fixed; inset: 0; z-index: 150; background: rgba(0, 0, 0, .45); display: grid; align-items: end; }
@media (min-width: 960px) { .dialog-back { place-items: center; } }
.dialog { background: var(--surface); border-radius: 12px 12px 0 0; padding: var(--sp-4) var(--sp-4) calc(var(--sp-4) + env(safe-area-inset-bottom)); max-height: 90vh; overflow-y: auto; width: 100%; }
@media (min-width: 960px) { .dialog { border-radius: 12px; width: min(560px, 92vw); } }
.dialog h2 { margin-bottom: var(--sp-3); }
.dialog .actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.dialog .actions .btn { flex: 1; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
@media (min-width: 960px) { .stat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.stat-card { display: grid; gap: 2px; padding: var(--sp-3) var(--sp-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); color: inherit; text-decoration: none; min-height: var(--tap); }
.stat-card .label { font-size: var(--text-sm); color: var(--text-muted); }
.stat-card .value { font-size: 26px; font-weight: 800; }
.stat-card.alert .value { color: var(--danger); }

/* スマホの上部バーは 1 行に収める (会社名・役割は省く) */
@media (max-width: 959px) {
  .brand-sub { display: none; }
  .who { min-width: 0; }
  .who > span { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .who .role { display: none; }
}

/* select は端末の既定の見た目だと高さが効かない (WebKit)。見た目をそろえて 44px を守る */
.select { -webkit-appearance: none; appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2352525b' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.toolbar { align-items: center; }
.toolbar .select, .toolbar input[type='date'] { width: auto; flex: 0 1 auto; max-width: 100%; }
@media (max-width: 959px) { .toolbar .select, .toolbar input[type='date'] { flex: 1 1 calc(50% - var(--sp-2)); } }
/* PC のサイドバーの白地は画面の下まで */
@media (min-width: 960px) {
  .layout { background: linear-gradient(to right, var(--surface) calc(var(--sidebar-w) - 1px), var(--border) calc(var(--sidebar-w) - 1px), var(--border) var(--sidebar-w), transparent var(--sidebar-w)); }
  .sidebar { border-right: 0; height: auto; max-height: calc(100vh - 53px); }
}
/* グリッドの中で margin: auto を使うと、枠が中身から幅を推し量る (shrink-to-fit) ため狭くなる。幅は枠が持つ */
.layout > .main { width: 100%; max-width: none; margin: 0; }
@media (min-width: 1500px) { .layout > .main { padding-right: calc(100vw - var(--sidebar-w) - var(--content-max) - var(--sp-6)); } }
.el-table input[type='checkbox'] { width: auto; min-height: 0; }
.el-table .check { min-height: 0; white-space: nowrap; }
