/*!
Theme Name: PageBolt Child
Theme URI: https://uicore.co
Description: Landing Page WordPress Theme
Author: UiCore
Author URI: https://uicore.co
Template: pagebolt
Version: 1.0.0
Text Domain: pagebolt
*/

 /* Add your custom style here */

/* =========================================================
   AhBe Protected Survey Results Page
   ========================================================= */


/* Page wrapper */

.ahbe-password-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 70px 24px;
}


/* Main card */

.ahbe-password-card {
    width: 100%;
    max-width: 560px;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;

    padding: 48px;

    text-align: center;

    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}


/* Lock icon */

.ahbe-password-icon {
    width: 64px;
    height: 64px;

    margin: 0 auto 22px;

    border-radius: 50%;

    background: #f7f3eb;
    color: #a58a54;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* Heading */

.ahbe-password-card h2 {
    margin: 0 0 12px;

    font-size: 30px;
    line-height: 1.2;
    font-weight: 600;

    color: #111111;
}


/* Description */

.ahbe-password-card p {
    margin: 0 auto 30px;

    max-width: 460px;

    font-size: 16px;
    line-height: 1.7;

    color: #667085;
}


/* Form */

.ahbe-password-form {
    text-align: center;
}


/* Label */

.ahbe-password-form label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 600;

    color: #344054;
}


/* Input + button row */

.ahbe-password-input-wrap {
    display: flex;
    gap: 12px;
}


/* Password input */

.ahbe-password-input-wrap input[type="password"] {
    flex: 1;

    min-width: 0;
    height: 52px;

    margin: 0;
    padding: 0 16px;

    border: 1px solid #d0d5dd;
    border-radius: 10px;

    background: #ffffff;

    font-size: 16px;
    color: #111111;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.ahbe-password-input-wrap input[type="password"]:focus {
    border-color: #a58a54;

    box-shadow:
        0 0 0 3px rgba(165, 138, 84, 0.15);
}


/* Access Results button */

.ahbe-password-button {
    position: relative;

    height: 52px;

    margin: 0;
    padding: 0 24px;

    border: 0;
    border-radius: 10px;

    background: #a58a54;
    color: #ffffff;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
    white-space: nowrap;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* This is the ONLY special button fix we are keeping */

.ahbe-password-button span {
    position: absolute;

    top: 50%;
    left: 50%;

    margin: 0;
    padding: 0;

    line-height: 1;
    white-space: nowrap;

    transform: translate(-50%, -50%);
}


/* Give the button enough width for its label */

.ahbe-password-button {
    min-width: 190px;
}


/* Hover */

.ahbe-password-button:hover {
    background: #947a49;

    transform: translateY(-1px);

    box-shadow:
        0 5px 14px rgba(165, 138, 84, 0.20);
}


/* Authorization note */

.ahbe-password-note {
    margin-top: 22px;

    font-size: 13px;

    color: #98a2b3;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 600px) {

    .ahbe-password-wrap {
        padding: 40px 18px;
    }


    .ahbe-password-card {
        padding: 32px 22px;
    }


    .ahbe-password-card h2 {
        font-size: 25px;
    }


    .ahbe-password-input-wrap {
        flex-direction: column;
    }


    .ahbe-password-button {
        width: 100%;
    }
	
	.ahbe-password-card p {
		padding-left: 2px;
		padding-right: 2px;
	}
	
	#pwbox-6968{
		text-align: center;
	}
	
}

/* =========================================================
   AHBE HSE RESULTS DASHBOARD
   ========================================================= */

.ahbe-hse-dashboard {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}


/* Header */

.ahbe-dashboard-header {
    margin-bottom: 34px;
}

.ahbe-dashboard-eyebrow {
    margin: 0 0 8px !important;

    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: #a58a54 !important;
}

.ahbe-dashboard-header h1 {
    margin: 0 0 10px;

    font-size: 38px;
    line-height: 1.2;
    font-weight: 600;

    color: #111111;
}

.ahbe-dashboard-subtitle {
    margin: 0 !important;

    max-width: 720px;

    font-size: 16px !important;
    line-height: 1.7 !important;

    color: #667085 !important;
}

.ahbe-dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 44px;
}

