/* =========================================
   NFS Documents CSS
   見積書・請求書・領収書 共通
   ========================================= */

/* 全体 */
body.nfs-doc-estimate-page,
body.nfs-doc-invoice-page,
body.nfs-doc-receipt-page{
  margin: 0;
  padding: 0;
  background: #f3f4f6;
  color: #111827;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.6;
}

.nfs-docs-template-wrap{
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 16px 48px;
  box-sizing: border-box;
}

/* 用紙 */
.doc-sheet{
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 28px 32px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  box-sizing: border-box;
}

/* タイトル */
.doc-title{
  margin: 10px 0 24px;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #111827;
}

/* 上部メタ情報 */
.doc-meta{
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.doc-meta-right{
  min-width: 300px;
  max-width: 380px;
}

.meta-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px solid #cbd5e1;
  font-size: 13px;
}

.meta-label{
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

.meta-value{
  text-align: right;
  color: #111827;
  white-space: nowrap;
}

/* 宛先・発行者 */
.doc-party{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 18px;
}

.doc-party-left{
  width: 52%;
}

.doc-party-right{
  width: 40%;
}

/* 件名 */
.doc-subject-box{
  margin-bottom: 12px;
  border: 1px solid #1f2937;
}

.doc-subject-row{
  display: flex;
  align-items: center;
}

.doc-subject-label{
  min-width: 72px;
  padding: 10px 12px;
  border-right: 1px solid #1f2937;
  font-weight: 700;
  background: #f8fafc;
}

.doc-subject-value{
  flex: 1;
  padding: 10px 12px;
  font-weight: 700;
}

/* 案内文 */
.doc-message-box{
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 13px;
}

.doc-message-box p{
  margin: 0 0 6px;
}

.doc-message-box p:last-child{
  margin-bottom: 0;
}

/* 宛先 */
.doc-client-name{
  min-height: 78px;
  padding: 10px 0;
  font-size: 16px;
}

.client-company,
.client-department{
  margin-bottom: 2px;
  font-size: 15px;
  font-weight: 600;
}

.client-person{
  margin-top: 6px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

/* 発行者・振込先 */
.doc-issuer-box,
.doc-bank-box{
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #1f2937;
  background: #fff;
  font-size: 13px;
}

.issuer-name{
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.issuer-registration,
.issuer-postcode,
.issuer-address,
.issuer-tel,
.issuer-email,
.issuer-staff{
  margin-bottom: 4px;
  word-break: break-word;
}

.bank-title{
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

/* 金額帯 */
.doc-summary-amount{
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  margin: 18px 0 20px;
  border: 2px solid #111827;
}

.summary-label{
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #475569;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
}

.summary-value{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  padding: 12px 18px;
  font-size: 30px;
  font-weight: 700;
  color: #111827;
}

/* 明細テーブル */
.doc-items-table{
  width: 100%;
  margin-bottom: 18px;
  border-collapse: collapse;
  table-layout: fixed;
}

.doc-items-table th,
.doc-items-table td{
  border: 1px solid #334155;
  padding: 8px 8px;
  font-size: 12px;
  vertical-align: middle;
  word-break: break-word;
  box-sizing: border-box;
}

.doc-items-table thead th{
  background: #17386d;
  color: #fff;
  text-align: center;
  font-weight: 700;
}

.doc-items-table tbody td{
  background: #fff;
}

.doc-items-table .col-item-name{
  width: 24%;
}

.doc-items-table .col-unit{
  width: 7%;
  text-align: center;
}

.doc-items-table .col-qty{
  width: 8%;
  text-align: center;
}

.doc-items-table .col-material{
  width: 12%;
}

.doc-items-table .col-finish{
  width: 12%;
}

.doc-items-table .col-size{
  width: 12%;
}

.doc-items-table .col-unit-price{
  width: 10%;
  text-align: right;
  white-space: nowrap;
}

.doc-items-table .col-amount{
  width: 10%;
  text-align: right;
  white-space: nowrap;
}

.doc-items-table .col-note{
  width: 13%;
}

.shipping-row td{
  background: #f8fafc;
  font-weight: 700;
}

.shipping-label{
  text-align: left;
}

.shipping-amount{
  text-align: right;
  white-space: nowrap;
}

/* 合計欄 */
.doc-totals{
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.doc-totals-table{
  width: 360px;
  border-collapse: collapse;
}

.doc-totals-table th,
.doc-totals-table td{
  border: 1px solid #334155;
  padding: 8px 10px;
  font-size: 13px;
}

.doc-totals-table th{
  background: #f8fafc;
  text-align: left;
  font-weight: 700;
}

.doc-totals-table td{
  text-align: right;
  white-space: nowrap;
}

.doc-totals-table .grand-total-row th,
.doc-totals-table .grand-total-row td{
  background: #eef2ff;
  font-weight: 700;
  font-size: 14px;
}

/* 納品予定 */
.delivery-estimate-box{
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #1d4ed8;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 14px;
}

/* 注意事項 */

.doc-shipping-confirm{
  margin: 18px 0;
  border: 1px solid #94a3b8;
  background: #f8fafc;
}

.doc-shipping-confirm-title{
  padding: 10px 14px;
  background: #e2e8f0;
  border-bottom: 1px solid #94a3b8;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.doc-shipping-confirm-table{
  width: 100%;
  border-collapse: collapse;
}

.doc-shipping-confirm-table th,
.doc-shipping-confirm-table td{
  border: 1px solid #cbd5e1;
  padding: 9px 12px;
  font-size: 13px;
  vertical-align: top;
  word-break: break-word;
}

.doc-shipping-confirm-table th{
  width: 32%;
  background: #f8fafc;
  text-align: left;
  font-weight: 700;
  color: #334155;
}

.doc-notes{
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  background: #fafafa;
  font-size: 12px;
}

.notice-block p{
  margin: 0 0 6px;
}

.notice-block p:last-child{
  margin-bottom: 0;
}

.notice-blue{
  color: #1d4ed8;
  font-weight: 700;
}

.notice-red{
  color: #dc2626;
  font-weight: 700;
}

/* ボタン */
.doc-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.doc-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  box-sizing: border-box;
  transition: opacity .2s ease, transform .2s ease;
}

.doc-btn:hover{
  opacity: .92;
  transform: translateY(-1px);
}

.doc-btn-primary{
  background: #111827;
  color: #fff;
}

.doc-btn-secondary{
  background: #e5e7eb;
  color: #111827;
}

/* Stripe */
.stripe-payment-box{
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}

.stripe-payment-box p{
  margin: 0 0 10px;
  font-size: 13px;
}

/* 領収書専用 */
.receipt-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.receipt-top-center{
  flex: 1;
}

.receipt-stamp-box{
  width: 92px;
  min-width: 92px;
  height: 92px;
  border: 1px solid #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  color: #334155;
  box-sizing: border-box;
}

.receipt-stamp-text{
  font-weight: 700;
  letter-spacing: .04em;
}

.receipt-client-area{
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 10px;
}

.receipt-client-name{
  flex: 1;
  min-height: 44px;
  font-size: 16px;
}

.receipt-client-seal{
  min-width: 90px;
  text-align: right;
}

.receipt-client-seal .nfs-doc-seal{
  margin-top: 0;
}

.receipt-client-seal .nfs-doc-seal img{
  width: 58px;
}

.receipt-message{
  margin-bottom: 8px;
  font-size: 14px;
}

.receipt-date{
  margin-bottom: 12px;
  text-align: right;
  font-size: 13px;
}

.receipt-subject-box,
.receipt-total-box{
  display: flex;
  align-items: stretch;
  margin-bottom: 14px;
  border: 1px solid #334155;
}

.receipt-subject-label,
.receipt-total-label{
  min-width: 120px;
  padding: 10px 12px;
  background: #f8fafc;
  border-right: 1px solid #334155;
  font-weight: 700;
  box-sizing: border-box;
}

.receipt-subject-value,
.receipt-total-value{
  flex: 1;
  padding: 10px 12px;
  box-sizing: border-box;
}

.receipt-total-value{
  font-size: 30px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.receipt-total-tax{
  min-width: 80px;
  padding: 10px 12px;
  border-left: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.receipt-issuer-box{
  width: 360px;
  margin: 0 0 16px auto;
  padding: 12px 14px;
  border: 1px solid #334155;
  font-size: 13px;
  box-sizing: border-box;
}

/* 領収書テーブル */
.receipt-items-table .col-no{
  width: 8%;
  text-align: center;
}

.receipt-items-table .col-summary{
  width: 44%;
}

.receipt-items-table .col-qty{
  width: 12%;
  text-align: center;
}

.receipt-items-table .col-unit-price{
  width: 18%;
  text-align: right;
  white-space: nowrap;
}

.receipt-items-table .col-amount{
  width: 18%;
  text-align: right;
  white-space: nowrap;
}

.receipt-note-box{
  margin-top: 12px;
  border: 1px solid #334155;
}

.receipt-note-label{
  padding: 8px 12px;
  border-bottom: 1px solid #334155;
  background: #f8fafc;
  font-weight: 700;
}

.receipt-note-body{
  padding: 12px 14px;
  min-height: 70px;
  font-size: 13px;
}

.receipt-thanks-box{
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  background: #fafafa;
  font-size: 13px;
}

/* 管理画面でのテーブル崩れ防止用 */
.nfs-docs-admin-form-wrap .widefat input[type="text"],
.nfs-docs-admin-form-wrap .widefat input[type="number"],
.nfs-docs-admin-form-wrap .widefat input[type="email"],
.nfs-docs-admin-form-wrap .widefat input[type="url"]{
  box-sizing: border-box;
  max-width: 100%;
}

/* 印刷非表示 */
.no-print{
  display: block;
}

/* スマホ */
@media (max-width: 767px){
  .nfs-docs-template-wrap{
    padding: 12px 8px 24px;
  }

  .doc-sheet{
    padding: 18px 14px 22px;
  }

  .doc-title{
    font-size: 26px;
    margin-bottom: 18px;
  }

  .doc-party{
    flex-direction: column;
    gap: 16px;
  }

  .doc-party-left,
  .doc-party-right{
    width: 100%;
  }

  .doc-summary-amount{
    flex-direction: column;
  }

  .summary-label,
  .summary-value{
    width: 100%;
    box-sizing: border-box;
  }

  .summary-value{
    justify-content: flex-start;
    font-size: 24px;
  }

  .doc-totals{
    justify-content: stretch;
  }

  .doc-totals-table{
    width: 100%;
  }

  .doc-actions{
    flex-direction: column;
  }

  .doc-btn{
    width: 100%;
  }

  .receipt-top{
    flex-direction: column;
    align-items: stretch;
  }

  .receipt-stamp-box{
    width: 100%;
    min-width: 0;
    height: 56px;
  }

  .receipt-client-area{
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .receipt-total-box{
    flex-direction: column;
  }

  .receipt-total-label,
  .receipt-total-tax{
    border: none;
    border-bottom: 1px solid #334155;
    min-width: 0;
  }

  .receipt-total-value{
    text-align: left;
    font-size: 24px;
  }

  .receipt-issuer-box{
    width: 100%;
  }

  .doc-items-table{
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* 印刷用 */
@media print{
  html,
  body{
    margin: 0;
    padding: 0;
    background: #fff !important;
    color: #000;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .no-print{
    display: none !important;
  }

  .nfs-docs-template-wrap{
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .doc-sheet{
    max-width: none;
    margin: 0;
    padding: 8mm 8mm 10mm;
    border: none;
    box-shadow: none;
    background: #fff;
  }

  .doc-title{
    font-size: 28px;
    margin: 6mm 0 5mm;
  }

  .doc-meta{
    margin-bottom: 4mm;
  }

  .meta-row{
    font-size: 11px;
    padding: 2px 0;
  }

  .doc-subject-box,
  .doc-message-box,
  .doc-issuer-box,
  .doc-bank-box,
  .delivery-estimate-box,
  .doc-notes,
  .receipt-note-box,
  .receipt-issuer-box,
  .receipt-thanks-box{
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .doc-items-table,
  .doc-items-table thead,
  .doc-items-table tbody,
  .doc-items-table tr,
  .doc-items-table th,
  .doc-items-table td{
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .doc-items-table th,
  .doc-items-table td,
  .doc-totals-table th,
  .doc-totals-table td{
    font-size: 10.5px;
    padding: 5px 6px;
  }

  .summary-label{
    font-size: 14px;
  }

  .summary-value,
  .receipt-total-value{
    font-size: 24px;
  }

  .client-person{
    font-size: 22px;
  }

  a{
    color: inherit;
    text-decoration: none;
  }

  @page{
    size: A4 portrait;
    margin: 10mm;
  }
}
/* 印鑑 */
.nfs-doc-seal{
  margin-top: 8px;
  text-align: right;
}

.nfs-doc-seal img{
  width: 46px;
  max-width: 100%;
  height: auto;
  display: inline-block;
}


/* 見積承認時の支払い方法選択 */
.estimate-approval-box{
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 8px;
}

.estimate-approval-title{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.estimate-approval-text{
  margin: 0 0 14px;
  font-size: 14px;
}

.estimate-payment-options{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.estimate-payment-option{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}

.approval-actions{
  justify-content: flex-start;
}

.payment-preference-notice{
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 13px;
  line-height: 1.8;
}

.stripe-payment-box{
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f8fafc;
}

.stripe-payment-text{
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.8;
  color: #111827;
}

.doc-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  box-sizing: border-box;
}

.doc-btn-primary{
  background: #635bff;
  color: #ffffff;
  border-color: #635bff;
}

.doc-btn-primary:hover{
  opacity: 0.92;
  color: #ffffff;
}

.doc-btn-secondary{
  background: #ffffff;
  color: #111827;
  border-color: #cbd5e1;
}

.doc-btn-secondary:hover{
  background: #f8fafc;
  color: #111827;
}


/* Stripe自動生成・見積再確認 */
.estimate-approval-box{
  margin-top:16px;
  padding:16px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  background:#f8fafc;
}

.estimate-approval-title{
  font-size:16px;
  font-weight:700;
  margin-bottom:8px;
}

.estimate-approval-text{
  margin:0 0 12px;
  font-size:13px;
}

.estimate-payment-options{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:12px;
}

.estimate-payment-option{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 10px;
  border:1px solid #cbd5e1;
  border-radius:8px;
  background:#fff;
}

.payment-preference-notice{
  margin-top:14px;
  padding:12px 14px;
  border:1px solid #cbd5e1;
  background:#f8fafc;
  font-size:13px;
  line-height:1.8;
}

.payment-warning{
  color:#b91c1c;
  font-weight:700;
}

.payment-status-inline{
  color:#0f172a;
  font-weight:700;
}

.inline-doc-link{
  display:inline-block;
  margin-top:6px;
  font-weight:700;
}

.nfs-stripe-error{
  color:#b91c1c;
  font-weight:700;
}


.doc-bank-guide{
  margin-top:16px;
  padding:16px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  background:#ffffff;
}

.doc-bank-guide-title{
  margin:0 0 10px;
  font-size:16px;
  font-weight:700;
  color:#111827;
}

.doc-bank-guide-table{
  width:100%;
  border-collapse:collapse;
  margin:0 0 10px;
}

.doc-bank-guide-table th,
.doc-bank-guide-table td{
  padding:8px 10px;
  border:1px solid #e5e7eb;
  text-align:left;
  font-size:13px;
  vertical-align:top;
}

.doc-bank-guide-table th{
  width:140px;
  background:#f8fafc;
  font-weight:700;
}

.doc-bank-guide-note{
  margin:0;
  font-size:13px;
  line-height:1.8;
}

.estimate-payment-option.is-fixed{
  background:#eff6ff;
  border-color:#93c5fd;
}

/* ===== 印刷 / PDF保存の画面整理 ===== */
.doc-print-screen-bar{
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}

.doc-print-screen-message{
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.8;
  color: #334155;
}

body.nfs-doc-print-view{
  background: #ffffff !important;
}

body.nfs-doc-print-view .nfs-docs-template-wrap{
  max-width: 960px;
  margin: 0 auto;
  padding: 12px;
}

body.nfs-doc-print-view .doc-sheet{
  max-width: 100%;
  margin: 0;
  padding: 18px 16px 22px;
  border: none;
  box-shadow: none;
  background: #ffffff;
}

body.nfs-doc-print-view .doc-title{
  margin-top: 0;
}

body.nfs-doc-print-view .doc-items-table{
  table-layout: fixed;
  width: 100%;
}

body.nfs-doc-print-view .doc-items-table th,
body.nfs-doc-print-view .doc-items-table td,
body.nfs-doc-print-view .doc-totals-table th,
body.nfs-doc-print-view .doc-totals-table td{
  white-space: normal;
  word-break: break-word;
}

body.nfs-doc-print-view .doc-bank-guide,
body.nfs-doc-print-view .doc-shipping-confirm,
body.nfs-doc-print-view .doc-notes,
body.nfs-doc-print-view .doc-message-box,
body.nfs-doc-print-view .doc-issuer-box,
body.nfs-doc-print-view .receipt-note-box,
body.nfs-doc-print-view .receipt-thanks-box,
body.nfs-doc-print-view .receipt-issuer-box{
  box-shadow: none;
}

@media (max-width: 767px){
  body.nfs-doc-print-view .nfs-docs-template-wrap{
    padding: 8px;
  }

  body.nfs-doc-print-view .doc-sheet{
    padding: 14px 12px 18px;
    border-radius: 0;
  }

  body.nfs-doc-print-view .doc-title{
    font-size: 24px;
    margin-bottom: 14px;
  }

  body.nfs-doc-print-view .doc-meta,
  body.nfs-doc-print-view .doc-party,
  body.nfs-doc-print-view .doc-summary-amount,
  body.nfs-doc-print-view .receipt-header,
  body.nfs-doc-print-view .receipt-party,
  body.nfs-doc-print-view .receipt-summary{
    gap: 10px;
  }

  body.nfs-doc-print-view .doc-items-table th,
  body.nfs-doc-print-view .doc-items-table td,
  body.nfs-doc-print-view .doc-totals-table th,
  body.nfs-doc-print-view .doc-totals-table td,
  body.nfs-doc-print-view .doc-bank-guide-table th,
  body.nfs-doc-print-view .doc-bank-guide-table td{
    font-size: 11px;
    padding: 5px 6px;
  }

  body.nfs-doc-print-view .summary-value,
  body.nfs-doc-print-view .receipt-total-value{
    font-size: 22px;
  }

  body.nfs-doc-print-view .client-person{
    font-size: 20px;
  }

  body.nfs-doc-print-view .doc-actions{
    flex-direction: column;
    align-items: stretch;
  }

  body.nfs-doc-print-view .doc-btn{
    width: 100%;
  }
}


/* ===== 追加調整：請求書 / 領収書の携帯印刷改善 ===== */
.doc-mobile-print-help{
  display:none;
  margin-top:10px;
  padding:10px 12px;
  border-radius:10px;
  background:#fff7ed;
  border:1px solid #fdba74;
  color:#9a3412;
  font-size:12px;
  line-height:1.8;
}

body.nfs-doc-print-help-visible .doc-mobile-print-help{
  display:block;
}

body.nfs-doc-print-view .doc-items-table{
  display:table;
  overflow:visible;
  white-space:normal;
}

body.nfs-doc-print-view .doc-items-table th,
body.nfs-doc-print-view .doc-items-table td,
body.nfs-doc-print-view .receipt-items-table th,
body.nfs-doc-print-view .receipt-items-table td{
  overflow-wrap:anywhere;
  word-break:break-word;
}

body.nfs-doc-print-view .receipt-total-value,
body.nfs-doc-print-view .summary-value{
  white-space:normal;
}

@media (max-width: 767px){
  body.nfs-doc-print-view .doc-meta{
    justify-content:flex-start;
  }

  body.nfs-doc-print-view .doc-meta-right,
  body.nfs-doc-print-view .receipt-issuer-box,
  body.nfs-doc-print-view .doc-issuer-box,
  body.nfs-doc-print-view .doc-bank-guide{
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
  }

  body.nfs-doc-print-view .doc-subject-row,
  body.nfs-doc-print-view .receipt-subject-box{
    flex-direction:column;
    align-items:stretch;
  }

  body.nfs-doc-print-view .doc-subject-label,
  body.nfs-doc-print-view .receipt-subject-label,
  body.nfs-doc-print-view .receipt-total-label,
  body.nfs-doc-print-view .receipt-total-tax{
    min-width:0;
    width:100%;
    border-right:none;
    border-left:none;
    border-bottom:1px solid #334155;
    box-sizing:border-box;
  }

  body.nfs-doc-print-view .doc-subject-value,
  body.nfs-doc-print-view .receipt-subject-value,
  body.nfs-doc-print-view .receipt-total-value{
    width:100%;
    box-sizing:border-box;
  }

  body.nfs-doc-print-view .receipt-client-area{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }

  body.nfs-doc-print-view .receipt-client-seal,
  body.nfs-doc-print-view .nfs-doc-seal{
    text-align:left;
  }

  body.nfs-doc-print-view .doc-items-table{
    table-layout:fixed;
  }

  body.nfs-doc-print-view .receipt-items-table .col-no{ width:10%; }
  body.nfs-doc-print-view .receipt-items-table .col-summary{ width:38%; }
  body.nfs-doc-print-view .receipt-items-table .col-qty{ width:12%; }
  body.nfs-doc-print-view .receipt-items-table .col-unit-price{ width:20%; }
  body.nfs-doc-print-view .receipt-items-table .col-amount{ width:20%; }
}

@media print{
  .doc-mobile-print-help{
    display:none !important;
  }

  .doc-items-table{
    display:table !important;
    overflow:visible !important;
    white-space:normal !important;
  }
}


.doc-payment-notice-box,
.doc-info-box{
  width:100%;
  max-width:920px;
  margin:0 auto 16px;
  padding:14px 16px;
  border-radius:12px;
  box-sizing:border-box;
}

.doc-payment-notice-box{
  border:1px solid #dbe4f0;
  background:#f8fbff;
}

.doc-payment-notice-text,
.doc-info-box{
  font-size:14px;
  line-height:1.8;
}

.doc-info-success{
  border:1px solid #cfe8cf;
  background:#f3fbf3;
}

.doc-info-muted{
  border:1px solid #e5e7eb;
  background:#f9fafb;
}

@media print {
  .doc-payment-notice-box,
  .doc-info-box{
    display:none !important;
  }
}


/* ===== v6.1 見積/請求書の備考欄崩れ防止 ===== */
.doc-items-table .col-product-color,
.doc-items-table .col-print-color,
.doc-items-table .col-shape{
  width: 10%;
}

.doc-items-table .col-note{
  width: 18%;
  white-space: pre-wrap;
  line-height: 1.5;
}

.doc-items-table .col-item-name{
  width: 22%;
}

@media (max-width: 767px){
  .doc-items-table .col-note{
    width: 22%;
  }
}

body.nfs-doc-print-view .doc-items-table .col-note{
  white-space: pre-wrap;
  line-height: 1.45;
}
