/* RFP-aligned ChartMaster demo */
.management-section { margin-top: 46px; scroll-margin-top: 90px; }
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.section-title-row h2 { margin: 0; color: var(--ink); font: 700 24px "Manrope", sans-serif; letter-spacing: -.035em; }
.section-title-row > div > p:last-child { margin: 7px 0 0; color: var(--ink-muted); font-size: 14px; line-height: 1.5; }
.table-panel { overflow: hidden; }
.management-table { width: 100%; border-collapse: collapse; }
.management-table th { padding: 15px 18px; color: #75817f; border-bottom: 1px solid var(--line); background: #f8faf8; font-size: 11px; font-weight: 700; letter-spacing: .065em; text-transform: uppercase; white-space: nowrap; }
.management-table td { padding: 16px 18px; color: #53615f; border-bottom: 1px solid #edf0ed; font-size: 13px; vertical-align: middle; white-space: nowrap; }
.management-table tbody tr:last-child td { border-bottom: 0; }
.management-table tbody tr:hover { background: #fbfcfb; }
.table-controls { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.table-search { display: flex; min-width: 240px; flex: 1; align-items: center; gap: 9px; height: 42px; padding: 0 12px; color: #83908d; border: 1px solid #dbe1de; border-radius: 9px; background: #fff; }
.table-search:focus-within { color: var(--brand); border-color: #d999a1; box-shadow: 0 0 0 3px rgba(191,6,47,.07); }
.table-search input { width: 100%; min-width: 0; color: var(--ink); border: 0; outline: 0; background: transparent; font-size: 13px; }
.table-search input::placeholder { color: #98a29f; }
.table-controls > select { min-width: 150px; height: 42px; padding: 0 34px 0 11px; color: #556360; border: 1px solid #dbe1de; border-radius: 9px; background-color: #fff; font-size: 12px; font-weight: 600; }
.table-pagination { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; color: #75817f; border-top: 1px solid var(--line); background: var(--panel); font-size: 12px; }
.table-pagination > div { display: flex; align-items: center; gap: 8px; }
.table-pagination button { display: grid; width: 36px; height: 36px; place-items: center; color: #56635f; border: 1px solid #dbe1de; border-radius: 8px; background: #fff; }
.table-pagination button:not(:disabled):hover { color: var(--brand); border-color: #d999a1; background: #fff5f6; }
.table-pagination button:disabled { cursor: not-allowed; opacity: .38; }
.table-pagination > div > span { min-width: 82px; color: var(--ink); font-size: 11px; font-weight: 700; text-align: center; }
.table-empty-row td { height: 180px; text-align: center; white-space: normal; }
.table-empty-row td > i, .table-empty-row td > strong, .table-empty-row td > span { display: block; }
.table-empty-row td > i { color: #a4aeab; font-size: 22px; }
.table-empty-row td > strong { margin-top: 7px; color: var(--ink); font-size: 14px; }
.table-empty-row td > span { margin-top: 3px; color: #87918e; font-size: 11px; }
.table-identity { display: flex; min-width: 240px; align-items: center; gap: 12px; }
.table-identity > span { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; color: #fff; border-radius: 10px; background: var(--brand); font-size: 10px; font-weight: 800; }
.table-identity > div { display: flex; flex-direction: column; }
.table-identity strong { color: var(--ink); font-size: 14px; }
.table-identity small { margin-top: 3px; color: #84908e; font-size: 11px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 6px; font-size: 10px; font-weight: 700; }
.status-pill::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.status-pill.active { color: #387258; background: #e7f3eb; }
.status-pill.invited { color: #816726; background: #faf0d4; }
.status-pill.ended { color: #9c5547; background: #fae8e4; }
.roadmap-badge { padding: 7px 10px; color: #725d21; border: 1px solid #ebda9e; border-radius: 8px; background: #fff7d9; font-size: 9px; font-weight: 700; }
.playbook-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.playbook-card { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.playbook-card > div { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.playbook-card strong { color: var(--ink); font-size: 12px; }
.playbook-card small { margin-top: 4px; color: #8b9895; font-size: 9px; }
.role-options { display: grid; gap: 10px; }
.role-option { display: grid; width: 100%; grid-template-columns: 42px 1fr 20px; align-items: center; gap: 12px; padding: 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; transition: .15s ease; }
.role-option:hover { border-color: #a9c3bd; background: #fbfdfc; }
.role-option.active { border-color: #7ba79e; background: #edf6f2; box-shadow: 0 0 0 3px rgba(22,93,84,.06); }
.role-option > span { display: grid; width: 40px; height: 40px; place-items: center; color: var(--brand); border-radius: 10px; background: var(--brand-light); font-size: 18px; }
.role-option > div { display: flex; flex-direction: column; }
.role-option strong { font-size: 13px; }
.role-option small { margin-top: 4px; color: #7f8c89; font-size: 11px; line-height: 1.45; }
.role-option > i { color: var(--brand); opacity: 0; }
.role-option.active > i { opacity: 1; }
.publish-checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.publish-checks span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; color: #5e706d; border-radius: 7px; background: #f0f5f2; font-size: 10px; font-weight: 600; }
.publish-checks i { color: var(--brand); }
.entitlement-list { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.entitlement-row { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; border-bottom: 1px solid #edf0ed; cursor: pointer; }
.entitlement-row:last-child { border-bottom: 0; }
.entitlement-row:hover { background: #fafcfa; }
.entitlement-row > span:first-child { display: flex; flex-direction: column; }
.entitlement-row strong { color: var(--ink); font-size: 13px; }
.entitlement-row small { margin-top: 4px; color: #7f8c89; font-size: 11px; }
.entitlement-row .form-check-input { width: 2.4em; height: 1.25em; }
.market-access-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.market-access-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: 0 5px 16px rgba(30,45,42,.03); }
.market-access-heading { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 11px; }
.market-pin { display: grid; width: 42px; height: 42px; place-items: center; color: var(--brand); border-radius: 11px; background: var(--brand-light); font-size: 18px; }
.market-access-heading > div { display: flex; min-width: 0; flex-direction: column; }
.market-access-heading strong { color: var(--ink); font-size: 15px; }
.market-access-heading small { margin-top: 3px; color: #7f8c89; font-size: 11px; }
.market-broker-chips, .effective-access-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.market-broker-chips { margin-top: 15px; }
.market-broker-chips span, .effective-access-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; color: #4f625e; border: 1px solid #dce6e2; border-radius: 8px; background: #f7faf8; font-size: 10px; font-weight: 700; }
.market-broker-chips i, .effective-access-chips i { color: var(--brand); }
.market-broker-chips .empty-market-chip { color: #8b9694; font-weight: 500; }
.market-access-card > p { margin: 14px 0 0; padding-top: 12px; color: #74817e; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.5; }
.market-access-card > p i { margin-right: 5px; color: var(--brand); }
.access-modal-body { padding-top: 20px; }
.access-report-picker { display: grid; grid-template-columns: minmax(280px,1fr) auto; align-items: end; gap: 18px; margin-bottom: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf9; }
.access-report-picker > div { display: flex; flex-direction: column; }
.access-report-picker > span { padding-bottom: 10px; color: #76837f; font-size: 12px; white-space: nowrap; }
.access-assignment-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.access-assignment-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.access-panel-heading { display: flex; align-items: center; gap: 10px; padding: 14px 15px; border-bottom: 1px solid var(--line); background: #fafbfa; }
.access-panel-icon, .effective-access-icon { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; color: var(--brand); border-radius: 9px; background: var(--brand-light); font-size: 16px; }
.access-panel-icon.market { color: #8b5b13; background: #fff1d8; }
.access-panel-heading > div { display: flex; flex-direction: column; }
.access-panel-heading strong { color: var(--ink); font-size: 13px; }
.access-panel-heading small { margin-top: 2px; color: #7e8a87; font-size: 11px; line-height: 1.4; }
.access-target-list { display: grid; max-height: 330px; overflow-y: auto; }
.access-target-row { position: relative; display: grid; min-height: 70px; grid-template-columns: 36px minmax(0,1fr) 18px; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid #edf0ed; cursor: pointer; transition: .15s ease; }
.access-target-row:last-child { border-bottom: 0; }
.access-target-row:hover { background: #fbfcfb; }
.access-target-row:has(input:checked) { background: #fff3f4; }
.access-target-row > input { position: absolute; opacity: 0; pointer-events: none; }
.access-target-icon { display: grid; width: 35px; height: 35px; place-items: center; color: #5f6f6c; border-radius: 9px; background: #eef2f0; }
.access-target-icon.market { color: #8b5b13; background: #fff1d8; }
.access-target-row > span:nth-of-type(2) { display: flex; min-width: 0; flex-direction: column; }
.access-target-row strong { color: var(--ink); font-size: 12px; }
.access-target-row small { margin-top: 3px; overflow: hidden; color: #7c8986; font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.access-target-row > i { color: var(--brand); font-size: 17px; opacity: 0; }
.access-target-row:has(input:checked) > i { opacity: 1; }
.access-target-row:has(input:checked) .access-target-icon { color: #fff; background: var(--brand); }
.access-target-row.disabled { cursor: not-allowed; opacity: .5; }
.effective-access { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-top: 16px; padding: 15px; border: 1px solid #dbe6e1; border-radius: 12px; background: #f3f8f5; }
.effective-access > div:first-child { display: flex; min-width: 210px; align-items: center; gap: 10px; }
.effective-access > div:first-child > div { display: flex; flex-direction: column; }
.effective-access strong { color: var(--ink); font-size: 13px; }
.effective-access small { margin-top: 2px; color: #71807c; font-size: 11px; }
.effective-access-chips { justify-content: flex-end; }
.effective-access-chips .empty-access-summary { color: #856065; border-color: #efd5d9; background: #fff5f6; }
.market-broker-list { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.market-connection-summary { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 13px 14px; color: #5d6d69; border-radius: 10px; background: #f3f7f5; }
.market-connection-summary > i { margin-top: 2px; color: var(--brand); }
.market-connection-summary > span { display: flex; flex-direction: column; }
.market-connection-summary strong { color: var(--ink); font-size: 12px; }
.market-connection-summary small { margin-top: 3px; font-size: 10px; line-height: 1.5; }
.chartmaster-report-layout { grid-template-columns: 216px minmax(650px,1fr) 268px; }