.ahbe-dashboard-header-content {
    flex: 1;
    min-width: 0;
}

.ahbe-dashboard-header-action {
    flex-shrink: 0;
    padding-top: 4px;
}

.ahbe-back-survey-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 42px;
    padding: 0 16px;

    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;

    color: #344054;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;

    transition: all 0.2s ease;
}

.ahbe-back-survey-button:hover {
    border-color: #a58a54;
    color: #a58a54;
    box-shadow: 0 4px 12px rgba(165, 138, 84, 0.12);
    transform: translateY(-1px);
}

/* =====================================================
 * DASHBOARD JUMP NAVIGATION
 * ===================================================== */

html {
    scroll-behavior: smooth;
}

.ahbe-dashboard-nav {
    position: sticky;
    top: 0;
    z-index: 100;

	margin-top: -20px;
    margin-bottom: 32px;
    padding: 8px;

    background: #faf9f7;
    border: 1px solid #eaecf0;
    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04);
}

.ahbe-dashboard-nav-inner {
    display: flex;
    align-items: center;
    gap: 5px;

    width: 100%;
    overflow-x: auto;

    box-sizing: border-box;
    scrollbar-width: thin;
}

.ahbe-dashboard-nav-label {
    flex: 0 0 auto;

    padding: 0 10px;

    color: #667085;
    font-size: 13px;
    font-weight: 600;
}

.ahbe-dashboard-nav a {
    flex: 0 0 auto;

    padding: 10px 13px;

    color: #344054;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;

    border-radius: 8px;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.ahbe-dashboard-nav a:hover {
    background: #f7f3eb;
    color: #A58A54;
}

/* Analytics / first section */
.ahbe-dashboard-nav a[href="#analytics"] {
    background: #A58A54;
    color: #ffffff;
}

#analytics,
#culture-scores,
#response-distribution,
#demographic-comparisons,
#question-insights,
#export-data {
    scroll-margin-top: 90px;
}


/* Mobile */

@media (max-width: 767px) {

    .ahbe-dashboard-nav {
        margin-bottom: 24px;
        padding: 7px;
    }

    .ahbe-dashboard-nav-label {
        display: none;
    }

    .ahbe-dashboard-nav a {
        padding: 9px 11px;
        font-size: 12px;
    }
}

/* Summary cards */

.ahbe-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

    margin-bottom: 28px;
}

.ahbe-stat-card {
    min-height: 165px;

    padding: 26px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.ahbe-stat-label {
    margin-bottom: 14px;

    font-size: 14px;
    font-weight: 600;

    color: #667085;
}

.ahbe-stat-value {
    margin-bottom: 9px;

    font-size: 34px;
    line-height: 1.15;
    font-weight: 600;

    color: #111111;
}

.ahbe-stat-value-date {
    font-size: 25px;
}

.ahbe-stat-meta {
    font-size: 13px;
    line-height: 1.5;

    color: #98a2b3;
}


/* Status badge */

.ahbe-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;

    padding: 5px 14px;

    border-radius: 999px;

    font-size: 14px;
    line-height: 1;
    font-weight: 600;
}

.ahbe-status-active {
    background: #edf7ef;
    color: #29723b;
}

.ahbe-status-inactive {
    background: #fef0f0;
    color: #b42318;
}


/* Export panel */

.ahbe-export-panel {
    padding: 32px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.ahbe-export-panel-header {
    margin-bottom: 26px;
}

.ahbe-export-panel-header h2 {
    margin: 0 0 8px;

    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;

    color: #111111;
}

.ahbe-export-panel-header p {
    margin: 0 !important;

    max-width: 700px;

    font-size: 15px !important;
    line-height: 1.6 !important;

    color: #667085 !important;
}


/* Export fields */

.ahbe-dashboard-export-fields {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr)
        190px;

    gap: 16px;

    align-items: end;
}

.ahbe-dashboard-field label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 600;

    color: #344054;
}

.ahbe-dashboard-field input[type="date"] {
    width: 100%;
	max-width: 100%;
	min-width: 0;
    height: 52px;

    padding: 0 14px;

    border: 1px solid #d0d5dd;
    border-radius: 10px;

    background: #ffffff;

    font-size: 15px;
    color: #111111;

    box-sizing: border-box;

    outline: none;
}

