/* 管理画面の本文編集・添付ファイル・プレビュー。JavaScript用のIDは変更しないでください。 */
.notice-editor {
    height:240px
}

.attachment-row {
    border:1px solid var(--line);
    border-radius:6px;
    padding:20px;
    margin:18px 0;
    background:#f9fbfe
}

.attachment-row h3 {
    margin:0;
    color:var(--navy)
}

.attachment-row .flex button {
    min-width:80px
}

.editor-controls {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
    padding:16px;
    background:#eaf1f8;
    border:1px solid var(--line);
    border-bottom:0;
    border-radius:5px 5px 0 0
}

.editor-controls label {
    margin:0
}

.editor-controls select {
    width:260px
}

.editor-controls button {
    font-size:14px;
    min-width:110px;
    padding:9px
}

.update-editor {
    min-height:280px;
    max-height:700px;
    overflow:auto;
    padding:20px;
    border:1px solid #b9c7d4;
    border-radius:0 0 5px 5px;
    background:white;
    white-space:pre-wrap;
    line-height:1.9;
    overflow-wrap:anywhere
}

.update-editor:focus {
    outline:3px solid #f5ad25;
    outline-offset:2px
}

.file-chip {
    display:inline-block;
    background:#e4f1ff;
    border:1px solid #80add2;
    color:#174f80;
    padding:3px 10px;
    border-radius:4px;
    margin:2px;
    white-space:normal
}

.table-chip {
    display:block;
    padding:15px;
    margin:10px 0
}

.update-layout-controls {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    margin:16px 0
}

.update-layout-controls fieldset {
    min-width:0;
    margin:0;
    padding:16px;
    border:1px solid var(--line);
    border-radius:5px
}

.update-layout-controls legend { font-weight:700; padding:0 6px; }
.update-layout-controls textarea { min-height:80px; }
.update-layout-controls button { min-width:0; font-size:14px; padding:9px 12px; }
.update-layout-controls .flex { flex-wrap:wrap; gap:8px; }
.table-file-options { max-height:180px; overflow:auto; margin:12px 0; }
.table-file-options label { display:flex; align-items:center; gap:8px; margin:8px 0; font-weight:400; }
.table-file-options input { width:auto; margin:0; }
.format-chip { display:block; margin:12px 0; white-space:pre-wrap; cursor:pointer; }
.format-heading { font-weight:700; font-size:21px; }
.format-warning { font-weight:700; color:#c52222; background:#fff5f5; border-color:#dbabab; }
.table-chip { cursor:pointer; }
.format-chip:focus, .table-chip:focus { outline:3px solid var(--blue); outline-offset:2px; }

.body-text {
    white-space:pre-wrap
}

.update-preview {
    margin:22px 0;
    padding:24px;
    border:2px solid #b7cce0;
    background:white;
    overflow-wrap:anywhere
}

.preview-file-link {
    color:var(--blue);
    text-decoration:underline
}

.preview-download {
    cursor:default
}

.attachment-table .note {
    overflow-wrap:anywhere
}

.remaining-attachments {
    margin-top:30px
}

#notice-link-picker {
    width:100%;
    max-width:100%
}

[data-notice-controls] .editor-controls {
    display:block
}

[data-notice-controls] .editor-controls button {
    margin-top:12px
}
/* お知らせ・更新ページ共通の外部リンク入力欄 */
.external-link-controls { border:1px solid #d7e0eb; border-radius:6px; padding:16px; margin:18px 0; }
.external-link-controls legend { font-weight:700; padding:0 6px; }
.external-link-controls button { margin-top:12px; }
.external-link { overflow-wrap:anywhere; }
