/* ============================================================
   china/assets/warehouse_check.css (v2)
   倉庫入出庫管理表（A4横向き）
   変更点 (v1→v2):
     - フッタを印鑑+確認者+日付の構成に変更
   ============================================================ */

@page {
  size: A4 landscape;
  margin: 12mm 14mm 12mm 14mm;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Hiragino Sans", "ヒラギノ角ゴシック", "Yu Gothic",
               "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 10pt;
  color: #000;
  background: #f4f6f9;
  line-height: 1.5;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* --------- 画面用ツールバー（印刷時非表示） --------- */
.toolbar {
  background: #1e3a5f;
  color: #fff;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.toolbar-info {
  flex: 1;
  font-family: monospace;
  font-size: 12px;
  color: #cbd5e1;
}
.btn-print, .btn-back {
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
}
.btn-print:hover, .btn-back:hover { background: rgba(255,255,255,0.2); }
.btn-print { background: #fbbf24; color: #422006; border-color: #fbbf24; font-weight: 600; }

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
}

/* --------- ページ本体 --------- */
.wh-page {
  background: #fff;
  width: 297mm;
  min-height: 200mm;
  margin: 16px auto;
  padding: 12mm 14mm;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media print {
  .wh-page {
    width: auto;
    min-height: auto;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
}

/* --------- タイトル --------- */
.wh-title-row {
  margin-bottom: 6mm;
  padding-bottom: 4mm;
  border-bottom: 1pt solid #000;
}
.wh-title {
  font-size: 14pt;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
}

/* --------- 表本体 --------- */
.wh-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 6mm;
}
.wh-table th, .wh-table td {
  border: 0.6pt solid #000;
  padding: 1.5mm 2mm;
  vertical-align: middle;
  font-size: 9.5pt;
  line-height: 1.3;
}
.wh-table thead th {
  background: #e5e7eb;
  text-align: center;
  font-weight: 600;
  font-size: 9pt;
  height: 7mm;
}

/* 列幅 */
.col-no       { width: 4%;  text-align: center; }
.col-invno    { width: 9%;  text-align: center; font-family: monospace; font-size: 9pt; }
.col-date     { width: 6%;  text-align: center; }
.col-item     { width: 38%; text-align: left; padding-left: 3mm; }
.col-qty      { width: 11%; text-align: right; padding-right: 3mm; font-feature-settings: "tnum"; }
.col-whdate   { width: 7%;  text-align: center; }
.col-shipdate { width: 7%;  text-align: center; }
.col-ok       { width: 9%;  text-align: center; }

/* OK マーク */
.ok-mark {
  display: inline-block;
  padding: 0.5mm 3mm;
  border: 0.8pt solid #1e7d3a;
  border-radius: 2mm;
  color: #1e7d3a;
  font-weight: 600;
  font-size: 10pt;
  letter-spacing: 0.05em;
}

/* --------- フッタ --------- */
.wh-footer {
  margin-top: 8mm;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9.5pt;
}
.confirm-block {
  display: flex;
  align-items: center;
  gap: 4mm;
}
.confirm-label {
  font-size: 9.5pt;
}
.confirm-name {
  font-size: 11pt;
  letter-spacing: 0.3em;
  padding-right: 0.3em;
}
.confirm-seal {
  display: inline-flex;
  align-items: center;
}
.seal-img {
  width: 10mm;
  height: 10mm;
  vertical-align: middle;
}
.confirm-date {
  font-size: 9.5pt;
  margin-left: 4mm;
  font-feature-settings: "tnum";
}
.note {
  color: #555;
  font-size: 9pt;
}

/* --------- 空メッセージ --------- */
.empty-msg {
  padding: 40mm 20mm;
  text-align: center;
  color: #94a3b8;
  font-size: 12pt;
}
