/* Shared styles for the Assess / Manage / Prevent pages, following the Behaviour Help design. */
:root {
    --bh-purple: #800080;
    --bh-purple-dark: #681868;
    --bh-orange: #F28935;
    --bh-blue: #00ACDC;
    --bh-green: #81B166;
    --bh-grey: #F2F1F1;
    --bh-step: var(--bh-orange);
}
.bh-step-manage { --bh-step: var(--bh-blue); }
.bh-step-prevent { --bh-step: var(--bh-green); }

.bh-page { padding: 24px 40px 32px; font-family: Helvetica Neue, Helvetica, Arial, sans-serif; }

/* "< Page 2 of 3 >" with the purple progress line under it */
.bh-progress { text-align: center; margin-bottom: 18px; }
.bh-progress a, .bh-progress span { color: var(--bh-purple); font-size: 12px; font-weight: 600; text-decoration: none; margin: 0 6px; }
.bh-progress .bh-progress-line { height: 4px; background: #E0E0E0; border-radius: 2px; margin-top: 8px; overflow: hidden; }
.bh-progress .bh-progress-line div { height: 100%; background: var(--bh-purple); }

/* Coloured section title bar */
.bh-bar { background: var(--bh-step); color: #fff; border-radius: 6px; padding: 9px 20px; font-size: 16px; font-weight: 700; margin: 8px 0 14px; }
.bh-lead { font-size: 14px; color: #000; margin-bottom: 18px; }
.bh-subhead { font-size: 16px; font-weight: 700; text-decoration: underline; margin: 28px 0 12px; }
.bh-label { font-size: 14px; font-weight: 700; margin-bottom: 6px; display: block; }
.bh-page .form-control, .bh-page .form-select { border-color: #000; border-radius: 3px; font-size: 14px; }
.bh-page textarea.form-control { min-height: 110px; }
.bh-help { font-size: 12px; color: #666; }

/* Grey cards (optionally collapsible with a caret) */
.bh-card { background: var(--bh-grey); border-radius: 6px; padding: 14px 18px; margin-bottom: 12px; }
.bh-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; cursor: pointer; }
.bh-card-head .bi-caret-up-fill, .bh-card-head .bi-caret-down-fill { font-size: 13px; }
.bh-card-body { margin-top: 12px; }
.bh-card.collapsed .bh-card-body { display: none; }
.bh-card textarea.form-control { border-color: transparent; }

/* "Add Row +", "Add Comment +", "Upload File +" */
.bh-add { display: inline-flex; align-items: center; gap: 8px; background: var(--bh-grey); border: 0; border-radius: 6px; padding: 12px 18px; font-size: 14px; font-weight: 700; color: #000; box-shadow: 0 2px 4px rgba(0,0,0,.15); }
.bh-add.wide { display: flex; width: 100%; box-shadow: none; }
.bh-add:hover { background: #E6E5E5; }
.bh-add .bh-optional { font-weight: 400; font-size: 12px; margin-left: 10px; }

.bh-btn { background: var(--bh-purple); border-color: var(--bh-purple); color: #fff; font-weight: 600; padding: 8px 26px; border-radius: 4px; }
.bh-btn:hover, .bh-btn:focus { background: var(--bh-purple-dark); border-color: var(--bh-purple-dark); color: #fff; }
.bh-btn-step { background: var(--bh-step); border-color: var(--bh-step); color: #fff; font-weight: 600; }
.bh-btn-step:hover { filter: brightness(.95); color: #fff; }
.bh-record-btn { background: var(--bh-purple); color: #fff; border: 0; border-radius: 3px; font-size: 12px; padding: 4px 12px; }

/* Back / Next */
.bh-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 64px; }
.bh-nav a { color: var(--bh-purple); font-size: 22px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.bh-nav a i { font-size: 26px; }

/* Lists of saved items (BDC forms, incident reports) */
.bh-table { width: 100%; font-size: 14px; }
.bh-table th { font-weight: 700; padding: 6px 8px; }
.bh-table td { padding: 6px 8px; vertical-align: middle; }
.bh-icon-btn { background: none; border: 0; color: #333; padding: 2px 6px; }
.bh-icon-btn:hover { color: var(--bh-purple); }

/* Charts */
.bh-chart { max-width: 520px; background: #fff; }
.bh-range { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; font-size: 14px; }
.bh-range input { max-width: 170px; }

/* Risk matrix */
.bh-risk { border-collapse: collapse; font-size: 12px; width: 100%; max-width: 560px; }
.bh-risk th, .bh-risk td { border: 1px solid #999; padding: 4px 6px; text-align: center; }
.bh-risk .bh-risk-axis { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 700; font-size: 14px; }

/* Escalation chart */
.bh-escalation svg { max-width: 520px; width: 100%; height: auto; }

/* Standalone printable sheets (BDC record sheet, incident report) */
.bh-sheet { background: #fff; max-width: 1100px; margin: 0 auto; padding: 32px 48px 48px; }
.bh-sheet h1 { font-size: 28px; font-weight: 700; text-align: center; margin: 12px 0 32px; }

@media print {
    header, .side-bar, .bh-nav, .bh-no-print, .navbar { display: none !important; }
    .side-bar-div-2 { width: 100% !important; margin: 0 !important; }
    section { background: #fff !important; }
    .bh-card.collapsed .bh-card-body { display: block; }
}
@media (max-width: 767.98px) {
    .bh-page { padding: 16px; }
}

/* Purple bullet lists (Teach Skills guidance) */
.bh-bullets { list-style: none; padding-left: 0; }
.bh-bullets li { position: relative; padding-left: 26px; margin-bottom: 6px; }
.bh-bullets li::before { content: ''; position: absolute; left: 4px; top: .45em; width: 11px; height: 11px; border-radius: 50%; background: var(--bh-purple); }

/* ---------------------------------------------------------------------------------------
 * App shell (layouts/header): header, tabs, sidebar. Scoped "bh-" classes so page
 * stylesheets (report*.css) can't restyle them.
 * ------------------------------------------------------------------------------------- */
body { font-family: Helvetica Neue, Helvetica, Arial, sans-serif; }
.bh-header { background: #fff; padding: 12px 72px 0; }
.bh-header-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.bh-logo { height: 56px; width: auto; }
.bh-menu-toggle { display: none; border: 1px solid #ddd; border-radius: 6px; padding: 4px 10px; font-size: 22px; background: #fff; }
.bh-user { display: flex; align-items: flex-start; gap: 16px; }
.bh-user-text { text-align: right; line-height: 1.2; }
.bh-user-name { display: block; font-size: 20px; font-weight: 500; color: #000; text-decoration: none; }
.bh-user-name:hover { color: var(--bh-purple); }
.bh-user-meta { font-size: 13px; font-weight: 300; color: #000; }
.bh-user-links { display: flex; justify-content: flex-end; gap: 14px; margin: 4px 0 0; }
.bh-user-links a, .bh-user-links button { background: none; border: 0; padding: 0; color: var(--bh-purple); font-size: 13px; text-decoration: underline; }
.bh-avatar { width: 68px; height: 68px; border-radius: 5px; background: var(--bh-purple); color: #fff; font-size: 40px; display: flex; align-items: center; justify-content: center; text-decoration: none; flex: none; }
.bh-avatar:hover { background: var(--bh-purple-dark); color: #fff; }
.bh-header-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.bh-individual { font-size: 32px; font-weight: 500; margin: 0 0 14px; color: #000; }
.bh-tabs { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.bh-tab { color: #000; font-size: 15px; text-decoration: none; padding: 8px 0 10px; border-bottom: 2px solid transparent; white-space: nowrap; }
.bh-tab:hover { color: var(--bh-purple); }
.bh-tab.active { font-weight: 700; border-bottom-color: #000; }

.bh-body { background: #F2F1F1; min-height: calc(100vh - 160px); }
.bh-body-inner { display: flex; align-items: stretch; gap: 44px; }
.bh-sidebar.side-bar { display: flex; width: auto; flex: none; }
.bh-sidebar ul { list-style: none; margin: 0; padding: 0; }
.bh-side-people { background: var(--bh-purple); width: 150px; border-radius: 0 15px 15px 0; padding: 50px 0 40px !important; display: flex; flex-direction: column; align-items: flex-end; }
.bh-side-heading a { display: block; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .5px; text-decoration: none; padding: 0 18px 64px 0; text-align: right; }
.bh-side-person { width: 100%; }
.bh-side-person a { display: block; color: #fff; text-decoration: none; text-align: right; font-size: 15px; padding: 14px 18px 14px 8px; border-radius: 10px 0 0 10px; }
.bh-side-person a:hover { background: rgba(255,255,255,.12); }
.bh-side-person.active a { background: var(--bh-purple-dark); font-weight: 600; }
.bh-side-steps { background: var(--bh-purple-dark); width: 140px; border-radius: 0 15px 15px 0; padding: 170px 0 40px !important; display: flex; flex-direction: column; align-items: flex-end; gap: 40px; }
.bh-side-step { width: 104px; border-radius: 15px 0 0 15px; transition: width .15s ease; }
.bh-side-step a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 55px; padding: 0 10px; color: #fff; text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; }
.bh-side-step.active { width: 122px; box-shadow: -4px 4px 10px rgba(0,0,0,.25); }
.bh-side-step:not(.active):hover { width: 112px; }
.bh-side-guide { background: #B3B3B3; }
.bh-side-guide a { font-size: 13px; font-weight: 500; text-decoration: underline; }

.bh-main.side-bar-div-2 { flex: 1 1 auto; width: auto; min-width: 0; margin: 30px 28px 0 0; background: #fff; border-radius: 15px 15px 0 0; }

/* Consistent buttons on the older profile pages */
.bh-main .btn-orange, .bh-main .btn-success.btn-orange { background: var(--bh-orange) !important; border-color: var(--bh-orange) !important; color: #fff !important; padding: 6px 22px; font-weight: 600; }
.bh-main [data-repeater-add], .bh-main .btn-outline-success { background: var(--bh-purple); border-color: var(--bh-purple); color: #fff; font-weight: 600; }
.bh-main [data-repeater-add]:hover, .bh-main .btn-outline-success:hover { background: var(--bh-purple-dark); border-color: var(--bh-purple-dark); color: #fff; }
.bh-main .btn-primary { background: var(--bh-purple); border-color: var(--bh-purple); }
.bh-main .btn-primary:hover { background: var(--bh-purple-dark); border-color: var(--bh-purple-dark); }
.bh-main a.step-link { color: var(--bh-purple); }

@media (max-width: 991.98px) {
    .bh-header { padding: 12px 16px 0; }
    .bh-menu-toggle { display: inline-block; margin-left: auto; }
    .bh-user-text { display: none; }
    .bh-avatar { width: 48px; height: 48px; font-size: 28px; }
    .bh-individual { font-size: 24px; margin-bottom: 4px; }
    .bh-tabs { overflow-x: auto; flex-wrap: nowrap; width: 100%; }
    .bh-body-inner { gap: 0; position: relative; }
    .bh-sidebar.side-bar { position: absolute; z-index: 20; height: auto; min-height: 100%; width: auto; }
    .bh-sidebar.side-bar.d-none-1 { display: none !important; }
    .bh-main.side-bar-div-2 { margin: 16px 12px 0; }
}
@media print {
    .bh-header-top, .bh-tabs, .bh-sidebar { display: none !important; }
    .bh-main.side-bar-div-2 { margin: 0; }
}

/* Older profile pages: tighter section spacing, purple links */
.bh-main .custom-header-1 { margin-top: 40px; }
.bh-main a:not(.btn):not(.bh-add):not(.bh-record-btn):not(.bh-icon-btn):not(.text-dark):not(.step-link) { color: var(--bh-purple); }
