/* Case files on an advice process (docs/modules/case-files.md): the tree and the "Add files or a folder" window. */
.feos-cf-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.feos-cf-count { font-weight: 600; }
.feos-cf-search { max-width: 280px; flex: 1 1 180px; }
.feos-cf-toggle { font-weight: normal; margin: 0; white-space: nowrap; }
.feos-cf-bar .btn-primary { margin-left: auto; }
.feos-cf-tree details { margin: 2px 0; }
.feos-cf-tree summary { cursor: pointer; padding: 4px 2px; font-weight: 600; list-style-position: inside; }
.feos-cf-group > summary { font-size: 14px; border-bottom: 1px solid var(--feos-a-line, #e1e7ee); }
.feos-cf-group > .feos-cf-sec { margin-left: 14px; }
.feos-cf-tree .fa-folder, .feos-cf-psec-head .fa-folder { color: var(--feos-a-amber, #c58a10); }
.feos-cf-n { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 9px; background: var(--feos-a-grey-soft, #eef1f4);
    color: var(--feos-a-muted, #5b6875); font-size: 11px; text-align: center; font-weight: 600; }
.feos-cf-tree ul { list-style: none; margin: 0 0 4px 18px; padding: 0; }
.feos-cf-file { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 3px 0;
    border-bottom: 1px dashed var(--feos-a-line, #e9edf1); }
.feos-cf-file > a { word-break: break-word; }
.feos-cf-icon { color: var(--feos-a-muted, #5b6875); width: 14px; }
.feos-cf-meta { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; color: var(--feos-a-muted, #5b6875); font-size: 12px; }
.feos-cf-kind { color: var(--feos-a-ink, #22303c); }
.feos-cf-on { padding: 0 6px; border-radius: 4px; background: var(--feos-a-blue-soft, #e8f0fb); color: var(--feos-a-blue-dark, #1d4f91); }
.feos-cf-auto { color: var(--feos-a-green, #2e7d32); }
.feos-cf-on.feos-cf-auto { background: var(--feos-a-green-soft, #e7f4ea); }
.feos-cf-open { opacity: .5; }
.feos-cf-open:hover { opacity: 1; }
.feos-cf-restricted, .feos-cf-empty { margin-top: 8px; color: var(--feos-a-muted, #5b6875); }
/* the window */
.feos-cf-drop { border: 2px dashed var(--feos-a-line, #c9d3dd); border-radius: 8px; padding: 26px 16px; text-align: center; }
.feos-cf-drop > .fas { font-size: 30px; color: var(--feos-a-amber, #c58a10); margin-bottom: 8px; }
.feos-cf-drop .text-muted { max-width: 560px; margin: 6px auto 12px; }
.feos-cf-drop.feos-cf-over { background: var(--feos-a-blue-soft, #e8f0fb); border-color: var(--feos-a-blue, #2f6fbd); }
.feos-cf-pick { display: flex; gap: 8px; justify-content: center; }
.feos-cf-progress { margin: 10px 0; }
.feos-cf-progress-bar { height: 8px; border-radius: 4px; background: var(--feos-a-grey-soft, #eef1f4); overflow: hidden; }
.feos-cf-progress-bar span { display: block; height: 100%; width: 0; background: var(--feos-a-blue, #2f6fbd); transition: width .2s; }
.feos-cf-progress-text { margin-top: 6px; color: var(--feos-a-muted, #5b6875); }
.feos-cf-sum { margin: 4px 0 10px; }
.feos-cf-need { color: var(--feos-a-amber, #a86f00); font-weight: 600; }
.feos-cf-psec { margin-bottom: 10px; }
.feos-cf-psec-head { font-weight: 600; padding: 4px 0; border-bottom: 1px solid var(--feos-a-line, #e1e7ee); }
.feos-cf-prow { display: grid; grid-template-columns: 20px minmax(200px, 2fr) repeat(auto-fit, minmax(120px, 1fr)); gap: 6px;
    align-items: start; padding: 5px 0; border-bottom: 1px dashed var(--feos-a-line, #e9edf1); }
.feos-cf-prow > input[type="checkbox"] { margin-top: 4px; }
.feos-cf-pname { word-break: break-word; }
.feos-cf-off { opacity: .5; }
.feos-cf-needs { background: var(--feos-a-amber-soft, #fdf3e0); }
.feos-cf-dup { color: var(--feos-a-muted, #5b6875); }
@media (max-width: 768px) {
    .feos-cf-prow { grid-template-columns: 20px 1fr; }
    .feos-cf-prow > select, .feos-cf-prow > input:not([type="checkbox"]), .feos-cf-prow > span { grid-column: 2; }
    .feos-cf-meta { margin-left: 18px; }
}
/* the preview (Peter, 16 Oct 2026): a third of the screen, on the right */
.feos-cf-peek { padding: 0 2px; color: var(--feos-a-muted, #5b6875); }
.feos-cf-peek:hover { color: var(--feos-a-blue, #2f6fbd); }
.feos-cf-preview .modal-dialog { width: 36vw; min-width: 420px; max-width: 760px; margin: 20px 16px 20px auto; }
.feos-cf-pv iframe { width: 100%; height: 72vh; border: 1px solid var(--feos-a-line, #e1e7ee); background: #fff; }
.feos-cf-pv-img { height: 72vh; overflow: auto; text-align: center; background: var(--feos-a-grey-soft, #f4f6f8); }
.feos-cf-pv-img img { max-width: 100%; }
@media (max-width: 768px) { .feos-cf-preview .modal-dialog { width: auto; min-width: 0; margin: 10px; } }
