/* Business Hub (#FeosBusinessHub; feos:views/business-hub) — design A of the Adviser Processing Dashboard (22 Oct 2026). */
.fh { --fh-navy: #0f1e33; --fh-bg: #f4f6f9; --fh-text: #16202e; --fh-muted: #5b6676; --fh-line: #e3e8ef;
    color: var(--fh-text); max-width: 1440px; margin: 0 auto; padding: 4px 0 40px; }
.fh-loading, .fh-pad { padding: 24px 4px; color: var(--fh-muted); }
.fh-muted { color: var(--fh-muted); }

.fh-head { display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin: 6px 0 16px; }
.fh-head h1 { margin: 0 0 4px; font-size: 26px; font-weight: 700; color: var(--fh-navy); }
.fh-head p { margin: 0; color: var(--fh-muted); font-size: 13.5px; max-width: 720px; }
.fh-head-r { display: flex; gap: 8px; align-items: flex-end; }
.fh-who { display: flex; flex-direction: column; gap: 3px; margin: 0; font-weight: 400; font-size: 12px; color: var(--fh-muted); }
.fh-who select { min-width: 220px; }

.fh-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.fh-tile { position: relative; text-align: left; background: #fff; border: 1px solid var(--fh-line); border-radius: 14px;
    padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; border-top: 4px solid #c8d0db;
    transition: box-shadow .15s, transform .15s; min-height: 92px; }
.fh-tile:hover { box-shadow: 0 4px 14px rgba(15, 30, 51, .08); }
.fh-tile.is-on { box-shadow: 0 0 0 2px var(--fh-navy); }
.fh-tile-n { font-size: 30px; font-weight: 700; line-height: 1.1; }
.fh-tile-l { font-size: 13px; font-weight: 600; color: var(--fh-muted); }
.fh-tile-x { font-size: 11.5px; font-weight: 700; color: #7a3400; background: #ffe0b8; border-radius: 99px; padding: 2px 8px;
    align-self: flex-start; margin-top: 4px; }
