﻿/* ==========================================================
   BM INVESTOR RELATIONS - CISION SHARE GRAPH

   This stylesheet provides the Bootstrap-like layout and
   component styles required by Cision Sharegraph WITHOUT
   loading Bootstrap globally.

   Everything is scoped beneath:
       .bm-ir-sharegraph

   ========================================================== */


/* ==========================================================
   COMPONENT
   ========================================================== */

.bm-ir-sharegraph {
    width: 100%;
    min-width: 0;
    font-family: "montserrat", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
    color: #000;
    --bm-ir-border-color: #d9d9d9;
    --bm-ir-muted-color: #666;
    --bm-ir-hover-color: #f2f2f2;
    --bm-ir-active-color: #1364AB;
    --bm-ir-radius: 8px;
}


/* ==========================================================
   TITLE
   ========================================================== */

.bm-ir-sharegraph__title {
    margin: 0 0 30px;
    padding: 0;
    font-family: "montserrat", sans-serif;
    font-size: 35px;
    line-height: 40px;
    font-weight: 600;
    color: #000;
}


.bm-ir-sharegraph__content {
    width: 100%;
    min-width: 0;
}


/* ==========================================================
   BOX SIZING

   Keeps Cision controls predictable without affecting
   anything outside the component.
   ========================================================== */

.bm-ir-sharegraph *,
.bm-ir-sharegraph *::before,
.bm-ir-sharegraph *::after {
    box-sizing: border-box;
}


/* ==========================================================
   GENERIC LINKS
   ========================================================== */

.bm-ir-sharegraph a {
    color: inherit;
    text-decoration: none;
}

    .bm-ir-sharegraph a:hover {
        text-decoration: none;
    }


/* ==========================================================
   BOOTSTRAP-LIKE ROW / COLUMN SUPPORT

   Used by Cision's templates:
       .row
       .col
       .col-6
       .justify-content-between
   ========================================================== */

.bm-ir-sharegraph .row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.bm-ir-sharegraph .justify-content-between {
    justify-content: space-between;
}

.bm-ir-sharegraph .col {
    position: relative;
    flex: 1 0 0%;
    min-width: 0;
}

.bm-ir-sharegraph .col-6 {
    position: relative;
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
    min-width: 0;
}


/* ==========================================================
   BUTTONS

   IMPORTANT:
   Your main stylesheet already has a global .btn rule.
   These selectors intentionally have higher specificity.
   ========================================================== */

.bm-ir-sharegraph .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 42px;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid var(--bm-ir-border-color);
    border-radius: var(--bm-ir-radius);
    background: transparent;
    color: #000;
    font-family: "montserrat", sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}


    .bm-ir-sharegraph .btn:hover {
        background: var(--bm-ir-hover-color);
        color: #000;
    }


    .bm-ir-sharegraph .btn:focus-visible {
        outline: 2px solid var(--bm-ir-active-color);
        outline-offset: 2px;
    }


/* ----------------------------------------------------------
   OUTLINE SECONDARY
   ---------------------------------------------------------- */

.bm-ir-sharegraph .btn-outline-secondary {
    border-color: #999;
    background-color: transparent;
    color: #000;
}

    .bm-ir-sharegraph .btn-outline-secondary:hover {
        border-color: #000;
        background-color: #000;
        color: #fff;
    }


/* ----------------------------------------------------------
   OUTLINE DARK
   ---------------------------------------------------------- */

.bm-ir-sharegraph .btn-outline-dark {
    border-color: #000;
    background-color: transparent;
    color: #000;
}

    .bm-ir-sharegraph .btn-outline-dark:hover {
        background-color: #000;
        color: #fff;
    }


/* ==========================================================
   BUTTON GROUP

   Used by the graph period selector.
   ========================================================== */

