﻿@charset "utf-8";
/* ===================================================================================================================
   帳票と検索の画面の「枠と操作」の見た目（2026-10-26 木戸さん依頼：帳票全体のデザインを受注書に合わせて統一する）
   - 値は受注書（Pages/shanai/keiyaku/juchusho.cshtml）と同じ：淡い青の地・題は左で「社内メインメニュー」は右・白い枠・青いボタン
   - 使う画面は <form name="frmpage" class="rp"> を付け、頭を <div class="rp-head"> で書く（題＋右のボタン）
   - そろえるのは枠と操作だけ：地・頭・条件の枠（.q）・欄の名前（.field .cap）・入力欄・ボタン（.btn-show／.btn-print／.btn-excel／.mini）・
     案内（.q-hint／.q-note）・エラー（.err）・結果の見出し（.report-head）・節の見出し（h2.sec-h／h2.sec）・画面の中のタブ（.ke-tabs）
   - 表の中（見出しの色・罫線・Excel と同じ色・実績の月の紫・未達の黄色・マイナスの赤など）と列の並び・印刷の形は、各画面のまま変えない
   - 各画面の <style> にも同じクラスの古い指定が残っていることがある。ここは .rp.rp.rp（詳細度 0,4,0）で書き、画面の指定より必ず勝つようにしてある
   =================================================================================================================== */

