/* 左メニューの共通部品（shared/_sidebar。画面案 RoomC・FlowTop）。色は theme.css の変数 */
.sb-wrap { display: contents; }
.sb { flex: none; box-sizing: border-box; min-width: 0; }
.sb-head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 8px 14px; }
.sb-title { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.sb-btn { width: 28px; height: 28px; border: 0; border-radius: 6px; cursor: pointer; flex: none; padding: 0; background: var(--sb-icon) center / 18px 18px no-repeat transparent; }
.sb-btn:hover { background-color: var(--hover-strong); }
body.field-ui .sb-btn { min-height: 28px; min-width: 28px; }
.sb-split { width: 9px; margin: 0 -4px; flex: none; cursor: col-resize; position: relative; z-index: 2; background: linear-gradient(90deg, transparent 4px, var(--border) 4px, var(--border) 5px, transparent 5px); }
.sb-split:hover { background: linear-gradient(90deg, transparent 3px, var(--faint) 3px, var(--faint) 6px, transparent 6px); }
.sb-split[hidden] { display: none; }
.sb.sb-col { overflow: hidden; }
.sb.sb-col .sb-head { justify-content: center; padding: 0 0 8px; }
.sb.sb-col .sb-title, .sb.sb-col .sb-body { display: none; }
.sb-body { display: flex; flex-direction: column; min-width: 0; }

/* ワークフローの左メニュー（画面案 FlowTop） */
.wf-side { padding: 12px 10px; }
.wf-side .sb-head { padding: 0 4px 8px 6px; }
.wf-side.sb-col { padding: 12px 6px; }
.fs-item { display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 8px 0 12px; box-sizing: border-box; cursor: pointer; border-radius: 4px; font-size: 13px; color: var(--text); border: 0; border-left: 3px solid transparent; background: none; text-align: left; width: 100%; text-decoration: none; font-family: inherit; }
.fs-item:hover { background: var(--bg); }
.fs-item.on { background: var(--hover-strong); border-left-color: var(--faint); font-weight: 500; }
.fs-sub { padding-left: 30px; }
.fs-apply { display: flex; align-items: center; height: 40px; padding-left: 12px; margin: 0 0 8px; box-sizing: border-box; background: var(--surface); border: 1px solid var(--faint); border-radius: 4px; font-weight: 500; font-size: 14px; color: var(--text); text-decoration: none; }
.fs-apply.on { background: var(--hover-strong); }
.fs-head { border-left: 0; padding-left: 12px; }
.fs-gap-s { margin-top: 6px; } .fs-gap-m { margin-top: 10px; }
.fs-strong { font-weight: 500; }
.fs-caret { width: 12px; font-size: 11px; color: var(--muted); }
.fs-note { font-size: 11px; color: var(--faint); }
.fs-flex { flex: 1; }
.fs-badge { font-size: 12px; color: var(--surface); background: var(--danger); border-radius: 9px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; padding: 0 4px; box-sizing: border-box; }
.fs-count { font-size: 12px; color: var(--muted); }
.fs-empty { color: var(--faint); font-size: 12px; cursor: default; }
.fs-foot { padding: 12px 12px 0; font-size: 11px; color: var(--faint); line-height: 1.5; }
.fs-group [hidden] { display: none; }

/* ワークフローの本文（画面案 FlowTop）：申請フォーム一覧・承認する・共有された・自分が出した申請 */
.wf-h { display: flex; align-items: center; gap: 12px; }
.wf-h-line { border-bottom: 1px solid var(--border-strong); padding-bottom: 12px; }
.wf-title, body.field-ui .wf-h .wf-title { margin: 0; font-size: 20px; font-weight: 500; line-height: normal; }
.wf-sub { font-size: 12px; color: var(--muted); }
.wf-apply { display: flex; flex-direction: column; max-width: 880px; width: 100%; margin: 0 auto; }
.wf-tabs2 { display: flex; margin-top: 16px; }
.wf-tab2 { padding: 8px 14px; border: 1px solid var(--border-strong); font-size: 13px; background: var(--surface); color: var(--text); text-decoration: none; }
.wf-tab2 + .wf-tab2 { border-left: 0; }
.wf-tab2.on { background: var(--hover-strong); font-weight: 500; }
.wf-filter { display: flex; gap: 8px; margin-top: 10px; background: var(--surface-2); border: 1px solid var(--hover-strong); padding: 10px; }
.wf-filter-input, body.field-ui input.wf-filter-input { flex: 1; min-width: 0; height: 36px; box-sizing: border-box; border: 1px solid var(--border-strong); border-radius: 4px; padding: 0 12px; font-size: 14px; background: var(--surface); }
.wf-list { margin-top: 10px; }
.wf-mrow { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 4px 12px; border-bottom: 1px solid var(--divider); font-size: 14px; box-sizing: border-box; color: var(--text); text-decoration: none; }
.wf-mrow[hidden] { display: none; }
.wf-folder { background: var(--surface-2); min-height: 34px; }
.wf-folder-name { font-weight: 500; color: var(--text-2); font-size: 13px; }
.wf-rowsub { font-size: 12px; color: var(--muted); }
.wf-name { color: var(--wf-link); font-weight: 500; text-decoration: none; }
.wf-name-plain { color: var(--text); font-weight: 400; }
.wf-name-off, .wf-soon .wf-name { color: var(--cell-none-ink); font-weight: 400; }
.wf-soon-tag { font-size: 12px; color: var(--cell-none-ink); }
.wf-star, body.field-ui .wf-star { cursor: pointer; font-size: 18px; width: 24px; min-height: 0; min-width: 0; padding: 0; text-align: center; color: var(--cell-none-ink); background: none; border: 0; line-height: 1; }
.wf-star.on { color: var(--wf-star); }
.wf-btn, body.field-ui .wf-btn { display: inline-flex; align-items: center; justify-content: center; height: 34px; min-height: 34px; padding: 0 14px; border-radius: 4px; background: var(--surface); color: var(--text); font-weight: 500; font-size: 13px; border: 1px solid var(--faint); white-space: nowrap; cursor: pointer; text-decoration: none; font-family: inherit; }
.wf-lk { color: var(--mk-brown); font-size: 13px; text-decoration: none; }
.wf-empty { padding: 14px 16px; }
.wf-views { display: flex; align-items: center; gap: 14px; font-size: 13px; }
body.field-ui .wf-views .wf-scope { color: var(--muted); text-decoration: none; padding: 2px; min-height: 0; height: auto; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; font-size: 13px; font-weight: 400; }
body.field-ui .wf-views .wf-scope.on { color: var(--text-2); font-weight: 500; border-bottom-color: var(--faint); background: none; }
#flow-waiting .wf-mrow, #shared-panel .wf-mrow, #flow-mine .wf-mrow { min-height: 48px; padding: 6px 16px; }
.wf-decided { font-size: 12px; }
.wf-state-text { font-size: 12px; color: var(--muted); }
.wf-unconfirmed { color: var(--danger); }
.wf-st { font-size: 12px; color: var(--text-2); border: 1px solid var(--border-strong); border-radius: 10px; padding: 2px 10px; }
.wf-mrow .inline-form { margin: 0; display: inline-flex; }

/* 左メニューの本文に書類のページを開くとき：承認ルートの枠は、紙の左に並べる（重ねない） */
.wf-shell .sheet-layout:has(.sheet-pp) { display: flex; justify-content: center; gap: 12px; align-items: flex-start; }
.wf-shell .sheet-layout:has(.sheet-pp) .stages { position: static; flex: none; }
.wf-shell .sheet.sheet-pp { margin: 0; flex: none; }
.sheet-actions .fs-flex { flex: 1; }
body.field-ui .wf-star.on { color: var(--wf-star); }
.wf-row-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wf-row-main b { font-weight: 400; }
.wf-lead { margin: 0; }
body.field-ui .wf-st, body.field-ui .wf-st[class*="wf-state-"] { background: none; color: var(--text-2); border: 1px solid var(--border-strong); border-radius: 10px; padding: 2px 10px; font-size: 12px; font-weight: 400; }
/* 左メニュー「よく使う申請」：行の右の塗りつぶした★（画面案 FlowTop。押すと外れる） */
.fs-fav { cursor: default; }
.fs-fav-name { flex: 0 1 auto; min-width: 0; color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-fav .fs-star, body.field-ui .fs-fav .fs-star { background: none; border: 0; padding: 0; min-height: 0; min-width: 0; margin-left: 8px; font-size: 16px; line-height: 1; color: var(--wf-star); cursor: pointer; }

/* 自分が出した申請の行（A-70）：行の本体は開くリンク、右に「複製して申請 ›」 */
.wf-mine-main { flex: 1; min-width: 0; align-self: stretch; display: flex; align-items: center; color: inherit; text-decoration: none; }
.wf-copy-link { font-size: 12px; white-space: nowrap; cursor: pointer; }
.wf-mine-actions { display: flex; gap: 10px; margin-top: 16px; }
.wf-mine-actions form { margin: 0; }
.wf-copy-band { padding: 9px 14px; margin-bottom: 16px; font-size: 13px; background: var(--wf-copy-band-bg); border-left: 4px solid var(--brand); }