/* iPhone / Safari date input fix */
.ahbe-dashboard-field input[type="date"] {
    -webkit-appearance: none;
    appearance: none;

    font-family: inherit;
    font-size: 16px;

    color: #111111;
    -webkit-text-fill-color: #111111;

    line-height: normal;
}

.ahbe-dashboard-field input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
    min-height: 1.2em;
}

.ahbe-dashboard-field input[type="date"]::-webkit-datetime-edit {
    display: block;
    padding: 0;
}

.ahbe-dashboard-field input[type="date"]::-webkit-calendar-picker-indicator {
    display: block;
    opacity: 1;
    cursor: pointer;
}

.ahbe-dashboard-field input[type="date"]:focus {
    border-color: #a58a54;

    box-shadow:
        0 0 0 3px rgba(165, 138, 84, 0.15);
}


/* Export button */

.ahbe-dashboard-export-button {
    position: relative;

    width: 100%;
    height: 52px;

    margin: 0;
    padding: 0;

    border: none;
    border-radius: 10px;

    background: #a58a54;
    color: #ffffff;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ahbe-dashboard-export-button span {
    position: absolute;

    top: 50%;
    left: 50%;

    line-height: 1;
    white-space: nowrap;

    transform: translate(-50%, -50%);
}

.ahbe-dashboard-export-button:hover {
    background: #947a49;

    transform: translateY(-1px);

    box-shadow:
        0 5px 14px rgba(165, 138, 84, 0.20);
}


/* Help text */

.ahbe-export-help {
    margin: 14px 0 0 !important;

    font-size: 13px !important;
    line-height: 1.5 !important;

    color: #98a2b3 !important;
}


/* Notices */

