/* Explain Propensity Floating Button */
.explain-propensity-floating-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.explain-propensity-floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
}

.explain-propensity-floating-btn:active {
    transform: translateY(0);
}

.explain-propensity-floating-btn i {
    font-size: 16px;
}

/* Propensity Modal Styling */
#propensity-modal .modal-dialog {
    max-width: 900px;
}

#propensity-modal .modal-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-bottom: 3px solid #0056b3;
}

#propensity-modal .modal-title {
    font-weight: 700;
    font-size: 24px;
}

#propensity-modal .modal-body {
    padding: 30px;
    font-size: 15px;
    line-height: 1.7;
}

#propensity-modal .modal-body h4 {
    color: #0056b3;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

#propensity-modal .modal-body h4:first-child {
    margin-top: 0;
}

#propensity-modal .modal-body p {
    margin-bottom: 15px;
    color: #333;
}

#propensity-modal .modal-body strong {
    color: #0056b3;
}

/* Propensity Factors Table */
.propensity-factors-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.propensity-factors-table thead {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.propensity-factors-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.propensity-factors-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
}

.propensity-factors-table tbody tr:hover {
    background-color: #f8f9fa;
}

.propensity-factors-table tbody tr:last-child td {
    border-bottom: none;
}

.factor-name {
    font-weight: 600;
    color: #333;
}

.factor-weight {
    color: #007bff;
    font-weight: 700;
}

.factor-description {
    color: #666;
    font-size: 14px;
}

/* Alert Boxes */
.propensity-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid;
}

.propensity-alert-info {
    background-color: #e7f3ff;
    border-left-color: #007bff;
    color: #004085;
}

.propensity-alert-warning {
    background-color: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.propensity-alert-success {
    background-color: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.propensity-alert strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

/* Key Insights List */
.key-insights-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.key-insights-list li {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    border-radius: 4px;
}

.key-insights-list li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .explain-propensity-floating-btn {
        padding: 10px 15px;
        font-size: 12px;
        top: 10px;
        left: 10px;
    }
    
    #propensity-modal .modal-dialog {
        max-width: 95%;
        margin: 10px auto;
    }
    
    #propensity-modal .modal-body {
        padding: 20px 15px;
        font-size: 14px;
    }
    
    .propensity-factors-table {
        font-size: 13px;
    }
    
    .propensity-factors-table th,
    .propensity-factors-table td {
        padding: 10px 8px;
    }
}

/* BrP_PROPENSITY_BUTTON_MAP_PLACEMENT_20260518: blue/white, top-left map area, right of +/- zoom controls */
.explain-propensity-floating-btn {
    position: absolute !important;
    top: 18px !important;
    left: 62px !important;
    z-index: 2147481000 !important;
    background: #006eb6 !important;
    color: #ffffff !important;
    border: 1px solid #005a96 !important;
    border-radius: 8px !important;
    padding: 9px 14px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    box-shadow: 0 4px 14px rgba(0, 56, 101, 0.32) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
}
.explain-propensity-floating-btn:hover,
.explain-propensity-floating-btn:focus {
    background: #003865 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(0, 56, 101, 0.42) !important;
}
@media (max-width: 768px) {
    .explain-propensity-floating-btn {
        top: 12px !important;
        left: 58px !important;
        padding: 8px 11px !important;
        font-size: 12px !important;
    }
}


/* BrP_PROPENSITY_ACTIVE_BUTTON_MAP_PLACEMENT_20260518: active custom modal trigger, blue/white, top-left map area, right of +/- zoom controls */
#brpExplainPropensityBtn {
    position: absolute !important;
    top: 18px !important;
    left: 62px !important;
    z-index: 2147481000 !important;
    background: #006eb6 !important;
    color: #ffffff !important;
    border: 1px solid #005a96 !important;
    border-radius: 8px !important;
    padding: 9px 14px !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    box-shadow: 0 4px 14px rgba(0, 56, 101, 0.32) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    cursor: pointer !important;
}
#brpExplainPropensityBtn:hover,
#brpExplainPropensityBtn:focus {
    background: #003865 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(0, 56, 101, 0.42) !important;
}
@media (max-width: 768px) {
    #brpExplainPropensityBtn { top: 12px !important; left: 58px !important; padding: 8px 11px !important; font-size: 12px !important; }
}