.bm-ir-sharegraph .btn-group {
    display: inline-flex;
    align-items: stretch;
    vertical-align: middle;
}

    .bm-ir-sharegraph .btn-group > .btn,
    .bm-ir-sharegraph .btn-group > .action {
        position: relative;
        flex: 0 1 auto;
        margin: 0;
        border-radius: 0;
    }

        .bm-ir-sharegraph .btn-group > .btn:first-child,
        .bm-ir-sharegraph .btn-group > .action:first-child {
            border-top-left-radius: var(--bm-ir-radius);
            border-bottom-left-radius: var(--bm-ir-radius);
        }

        .bm-ir-sharegraph .btn-group > .btn:last-child,
        .bm-ir-sharegraph .btn-group > .action:last-child {
            border-top-right-radius: var(--bm-ir-radius);
            border-bottom-right-radius: var(--bm-ir-radius);
        }

        .bm-ir-sharegraph .btn-group > .btn + .btn,
        .bm-ir-sharegraph .btn-group > .action + .action {
            margin-left: -1px;
        }


/* Cision period buttons */

.bm-ir-sharegraph #periods .action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid #999;
    background: transparent;
    color: #000;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

    .bm-ir-sharegraph #periods .action:hover {
        background-color: var(--bm-ir-hover-color);
    }

    .bm-ir-sharegraph #periods .action.active,
    .bm-ir-sharegraph #periods .action.selected {
        position: relative;
        z-index: 1;
        border-color: var(--bm-ir-active-color);
        background-color: var(--bm-ir-active-color);
        color: #fff;
    }


/* ==========================================================
   SHAREGRAPH EXTRA CONTROLS
   ========================================================== */

.bm-ir-sharegraph .sharegraph-extras {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}


/* ==========================================================
   DROPDOWNS
   ========================================================== */

.bm-ir-sharegraph .dropdown {
    position: relative;
    display: inline-block;
}


.bm-ir-sharegraph .dropdown-toggle {
    white-space: nowrap;
}


    /* Bootstrap normally generates this arrow */

    .bm-ir-sharegraph .dropdown-toggle::after {
        display: inline-block;
        width: 0;
        height: 0;
        margin-left: 8px;
        vertical-align: middle;
        content: "";
        border-top: 5px solid currentColor;
        border-right: 5px solid transparent;
        border-left: 5px solid transparent;
    }


    /* Hide old Bootstrap caret if Cision outputs it */

    .bm-ir-sharegraph .dropdown-toggle .caret {
        display: none;
    }


/* ----------------------------------------------------------
   DROPDOWN MENU
   ---------------------------------------------------------- */

.bm-ir-sharegraph .dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 250px;
    max-width: min(360px, 90vw);
    margin: 0;
    padding: 8px 0;
    list-style: none;
    border: 1px solid var(--bm-ir-border-color);
    border-radius: var(--bm-ir-radius);
    background-color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}


    /*
   Bootstrap 4 dropdown.js normally adds .show.
*/

    .bm-ir-sharegraph .dropdown-menu.show {
        display: block;
    }


/*
   Some implementations add .show to the parent.
*/

.bm-ir-sharegraph .dropdown.show > .dropdown-menu {
    display: block;
}


/* ----------------------------------------------------------
   DROPDOWN ITEMS
   ---------------------------------------------------------- */

.bm-ir-sharegraph .dropdown-item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 16px;
    list-style: none;
    color: #000;
    font-size: 14px;
    line-height: 20px;
    white-space: normal;
    cursor: pointer;
}

    .bm-ir-sharegraph .dropdown-item a {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        color: inherit;
    }

    .bm-ir-sharegraph .dropdown-item:hover {
        background-color: var(--bm-ir-hover-color);
    }


    /* ----------------------------------------------------------
   SELECTED CHECK MARKS
   ---------------------------------------------------------- */

    .bm-ir-sharegraph .dropdown-item .fa-check,
    .bm-ir-sharegraph .dropdown-item .fas.fa-check {
        visibility: hidden;
        width: 14px;
        flex: 0 0 14px;
    }

    .bm-ir-sharegraph .dropdown-item.selected .fa-check,
    .bm-ir-sharegraph .dropdown-item.selected .fas.fa-check {
        visibility: visible;
    }


/* ----------------------------------------------------------
   DROPDOWN HEADER
   ---------------------------------------------------------- */