.ahbe-dashboard-notice {
    max-width: 800px;

    margin: 50px auto;
    padding: 18px 20px;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    background: #ffffff;

    color: #344054;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .ahbe-dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }

    .ahbe-dashboard-export-fields {
        grid-template-columns: 1fr 1fr;
    }

    .ahbe-dashboard-export-action {
        grid-column: 1 / -1;
    }

    .ahbe-dashboard-export-button {
        max-width: 220px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .ahbe-hse-dashboard {
        padding: 38px 16px 60px;
    }

    .ahbe-dashboard-header h1 {
        font-size: 30px;
    }
	
	.ahbe-dashboard-header {
		flex-direction: column;
		gap: 18px;
	}

	.ahbe-dashboard-header-action {
		padding-top: 0;
	}

    .ahbe-dashboard-stats {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .ahbe-stat-card {
        min-height: auto;
    }
	
	.ahbe-dashboard-field input[type="date"] {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .ahbe-dashboard-export-fields {
        grid-template-columns: 1fr;
    }

    .ahbe-dashboard-export-action {
        grid-column: auto;
    }

    .ahbe-dashboard-export-button {
        max-width: none;
    }

    .ahbe-export-panel {
        padding: 24px 20px;
    }
}

/* =====================================================
   RESPONSE DISTRIBUTION & CHARTS
===================================================== */

.ahbe-chart-workspace {
    margin-top: 28px;
	margin-bottom: 36px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

.ahbe-chart-header {
    margin-bottom: 24px;
}

.ahbe-chart-header h2 {
    margin: 0 0 6px;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 600;
    color: #101828;
}

.ahbe-chart-header p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #667085;
}


/* Controls */

.ahbe-chart-controls {
    display: grid;
    grid-template-columns:
        minmax(240px, 1.4fr)
        minmax(220px, 1fr)
        auto;
    gap: 16px;
    align-items: end;

    padding: 20px;
    margin-bottom: 24px;

    background: #f9fafb;
    border: 1px solid #eaecf0;
    border-radius: 12px;
}

.ahbe-chart-field label {
    display: block;
    margin-bottom: 7px;

    font-size: 13px;
    font-weight: 600;
    color: #344054;
}

.ahbe-chart-field select {
    width: 100%;
    height: 44px;

    padding: 0 38px 0 12px;

    background-color: #ffffff;

    border: 1px solid #d0d5dd;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 400;
    color: #344054;

    outline: none;
}

.ahbe-chart-field select {
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.ahbe-chart-field select:focus {
    border-color: #a58a54;
    box-shadow:
        0 0 0 3px
        rgba(165, 138, 84, 0.12);
}


/* Generate button */

.ahbe-chart-action button {
    min-height: 44px;

    padding: 0 20px;

    border: 1px solid #a58a54;
    border-radius: 8px;

    background: #a58a54;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.ahbe-chart-action button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 6px 14px
        rgba(165, 138, 84, 0.20);
}


/* Chart display */

.ahbe-chart-display {
    position: relative;

    min-height: 380px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: #ffffff;

    border: 1px solid #eaecf0;
    border-radius: 12px;
}

.ahbe-chart-display canvas {
    width: 100% !important;
    height: 360px !important;
}

.ahbe-chart-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    color: #667085;
}

.ahbe-chart-placeholder-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    margin-bottom: 14px;

    border-radius: 50%;

    background: #f7f3eb;

    color: #a58a54;

    font-size: 25px;
}

.ahbe-chart-placeholder strong {
    margin-bottom: 4px;

    font-size: 15px;
    font-weight: 600;

    color: #344054;
}

.ahbe-chart-placeholder span {
    font-size: 13px;
}


/* Download buttons */

.ahbe-chart-downloads {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 16px;
}

.ahbe-chart-downloads button {
    min-height: 40px;

    padding: 0 16px;

    background: #ffffff;

    border: 1px solid #d0d5dd;
    border-radius: 8px;

    color: #344054;

    font-size: 13px;
    font-weight: 600;
}

.ahbe-chart-downloads button:not(:disabled) {
    cursor: pointer;
}

.ahbe-chart-downloads button:not(:disabled):hover {
    border-color: #a58a54;
    color: #a58a54;
}

.ahbe-chart-downloads button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}


/* Tablet */

@media (max-width: 900px) {

    .ahbe-chart-controls {
        grid-template-columns: 1fr 1fr;
    }

    .ahbe-chart-action {
        grid-column: 1 / -1;
    }

    .ahbe-chart-action button {
        width: 100%;
    }
}


/* Mobile */

@media (max-width: 600px) {

    .ahbe-chart-workspace {
        padding: 20px;
    }

    .ahbe-chart-controls {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .ahbe-chart-action {
        grid-column: auto;
    }

    .ahbe-chart-display {
        min-height: 300px;
        padding: 16px;
    }

    .ahbe-chart-downloads {
        flex-direction: column;
    }

    .ahbe-chart-downloads button {
        width: 100%;
    }
}

/* =========================================================
   DEMOGRAPHIC COMPARISONS
   ========================================================= */

.ahbe-demographic-comparison {
    margin-top: 32px;
	margin-bottom: 36px;
}

.ahbe-demographic-comparison .ahbe-section-header {
    margin-bottom: 24px;
}

.ahbe-demographic-comparison .ahbe-section-header h2 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    color: #101828;
}

.ahbe-demographic-comparison .ahbe-section-header p {
    margin: 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.6;
}


/* Controls */

.ahbe-comparison-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 24px;
    margin-bottom: 28px;
    background: #f9fafb;
    border: 1px solid #eaecf0;
    border-radius: 14px;
}

.ahbe-comparison-field {
    min-width: 0;
}

.ahbe-comparison-field label {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
}

.ahbe-comparison-field select {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 42px 0 14px;
    background-color: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    color: #475467;
    font-size: 15px;
    box-sizing: border-box;
}


/* Chart */

.ahbe-comparison-chart-wrap {
    position: relative;
    width: 100%;
    height: 440px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #eaecf0;
    border-radius: 14px;
    box-sizing: border-box;
}

.ahbe-comparison-chart-wrap canvas {
	display: block;
	padding-top: 10px;
    width: 100% !important;
    height: 100% !important;
}

.ahbe-comparison-chart-inner {
	position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
}

/* Download buttons */

.ahbe-demographic-comparison .ahbe-chart-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    margin-bottom: 36px;
}

/* Demographic Comparison Download Buttons */

