/* style.css（併売管理の写し）に無いものだけ。色は style.css の変数と「意味の色」（rules_画面の見た目.md）を使う。 */

/* ---- 上の帯: 今いる所・数の印・今の動かし方 ---- */
.topbar { padding:10px 24px; gap:14px; }
.topbar .logo { font-size:17px; }
.topbar nav { gap:6px; }
.topbar nav a.top { padding:6px 12px; }
.topbar nav .menu.active-group .menu-trig, .topbar nav a.top.active { background:#fff; color:var(--brand-dark); }
.nb { display:inline-block; min-width:18px; padding:0 5px; margin-left:4px; border-radius:9px; background:#fff; color:var(--brand-dark);
      font-size:11px; font-weight:700; line-height:18px; text-align:center; }
.topbar nav .active .nb, .topbar nav .active-group .nb, .topbar nav .menu:hover .nb, .topbar nav a.top:hover .nb { background:var(--brand); color:#fff; }
.topbar .right { margin-left:auto; display:flex; align-items:center; gap:10px; }
.topbar .mode { background:#fbf0df; color:#95591a; border-radius:10px; padding:2px 10px; font-weight:700; font-size:11.5px; cursor:help; }

/* ---- 画面の頭: 名前・ここで何をするか・主ボタン ---- */
.pagehead { display:flex; gap:10px 16px; align-items:center; flex-wrap:wrap; padding:10px 24px; background:#fff;
            border-bottom:1px solid var(--brand-border); }
.pagehead h1 { margin:0; font-size:16px; display:inline; }
.ph-main { display:flex; gap:6px 12px; align-items:baseline; flex-wrap:wrap; flex:1 1 380px; min-width:0; }
.ph-what { color:#4c565d; font-size:12.5px; }
.ph-act { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.ph-act form { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin:0; }
.helpbtn { background:transparent; color:var(--brand-dark); border:1px solid var(--brand-border); border-radius:12px; padding:1px 10px;
           font-size:11.5px; font-weight:500; }
.helpbtn:hover, .helpbtn[aria-expanded=true] { background:var(--brand-soft); color:var(--brand-dark); }
.pagehelp { padding:10px 24px 12px; background:var(--brand-faint); border-bottom:1px solid var(--brand-border); }
.pagehelp table.grid { max-width:1000px; }
.pagehelp p { margin:8px 0 0; max-width:1000px; }

/* ---- 絞り込みの帯（札・検索） ---- */
.bar { display:flex; gap:8px 12px; align-items:center; flex-wrap:wrap; padding:10px 24px 0; }
.bar form { display:flex; gap:6px; align-items:center; flex-wrap:wrap; margin:0; }
.grow { flex:1 1 auto; }
.chips { display:flex; gap:6px; flex-wrap:wrap; margin:0; align-items:center; }
.chips a { padding:3px 10px; border:1px solid var(--brand-border); border-radius:12px; background:#fff; text-decoration:none;
           color:var(--brand-ink); font-size:12px; white-space:nowrap; }
.chips a b { font-weight:700; font-variant-numeric:tabular-nums; }
.chips a.zero { color:#9099a4; }
.chips a.on { background:var(--brand-soft); border-color:var(--brand); color:var(--brand-dark); font-weight:600; }
.chips a:hover { border-color:var(--brand); }
.chips .sep { color:#c2c9ce; }
.dot { display:inline-block; width:7px; height:7px; border-radius:50%; margin-right:5px; vertical-align:1px; }
.dot.bad { background:#a92620; } .dot.warn { background:#c98a2e; } .dot.ok { background:#166f4a; } .dot.off { background:#9099a4; }
select, .filters select, input[type=number] { min-width:0; }
input[type=search] { padding:6px 10px; border:1px solid #bbb; border-radius:4px; background:#fff; font-family:inherit; font-size:13px; min-width:240px; }
.wrap { padding:10px 24px 24px; }

/* ---- 表: 詰める・頭を貼り付ける ---- */
table.grid th, table.grid td { padding:6px 9px; line-height:1.45; }
table.grid td.c, table.grid th.c { text-align:center; }
table.grid td.nw, table.grid th.nw { white-space:nowrap; }
table.grid td.num { font-family:"Consolas","Courier New",monospace; font-size:12px; }
table.list thead th { position:sticky; top:var(--stick, 0px); z-index:5; box-shadow:0 1px 0 var(--brand-border); }
.sub { color:#6a737d; font-size:11.5px; }
.title { min-width:280px; max-width:520px; }
.scroll-x { overflow-x:auto; }
@media (min-width: 1100px) { .scroll-x.wide { overflow-x:visible; } }

/* ---- 写真つきの行（併売管理の table.orders の写しを詰めた物）---- */
td.img { width:66px; padding:4px 6px !important; text-align:center; }
.th { width:56px; height:56px; object-fit:contain; background:#fff; border:1px solid #e3e7ea; border-radius:3px; display:block; }
.th.sm { width:44px; height:44px; }
.th { position:relative; transition:transform .12s; transform-origin:left center; cursor:zoom-in; }
.th:hover { transform:scale(2.8); z-index:40; box-shadow:0 2px 10px rgba(0,0,0,.25); }
.noimg { width:56px; height:56px; display:flex; align-items:center; justify-content:center; color:#9099a4; font-size:10px; background:#f4f6f8;
         border:1px solid #e3e7ea; border-radius:3px; }
.noimg.sm { width:44px; height:44px; }
.row-actions { margin-top:3px; }
.row-actions a { font-size:11px; }
.copy-btn { margin-left:3px; cursor:pointer; }
.picrow { display:flex; gap:10px; align-items:center; margin:0 0 8px; }
.mkt { margin-top:3px; line-height:1.45; }
.sold { font-size:15px; }

/* ---- 注文・売上（併売管理 fba.css の「注文・売上」の写し。色はこの道具の朱赤）---- */
.fp-cancel td { opacity:.55; }
.fp-cancel .fp-title { text-decoration:line-through; }
.fp-pos { color:#166f4a; font-weight:700; }
.fp-neg { color:#a92620; font-weight:700; }
.fp-basis { margin:0 0 10px; }
.month-nav { gap:6px; }
.sd-views { display:flex; gap:6px; }
.mbtn { display:inline-block; padding:5px 12px; border:1px solid #cfd8dc; border-radius:6px; background:#fff; color:#37474f; text-decoration:none;
        font-size:13px; font-weight:600; cursor:pointer; }
.mbtn:hover { background:var(--brand-soft); border-color:var(--brand); color:var(--brand-dark); }
.mbtn.active { background:var(--brand); color:var(--brand-text); border-color:var(--brand); }
.mbtn.now { color:#1565c0; border-color:#bcd4f0; }
.mbtn.now.active { color:var(--brand-text); border-color:var(--brand); }
.mbtn.disabled { color:#bbb; border-color:#eee; cursor:default; pointer-events:none; }
.mselect { padding:5px 10px; border:1px solid var(--brand); border-radius:6px; font-size:14px; font-weight:700; color:var(--brand-dark); background:#fff;
           min-width:130px; cursor:pointer; }
.sd-today { margin:0 0 10px; padding:10px 16px; }
/* 本日のバー（au PAY の道具 style.css の .today-card の写し。字は 13px より小さくしない＝rules_画面の見た目）2026-12-01 */
.today-card { background:#fff; color:var(--brand-ink); border:1px solid var(--brand-border); border-top:2px solid var(--brand); border-radius:8px; padding:12px 20px; }
.today-label { font-size:13px; font-weight:700; margin-bottom:6px; }
.today-label .sub { font-weight:400; margin-left:10px; }
.today-stats { display:flex; gap:12px 32px; flex-wrap:wrap; }
.today-stats > div { display:flex; flex-direction:column; }
.today-stats .k { font-size:13px; color:#4c565d; }
.today-stats .v { font-size:18px; font-weight:700; color:var(--brand-ink); font-variant-numeric:tabular-nums; }
.today-card details.roundsd { margin-top:8px; padding-top:6px; border-top:1px solid var(--brand-border); }
.upd.old { color:#95591a; }   /* 商品一覧の「更新 ◯日前」: 3日より前は注意の色（rules_画面の見た目の意味の色） */
.sd-chart > h3 { margin:2px 0 6px; font-size:14px; font-weight:700; color:var(--brand-ink); }
.sd-summary { width:100%; background:#fff; border-collapse:collapse; margin:0 0 6px; box-shadow:0 1px 2px rgba(0,0,0,.04); }
.sd-summary th, .sd-summary td { padding:8px 14px; border:1px solid var(--brand-border); text-align:center; white-space:nowrap; }
.sd-summary th { background:var(--brand-table); font-weight:600; color:#4c565d; font-size:12.5px; }
.sd-summary td { font-size:15px; font-weight:600; color:#222; font-variant-numeric:tabular-nums; }
.sd-summary td.lbl { font-size:12.5px; color:#4c565d; }
.sd-summary small { font-size:12px; font-weight:400; }
.sd-chart { padding:8px 18px 10px; background:#fff; margin:0 0 12px; border:1px solid var(--brand-border); border-radius:4px; box-shadow:0 1px 2px rgba(0,0,0,.04); }
.sd-chart > summary { font-size:14px; font-weight:700; color:var(--brand-ink); }
.sd-chart[open] > summary { margin-bottom:6px; }
.sd-legend { display:flex; gap:16px; font-size:12px; color:#4c565d; margin-bottom:4px; }
.sd-legend i { display:inline-block; width:12px; height:10px; margin-right:4px; vertical-align:-1px; }
.sd-legend i.u { background:#e74c3c; }
.sd-legend i.s { height:2px; vertical-align:3px; background:#444; }
.sd-svg { display:block; width:100%; height:auto; max-height:300px; }
.sd-svg .gl { stroke:#e6ebef; stroke-width:1; }
.sd-svg .ax { font-size:11px; fill:#657586; }
.sd-svg .ax.we { fill:#a92620; }
.sd-svg rect.u { fill:#e74c3c; }
.sd-svg polyline.s { fill:none; stroke:#444; stroke-width:1.6; }
.sd-svg circle.s { fill:#fff; stroke:#444; stroke-width:1.4; }
.day-card { background:#fff; border:1px solid var(--brand-border); border-radius:8px; margin:0 0 10px; overflow:hidden; }
.day-head { display:flex; flex-wrap:wrap; align-items:center; gap:4px 18px; background:var(--brand-table); padding:8px 16px; cursor:pointer; }
.day-card[open] .day-head { border-bottom:1px solid var(--brand-border); }
.day-head .date { font-size:15px; font-weight:700; color:var(--brand-dark); min-width:150px; }
.day-head .wd { font-size:12.5px; color:#888; margin-left:4px; }
.day-head .wd.we { color:#a92620; }
.day-head .metric { font-size:13px; color:#444; }
.day-head .metric b { font-size:15px; }
.day-bar { flex-basis:100%; height:6px; background:#e7edec; border-radius:4px; overflow:hidden; }
.day-bar i { display:block; height:100%; background:#4db6ac; border-radius:4px; }
table.daily-items { width:100%; border-collapse:collapse; }
table.daily-items th, table.daily-items td { padding:5px 12px; border-bottom:1px solid #f0f0f0; font-size:12.5px; text-align:left; white-space:nowrap;
                                              font-variant-numeric:tabular-nums; }
table.daily-items th { background:#fafbfc; color:#666; font-weight:600; }
table.daily-items td.name { white-space:normal; width:100%; }

/* ---- ボタン: 画面の主ボタンは1つ。行の中は小さく灰色 ---- */
button.sm, .btn.sm { padding:2px 9px; font-size:11.5px; font-weight:500; }
button.sub.sm:hover { background:var(--brand-soft); }
button[disabled], button.sub[disabled] { background:#e3e7ea; color:#8b949c; border-color:#e3e7ea; cursor:not-allowed; }
.runmsg { color:#4c565d; font-size:12px; }
.runmsg.busy { color:#95591a; font-weight:600; }
.runmsg.err { color:#a92620; font-weight:600; }

/* ---- ホーム: 今日の作業の4段 ---- */
.steps { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:10px; }  /* 4段（下見の間）でも5段（買い付けを始めた後）でも1行 */
.step { position:relative; border:1px solid var(--brand-border); border-left:4px solid #9099a4; border-radius:6px; padding:10px 12px;
        background:#fff; color:var(--brand-ink); text-decoration:none; display:block; }
.step:hover { background:var(--brand-faint); border-color:var(--brand); border-left-color:inherit; }
.step.bad { border-left-color:#a92620; } .step.warn { border-left-color:#c98a2e; } .step.ok { border-left-color:#166f4a; }
.step .nm { font-weight:700; font-size:13.5px; display:block; }
.step .big { font-size:26px; font-weight:700; line-height:1.25; font-variant-numeric:tabular-nums; }
.step .big small { font-size:12px; font-weight:500; color:#4c565d; margin-left:4px; }
.step .sub { display:block; min-height:2.9em; }
.step .go { color:var(--brand-dark); font-size:12px; font-weight:600; }
.step.bad .big { color:#a92620; } .step.ok .big { color:#6a737d; }
.rounds { margin-top:10px; padding-top:8px; border-top:1px solid #edf0f2; display:flex; flex-direction:column; gap:4px; }
.rounds .grp { font-size:11.5px; color:#6a737d; }
.round { display:flex; gap:4px 14px; flex-wrap:wrap; align-items:baseline; padding:4px 10px; border-left:3px solid #9099a4; background:var(--brand-faint); border-radius:0 4px 4px 0; }
.round.ok { border-left-color:#166f4a; } .round.bad { border-left-color:#a92620; } .round.warn { border-left-color:#c98a2e; }
.roundset { margin-top:4px; font-size:12.5px; }
.roundset .row { display:flex; gap:8px 14px; flex-wrap:wrap; align-items:center; }
.stat { display:flex; gap:6px 22px; flex-wrap:wrap; align-items:baseline; }
.stat .grp { font-size:11.5px; color:#6a737d; width:74px; }
.stat > div { display:flex; flex-direction:column; }
.stat > div.accs { flex-direction:row; flex:1 1 0; align-items:stretch; }
.stat .k { font-size:11px; color:#6a737d; }
.stat .v { font-size:16px; font-weight:700; font-variant-numeric:tabular-nums; }
.stat + .stat { margin-top:8px; padding-top:8px; border-top:1px solid #edf0f2; }
ul.todo { list-style:none; margin:0; padding:0; }
ul.todo li { display:flex; gap:10px; align-items:baseline; padding:6px 0; border-top:1px solid #edf0f2; }
ul.todo li:first-child { border-top:0; }
ul.todo li .t { flex:1; }

/* ---- 発注: アカウントの枠 ---- */
.accs { display:flex; gap:8px; flex-wrap:wrap; }
.acc { border:1px solid var(--brand-border); border-radius:6px; padding:6px 10px; background:#fff; min-width:132px; text-decoration:none;
       color:var(--brand-ink); display:block; }
a.acc:hover, .acc.on { border-color:var(--brand); background:var(--brand-soft); }
.acc b { display:block; font-size:12.5px; }
.acc .n { font-size:15px; font-weight:700; font-variant-numeric:tabular-nums; }
.acc .meter { display:block; height:4px; background:#e9edf0; border-radius:2px; margin-top:4px; overflow:hidden; }
.acc .meter i { display:block; height:100%; background:#c98a2e; }
.acc.full .meter i { background:#a92620; } .acc.unused { opacity:.6; }

/* ---- 買う人の机: 1注文＝1カード ---- */
.ordercard .ohead { display:flex; gap:4px 10px; align-items:baseline; flex-wrap:wrap; margin-bottom:6px; }
.ordercard .ohead .num { font-family:"Consolas","Courier New",monospace; }
.buyform { display:flex; gap:6px; align-items:center; flex-wrap:wrap; margin:0; }
.ordercard td .buyform { min-width:400px; }  /* 買えたの欄を2行に収める（狭いと1欄ずつ縦に並んで長くなる） */
.addr { margin:0 0 8px; max-width:640px; }
.addr table.grid td:last-child { font-size:14px; }

/* ---- 問い合わせ1件: 左で読む・右で返す ---- */
.cols { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.1fr); gap:14px; align-items:start; }
.cols > div > .card:last-child { margin-bottom:0; }
.msg { padding:8px 12px; border-radius:6px; margin:0 0 8px; border:1px solid; white-space:pre-wrap; font-size:13px; line-height:1.6; }
.msg.cust { background:#fbf0df; border-color:#e0bd85; margin-right:36px; }
.msg.shop { background:#e4f2ea; border-color:#9ecfb6; margin-left:36px; }
.msg .who { display:block; font-size:11.5px; font-weight:700; margin-bottom:2px; color:#4c565d; white-space:normal; }
.msg .who span { font-weight:400; color:#6a737d; margin-left:6px; }
textarea.draft { width:100%; font-family:inherit; font-size:14px; line-height:1.65; padding:10px; border:1px solid #bbb; border-radius:4px; }
.navrow { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
details > summary { cursor:pointer; }
details.fold { border-top:1px solid #edf0f2; padding:6px 0; }
details.fold:first-of-type { border-top:0; }

/* ---- 選ぶ・まとめて実行する帯（一覧の下に貼り付く。押す物は中身と同じ入れ物に） ---- */
.sticky-bar { position:sticky; bottom:0; background:#fff; border:1px solid var(--brand-border); border-radius:6px 6px 0 0; padding:8px 12px;
              box-shadow:0 -2px 6px rgba(0,0,0,.06); display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:8px; z-index:20; }
.sticky-bar .seln { font-weight:700; min-width:150px; }
.sticky-bar .gap { width:1px; align-self:stretch; background:var(--brand-border); margin:0 4px; }

/* ---- 前からある部品 ---- */
.tabs { display:flex; gap:2px; border-bottom:2px solid var(--brand); margin-bottom:12px; flex-wrap:wrap; }
.tabs a { padding:6px 12px; background:#f4f5f7; border:1px solid var(--brand-border); border-bottom:0;
          border-radius:5px 5px 0 0; color:var(--brand-ink); text-decoration:none; font-size:12.5px; }
.tabs a.on { background:var(--brand); color:#fff; border-color:var(--brand); }
textarea.list { width:100%; height:300px; font-family:Consolas,"Courier New",monospace; font-size:12px; padding:8px;
                border:1px solid #bbb; border-radius:4px; }
.f { display:grid; grid-template-columns:210px 1fr; gap:6px 12px; align-items:center; }
.f > label { font-weight:600; }
.f input[type=number] { width:110px; }
.f input[type=text] { min-width:0; width:260px; }
.ph { width:56px; height:56px; background:#eef1f3; border:1px solid #e3eae8; display:flex; align-items:center;
      justify-content:center; color:#9099a4; font-size:10px; text-align:center; }
.hit { background:#fdecea; color:#a92620; padding:0 2px; border-radius:2px; }
.pager { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin:0; font-size:12px; }
.pager .dis { color:#b6bdc3; }
.drop { border:2px dashed #c8d2d0; border-radius:6px; padding:18px; background:var(--brand-faint); }
.card { padding:12px 16px; margin-bottom:12px; }
.card h2 { margin:0 0 8px; font-size:14px; }
.note { padding:8px 12px; margin-bottom:10px; }
.empty { padding:22px 12px; text-align:center; color:#6a737d; }
@media (max-width: 900px) {
  .steps { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .cols { grid-template-columns:1fr; }
}
@media (max-width: 640px) {
  .f { grid-template-columns:1fr; }
  .steps { grid-template-columns:1fr; }
  .wrap, .bar, .pagehead, .pagehelp { padding-left:12px; padding-right:12px; }
}

/* ===================================================================================================
   v0.13.0〜 画面の作り直し（docs/設計_画面の配置.md）。上の帯はどの画面にも効く。
   字と色の土台は body.v2 の画面だけに効く（作り直した画面から順に v2 を付ける・3-3「変える決まり」）。
   色は今の朱赤のまま。朱赤＝上の帯・主ボタン・今いる所だけ。意味の色＝札・段の線・帯だけ。表の中のリンクは青。
   =================================================================================================== */
body { font-family:"Meiryo","Yu Gothic UI",system-ui,sans-serif; }
.trybar { background:#fbf0df; color:#95591a; border-bottom:2px solid #e0bd85; padding:6px 24px; font-size:14px; font-weight:700;
          text-align:center; letter-spacing:.5px; }
.topbar { padding:8px 24px; gap:12px; }
.topbar .logo { font-size:18px; }
.topbar nav { gap:4px; }
.topbar nav a.top, .topbar nav .menu .menu-trig { font-size:15px; padding:6px 12px; }
.topbar nav .menu .dropdown a { font-size:15px; }
.topbar .navsep { width:1px; align-self:stretch; background:rgba(255,255,255,.45); margin:2px 8px; }
.nb { font-size:13px; min-width:20px; line-height:20px; }
.topbar .right { font-size:14px; gap:8px; }
.topbar .right .mode { background:#fbf0df; color:#95591a; border-radius:10px; padding:2px 10px; font-weight:700; font-size:13px;
                       text-decoration:none; cursor:pointer; }
.topbar .right .mode:hover { background:#fff; }
.topbar .runstate { white-space:nowrap; }
.topbar .runstate.busy { background:rgba(0,0,0,.12); border-radius:10px; padding:2px 10px; }
.topbar .runstate.bad { background:#fdecea; color:#a92620; border:1px solid #e8a7a2; border-radius:10px; padding:1px 10px; font-weight:700; font-size:13px; }

/* ---- 字と色の土台（body.v2）: 本文と表 15px・補足 13px・画面の名前 18px・枠の見出し 16px・メイリオ先頭・薄い灰の字を使わない ---- */
body.v2 { font-size:15px; color:#242d32; line-height:1.55; }
body.v2 .pagehead h1 { font-size:18px; }
body.v2 .ph-what { font-size:13px; color:#3d444d; }
body.v2 .card h2 { font-size:16px; }
body.v2 .card h3 { font-size:15px; }
body.v2 .muted, body.v2 .sub, body.v2 .weakest { color:#3d444d; font-size:13px; }
body.v2 table.grid th, body.v2 table.grid td { font-size:15px; }
body.v2 table.grid th { color:#4c565d; }
body.v2 table.grid td.num, body.v2 .num { font-family:inherit; font-variant-numeric:tabular-nums; font-size:inherit; }
body.v2 table.grid td a, body.v2 .rowlink { color:#1565c0; }
body.v2 .tag { font-size:13px; }
body.v2 .chips a { font-size:14px; padding:3px 11px; }
body.v2 .chips a.zero { color:#4c565d; }
body.v2 .chips .sep { color:#9aa5ad; }
body.v2 .pager { font-size:14px; }
body.v2 .pager .dis { color:#7d8790; }
body.v2 .runmsg { font-size:13px; color:#3d444d; }
body.v2 .helpbtn { font-size:13px; }
body.v2 button, body.v2 .btn { font-size:14px; }
body.v2 button.sm, body.v2 .btn.sm { font-size:13px; padding:3px 10px; }
body.v2 input[type=text], body.v2 input[type=search], body.v2 input[type=number], body.v2 input[type=date], body.v2 select { font-size:15px; }
body.v2 .note { font-size:14px; }
body.v2 .row-actions a, body.v2 .row-actions button, body.v2 .row-actions span { font-size:13px; color:#3d444d; }
body.v2 .noimg { color:#4c565d; font-size:12px; }
body.v2 .msg { font-size:15px; }
body.v2 .msg .who { font-size:13px; }
body.v2 .msg .who span { color:#3d444d; }
body.v2 .empty { color:#3d444d; }
body.v2 .tabs a { font-size:15px; padding:7px 14px; }
body.v2 .stat .k, body.v2 .stat .grp { font-size:13px; color:#3d444d; }
body.v2 .stat .v { font-size:18px; }
body.v2 .copy-btn { font-size:12px; height:20px; }
body.v2 .step .nm { font-size:15px; }
body.v2 .step .big { font-size:28px; }
body.v2 .step .big small { font-size:13px; color:#3d444d; }
body.v2 .step .go { font-size:13px; }
body.v2 .step.ok .big { color:#3d444d; }
body.v2 details > summary { font-size:15px; }
body.v2 .sd-summary th, body.v2 .sd-summary td.lbl { font-size:14px; }
body.v2 table.daily-items th, body.v2 table.daily-items td { font-size:14px; }
body.v2 .acc b { font-size:14px; }

/* ---- 設定の枠: 左に項目・右に中身 ---- */
.setframe { display:grid; grid-template-columns:230px minmax(0, 1fr); align-items:start; min-height:calc(100vh - 60px); }
.setnav { background:#fff; border-right:1px solid var(--brand-border); padding:10px 0 16px; position:sticky; top:0; }
.setnav .setgrp { font-size:13px; font-weight:700; color:#3d444d; padding:12px 16px 4px; }
.setnav a { display:block; padding:7px 16px 7px 20px; color:var(--brand-ink); text-decoration:none; font-size:15px; border-left:3px solid transparent; }
.setnav a:hover { background:var(--brand-faint); }
.setnav a.on { background:var(--brand-soft); border-left-color:var(--brand); color:var(--brand-dark); font-weight:700; }
.setnav .tag { margin-left:4px; }
.setnav .setver { padding:16px 16px 0; font-size:13px; color:#3d444d; border-top:1px solid #edf0f2; margin-top:12px; }
.setmain { min-width:0; }
.setmain .pagehead { border-left:0; }
body.v2 .f { grid-template-columns:230px 1fr; }
@media (max-width: 760px) { .setframe { grid-template-columns:1fr; } .setnav { position:static; border-right:0; border-bottom:1px solid var(--brand-border); } }

/* ---- 買う: 1注文＝1枚（商品 → 個数・上限・Amazon の今 → 押す物）。表の見出しを枠ごとに繰り返さない ---- */
.bcard { padding:12px 16px; }
.bcard .ohead { margin-bottom:4px; }
.bitem { display:grid; grid-template-columns:64px minmax(220px, 1.3fr) minmax(300px, 1.5fr); gap:6px 14px; align-items:start;
         border-top:1px solid #edf0f2; padding:10px 0 6px; }
.bitem .bpic { grid-row:span 2; }
.bitem .bname { line-height:1.5; }
.bfacts { display:flex; flex-wrap:wrap; gap:4px 22px; margin:0; }
.bfacts dt { font-size:13px; color:#3d444d; }
.bfacts dd { margin:0; font-variant-numeric:tabular-nums; }
.bitem .bact { grid-column:2 / -1; }
.accmore { align-self:center; }
.accmore > summary { list-style:none; padding:6px 10px; border:1px dashed var(--brand-border); border-radius:6px; }
.shiptable tr.subrow td { border-top:0; padding-top:0; background:#fcfcfd; }
@media (max-width: 900px) { .bitem { grid-template-columns:64px 1fr; } .bitem .bfacts { grid-column:2; } }
body.v2 .noimg { font-size:13px; }
body.v2 .copy-btn { font-size:13px; }
.setframe { grid-template-columns:250px minmax(0, 1fr); }
.setnav a { display:flex; align-items:center; gap:4px; flex-wrap:nowrap; white-space:nowrap; }

/* ---- 今日: 5段・今やる段の行き先だけ朱色 ---- */
body.v2 .steps { grid-template-columns:repeat(5, minmax(0, 1fr)); }
.step .go.gonow { display:inline-block; background:var(--brand); color:#fff; padding:4px 12px; border-radius:4px; font-weight:700; margin-top:4px; }
.step:hover .go.gonow { background:var(--brand-hover); }
.salesline { display:flex; gap:6px 24px; align-items:baseline; flex-wrap:wrap; }
.salesline h2 { margin:0 !important; }
.salesline .sl b { margin-right:6px; }
@media (max-width: 1100px) { body.v2 .steps { grid-template-columns:repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { body.v2 .steps { grid-template-columns:1fr; } }
details.morechips { padding:6px 24px 0; }
details.morechips > summary { font-size:13px; }
details.morechips .bar { padding-left:0; padding-right:0; }
.wrap > details.morechips { padding:0 0 6px; }
details.prep { margin-bottom:0; }
body.v2 .noimg { text-align:center; line-height:1.25; padding:2px; }

/* ---- 問い合わせ: 左＝一覧・右＝1件（手本 = お客さま対応の画面 mail_reply の .mr-list / .mr-detail.split）---- */
.inqsearch { display:flex; gap:6px; align-items:center; flex-wrap:wrap; margin:0 0 4px; }
.inqsearch input[type=search] { min-width:0; flex:1 1 160px; }
a.inqrow { display:block; padding:8px 10px; border:1px solid transparent; border-bottom-color:#edf0f2; color:var(--brand-ink); text-decoration:none; line-height:1.5; }
a.inqrow:hover { background:var(--brand-faint); }
a.inqrow.on { background:var(--brand-soft); border-color:var(--brand); border-radius:4px; }
a.inqrow .ih { display:block; margin:2px 0; }

/* ---- 上の帯 v0.14.0: SellerDeck・au PAY と同じ作り（★で留めた画面／流れの順のまとめメニュー／文字 小中大） ---- */
.topbar .pins { gap:4px; }
.topbar .pins .pin-link { font-size:15px; padding:6px 12px; background:rgba(255,255,255,.22); font-weight:700; }
.topbar .pins:not(:empty) { padding-right:10px; margin-right:2px; border-right:1px solid rgba(255,255,255,.45); }
.topbar .pins .pin-link.active .nb, .topbar .pins .pin-link:hover .nb { background:var(--brand); color:#fff; }
.topbar nav .menu .dropdown .dd-row a { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.topbar nav .menu .dropdown .nb, .topbar nav .menu:hover .dropdown .nb { background:var(--brand); color:#fff; margin-left:0; }
.topbar nav .menu .dropdown .pin-star { font-size:18px; padding:0 10px; }
.topbar nav .menu .dropdown .pin-star.on { color:#b8860b; }
.topbar .fontscale { margin-left:0; }
.topbar .fontscale .fs-label { font-size:13px; }
.topbar { flex-wrap:nowrap; }
.topbar nav { flex-wrap:nowrap; }
.topbar .pins { flex-wrap:nowrap; }
.topbar nav .menu .menu-trig, .topbar .pins .pin-link { white-space:nowrap; padding:6px 10px; }
.topbar .right:empty { display:none; }
.topbar .fontscale { margin-left:auto; }
.topbar .right + .fontscale { margin-left:0; }
.topbar .right:empty + .fontscale { margin-left:auto; }
@media (max-width: 1280px) { .topbar { flex-wrap:wrap; } }
.topbar nav .menu .dropdown.right { align-items:stretch; margin-left:0; gap:4px; font-size:inherit; text-align:left; }  /* 右端の「.right」（状態の札）の決まりが、右寄せのメニューにも当たるのを戻す */

/* ---- v0.15.0: 上の帯のアイコン（_icons.html・au PAY の道具と同じ線）・注文の画面の頭（仕事の5段・今日の回）・商品のタブ ---- */
.topbar .ui-icon { width:16px; height:16px; vertical-align:-3px; margin-right:5px; }
.topbar nav .menu .dropdown .dd-row a .lb { display:inline-flex; align-items:center; white-space:nowrap; }
.topbar nav .menu .dropdown .dd-row a .lb .ui-icon { margin-right:8px; }
.topbar .pins .pin-link .ui-icon { margin-right:4px; }
.wrap.work { padding-bottom:0; }
.steps.flow .step { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:2px 10px; align-items:baseline; align-content:start; padding:8px 12px; }
.steps.flow .step .nm { grid-column:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.steps.flow .step .nm .ui-icon { width:17px; height:17px; vertical-align:-3px; margin-right:6px; }
body.v2 .steps.flow .step .big { grid-column:2; justify-self:end; white-space:nowrap; font-size:24px; line-height:1.15; }
.steps.flow .step .sub { grid-column:1; min-height:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.steps.flow .step .sub b { color:#242d32; margin-right:8px; }
.steps.flow .step .go { grid-column:2; justify-self:end; white-space:nowrap; }
.steps.flow .step .go.gonow { margin-top:0; padding:2px 10px; }
ul.todo.card.alerts { margin:10px 0 0; padding:2px 16px; }
details.roundsd > summary .sl { margin-left:12px; }
details.roundsd > summary .rd { white-space:normal; }
details.roundsd > summary .rd b { color:#242d32; margin-right:4px; }
.roundsfoot { display:flex; gap:8px 12px; align-items:center; flex-wrap:wrap; margin-top:8px; }
.roundsfoot form { display:flex; gap:6px; align-items:center; flex-wrap:wrap; margin:0; }
.wrap > .tabs.gtabs:last-child { margin-bottom:0; }
body.v2 .steps.flow { grid-template-columns:1fr 1.3fr 1fr 1fr 1fr; }  /* ② は名前が長い（問い合わせ中の注文）。1280 の窓でも名前が切れない幅 */
@media (max-width: 1100px) { body.v2 .steps.flow { grid-template-columns:repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { body.v2 .steps.flow { grid-template-columns:1fr; } }

/* ---- v0.16.0: 注文・売上の状態タブ・段の点の札・点の小窓・1注文の画面（au PAY の道具 aupay_listing の fba.css「注文・売上」の写し。色はこの道具の朱赤と意味の色）
        ・商品一覧の出品の確かめ・リサーチの上の2つの入口 ---- */
/* 状態タブ: すべてが左端。数つき。手を付ける物があるタブは注意の色（au PAY の .os-need） */
.otabs { display:flex; gap:2px; flex-wrap:wrap; align-items:flex-end; border-bottom:2px solid var(--brand); margin:6px 0 8px; }
.otabs a.otab { padding:7px 14px; background:#f4f5f7; border:1px solid var(--brand-border); border-bottom:0; border-radius:5px 5px 0 0;
                color:var(--brand-ink); text-decoration:none; font-size:15px; white-space:nowrap; }
.otabs a.otab b { font-variant-numeric:tabular-nums; margin-left:2px; }
.otabs a.otab:hover { background:var(--brand-soft); }
.otabs a.otab.need { background:#fbf0df; border-color:#e0bd85; color:#95591a; }
.otabs a.otab.on { background:var(--brand); color:#fff; border-color:var(--brand); }
.otabs .os-bulk { margin:0 0 4px auto; display:flex; gap:6px; align-items:center; }
form.trackcheck { display:flex; gap:8px; align-items:center; margin:0; }
/* 段の点の札（5つの点＋文字）。押すと各段の時刻の小窓 */
.os-stage { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.os-dots { display:inline-flex; gap:3px; }
.os-dots i { display:block; width:8px; height:8px; border-radius:50%; background:#d3dbe3; }
.os-dots i.on { background:#166f4a; }
button.os-open { font:inherit; color:inherit; background:none; border:1px solid transparent; border-radius:4px; padding:2px 5px; margin:-3px -6px;
                 cursor:pointer; min-height:0; box-shadow:none; font-weight:400; }
button.os-open:hover, button.os-open.open { border-color:#d3dbe3; background:#f8fafb; color:inherit; }
button.os-open:focus-visible { outline:2px solid #9ecfb6; outline-offset:1px; }
.os-note { white-space:normal; max-width:260px; }
table.sd-orders td.st-cell { white-space:normal; line-height:1.55; min-width:190px; }
table.sd-orders td.st-cell > div { margin-top:2px; }
table.sd-orders td.title .marks { color:#95591a; }
.os-pop { position:absolute; z-index:50; width:380px; max-width:calc(100vw - 16px); background:#fff; border:1px solid #cbd3db; border-radius:8px;
          box-shadow:0 6px 20px rgba(30,45,60,.16); padding:12px 14px 10px; font-size:14px; line-height:1.5; color:#242d32; text-align:left; white-space:normal; }
.os-pop.sheet { position:fixed; left:0; right:0; bottom:0; top:auto; width:auto; max-width:none; max-height:75vh; overflow-y:auto; border-radius:12px 12px 0 0; padding-bottom:14px; }
.os-pop-wait { padding:6px 0; color:#3d444d; }
.os-pop-wait.bad { color:#a92620; }
.os-pop-head { display:flex; align-items:center; gap:6px; margin-bottom:8px; }
#os-pop button.os-pop-close { margin-left:auto; font-size:18px; line-height:1; background:none; border:0; padding:2px 6px; cursor:pointer; color:#3d444d; min-height:0; box-shadow:none; }
.os-tl { list-style:none; margin:0; padding:0; }
.os-tl li { position:relative; padding:0 0 10px 20px; }
.os-tl li::before { content:""; position:absolute; left:3px; top:6px; width:9px; height:9px; border-radius:50%; background:#166f4a; }
.os-tl li::after { content:""; position:absolute; left:7px; top:17px; bottom:-1px; width:1px; background:#9ecfb6; }
.os-tl li:last-child::after { display:none; }
.os-tl li.now::before { box-shadow:0 0 0 3px #e4f2ea; }
.os-tl li.todo { color:#6a737d; }
.os-tl li.todo::before { background:#fff; border:2px solid #d3dbe3; width:5px; height:5px; }
.os-tl li.todo::after { background:#e3e7eb; }
.os-tl .when { font-weight:700; font-variant-numeric:tabular-nums; margin-right:8px; }
.os-tl .what { font-weight:700; }
.os-tl .src { display:block; font-size:13px; color:#3d444d; }
.os-extra { font-size:13px; margin:0 0 4px; }
.os-extra.bad { color:#a92620; }
.os-foot { margin-top:4px; font-size:13px; display:flex; gap:10px; flex-wrap:wrap; align-items:baseline; }
/* 1注文の画面: 段（時刻つき）と中身の表・買う・伝票番号 */
.onepage { max-width:1280px; }
ol.osteps { display:flex; flex-wrap:wrap; gap:6px 8px; list-style:none; padding:0; margin:0 0 10px; }
ol.osteps li { padding:3px 12px; border-radius:12px; border:1px solid #cbd0d5; color:#4c565d; font-size:14px; background:#fff; }
ol.osteps li b { font-weight:600; }
ol.osteps li.done, ol.osteps li.now { background:#e4f2ea; border-color:#9ecfb6; color:#166f4a; }
ol.osteps li.now { box-shadow:0 0 0 2px #cfe8da; }
ol.osteps li .when { font-variant-numeric:tabular-nums; font-size:13px; }
table.onetable { width:100%; }
table.onetable th { width:130px; text-align:left; vertical-align:top; white-space:nowrap; }
table.onetable .picrow { margin:0 0 6px; }
.pagehead .ph-main .os-stage { margin-left:6px; }
.bcard h2, .onepage .card h2 { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.bitem .bact { display:flex; gap:8px 12px; flex-wrap:wrap; align-items:center; }
.bitem .bact form.jobops { display:flex; gap:6px; margin:0 0 0 auto; }
form.shipform { display:flex; gap:10px 16px; flex-wrap:wrap; align-items:center; margin:0; }
form.shipform label { display:flex; gap:6px; align-items:center; font-weight:600; }
/* 商品一覧: 出品の確かめ（［出品候補］の札を押した時だけ） */
.card.confirm .cfhead { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:8px; }
.card.confirm .cfhead h2 { margin:0; }
.stat .v.bad { color:#a92620; }
.outname { margin-top:3px; padding:3px 8px; background:#f6f8fa; border-left:3px solid #9ecfb6; border-radius:0 4px 4px 0; }
/* リサーチ: 上に2つの入口（ASIN・他店の URL）を並べる */
.rsin { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.5fr); gap:12px; align-items:start; }
.rsin .rsbox { margin-bottom:0; }
.rsin .rsbox label { display:block; margin-bottom:6px; }
.rsin textarea.list { height:auto; min-height:40px; font-size:14px; }
.rsin .row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:8px; }
@media (max-width: 1000px) { .rsin { grid-template-columns:1fr; } }
/* ---- 問い合わせ 3列（2026-12-01 本人「右側に情報をまとめる」→ 案 A／B／C から C を選んだ・v0.18.1）----
   値はお客さま対応の画面（90_共通部品\mail_reply\web\app.css の .mr-main・.mr-side・.mr-ss・.mr-kv・.mr-bub・.mr-mgmt）から写した。
   左 一覧／中央 やり取り（上）と返信案（下）／右 情報をタブで切り替え（注文・配送｜似た返信｜材料） */
.iq-main { display:grid; grid-template-columns:minmax(280px, min(400px, 24vw)) minmax(0, 1fr) minmax(280px, min(400px, 24vw));
  height:max(520px, calc(100vh - 150px)); background:#fff; border-top:1px solid #e3e5e8; overflow:hidden; }
.iq-main.noside { grid-template-columns:minmax(280px, min(400px, 24vw)) minmax(0, 1fr); }
.iq-list, .iq-center, .iq-side { min-height:0; overflow:auto; background:#fff; }
.iq-list { display:flex; flex-direction:column; overflow:hidden; border-right:1px solid #e3e5e8; padding:10px 12px 0; }
.iq-list .tabs { margin-bottom:8px; }
.iq-list details.morechips { padding:4px 0; }
.iq-list .tabs a { padding:6px 10px; font-size:14px; }
.iq-rows { flex:1; min-height:0; overflow:auto; margin:0 -12px; }
.iq-rows a.inqrow { border-radius:0; border-width:0 0 1px 0; padding:10px 12px; }
.iq-rows a.inqrow.on { background:#eef1f4; box-shadow:inset 3px 0 0 var(--brand); border-color:#edf0f2; }
.iq-center { padding:0 18px 18px; }
.iq-dh { display:flex; align-items:center; gap:8px; flex-wrap:wrap; position:sticky; top:0; z-index:2; background:#fff; margin:0 -18px 8px; padding:10px 18px; border-bottom:1px solid #e3e5e8; }
.iq-dh .grow { flex:1; }
/* 中央を上下に分ける: 上＝やり取り全部（自分で流せる）／下＝返信案（多くても6割） */
.iq-center.split { display:flex; flex-direction:column; overflow:hidden; padding:0; background:#f4f6f8; }
.iq-center.split > .iq-dh { position:static; margin:0; flex:none; }
.iq-center.split > .iq-conv { flex:0 1 auto; min-height:110px; overflow:auto; padding:10px 18px 12px; background:#fff; }
.iq-center.split > .iq-mgmt { flex:0 0 auto; max-height:60%; overflow:auto; padding:0 18px 14px; background:#f4f6f8; border-top:2px solid #c9ced6; box-shadow:0 -4px 10px rgba(0,0,0,.05); }
.iq-mgmt-h { display:flex; align-items:baseline; gap:10px; padding:10px 0 6px; position:sticky; top:0; z-index:3; background:#f4f6f8; }
.iq-mgmt-h b { font-size:15px; color:#111; }
.iq-mgmt textarea.draft { width:100%; background:#fff; field-sizing:content; min-height:170px; max-height:52vh; }
.iq-act { margin-top:8px; display:flex; gap:8px 12px; align-items:center; flex-wrap:wrap; }
.iq-send { margin:0; display:flex; gap:8px 10px; align-items:center; flex-wrap:wrap; }   /* 楽天へ送る・完了・添付（reply_send） */
.iq-links { margin-top:6px; display:flex; flex-direction:column; gap:4px; }   /* 楽天（RMS）・Amazon の注文へ（本人 12/01） */
.iq-link { display:flex; gap:6px 8px; align-items:center; flex-wrap:wrap; }
.iq-redo { margin:0; display:flex; gap:8px; align-items:center; flex-wrap:wrap; }   /* AI への指示（任意）＋ 作り直す */
.iq-redo .iq-note { width:22em; max-width:100%; }
.iq-chk { display:inline-flex; gap:4px; align-items:center; font-weight:400; cursor:pointer; white-space:nowrap; }
/* 吹き出し（お客さま対応の LINE の形）: お客様は左に灰・店は右に緑。時刻は吹き出しの外、日が変わる所に日付 */
.iq-chat { display:flex; flex-direction:column; gap:10px; }
.iq-mr { display:flex; max-width:86%; align-self:flex-start; }
.iq-mr.me { align-self:flex-end; }
.iq-bw { display:flex; flex-direction:column; align-items:flex-start; min-width:0; }
.iq-mr.me .iq-bw { align-items:flex-end; }
.iq-nm { font-size:13px; color:#3d444d; margin:0 4px 2px; }
.iq-bl { display:flex; gap:6px; align-items:flex-end; min-width:0; }
.iq-mr.me .iq-bl { flex-direction:row-reverse; }
.iq-bub { padding:10px 14px; border-radius:16px; white-space:pre-wrap; word-break:break-word; line-height:1.7; background:#eceef1; color:#111; font-size:15.5px; min-width:0; }
.iq-mr.cu .iq-bub { border-top-left-radius:4px; }
.iq-mr.me .iq-bub { background:#9be56d; border-top-right-radius:4px; }
.iq-tm { font-size:13px; color:#555d68; white-space:nowrap; }
.iq-day { align-self:center; font-size:13px; color:#333; background:#eceef1; border-radius:10px; padding:1px 12px; }
/* 右の列: 情報 */
.iq-side { border-left:1px solid #e3e5e8; padding:0 14px 14px; overflow-x:hidden; }
.iq-ss { padding:10px 0; border-bottom:1px solid #e8efed; }
.iq-ss:last-child { border-bottom:0; }
.iq-ss h5 { margin:0 0 6px; font-size:15px; font-weight:700; color:#111; display:flex; gap:6px; align-items:center; }
.iq-ss .picrow { align-items:flex-start; margin:0; }
.iq-kv { display:grid; grid-template-columns:minmax(4.5em, 7em) minmax(0, 1fr); gap:6px 10px; margin:0; font-size:14.5px; }
.iq-kv dt { color:#3d444d; word-break:break-all; }
.iq-kv dd { margin:0; word-break:break-word; }
.iq-src { display:block; font-size:13px; color:#555d68; }
.iq-need { background:#fdecea; border:1px solid #e8a7a2; border-radius:6px; padding:8px 10px; margin:10px 0; }
.iq-need ul { margin:0; padding-left:18px; font-size:14.5px; }
.iq-need li { margin:2px 0; }
.iq-h5btn { margin:0 0 0 auto; }
.iq-shot { max-height:140px; border:1px solid #ddd; border-radius:6px; }
.iq-side .msg { font-size:14px; }
/* 右の列のタブ */
.iq-stabs { display:flex; border-bottom:1px solid #e3e5e8; margin:0 -14px; position:sticky; top:0; z-index:2; background:#fff; }
.iq-stabs button { flex:1; border:0; border-bottom:3px solid transparent; border-radius:0; background:none; color:#3d444d; padding:8px 2px; font-size:14px; cursor:pointer; }
.iq-stabs button:hover { background:#f5f6f7; }
.iq-stabs button.on { color:#111; font-weight:700; border-bottom-color:var(--brand); }
/* 次に押す所（キャンセルの申し出で返信が要る時の［楽天でキャンセルする］）。主ボタンと同じ朱色の枠で1つだけ目立たせる */
.iq-next { margin:8px 0 0; padding:6px 10px; border:2px solid var(--brand); border-radius:6px; background:var(--brand-faint); }
.iq-next > summary { font-weight:700; color:var(--brand-dark); }
@media (max-width: 1000px) {
  .iq-main, .iq-main.noside { grid-template-columns:minmax(0, 1fr); height:auto; overflow:visible; }
  .iq-list { overflow:visible; border-right:0; max-height:50vh; }
  .iq-center.split { display:block; overflow:visible; }
  .iq-center.split > .iq-conv, .iq-center.split > .iq-mgmt { max-height:none; overflow:visible; }
  .iq-side { border-left:0; border-top:1px solid #e3e5e8; }
}
/* 問い合わせの頭: 注文の前か後かの札と、太字の注文番号（2026-12-01 本人「注文前か注文後かがわかりやすいと」「注文番号もちょっと太字に」）。新しい色は足さず、黒の太字と枠で目立たせる */
.tag.stage { background:#fff; color:#24292f; border-color:#59636e; font-size:13px; font-weight:700; }
.iq-ono { font-weight:700; color:#24292f; font-variant-numeric:tabular-nums; }
.iq-dh .iq-ono { font-size:15px; }