.bm-ir-sharegraph .dropdown-header {
    display: block;
    padding: 8px 16px 5px;
    color: var(--bm-ir-muted-color);
    font-size: 12px;
    line-height: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


/* ----------------------------------------------------------
   DROPDOWN DIVIDER
   ---------------------------------------------------------- */

.bm-ir-sharegraph .dropdown-divider {
    height: 0;
    margin: 6px 0;
    overflow: hidden;
    border-top: 1px solid var(--bm-ir-border-color);
}


/* ==========================================================
   INPUT GROUPS / DATE PICKERS
   ========================================================== */

.bm-ir-sharegraph .input-group {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
}


.bm-ir-sharegraph .input-group-prepend {
    display: flex;
}


    .bm-ir-sharegraph .input-group-prepend .btn {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }


.bm-ir-sharegraph .form-control {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #999;
    border-radius: var(--bm-ir-radius);
    background-color: #fff;
    color: #000;
    font-family: "montserrat", sans-serif;
    font-size: 14px;
    line-height: 20px;
    outline: none;
}


.bm-ir-sharegraph .input-group .form-control {
    border-left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}


.bm-ir-sharegraph .form-control:focus {
    border-color: var(--bm-ir-active-color);
}


.bm-ir-sharegraph .date-picker {
    width: 180px;
}


/* ==========================================================
   SHARE GRAPH CHART
   ========================================================== */

.bm-ir-sharegraph #sharegraph-container {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 400px;
    margin: 15px 0 35px;
}


/*
   Make sure Highcharts never exceeds the Block Grid area.
*/

.bm-ir-sharegraph .highcharts-container,
.bm-ir-sharegraph .highcharts-root {
    max-width: 100%;
}


/* ==========================================================
   NAV / TABS

   IMPORTANT:
   Your main stylesheet already defines .nav.
   These selectors override that styling only within Cision.
   ========================================================== */

.bm-ir-sharegraph .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}


.bm-ir-sharegraph .nav-tabs {
    display: flex;
    margin: 0 0 25px;
    padding: 0;
    border-bottom: 1px solid var(--bm-ir-border-color);
    list-style: none;
}


.bm-ir-sharegraph .nav-item {
    display: block;
    margin: 0 25px 0 0;
    padding: 0;
    list-style: none;
}


.bm-ir-sharegraph .nav-link {
    position: relative;
    display: block;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: #666;
    font-size: 15px;
    line-height: 22px;
    font-weight: 600;
    text-decoration: none;
}


    .bm-ir-sharegraph .nav-link:hover {
        color: #000;
    }


    .bm-ir-sharegraph .nav-link.active {
        color: #FFF;
    }


        .bm-ir-sharegraph .nav-link.active::after {
            position: absolute;
            right: 0;
            bottom: -1px;
            left: 0;
            height: 2px;
            content: "";
            background-color: var(--bm-ir-active-color);
        }


/* ==========================================================
   TAB CONTENT
   ========================================================== */

.bm-ir-sharegraph .tab-content {
    width: 100%;
}


.bm-ir-sharegraph .tab-pane {
    display: none;
}


    .bm-ir-sharegraph .tab-pane.active {
        display: block;
    }


    /*
   Bootstrap sometimes combines:
       .fade
       .show
       .active
*/

    .bm-ir-sharegraph .tab-pane.show.active {
        display: block;
    }


/* ==========================================================
   TABLES
   ========================================================== */

.bm-ir-sharegraph .table {
    width: 100%;
    margin: 0 0 20px;
    border-collapse: collapse;
    border-spacing: 0;
    color: #000;
    font-size: 14px;
    line-height: 20px;
}


    .bm-ir-sharegraph .table th,
    .bm-ir-sharegraph .table td {
        padding: 10px 12px;
        border-top: 1px solid var(--bm-ir-border-color);
        vertical-align: top;
    }


    .bm-ir-sharegraph .table thead th {
        border-top: 0;
        border-bottom: 1px solid var(--bm-ir-border-color);
        font-weight: 600;
        text-align: left;
    }


.bm-ir-sharegraph .table-sm th,
.bm-ir-sharegraph .table-sm td {
    padding: 7px 8px;
}


.bm-ir-sharegraph .table-borderless th,
.bm-ir-sharegraph .table-borderless td,
.bm-ir-sharegraph .table-borderless thead th {
    border: 0;
}