.ahbe-demographic-comparison .ahbe-chart-download {
    appearance: none;
    -webkit-appearance: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 11px 18px;

    background: #ffffff;
    color: #344054;

    border: 1px solid #d0d5dd;
    border-radius: 8px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;

    cursor: pointer;

    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ahbe-demographic-comparison .ahbe-chart-download:hover {
    background: #f9fafb;
    border-color: #A58A54;
    color: #A58A54;

    box-shadow: 0 2px 5px rgba(16, 24, 40, 0.08);

    transform: translateY(-1px);
}

.ahbe-demographic-comparison .ahbe-chart-download:focus {
    outline: none;
    border-color: #A58A54;
    box-shadow: 0 0 0 3px rgba(165, 138, 84, 0.15);
}


/* Mobile */

@media (max-width: 767px) {

    .ahbe-comparison-controls {
        grid-template-columns: 1fr;
        padding: 18px;
        gap: 16px;
    }
	
	.ahbe-comparison-chart-wrap {
		width: 100%;
        height: auto !important;
        min-height: 0 !important;

        padding: 16px 20px 24px 16px;

        overflow-x: auto;
        overflow-y: hidden;

        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
	}

	.ahbe-comparison-chart-inner {
		height: 500px;
		min-height: 500px;
	}

	.ahbe-comparison-chart-inner canvas {
		width: 100% !important;
		height: 100% !important;
	}

    .ahbe-demographic-comparison .ahbe-chart-actions {
        justify-content: stretch;
    }

    .ahbe-demographic-comparison .ahbe-chart-actions button {
        flex: 1 1 100%;
    }
}

/* =====================================================
 * QUESTION-LEVEL INSIGHTS
 * ===================================================== */

.ahbe-question-insights {
    margin-top: 32px;
    margin-bottom: 36px;
}

.ahbe-question-insights .ahbe-section-header {
    margin-bottom: 24px;
}

.ahbe-question-insights .ahbe-section-header h2 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    color: #101828;
}

.ahbe-question-insights .ahbe-section-header p {
    margin: 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.6;
}


/* Two insight panels */

.ahbe-insights-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.ahbe-insight-panel {
    min-width: 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #eaecf0;
    border-radius: 14px;
}

.ahbe-insight-panel h3 {
    margin: 0 0 20px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #101828;
}


/* Individual questions */

.ahbe-insight-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    padding: 18px 0;

    border-top: 1px solid #eaecf0;
}

.ahbe-insight-row:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.ahbe-insight-row:last-child {
    padding-bottom: 0;
}


/* Question text */

.ahbe-insight-text {
    flex: 1;
    min-width: 0;
}

.ahbe-insight-question {
    color: #344054;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
}

.ahbe-insight-meta {
    margin-top: 6px;

    color: #98a2b3;
    font-size: 12px;
    line-height: 1.4;
}


/* Score */

.ahbe-insight-score {
    flex: 0 0 auto;

    min-width: 58px;
    padding: 8px 10px;

    background: #f7f3eb;
    border-radius: 8px;

    color: #A58A54;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    text-align: center;
}


/* Empty state */

.ahbe-insight-empty {
    margin: 0;
    color: #667085;
    font-size: 14px;
}


/* Mobile */

@media (max-width: 767px) {

    .ahbe-insights-grid {
        grid-template-columns: 1fr;
    }

    .ahbe-insight-panel {
        padding: 20px;
    }

    .ahbe-insight-row {
        gap: 14px;
    }

    .ahbe-insight-score {
        min-width: 54px;
    }
}

/* =========================================================
   AHBE HSE DASHBOARD
   ANALYTICS SECTION
   ========================================================= */


/* ---------- ANALYTICS WRAPPER ---------- */

.ahbe-analytics-section {
    margin-bottom: 28px;
}


/* ---------- SECTION HEADER ---------- */

.ahbe-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 22px;
}


.ahbe-section-eyebrow {
    margin: 0 0 6px !important;

    font-size: 12px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: #a58a54 !important;
}


.ahbe-section-heading h2 {
    margin: 0 0 7px;

    font-size: 28px;
    line-height: 1.25;
    font-weight: 600;

    color: #111111;
}


.ahbe-section-heading p {
    margin: 0 !important;

    font-size: 15px !important;
    line-height: 1.6 !important;

    color: #667085 !important;
}


/* ---------- PROVISIONAL BADGE ---------- */

