/* =========================================================
   post-edit.css — お知らせ作成・編集ページ固有スタイル
   配置: dist/pages/css/post-edit.css

   【依存関係】
   common.css:
     - input[type="radio"]   { display: none } → .item-checkbox で描画
     - input[type="checkbox"]{ display: none } → .item-checkbox で描画
   forms.css:
     - .ef / .ef-select / .cp_iptxt / .textbox-title → そのまま活用
     - .image-file-input（opacity:0）/ .custom-file-label → アップロードUIに活用
========================================================= */

/* =========================================================
   1. ファイルアップロードUI
   forms.css の .custom-file-label に枠線スタイルを追加
========================================================= */
.post-upload-label {
  border-style: dashed !important;
  border-color: #adb5bd !important;
  background-color: #f8f9fa;
  color: #6c757d;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.post-upload-label:hover {
  border-color: var(--main-color) !important;
  background-color: #e8f4ff;
}

/* 画像プレビュー */
.img-preview-thumb {
  max-width: 100%;
  max-height: 200px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  display: block;
}

/* =========================================================
   2. PDF一覧
========================================================= */
.pdf-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  margin-bottom: 0.4rem;
}

.pdf-item .pdf-icon {
  color: var(--danger-color);
  font-size: 1.1rem;
  flex-shrink: 0;
  padding-top: 2px;
}

.pdf-item .pdf-info {
  flex: 1;
  min-width: 0;
}

.pdf-item .pdf-name {
  font-size: 0.82rem;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

/* PDFタイトル入力（.ef の小サイズ版） */
.pdf-item .pdf-title-input {
  width: 100%;
  padding: 3px 8px;
  font-size: 0.8rem;
  border: 1px solid #0d47a1;
  border-radius: 4px;
  background: #fff;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.12);
  font-weight: bold;
}

/* =========================================================
   3. 掲載先ラベルの縦並び間隔
   common.css の .item-checkbox はインラインブロックのため
   掲載先だけ display:block にして縦に並べる
========================================================= */
.post-platform-label {
  display: block;
  margin-bottom: 0.3rem;
}

/* =========================================================
   4. 操作ボタンエリア（右カラム）
========================================================= */
#action-btn-area .btn-common {
  width: 100%;
  justify-content: center;
}