.fh-tile.is-you { border-top-color: #b42318; } .fh-tile.is-you .fh-tile-n { color: #9b1c12; }
.fh-tile.is-client { border-top-color: #e07a00; } .fh-tile.is-client .fh-tile-n { color: #7a4a00; }
.fh-tile.is-provider { border-top-color: #1d4f91; } .fh-tile.is-provider .fh-tile-n { color: #1d4f91; }
.fh-tile.is-ready { border-top-color: #0b6b3a; } .fh-tile.is-ready .fh-tile-n { color: #0b6b3a; }
.fh-tile.is-signed { border-top-color: #4a5565; }

.fh-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.fh-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fh-chip { border: 1px solid #d5dce6; background: #fff; color: var(--fh-text); border-radius: 99px; padding: 6px 14px;
    font-size: 13px; font-weight: 600; cursor: pointer; }
.fh-chip.is-on { background: var(--fh-navy); border-color: var(--fh-navy); color: #fff; }
.fh-search { max-width: 280px; }

.fh-cases { display: flex; flex-direction: column; gap: 12px; transition: opacity .15s; }
.fh-cases.is-loading { opacity: .5; }
.fh-empty { background: #fff; border: 1px dashed #d5dce6; border-radius: 14px; padding: 28px; text-align: center; color: var(--fh-muted); }

.fh-case { background: #fff; border: 1px solid var(--fh-line); border-left: 4px solid #c8d0db; border-radius: 14px;
    padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.fh-case.is-you { border-left-color: #b42318; }
.fh-case.is-client { border-left-color: #e0a100; }
.fh-case.is-client.is-late { border-left-color: #e07a00; }
.fh-case.is-provider { border-left-color: #1d4f91; }
.fh-case.is-ready { border-left-color: #0b6b3a; }
.fh-case-top { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.fh-case-id { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fh-case-name { font-size: 16px; font-weight: 700; color: var(--fh-text); }
.fh-case-meta { font-size: 12.5px; color: var(--fh-muted); }
.fh-chev { color: var(--fh-muted); }

.fh-pill { white-space: nowrap; font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 99px; background: #eef0f3; color: #4a5565; }
.fh-pill::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.fh-pill.is-you { background: #fdecea; color: #9b1c12; }
.fh-pill.is-client { background: #fff2d9; color: #7a4a00; }
.fh-pill.is-client.is-late { background: #ffe0b8; color: #7a3400; }
.fh-pill.is-provider { background: #e6effb; color: #1d4f91; }
.fh-pill.is-ready { background: #e2f5ea; color: #0b6b3a; }

.fh-progress { height: 6px; background: #eef1f5; border-radius: 99px; overflow: hidden; }
.fh-progress span { display: block; height: 100%; background: #2e8b57; border-radius: 99px; }

.fh-next { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
    background: #f7f9fc; border-radius: 10px; padding: 10px 12px; }
.fh-next > div:first-child { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; min-width: 0; }
.fh-next small { text-transform: uppercase; letter-spacing: .05em; font-weight: 700; font-size: 11px; color: var(--fh-muted); }
.fh-next b { font-size: 14px; }
.fh-count { font-size: 12px; color: var(--fh-muted); }
.fh-acts { display: flex; gap: 6px; flex-wrap: wrap; }

/* the marks */
.fh-m { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 26px; border-radius: 7px;
    font-style: normal; font-weight: 700; font-size: 12px; line-height: 1; }
.fh-m.is-ok { background: #ddf3e6; color: #0b6b3a; }
.fh-m.is-miss { background: #fce4e1; color: #b42318; }
.fh-m.is-wait { background: #ffefcf; color: #7a4a00; }
.fh-m.is-late { background: #ffe0b8; color: #7a3400; box-shadow: inset 0 0 0 2px #e07a00; }
.fh-m.is-go { background: #0b6b3a; color: #fff; }
.fh-m.is-later { background: #f4f6f9; color: #9aa3b0; }
.fh-m.is-na { background: #f1f3f6; color: #7a8494; }
.fh-m.is-none { background: transparent; }

.fh-grid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fh-grid { border-collapse: separate; border-spacing: 4px 3px; }
.fh-grid thead th { font-size: 11px; font-weight: 600; color: var(--fh-muted); text-align: center; vertical-align: bottom;
    padding: 0 2px 2px; max-width: 76px; line-height: 1.2; }
.fh-grid thead th span { display: inline-block; max-width: 76px; }
.fh-row { text-align: left; padding: 2px 12px 2px 0; width: 260px; min-width: 260px; max-width: 260px; font-weight: 400;
    vertical-align: middle; position: sticky; left: 0; background: #fff; z-index: 1; }
.fh-row-l { display: block; font-size: 13px; font-weight: 600; }
.fh-row-s { display: block; font-size: 11.5px; color: var(--fh-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 248px; }
.fh-td { text-align: center; padding: 0; }
.fh-td .fh-m { cursor: help; }

/* the opened case */
.fh-detail { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; border-top: 1px solid #eef1f5; padding-top: 12px; }
.fh-detail-l { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.fh-detail-r { flex: 1 1 300px; min-width: 260px; display: flex; flex-direction: column; gap: 10px; }
.fh-check { border: 1px solid #eef1f5; border-radius: 12px; padding: 10px 14px; }
.fh-check h3 { margin: 0 0 6px; font-size: 14px; font-weight: 700; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.fh-check h3 small { font-weight: 400; font-size: 12px; color: var(--fh-muted); }
.fh-check p { margin: 0 0 6px; font-size: 12.5px; }
.fh-item { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid #f1f3f6; flex-wrap: wrap; }
.fh-item:first-of-type { border-top: 0; }
.fh-item-t { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; }
.fh-item-t b { font-size: 13px; }
.fh-item-t span { font-size: 12px; color: var(--fh-muted); }
.fh-who { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 99px; white-space: nowrap; background: #eef0f3; color: #4a5565; }
.fh-who.is-you { background: #fdecea; color: #9b1c12; }
.fh-who.is-client { background: #fff2d9; color: #7a4a00; }
.fh-who.is-later { background: #f4f6f9; color: #7a8494; }
.fh-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.fh-hist li span { display: block; font-size: 11.5px; font-weight: 400; color: var(--fh-muted); }
.fh-hist li.is-good { color: #0b6b3a; font-weight: 600; }

/* signed since yesterday */
.fh-signed { background: #fff; border: 1px solid var(--fh-line); border-radius: 14px; overflow: hidden; }
.fh-signed-row { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 16px;
    border-top: 1px solid #eef1f5; color: var(--fh-text); }
.fh-signed-row:first-child { border-top: 0; }
.fh-signed-row:hover { background: #f7f9fc; text-decoration: none; color: var(--fh-text); }
.fh-signed-t small { color: var(--fh-muted); }

.fh-key { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; font-size: 12px; color: var(--fh-muted); }
.fh-key span { display: inline-flex; gap: 6px; align-items: center; }
.fh-key .fh-m { width: 24px; height: 20px; font-size: 11px; }

@media (max-width: 1100px) {
    .fh-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .fh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .fh-tile { min-height: 76px; padding: 10px 12px; }
    .fh-tile-n { font-size: 24px; }
    .fh-case { padding: 12px; }
    .fh-case-top { flex-wrap: wrap; }
    .fh-search { max-width: none; width: 100%; }
    .fh-row { width: 128px; min-width: 128px; max-width: 128px; }
    .fh-row-s { max-width: 120px; }
    .fh-signed-row { grid-template-columns: 30px 1fr; }
    .fh-who select { min-width: 0; }
}

/* Remortgages due (1 Nov 2026): the deals ending soon */
.fh-rm { background: #fff; margin-top: 8px; }
.fh-rm td { vertical-align: top; }
/* the deal-end window and the Remortgage status (Natalia and Peter, 2 Nov 2026) */
.fh-rm-dates { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.fh-rm-dates label { display: flex; gap: 6px; align-items: center; font-weight: 500; margin: 0; }
.fh-rm-dates input { width: auto; }
.fh-rs-pick { width: auto; max-width: 230px; }
.fh-rs { display: inline-block; border-radius: 99px; padding: 2px 10px; background: #eef2f7; font-size: 12px; }
.fh-rs-offer-received, .fh-rs-remortgage-completed { background: #e7f6ec; color: #1e6b3a; }
.fh-rs-in-process, .fh-rs-application-submitted { background: #fff4e0; color: #8a5300; }
.fh-rs-remortgage-lost { background: #fdecec; color: #b42318; }
.fh-rm tr.is-ended td:nth-child(4) b { color: #b42318; }
.fh-rm tr.is-soon td:nth-child(4) b { color: #b54708; }
