/* JETReuse 固有のスタイル。共通の見た目は jet-common.css（JET Office 試作の common.css をそのまま写したもの）。
   JET Office 側の common.css が変わったら jet-common.css を差し替える。ここには JETReuse だけの追加を書く。 */

/* ロゴ：JET Office と同じ形で「JET Reuse」 */
.app-header .brand { font-size: 17px; }
.app-header form { margin: 0; }
/* この画面の使い方（操作ガイドへ。2026-11-06） */
.app-header .guide-link { color: #5fd3cf; font-size: 12.5px; border: 1px solid #5fd3cf; border-radius: 999px; padding: 2px 10px; white-space: nowrap; text-decoration: none; }
.app-header .guide-link:hover { background: #5fd3cf; color: var(--navy); }
@media (max-width: 640px) { .app-header .page { display: none; } }
/* 品を開く（QR・管理番号。2026-11-07） */
.app-header .item-open input { width: 190px; padding: 4px 10px; font-size: 13px; border-radius: 999px; border: 1px solid var(--navy-2); background: #fff; color: var(--ink, #222); }
@media (max-width: 900px) { .app-header .item-open input { width: 150px; } .app-header .user .role { display: none; } }
@media (max-width: 640px) { .app-header { gap: 8px; padding: 0 10px; } .app-header .user { display: none; } .app-header .item-open { flex: 1; min-width: 0; margin-left: auto; } .app-header .item-open input { width: 100%; min-width: 80px; } .app-header .guide-link { font-size: 0; padding: 2px 8px; } .app-header .guide-link::before { content: "？"; font-size: 13px; } }
.app-header .logout { background: none; border: 1px solid var(--navy-2); color: var(--navy-sub); border-radius: 6px; padding: 2px 10px; font-size: 12px; }
.app-header .logout:hover { color: #fff; border-color: var(--navy-sub); }
.app-header .role { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 6px; background: var(--navy-2); color: #fff; margin-left: 6px; }

/* ログイン画面 */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 16px; }
.login-card { width: 100%; max-width: 360px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.login-card .head { background: var(--navy); color: #fff; padding: 18px 20px; font-weight: 700; font-size: 20px; letter-spacing: .04em; }
.login-card .head em { color: #5fd3cf; font-style: normal; }
.login-card .head small { display: block; color: var(--navy-sub); font-size: 12px; font-weight: 400; letter-spacing: 0; margin-top: 2px; }
.login-card form { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.login-card input[type=text], .login-card input[type=password] { width: 100%; font-size: 15px; padding: 9px 10px; }
.login-card .btn.primary { padding: 10px; font-size: 15px; }
/* パスワードの目のマーク・ログインしたままにする（2026-11-17） */
.login-card .pw-field { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 2px; }
.login-card .pw-wrap { position: relative; display: block; }
.login-card .pw-wrap input { padding-right: 44px; }
.login-card .pw-eye { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 40px; height: 36px; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; }
.login-card .pw-eye:hover, .login-card .pw-eye.on { color: var(--navy); }
.login-card .pw-eye:not(.on) .eye-off { display: none; }
.login-card .remember { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; cursor: pointer; }
.login-card .remember input { width: 18px; height: 18px; margin: 0; }
/* 入力欄の文字はどの種類でも同じ大きさ（共通CSSが当てていない種類を足す） */
input[type=password], input[type=tel], input[type=email], input[type=search], textarea { font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
input[type=file] { font: inherit; font-size: 13px; }
.err { color: var(--danger); font-size: 12px; }
.alert.ng { background: var(--danger-soft); color: var(--danger); }
/* 登録できた知らせ（2026-11-04 担当者お試し：小さいと気づかない） */
.alert.ok.done-msg { margin-bottom: 14px; padding: 12px 16px; font-size: 16px; font-weight: 700; border: 2px solid var(--ok); }

/* タブ（JET Office 試作 master.html と同じ形。こちらはリンクで切り替える） */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tabs a { padding: 8px 16px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--primary-press); border-bottom-color: var(--primary); font-weight: 700; }
/* ボタンの文字も入力欄と同じ大きさ（ブラウザの既定の字体・大きさを使わない） */
.btn, button { font-family: inherit; font-size: 13px; }
.btn.s { padding: 1px 8px; }   /* 小さいボタンも文字は13px（余白だけ小さく） */
a.btn { display: inline-block; }
.tbl tr.off td { color: #b0b8c3; }
.tbl td input[type=text], .tbl td input[type=number] { padding: 3px 6px; }
textarea { font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }

/* 画面の見方をそろえる（2026-10-29 ユーザー：その画面を見ただけで、見る場所・やる作業・順番が分かる） */
.back { display: inline-block; margin-bottom: 8px; font-size: 13px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--primary); }
.steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.steps a { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 16px; background: #fff; border: 1px solid var(--border); color: var(--muted); font-size: 12px; text-decoration: none; }
.steps a .n { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--border); color: #fff; font-size: 11px; font-weight: 700; }
.steps a.done { color: var(--ok); }
.steps a.done .n { background: var(--ok); }
.steps a.now { color: var(--text); border-color: var(--primary); background: var(--primary-soft); font-weight: 700; }
.steps a.now .n { background: var(--primary); }
.now-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 2px solid var(--primary); background: var(--primary-soft); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; }
.now-box .lbl { font-size: 11px; color: var(--primary-press); font-weight: 700; letter-spacing: .05em; }
.now-box .what { font-size: 15px; font-weight: 700; margin-top: 2px; }
.step-h { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 15px; }
.step-h .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--border); color: #fff; font-size: 13px; flex: none; }
.step-h.done .n { background: var(--ok); }
.step-h.now .n { background: var(--primary); }
.card.now { box-shadow: 0 0 0 2px var(--primary), var(--shadow); }
.card.later { background: #fafbfc; color: var(--muted); }
.dropzone { display: block; border: 2px dashed var(--primary); border-radius: var(--radius); background: var(--primary-soft); padding: 22px 16px; text-align: center; cursor: pointer; }
.dropzone.over { background: #c9ecec; }
.dropzone b { font-size: 15px; color: var(--primary-press); }
.dropzone input[type=file] { display: none; }
/* ファイルの欄を自動でドラッグの枠にしたもの（layouts.app の script） */
.dropzone.auto { padding: 10px 12px; min-width: 220px; margin-top: 4px; font-weight: 400; }
.dropzone.auto b { font-size: 14px; }
.dropzone.auto .fname { margin-top: 2px; color: var(--text); }
.drop-target.over { outline: 2px dashed var(--primary); outline-offset: 2px; background: var(--primary-soft); }
.docgrid td, .docgrid th { text-align: center; }
/* 段は畳める（いまの段だけ開く）。畳んだときも見出しと1行の要約は見える */
details.step { margin-bottom: 8px; }
details.step > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 6px 2px; }
details.step > summary::-webkit-details-marker { display: none; }
details.step > summary .step-h { margin: 0; }
details.step > summary::after { content: '開く ▾'; margin-left: auto; font-size: 12px; color: var(--muted); }
details.step[open] > summary::after { content: '閉じる ▴'; }
details.step[open] > summary { margin-bottom: 4px; }
.step-sum { font-size: 12px; }
/* ボタンはボタンと分かる見た目に（2026-10-29 ユーザー）：色の付いた枠・少し太い字・影・押せる形。主なボタン（primary）は塗りつぶし */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 34px; border: 1px solid var(--primary); background: #fff; color: var(--primary-press);
  font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: 0 1px 2px rgba(16, 24, 40, .12); white-space: nowrap; transition: background .1s; }
.btn:hover { background: var(--primary-soft); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.primary { box-shadow: 0 1px 3px rgba(15, 134, 134, .35); }
.btn.s { min-height: 26px; }
.btn:disabled, .btn[disabled] { border-color: var(--border); color: var(--muted); background: #f3f4f6; box-shadow: none; cursor: not-allowed; transform: none; }
.btn.primary:disabled, .btn.primary[disabled] { background: #cfd8dc; border-color: #cfd8dc; color: #fff; }
.btn.danger { border-color: var(--danger); color: var(--danger); }   /* 取り消せない・重い操作（品触れに当たる など） */

/* 入れたファイルを見る枠（画面の上で開く） */
.viewer-bg { position: fixed; inset: 0; background: rgba(16, 24, 40, .55); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 3vh 16px; }
.viewer-bg.hide { display: none; }
.viewer { background: #fff; border-radius: var(--radius); width: 100%; max-width: 1100px; height: 94vh; display: flex; flex-direction: column; box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.viewer .vh { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.viewer .vb { flex: 1; min-height: 0; overflow: auto; background: #eef1f4; display: flex; align-items: flex-start; justify-content: center; }
.viewer .vb img { max-width: 100%; height: auto; margin: 12px; background: #fff; box-shadow: var(--shadow); }
.viewer .vb iframe { width: 100%; height: 100%; border: 0; background: #fff; }
/* 入れる順の番号（状態のない見出し）と、必須の印（どの画面でも同じ形） */
.step-h.plain .n { background: var(--navy); }
.req::after { content: " 必須"; color: var(--danger); font-size: 11px; font-weight: 700; }

/* 「？」のヒント（partials/tip）。押すと吹き出しで説明が出る（2026-11-01） */
details.tip { display: inline-block; position: relative; vertical-align: middle; margin-left: 4px; }
details.tip > summary { list-style: none; cursor: pointer; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
details.tip > summary::-webkit-details-marker { display: none; }
details.tip[open] > summary { background: var(--primary); border-color: var(--primary); color: #fff; }
details.tip > div { position: absolute; z-index: 40; top: 24px; left: -10px; width: 340px; max-width: 80vw; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.14); padding: 8px 12px; font-size: 12px; line-height: 1.7; color: #333; font-weight: 400; white-space: normal; text-align: left; }

/* スマホの幅（800px まで）：左メニューを隠し、見出しの「☰ メニュー」で開く（2026-11-04） */
.menu-btn { display: none; background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; border-radius: 6px; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
@media (max-width: 800px) {
  .menu-btn { display: inline-block; }
  .app-header { gap: 10px; padding: 0 10px; }
  .app-header .page { display: none; }
  .app-header .user { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .app-header .logout { white-space: nowrap; }
  .layout { display: block; }
  .side { display: none; position: fixed; top: 52px; left: 0; bottom: 0; width: 240px; z-index: 950; overflow: auto; box-shadow: 4px 0 16px rgba(0,0,0,.2); }
  body.menu-open .side { display: block; }
  .main { padding: 14px 12px 40px; }
}

/* ホームのやること（2026-11-06：件数のあるものだけ・まとまりごと・件数を大きく左に） */
.todo .todo-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.todo .todo-g { font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 12px 0 4px; }
.todo .todo-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; color: inherit; text-decoration: none; border-left: 4px solid var(--warn); background: var(--warn-soft); margin-bottom: 6px; }
.todo .todo-row.ng { border-left-color: var(--danger); background: var(--danger-soft); }
.todo .todo-row:hover { filter: brightness(.97); }
.todo .todo-n { min-width: 3.2em; font-size: 22px; font-weight: 800; line-height: 1; color: var(--warn); text-align: right; }
.todo .todo-row.ng .todo-n { color: var(--danger); }
.todo .todo-n small { font-size: 12px; font-weight: 700; margin-left: 1px; }
.todo .todo-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.todo .todo-l { font-weight: 700; }
.todo .todo-s { font-size: 12.5px; color: var(--muted); }
.todo .todo-go { color: var(--muted); font-size: 20px; }
.todo .todo-empty { padding: 10px 0; color: var(--ok); font-weight: 700; }
.todo .todo-none { margin-top: 10px; }
.todo .todo-none summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.todo .todo-row.none { background: none; border-left-color: var(--border); padding: 4px 10px; margin: 2px 0; font-size: 13px; justify-content: space-between; }
.todo .todo-row.none .todo-l { font-weight: 400; }

/* EZB の出品リストを作るときの QR の読み取り（2026-11-07） */
.ezb-scan { margin: 8px 0 12px; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 8px; }
.ezb-scan-msg { min-height: 1.4em; margin-top: 4px; font-size: 13.5px; font-weight: 700; }
.ezb-scan-msg.ok { color: var(--ok); }
.ezb-scan-msg.ng { color: var(--danger); }
@keyframes scanHit { from { background: var(--warn-soft); } to { background: transparent; } }
tr.scan-hit td { animation: scanHit 1.6s ease-out; }

/* 操作ガイドの検索（2026-11-15）：候補の一覧（ガイドの画面・小窓で共通）と、どの画面からも開く小窓 */
.gs-list { list-style: none; margin: 0; padding: 0; }
.gs-list .gs-opt { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-height: 48px; padding: 6px 14px; border-bottom: 1px solid var(--border); background: #fff; cursor: pointer; }
.gs-list .gs-opt:last-child { border-bottom: 0; }
.gs-list .gs-opt.on, .gs-list .gs-opt:hover { background: var(--primary-soft); }
.gs-list .gs-q { font-weight: 700; font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gs-list .gs-s { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-list .gs-tag { display: inline-block; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--primary); border-radius: 6px; padding: 1px 8px; margin-right: 8px; vertical-align: .1em; }
.gs-list mark { background: #fff3c4; color: inherit; padding: 0; }
.gs-list .gs-none { padding: 14px; color: var(--muted); }
dialog.guide-pop { width: min(640px, 96vw); max-width: 96vw; max-height: 90vh; margin: 4vh auto auto; border: 0; border-radius: 12px; padding: 0; box-shadow: 0 10px 40px rgba(16, 24, 40, .3); }
dialog.guide-pop[open] { display: flex; flex-direction: column; }
dialog.guide-pop::backdrop { background: rgba(16, 24, 40, .45); }
.guide-pop .gp-head { display: flex; gap: 8px; align-items: center; padding: 12px; border-bottom: 1px solid var(--border); }
.guide-pop .gp-head input { flex: 1; min-width: 0; font-size: 16px; min-height: 44px; padding: 8px 12px; }
.guide-pop .gp-head .btn, .guide-pop .gp-foot .btn { min-height: 44px; padding: 0 16px; }
.guide-pop .gs-list { flex: 1; overflow: auto; }
.guide-pop .gp-foot { display: flex; justify-content: flex-end; padding: 10px 12px; border-top: 1px solid var(--border); }
/* スマホ：上のバーの「？」（小窓の入口）を押しやすい大きさに */
@media (max-width: 640px) { .app-header .guide-link { min-width: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; } }