body:has(form.rp) { background:#f3f7fc !important; }
form.rp { font-family:"Meiryo","MS PGothic",sans-serif; color:#1f2d3d; padding:14px 22px 24px; text-align:left; }

/* ---- 頭：題は左、ボタン（社内メインメニュー・戻る など）は右 ---- */
.rp.rp.rp .rp-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 12px; }
.rp.rp.rp .rp-head .title { font-size:26px; font-weight:bold; color:#16263a; letter-spacing:1px; }
.rp.rp.rp .rp-head .btns { display:flex; flex-wrap:wrap; gap:10px; }
.rp.rp.rp .rp-head .btn { min-width:150px; }
.rp.rp.rp .rp-head .menu { color:#1f62c0; }

/* ---- 条件の枠 ---- */
.rp.rp.rp .q { background:#fff; border:1px solid #d9e3ef; border-radius:8px; padding:12px 18px; margin:0 0 14px; max-width:none; box-shadow:0 1px 2px rgba(30,60,100,.05); box-sizing:border-box; }
.rp.rp.rp .q-title { font-size:14px; font-weight:bold; color:#16263a; margin:0 0 10px; letter-spacing:0; }
.rp.rp.rp .field .cap { font-size:13px; font-weight:bold; color:#1f2d3d; }
.rp.rp.rp .q input[type="text"], .rp.rp.rp .q input[type="date"], .rp.rp.rp .q input[type="month"], .rp.rp.rp .q input[type="number"], .rp.rp.rp .q select {
  font-family:inherit; font-size:14px; height:32px; padding:3px 9px; border:1px solid #c3cfdd; border-radius:5px; background:#fff; color:#1f2d3d; box-sizing:border-box; }
.rp.rp.rp .q input[type="text"]:focus, .rp.rp.rp .q input[type="date"]:focus, .rp.rp.rp .q input[type="month"]:focus, .rp.rp.rp .q input[type="number"]:focus, .rp.rp.rp .q select:focus {
  border-color:#2f6fc4; outline:none; box-shadow:0 0 0 2px rgba(47,111,196,.18); }
.rp.rp.rp .q input[type="checkbox"], .rp.rp.rp .q input[type="radio"] { accent-color:#2473d6; }
.rp.rp.rp .q-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:flex-start; margin-top:12px; }
.rp.rp.rp .q-hint, .rp.rp.rp .q-note { font-size:12px; color:#556; }
/* 台数管理表（現場別）・（営業推進用）は 案内（左）＋ボタン（右）の .q-foot。ほかの画面と同じく ボタンが左・案内はその右 にする */
.rp.rp.rp .q-foot { flex-direction:row-reverse; justify-content:flex-end; }
/* 原価の画面のボタンから直接開いた帳票（form.rp.direct。Modules\ReportPage.cs の ReportDirect）：抽出条件の欄は出さず、印刷・Excel のボタンだけ残す。頭のボタンは［閉じる］ */
.rp.rp.rp.direct .q { background:none; border:0; box-shadow:none; padding:0; }
.rp.rp.rp.direct .q > :not(.q-actions), .rp.rp.rp.direct .q-actions .btn-show, .rp.rp.rp.direct .rp-head .to-mainmenu { display:none; }
.rp.rp.rp.direct .q-actions { margin-top:0; }
/* 直接開いたときは画面で紙を 1.8 倍に見せる（2026-11-18 木戸さん「小さくて見づらい」→「180%」）。印刷・Excel は変えない */
@media screen { .rp.rp.rp.direct .ks > :not(.q):not(.report-head):not(.err) { zoom:1.8; } }

/* ---- ボタン：主（表示・検索・保存）は青、ほか（印刷・Excel出力・戻る・メニュー）は白 ---- */
.rp.rp.rp .btn { display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; min-width:104px; height:36px; padding:0 20px;
  font-family:inherit; font-size:14px; font-weight:bold; border:1px solid #c3cfdd; border-radius:6px; background:#fff; color:#1f2d3d; cursor:pointer; white-space:nowrap; text-decoration:none; }
.rp.rp.rp .btn:hover { background:#f1f5fa; }
.rp.rp.rp .btn:disabled { opacity:.45; cursor:default; }
.rp.rp.rp .btn-show { background:#2473d6; color:#fff; border-color:#1f62c0; }
.rp.rp.rp .btn-show:hover { background:#1f66c2; }
.rp.rp.rp .btn-print, .rp.rp.rp .btn-excel, .rp.rp.rp .btn-plain { background:#fff; color:#1f2d3d; border-color:#c3cfdd; }
.rp.rp.rp .btn-print:hover, .rp.rp.rp .btn-excel:hover, .rp.rp.rp .btn-plain:hover { background:#f1f5fa; }
.rp.rp.rp .mini { font-family:inherit; min-width:0; height:30px; padding:0 12px; font-size:13px; border:1px solid #c3cfdd; border-radius:5px; background:#fff; color:#1f62c0; cursor:pointer; }
.rp.rp.rp .mini:hover { background:#f1f5fa; }

/* ---- メッセージ・結果の見出し・節の見出し ---- */
.rp.rp.rp .err { color:#b00; font-size:13px; font-weight:bold; }
.rp.rp.rp .ok { font-size:14px; padding:7px 12px; color:#1a5a2a; background:#eaf6ec; border:1px solid #9fcfa8; border-radius:6px; display:inline-block; }
.rp.rp.rp .report-head .r-title { font-size:16px; font-weight:bold; color:#16263a; }
.rp.rp.rp .report-head .r-meta, .rp.rp.rp .report-head .r-period { color:#556; }
.rp.rp.rp h2.sec-h, .rp.rp.rp h2.sec { font-size:15px; color:#16263a; padding-left:8px; border-left:4px solid #2473d6; }

/* ---- 画面の中のタブ（受注書のタブと同じ：青い下線・選んでいるタブは青） ---- */
.rp.rp.rp .ke-tabs { display:flex; flex-wrap:wrap; gap:4px; border-bottom:3px solid #2473d6; margin:0 0 14px; padding-left:0; }
.rp.rp.rp .ke-tabs input { font-family:inherit; font-size:14px; font-weight:normal; min-width:74px; padding:9px 18px; margin:0; border:1px solid #c9d5e3; border-bottom:none;
  border-radius:6px 6px 0 0; background:#f1f5fa; color:#1f2d3d; cursor:pointer; }
.rp.rp.rp .ke-tabs input:hover { background:#e3ecf7; }
.rp.rp.rp .ke-tabs input.on { background:#2473d6; color:#fff; border-color:#1f62c0; font-weight:bold; cursor:default; }

/* ---- 印刷：地は白、頭・条件の枠は出さない（各画面の印刷の形はそのまま） ---- */
@media print {
  body:has(form.rp) { background:#fff !important; }
  form.rp { padding:0; }
  .rp.rp.rp .rp-head { display:none !important; }
}