/* ==========================================================
   PERFORMANCE TABLE
   ========================================================== */

.bm-ir-sharegraph .performance-table td:first-child {
    font-weight: 500;
}


.bm-ir-sharegraph .performance-table td:last-child {
    font-weight: 600;
}


/* ==========================================================
   ORDER BOOK
   ========================================================== */

.bm-ir-sharegraph .orderbook-table {
    width: 100%;
}


/* ==========================================================
   TEXT ALIGNMENT HELPERS
   ========================================================== */

.bm-ir-sharegraph .text-left {
    text-align: left;
}

.bm-ir-sharegraph .text-right {
    text-align: right;
}

.bm-ir-sharegraph .text-center {
    text-align: center;
}


/* ==========================================================
   FLOAT HELPERS
   ========================================================== */

.bm-ir-sharegraph .float-right,
.bm-ir-sharegraph .pull-right {
    float: right;
}


/* ==========================================================
   CLEAR
   ========================================================== */

.bm-ir-sharegraph .clear {
    display: block;
    clear: both;
}


/* ==========================================================
   BOLD
   ========================================================== */

.bm-ir-sharegraph .bold {
    font-weight: 700;
}


/* ==========================================================
   SHARE CALCULATOR
   ========================================================== */

.bm-ir-sharegraph .sharecalclulator-container {
    width: 100%;
    margin-bottom: 20px;
}


.bm-ir-sharegraph .share-help-container {
    margin-bottom: 20px;
}


.bm-ir-sharegraph .helptext {
    margin: 0 0 15px;
    color: var(--bm-ir-muted-color);
    font-size: 14px;
    line-height: 21px;
}


.bm-ir-sharegraph .sharevalues {
    width: 100%;
}


    .bm-ir-sharegraph .sharevalues td {
        vertical-align: middle;
    }


        .bm-ir-sharegraph .sharevalues td.first {
            padding-top: 8px;
        }


.bm-ir-sharegraph .amount {
    width: 100%;
}


.bm-ir-sharegraph .compute-button {
    margin-top: 10px;
}


/* ==========================================================
   CALCULATOR RESULTS
   ========================================================== */

.bm-ir-sharegraph .results-right,
.bm-ir-sharegraph .results-left {
    width: calc(50% - 15px);
}


.bm-ir-sharegraph .results-right {
    float: left;
}


.bm-ir-sharegraph .results-left {
    float: right;
}


    .bm-ir-sharegraph .results-right h4,
    .bm-ir-sharegraph .results-left h4 {
        margin: 0 0 5px;
        font-size: 18px;
        line-height: 24px;
    }


.bm-ir-sharegraph .fullsize {
    width: 100%;
}


/* ==========================================================
   HISTORY DOWNLOAD
   ========================================================== */

.bm-ir-sharegraph .history-download {
    margin-bottom: 15px;
}


    .bm-ir-sharegraph .history-download a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-weight: 600;
    }


        .bm-ir-sharegraph .history-download a:hover {
            text-decoration: underline;
        }


/* ==========================================================
   TICKER
   ========================================================== */

.bm-ir-sharegraph #target-ticker {
    width: 100%;
    margin-bottom: 25px;
}


.bm-ir-sharegraph #horisontal-ticker {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 18px;
}


    .bm-ir-sharegraph #horisontal-ticker th,
    .bm-ir-sharegraph #horisontal-ticker td {
        padding: 6px 8px;
        text-align: left;
        border-bottom: 1px solid var(--bm-ir-border-color);
    }


    .bm-ir-sharegraph #horisontal-ticker .image {
        width: 24px;
    }


    .bm-ir-sharegraph #horisontal-ticker img {
        display: block;
        width: auto;
        max-width: 16px;
        height: auto;
    }


/* ==========================================================
   LEGEND
   ========================================================== */

.bm-ir-sharegraph legend {
    display: block;
    width: 100%;
    margin: 25px 0 15px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--bm-ir-border-color);
    font-size: 20px;
    line-height: 26px;
    font-weight: 600;
}


/* ==========================================================
   HR
   ========================================================== */

