/* Finance → AR Directors' Hub (feos:views/ar-hub; Peter, 24 Nov 2026): a left menu, one firm at a time, the statements
   list beside the statement as the adviser reads it (feos-adviser-statement.css draws the statement itself). */
.arh-wrap { display: flex; flex-wrap: wrap; gap: 0; min-height: calc(100vh - 120px); background: #f4f7fa; border-radius: 10px; overflow: hidden; }
.arh-nav { flex: 0 0 230px; background: #0f2a44; color: #fff; padding: 20px 12px; display: flex; flex-direction: column; gap: 4px; }
.arh-brand { font-size: 17px; font-weight: 700; padding: 0 10px 14px; }
.arh-nav-item { color: #c9d6e3 !important; padding: 9px 12px; border-radius: 8px; cursor: pointer; text-decoration: none !important; }
.arh-nav-item:hover { background: #1b3a5a; color: #fff !important; }
.arh-nav-item.is-on { background: #23476b; color: #fff !important; font-weight: 600; }
.arh-only { font-size: 11px; color: #f6c76b; font-weight: 500; }
.arh-nav-head { margin-top: 16px; padding: 0 12px 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #9aa7b4; }
.arh-nav-soon { color: #8d9bab; padding: 6px 12px; font-size: 13px; }
.arh-main { flex: 999 1 600px; min-width: 0; padding: 22px 26px; display: flex; flex-direction: column; gap: 14px; }
.arh-top { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: flex-start; }
.arh-kicker { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #5b6b7c; }
.arh-top h3 { margin: 2px 0 4px; font-size: 22px; font-weight: 700; }
.arh-sub, .arh-sm { font-size: 12.5px; color: #5b6b7c; }
.arh-firms { display: flex; background: #fff; border: 1px solid #e1e7ee; border-radius: 10px; padding: 4px; }
.arh-firm { border: 0; background: transparent; color: #12202f; border-radius: 7px; padding: 9px 16px; font-weight: 600; min-height: 40px; }
.arh-firm.is-on { background: #0f2a44; color: #fff; }
.arh-firm.is-on.is-bb { background: #166b37; }
.arh-firm.is-on.is-fei { background: #1c6e8c; }
.arh-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.arh-filters label { display: flex; gap: 6px; align-items: center; font-weight: 500; font-size: 13px; color: #3a4a5b; margin: 0; }
.arh-filters .form-control { width: auto; min-width: 160px; }
.arh-list, .arh-card { background: #fff; border: 1px solid #e1e7ee; border-radius: 10px; padding: 8px 0; overflow-x: auto; }
/* the statements as full lines across the page (Peter, 26 Nov 2026); the heading stays while scrolling */
.arh-full th { position: sticky; top: 0; background: #fff; z-index: 1; }
.arh-full td { white-space: nowrap; }
.arh-card { padding: 10px 0; }
.arh-card-title { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #5b6b7c; padding: 4px 16px 8px; }
.arh-count { padding: 4px 14px 8px; font-size: 12.5px; color: #5b6b7c; }
.arh-more { padding: 8px 14px; }
.arh-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.arh-table th { text-align: left; font-size: 12px; color: #5b6b7c; font-weight: 600; padding: 7px 12px; border-bottom: 1px solid #e1e7ee; white-space: nowrap; }
.arh-table td { padding: 8px 12px; border-bottom: 1px solid #edf1f5; vertical-align: top; }
.arh-table .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.arh-row { cursor: pointer; }
.arh-row:hover { background: #f7f9fb; }
.arh-row.is-on { background: #eef4fb; }
.arh-pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.arh-pill.is-paid { background: #e6f4ea; color: #166b37; }
.arh-pill.is-ready { background: #e8f0fb; color: #1d5fa8; }
.arh-pill.is-neg { background: #fdecea; color: #b42318; }
.arh-empty { padding: 24px 16px; color: #5b6b7c; text-align: center; }
.arh-statement .feos-as { margin: 0; }
.arh-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .arh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.arh-tile { background: #fff; border: 1px solid #e1e7ee; border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.arh-tile span { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #5b6b7c; }
.arh-tile b { font-size: 24px; font-weight: 700; color: #12202f; }
.arh-tile small { font-size: 12.5px; color: #5b6b7c; }
.arh-up { color: #166b37; font-weight: 600; }
.arh-down { color: #b42318; font-weight: 600; }
.arh-barcell { width: 22%; }
.arh-bar { height: 10px; border-radius: 6px; background: #1d5fa8; min-width: 2px; }

/* the statement in a pop-up (Peter, 26 Nov 2026: "statement preview on pop up window") */
body.arh-pop-open { overflow: hidden; }
.arh-pop { position: fixed; inset: 0; z-index: 1050; background: rgba(15, 42, 68, .55); display: flex; justify-content: center;
    align-items: flex-start; padding: 32px 24px; overflow-y: auto; }
.arh-pop-card { position: relative; background: #f4f7fa; border-radius: 12px; width: min(1400px, 100%); padding: 26px 28px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.arh-pop-x { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; font-size: 30px; line-height: 1;
    color: #3a4a5b; width: 44px; height: 44px; border-radius: 22px; cursor: pointer; }
.arh-pop-x:hover { background: #e1e7ee; }
.arh-pop .feos-as-head { padding-right: 48px; }

/* commission transfers (FEOS 1.7.12x) */
.arh-ct-sum { margin: 10px 0 14px; background: #fff; border: 1px solid #e1e7ee; border-radius: 10px; }
.arh-ct-total td { border-top: 2px solid #c9d4df; border-bottom: 0; }

/* budget (Tools/ArHub/Budget) */
.arh-tiles-auto { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.arh-budget th small { display: block; font-weight: 500; color: #8794a3; font-size: 11.5px; }
.arh-budget th { vertical-align: bottom; }
.arh-budget td:first-child { min-width: 260px; }
.arh-budget td.n, .arh-budget th.n { width: 15%; }
.arh-bsec td { background: #f4f7fa; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #3a4a5b; padding-top: 10px; }
.arh-bsum td { border-top: 1px solid #c9d4df; font-weight: 600; }
.arh-bres td { border-top: 2px solid #0f2a44; font-size: 15px; font-weight: 700; background: #fbfcfd; }
.arh-bmeta td { color: #8794a3; font-size: 12px; border-bottom: 0; }
.arh-bedit { float: right; text-transform: none; letter-spacing: 0; font-weight: 500; cursor: pointer; }
.arh-bnote { padding: 8px 16px 2px; line-height: 1.5; }
.arh-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.arh-kv { display: flex; justify-content: space-between; gap: 16px; padding: 9px 16px; border-bottom: 1px solid #edf1f5; font-size: 13.5px; }
.arh-kv:last-child { border-bottom: 0; }
.arh-kv b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.arh-bar.is-neg { background: #c2410c; }
.arh-seg { float: right; display: inline-flex; border: 1px solid #e1e7ee; border-radius: 8px; overflow: hidden; text-transform: none; letter-spacing: 0; }
.arh-seg button { border: 0; background: #fff; padding: 6px 12px; font-size: 12.5px; color: #3a4a5b; min-height: 32px; }
.arh-seg button.is-on { background: #0f2a44; color: #fff; }
.arh-costs-edit .form-control { min-width: 0; }
.arh-costs-edit input.n { text-align: right; max-width: 130px; }
.arh-costs-btns { display: flex; gap: 8px; padding: 10px 16px 4px; }
.arh-table tr.is-on td { background: #eef4fb; }