.ahbe-provisional-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    padding: 7px 12px;

    border-radius: 999px;

    background: #f7f3eb;
    color: #8b713e;

    font-size: 12px;
    line-height: 1;
    font-weight: 600;
}


/* =========================================================
   PRIMARY SCORE CARDS
   ========================================================= */

.ahbe-primary-scores {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 20px;

    margin-bottom: 20px;
}


.ahbe-score-card {
    padding: 30px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}


.ahbe-score-card-primary {
    border-top: 3px solid #a58a54;
}


.ahbe-score-card-risk {
    border-top: 3px solid #344054;
}


.ahbe-score-label {
    margin-bottom: 14px;

    font-size: 15px;
    font-weight: 600;

    color: #667085;
}


.ahbe-score-number {
    display: flex;
    align-items: baseline;

    gap: 7px;

    margin-bottom: 12px;

    color: #111111;
}


.ahbe-score-number span {
    font-size: 46px;
    line-height: 1;
    font-weight: 600;
}


.ahbe-score-number small {
    font-size: 15px;
    font-weight: 500;

    color: #98a2b3;
}


.ahbe-score-description {
    max-width: 500px;

    font-size: 13px;
    line-height: 1.6;

    color: #98a2b3;
}


/* =========================================================
   DOMAIN PANEL
   ========================================================= */

.ahbe-domain-panel {
    margin-bottom: 20px;

    padding: 30px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}


.ahbe-domain-panel-header {
    margin-bottom: 24px;
}


.ahbe-domain-panel-header h3 {
    margin: 0 0 6px;

    font-size: 21px;
    line-height: 1.3;
    font-weight: 600;

    color: #111111;
}


.ahbe-domain-panel-header p {
    margin: 0 !important;

    font-size: 14px !important;
    line-height: 1.5 !important;

    color: #98a2b3 !important;
}


/* ---------- DOMAIN GRID ---------- */

.ahbe-domain-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px 28px;
}


.ahbe-domain-card {
    padding: 18px 0;
}


.ahbe-domain-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 12px;
}


.ahbe-domain-name {
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;

    color: #344054;
}


.ahbe-domain-score {
    flex: 0 0 auto;

    font-size: 18px;
    line-height: 1;
    font-weight: 600;

    color: #111111;
}


/* ---------- SCORE BAR ---------- */

.ahbe-score-track {
    width: 100%;
    height: 8px;

    overflow: hidden;

    border-radius: 999px;

    background: #f2f4f7;
}


.ahbe-score-fill {
    height: 100%;

    border-radius: inherit;

    background: #a58a54;

    transition: width 0.4s ease;
}


.ahbe-domain-scale {
    display: flex;
    justify-content: space-between;

    margin-top: 6px;

    font-size: 11px;

    color: #b0b7c3;
}


/* =========================================================
   METHODOLOGY NOTE
   ========================================================= */

.ahbe-methodology-note {
    display: flex;
    align-items: flex-start;

    gap: 14px;
	margin-top: 20px;
	margin-bottom: 20px;
    padding: 18px 20px;

    background: #faf8f3;

    border: 1px solid #ebe4d5;
    border-radius: 12px;
}


.ahbe-methodology-icon {
    flex: 0 0 28px;

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #a58a54;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;
}


.ahbe-methodology-note strong {
    display: block;

    margin-bottom: 4px;

    font-size: 14px;

    color: #344054;
}


.ahbe-methodology-note p {
    margin: 0 !important;

    font-size: 13px !important;
    line-height: 1.6 !important;

    color: #667085 !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .ahbe-domain-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .ahbe-section-heading {
        flex-direction: column;

        gap: 12px;
    }


    .ahbe-primary-scores {
        grid-template-columns: 1fr;
    }


    .ahbe-score-card,
    .ahbe-domain-panel {
        padding: 24px 20px;
    }


    .ahbe-score-number span {
        font-size: 40px;
    }

}

/* =========================================================
   HSE DASHBOARD FILTER PANEL
   ========================================================= */

.ahbe-filter-panel {
    margin-bottom: 28px;

    padding: 28px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}


.ahbe-filter-header {
    margin-bottom: 22px;
}