.bm-ir-sharegraph hr {
    height: 0;
    margin: 30px 0;
    border: 0;
    border-top: 1px solid var(--bm-ir-border-color);
}


/* ==========================================================
   FONT AWESOME ICONS
   ========================================================== */

.bm-ir-sharegraph .fas,
.bm-ir-sharegraph .fa {
    line-height: 1;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1024px) {

    .bm-ir-sharegraph .row.justify-content-between {
        gap: 15px;
    }


    .bm-ir-sharegraph .sharegraph-extras {
        flex-wrap: wrap;
    }


    .bm-ir-sharegraph #periods {
        flex-wrap: wrap;
    }


        .bm-ir-sharegraph #periods .action {
            flex: 1 1 auto;
        }


    .bm-ir-sharegraph .date-picker {
        width: 170px;
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

    .bm-ir-sharegraph {
        font-size: 14px;
    }


    .bm-ir-sharegraph__title {
        margin-bottom: 24px;
        font-size: 28px;
        line-height: 34px;
    }


    /* ------------------------------------------------------
       Top controls
       ------------------------------------------------------ */

    .bm-ir-sharegraph .row.justify-content-between {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }


    .bm-ir-sharegraph .sharegraph-extras {
        display: flex;
        width: 100%;
        margin-bottom: 0;
    }


    /* ------------------------------------------------------
       Dropdowns
       ------------------------------------------------------ */

    .bm-ir-sharegraph .dropdown {
        flex: 1 1 0;
    }


        .bm-ir-sharegraph .dropdown > .btn {
            width: 100%;
        }


    .bm-ir-sharegraph .dropdown-menu {
        width: 100%;
        min-width: 240px;
        max-width: calc(100vw - 32px);
    }


    /* ------------------------------------------------------
       Period selector
       ------------------------------------------------------ */

    .bm-ir-sharegraph #periods {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        width: 100%;
    }


        .bm-ir-sharegraph #periods .action {
            min-width: 0;
            margin: 0;
            border-radius: 0;
        }


    /* ------------------------------------------------------
       Date pickers
       ------------------------------------------------------ */

    .bm-ir-sharegraph .date-picker {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
    }


    /* ------------------------------------------------------
       Chart
       ------------------------------------------------------ */

    .bm-ir-sharegraph #sharegraph-container {
        min-height: 320px;
        margin-top: 25px;
        margin-bottom: 30px;
    }


    /* ------------------------------------------------------
       Tabs
       ------------------------------------------------------ */

    .bm-ir-sharegraph .nav-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }


    .bm-ir-sharegraph .nav-item {
        flex: 0 0 auto;
        margin-right: 20px;
    }


    .bm-ir-sharegraph .nav-link {
        white-space: nowrap;
    }


    /* ------------------------------------------------------
       Calculator columns
       ------------------------------------------------------ */

    .bm-ir-sharegraph .col-6 {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }


    /* ------------------------------------------------------
       Calculator results
       ------------------------------------------------------ */

    .bm-ir-sharegraph .results-right,
    .bm-ir-sharegraph .results-left {
        float: none;
        width: 100%;
    }


    .bm-ir-sharegraph .results-left {
        margin-top: 30px;
    }


    /* ------------------------------------------------------
       Tables

       Cision contains fairly wide financial tables.
       Allow horizontal scrolling rather than destroying
       their column layout.
       ------------------------------------------------------ */

    .bm-ir-sharegraph .tab-pane {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }


    .bm-ir-sharegraph .table {
        min-width: 600px;
    }


    .bm-ir-sharegraph .performance-table {
        min-width: 0;
    }


    /* ------------------------------------------------------
       Ticker
       ------------------------------------------------------ */

    .bm-ir-sharegraph #target-ticker {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }


    .bm-ir-sharegraph #horisontal-ticker {
        min-width: 850px;
    }
}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 480px) {

    .bm-ir-sharegraph #periods {
        grid-template-columns: repeat(2, 1fr);
    }


    .bm-ir-sharegraph .sharegraph-extras {
        align-items: stretch;
    }


        .bm-ir-sharegraph .sharegraph-extras:has(.date-picker) {
            flex-direction: column;
        }


    .bm-ir-sharegraph .date-picker {
        width: 100%;
    }
}

