/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/*
 * 受領詳細画面の書類（application/_acceptance_document）。
 * 狭い画面で書類が潰れないよう幅の下限を置く。
 * 入りきらない分は外側の overflow-x-auto に横スクロールさせる
 */
#acceptance-document {
  min-width: 640px;
}

/*
 * iframe は中身に合わせて伸びないため高さを指定する必要がある。
 * ここの値は読み込み後にJSが実寸へ詰めるまでの初期値で、
 * JSが動かない場合の値でもある。切れるより余白が出るほうが安全なため、
 * 書類2種それぞれに全文が収まる余裕を持たせた値にしている。
 */
#acceptance-document.purchase_order {
  height: 2200px;
}

#acceptance-document.payment_statement {
  height: 1000px;
}