.ahbe-filter-header h2 {
    margin: 0 0 6px;

    font-size: 22px;
    line-height: 1.3;
    font-weight: 600;

    color: #111111;
}


.ahbe-filter-header p {
    margin: 0 !important;

    font-size: 14px !important;
    line-height: 1.6 !important;

    color: #667085 !important;
}


/* Filter fields */

.ahbe-filter-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}


.ahbe-filter-field label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 600;

    color: #344054;
}


.ahbe-filter-field select {
    width: 100%;
    height: 50px;

    padding: 0 36px 0 14px;

    border: 1px solid #d0d5dd;
    border-radius: 10px;

    background: #ffffff;

    font-size: 14px;
    color: #344054;

    box-sizing: border-box;

    outline: none;
}


.ahbe-filter-field select:focus {
    border-color: #a58a54;

    box-shadow:
        0 0 0 3px rgba(165, 138, 84, 0.15);
}

/* Default "All" filter state */
.ahbe-filter-field select {
    color: #667085 !important;
    font-weight: 400;
}


/* Active filter state */
.ahbe-filter-field select.ahbe-filter-active {
    color: #A58A54 !important;
    font-weight: 600;
    border-color: #A58A54 !important;
}


/* Actions */

.ahbe-filter-actions {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-top: 20px;
}


.ahbe-filter-apply {
    position: relative;

    min-width: 150px;
    height: 48px;

    padding: 0;

    border: none;
    border-radius: 10px;

    background: #a58a54;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}


.ahbe-filter-apply span {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    line-height: 1;

    white-space: nowrap;
}


.ahbe-filter-apply:hover {
    background: #947a49;
}


.ahbe-filter-reset {
    display: inline-flex;
    align-items: center;

    height: 48px;

    padding: 0 4px;

    font-size: 14px;
    font-weight: 600;

    color: #667085;

    text-decoration: none;
}


.ahbe-filter-reset:hover {
    color: #111111;
}


/* Tablet */

@media (max-width: 1000px) {

    .ahbe-filter-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* Mobile */

@media (max-width: 600px) {

    .ahbe-filter-panel {
        padding: 22px 18px;
    }


    .ahbe-filter-grid {
        grid-template-columns: 1fr;
    }


    .ahbe-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }


    .ahbe-filter-apply {
        width: 100%;
    }


    .ahbe-filter-reset {
        justify-content: center;
    }

}

/* =========================================================
   PERSONAL BEHAVIOURS BY PERSONNEL GROUP
   ========================================================= */

.ahbe-role-breakdown {
    margin-top: 28px;
    padding: 28px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 16px;
}


.ahbe-role-breakdown-header {
    margin-bottom: 20px;
}


.ahbe-role-breakdown-header h4 {
    margin: 0 0 5px;

    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;

    color: #111111;
}


.ahbe-role-breakdown-header p {
    margin: 0 !important;

    font-size: 13px !important;
    line-height: 1.5 !important;

    color: #98a2b3 !important;
}


.ahbe-role-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;
}


.ahbe-role-card {
    padding: 18px;

    background: #fafafa;

    border: 1px solid #eaecf0;
    border-radius: 12px;
}


.ahbe-role-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 14px;

    margin-bottom: 14px;
}


.ahbe-role-name {
    margin-bottom: 4px;

    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;

    color: #344054;
}


.ahbe-role-valid {
    font-size: 11px;
    line-height: 1.4;

    color: #98a2b3;
}


.ahbe-role-score {
    flex: 0 0 auto;

    font-size: 21px;
    line-height: 1;
    font-weight: 600;

    color: #111111;
}


.ahbe-role-track {
    width: 100%;
    height: 6px;

    overflow: hidden;

    background: #eaecf0;

    border-radius: 999px;
}


.ahbe-role-fill {
    height: 100%;

    background: #a58a54;

    border-radius: inherit;
}


.ahbe-role-no-data {
    padding: 8px 10px;

    background: #f2f4f7;

    border-radius: 8px;

    font-size: 12px;

    color: #98a2b3;

    text-align: center;
}


@media (max-width: 900px) {

    .ahbe-role-grid {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 600px) {

    .ahbe-role-grid {
        grid-template-columns: 1fr;
    }

}