/* =========================================================
   CISION / BOOTSTRAP FUNCTIONAL CSS
   =========================================================
   Cision uses Bootstrap JS and Bootstrap Datepicker JS,
   but the BoMill site does not load Bootstrap CSS.

   These rules restore only the CSS behaviour required for:
   - Cision dropdown menus
   - Share options dropdown
   - Download dropdown
   - Bootstrap Datepicker
   - Datepicker positioning / visibility

   They intentionally do NOT reproduce Bootstrap's complete
   visual styling.
   ========================================================= */


/* =========================================================
   CISION DROPDOWN MENUS
   ========================================================= */

.bm-ir-sharegraph .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 160px;
    margin: 2px 0 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}


/*
 * Bootstrap 3 JS adds .open to the parent
 * when a dropdown is opened.
 */
.bm-ir-sharegraph .open > .dropdown-menu {
    display: block;
}


/*
 * Dropdown parent needs to establish the
 * positioning context.
 */
.bm-ir-sharegraph .dropdown,
.bm-ir-sharegraph .btn-group {
    position: relative;
}


/* =========================================================
   DROPDOWN ITEMS
   ========================================================= */

.bm-ir-sharegraph .dropdown-menu > li {
    display: block;
    margin: 0;
    padding: 0;
}

    .bm-ir-sharegraph .dropdown-menu > li > a {
        display: block;
        padding: 8px 16px;
        color: #000;
        font-size: 15px;
        line-height: 22px;
        font-weight: 400;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
    }

        .bm-ir-sharegraph .dropdown-menu > li > a:hover,
        .bm-ir-sharegraph .dropdown-menu > li > a:focus {
            color: #000;
            background: rgba(0, 0, 0, 0.06);
            text-decoration: none;
        }


/* =========================================================
   DATE PICKER INPUT GROUP
   ========================================================= */

.bm-ir-sharegraph .sharegraph-extras {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}


.bm-ir-sharegraph .date-picker {
    position: relative;
    display: flex;
    align-items: stretch;
    width: auto;
}


    .bm-ir-sharegraph .date-picker .input-group-prepend {
        display: flex;
    }


    .bm-ir-sharegraph .date-picker .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 0;
        border: 1px solid #000;
        border-right: 0;
        border-radius: 8px 0 0 8px;
        background: transparent;
        color: #000;
        cursor: pointer;
    }


        .bm-ir-sharegraph .date-picker .btn:hover,
        .bm-ir-sharegraph .date-picker .btn:focus {
            background: rgba(0, 0, 0, 0.06);
        }


        .bm-ir-sharegraph .date-picker .btn svg {
            width: 16px;
            height: 16px;
        }


    .bm-ir-sharegraph .date-picker .date-input {
        display: block;
        width: 150px;
        height: 44px;
        margin: 0;
        padding: 8px 12px;
        border: 1px solid #000;
        border-radius: 0 8px 8px 0;
        background: #fff;
        color: #000;
        font-family: inherit;
        font-size: 15px;
        line-height: 26px;
        font-weight: 400;
        outline: none;
    }


        .bm-ir-sharegraph .date-picker .date-input:focus {
            border-color: #1364AB;
        }



/* =========================================================
   BOOTSTRAP DROPDOWN VISIBILITY
   ========================================================= */

/*
 * Required because Bootstrap CSS is intentionally not loaded.
 *
 * Bootstrap Datepicker creates:
 *
 * <div class="datepicker datepicker-dropdown dropdown-menu">
 *
 * Bootstrap normally supplies display:none for dropdown-menu.
 */
.datepicker-dropdown.dropdown-menu {
    display: none;
}


/*
 * Cision dropdown menus inside the Share Graph.
 */
.bm-ir-sharegraph .dropdown-menu {
    display: none;
}


/*
 * Bootstrap JS adds .open to normal dropdown parents.
 */
.bm-ir-sharegraph .open > .dropdown-menu {
    display: block;
}


/* =========================================================
   DATEPICKER
   ========================================================= */

