/* 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-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-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-guess { color: #8a96a3; font-size: .92em; }
.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 { color: var(--feos-a-muted, #5b6875); }
.feos-cf-drop:hover { border-color: var(--feos-a-blue, #2f6fbd); }
.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; }
/* what the line goes on (any policy or mortgage, Files 2.0): its own line under the name, full width */
.feos-cf-prow > select[data-f="record"] { grid-column: 2 / -1; max-width: 520px; }
.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; } }
.feos-cf-where { margin-bottom: 8px; padding: 6px 10px; border-radius: 6px; background: #e8f3fb; color: #075a93; }
/* Files 2.0 b (1 Nov 2026), view B: the documents the case needs as a checklist, then the other files in folders that fold */
.feos-cf-count b { font-size: 15px; }
.feos-cf-ok { color: #2e7d32; }
.feos-cf-grow { flex: 1; }
.feos-cf-bar .btn-primary { margin-left: 0; }
.feos-cf-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; margin: 4px 0 12px; }
.feos-cf-block { border: 1px solid var(--feos-line, #e1e7ee); border-radius: 10px; background: #fff; overflow: hidden; }
.feos-cf-block > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px;
    background: #f7f9fb; border-bottom: 1px solid #e6ebf0; }
.feos-cf-block h4 { margin: 0; font-size: 14px; font-weight: 600; color: var(--feos-ink, #0f1b26); min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feos-cf-block > header > span { font-size: 12px; font-weight: 600; color: #5b6875; white-space: nowrap; }
.feos-cf-block > header > span.feos-cf-ok { color: #2e7d32; }
.feos-cf-block ul { list-style: none; margin: 0; padding: 0; }
.feos-cf-slot { display: grid; grid-template-columns: 18px minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 10px; align-items: center;
    min-height: 40px; padding: 4px 14px; border-bottom: 1px solid #f0f3f6; font-size: 13px; }
.feos-cf-slot:last-child { border-bottom: 0; }
.feos-cf-st { color: #2e7d32; text-align: center; }
.feos-cf-slot-needed .feos-cf-st { color: #c58a10; }
.feos-cf-st-waived { color: #8a96a3; }
.feos-cf-slot-name { min-width: 0; font-weight: 600; color: var(--feos-ink, #0f1b26); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feos-cf-slot .feos-cf-file { grid-column: 3; }
.feos-cf-slot-needed .feos-cf-dropzone, .feos-cf-slot-needed .feos-cf-missing { grid-column: 3 / -1; }
.feos-cf-dropzone { width: 100%; height: 30px; border: 1.5px dashed #d9a63c; border-radius: 6px; background: #fdf8ee; color: #8a5d00;
    font-size: 12px; cursor: pointer; }
.feos-cf-dropzone:hover { background: #fbf0d9; border-color: #c58a10; }
.feos-cf-dropzone.feos-cf-over { background: #e3f4e8; border-color: #2e7d32; color: #1b5e20; }
.feos-cf-missing { color: #a86f00; font-size: 12px; }
button.feos-cf-file { min-width: 0; padding: 0; border: 0; background: none; text-align: left; color: var(--feos-accent, #0a72ba);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
button.feos-cf-file:hover { text-decoration: underline; }
span.feos-cf-file { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feos-cf-date { font-size: 12px; color: #5b6875; white-space: nowrap; text-align: right; }
.feos-cf-other { margin: 4px 0 8px; }
.feos-cf-other > summary { cursor: pointer; padding: 6px 0; font-weight: 600; color: #33485c; }
.feos-cf-folders2 { border: 1px solid var(--feos-line, #e1e7ee); border-radius: 10px; background: #fff; overflow: hidden; }
.feos-cf-g + .feos-cf-g { border-top: 1px solid #e6ebf0; }
.feos-cf-ghead { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 14px; border: 0; background: #f7f9fb;
    color: var(--feos-ink, #0f1b26); font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.feos-cf-ghead:hover { background: #eef3f8; }
.feos-cf-ghead.feos-cf-over { background: #e3f4e8; box-shadow: inset 0 0 0 2px #2e7d32; }
.feos-cf-twist { width: 12px; font-size: 11px; color: #5b6875; }
.feos-cf-gic { width: 16px; text-align: center; color: #c58a10; }
.feos-cf-ghead .fa-house, .feos-cf-ghead .fa-shield-halved { color: var(--feos-accent, #0a72ba); }
.feos-cf-gname { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feos-cf-ghead .feos-cf-n { font-weight: 500; white-space: nowrap; }
.feos-cf-lines { list-style: none; margin: 0; padding: 0; }
.feos-cf-line { display: grid; grid-template-columns: 18px minmax(0, 1fr) 170px 84px; gap: 10px; align-items: center; height: 38px;
    padding: 0 14px 0 36px; border-top: 1px solid #f0f3f6; font-size: 13px; }
.feos-cf-ic { color: #7b8794; text-align: center; }
.feos-cf-ic.fa-file-pdf { color: #c62828; }
.feos-cf-line .feos-cf-kind { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #33485c; }
.feos-cf-earlier { margin-top: 8px; }
@media (max-width: 760px) {
    .feos-cf-blocks { grid-template-columns: 1fr; }
    .feos-cf-slot { grid-template-columns: 18px 1fr auto; }
    .feos-cf-slot .feos-cf-file, .feos-cf-slot-needed .feos-cf-dropzone, .feos-cf-slot-needed .feos-cf-missing { grid-column: 2 / -1; }
    .feos-cf-line { grid-template-columns: 18px minmax(0, 1fr) 78px; padding-left: 14px; }
    .feos-cf-line .feos-cf-kind { display: none; }
}