.datepicker.datepicker-dropdown {
    position: absolute;
    z-index: 10000;
    padding: 8px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
}


    /* =========================================================
   DATEPICKER POSITION
   ========================================================= */

    .datepicker-dropdown.datepicker-orient-top {
        margin-top: -8px;
    }

    .datepicker-dropdown.datepicker-orient-bottom {
        margin-top: 8px;
    }


/* =========================================================
   DATEPICKER TABLE
   ========================================================= */

.datepicker table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}


    .datepicker table tr,
    .datepicker table th,
    .datepicker table td {
        border: 0;
    }


/* =========================================================
   DATEPICKER HEADER
   ========================================================= */

.datepicker thead th {
    padding: 5px;
    color: #000;
    font-weight: 600;
    text-align: center;
    background: transparent;
    cursor: pointer;
}


.datepicker .datepicker-switch {
    width: 145px;
    font-weight: 600;
}


.datepicker .prev,
.datepicker .next {
    width: 34px;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
}


    .datepicker .datepicker-switch:hover,
    .datepicker .prev:hover,
    .datepicker .next:hover {
        background: rgba(0, 0, 0, 0.06);
        border-radius: 5px;
    }


/* =========================================================
   WEEKDAY HEADINGS
   ========================================================= */

.datepicker .dow {
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: default;
}


/* =========================================================
   DATE CELLS
   ========================================================= */

.datepicker table tr td.day {
    width: 34px;
    height: 34px;
    padding: 5px;
    border-radius: 5px;
    color: #000;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
}


    .datepicker table tr td.day:hover {
        background: rgba(0, 0, 0, 0.06);
    }


/* =========================================================
   OLD / NEW MONTH DATES
   ========================================================= */

.datepicker table tr td.old,
.datepicker table tr td.new {
    color: #999;
}


/* =========================================================
   TODAY
   ========================================================= */

.datepicker table tr td.today {
    background: rgba(19, 100, 171, 0.12);
    color: #000;
}


    .datepicker table tr td.today:hover {
        background: rgba(19, 100, 171, 0.2);
    }


/* =========================================================
   SELECTED DATE
   ========================================================= */

.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active:focus {
    background: #1364AB;
    color: #fff;
    font-weight: 600;
}


/* =========================================================
   DISABLED DATES
   ========================================================= */

.datepicker table tr td.disabled,
.datepicker table tr td.disabled:hover {
    color: #ccc;
    background: transparent;
    cursor: default;
}


/* =========================================================
   MONTH / YEAR SELECTION
   ========================================================= */

.datepicker .months,
.datepicker .years,
.datepicker .decades,
.datepicker .centuries {
    width: 240px;
}


.datepicker .month,
.datepicker .year,
.datepicker .decade,
.datepicker .century {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25%;
    min-height: 40px;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
}


    .datepicker .month:hover,
    .datepicker .year:hover,
    .datepicker .decade:hover,
    .datepicker .century:hover {
        background: rgba(0, 0, 0, 0.06);
    }


    .datepicker .month.active,
    .datepicker .year.active,
    .datepicker .decade.active,
    .datepicker .century.active {
        background: #1364AB;
        color: #fff;
    }


/* =========================================================
   DATEPICKER FOOTER / TODAY BUTTON
   ========================================================= */

.datepicker tfoot th {
    padding: 8px;
    text-align: center;
    cursor: pointer;
}


    .datepicker tfoot th:hover {
        background: rgba(0, 0, 0, 0.06);
        border-radius: 5px;
    }


/* =========================================================
   PREVENT BLOCK GRID CLIPPING
   =========================================================
   Your normal .section uses overflow:hidden. A datepicker
   positioned outside the section can otherwise be clipped.
   ========================================================= */

.section:has(.bm-ir-sharegraph) {
    overflow: visible;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767px) {

    .bm-ir-sharegraph .sharegraph-extras {
        align-items: stretch;
        width: 100%;
    }


    .bm-ir-sharegraph .date-picker {
        width: 100%;
    }


        .bm-ir-sharegraph .date-picker .date-input {
            flex: 1 1 auto;
            width: 1%;
            min-width: 0;
        }


    .datepicker {
        max-width: calc(100vw - 32px);
    }
}