.pdi-footnote {
    cursor: pointer;
}

/* Colour the footnotes according to the page */
.area-cropping .pdi-footnote {
    color: #677c44;
}
.area-livestock .pdi-footnote {
    color: #a16828;
}
.page-hunting .pdi-footnote {
    color: #1b5680;
}
.page-recreational-and-charter-fishing .pdi-footnote {
    color: #1b5680;
}
.page-horticulture .pdi-footnote {
    color: #ab292c;
}
.page-fisheries .pdi-footnote {
    color: #357a80;
}
.page-forestry .pdi-footnote {
    color: #148064;
}
.page-wine-grapes .pdi-footnote {
    color: #953661;
}
.table-totals .pdi-footnote {
    color: #1c355e;
}
.theme-main .pdi-footnote {
    color: #224379;
}

/* But in header rows, don't colour the footnotes */
thead.pdi-stats-table-head th .pdi-footnote {
    color: inherit;
}

.popover {
    border-radius: 0px !important;
    border-width: 2px !important;
}

.bs-popover-auto[x-placement^="left"] > .arrow::after,
.bs-popover-left > .arrow::after {
    right: 3px !important;
    top: 2px !important;
    border-width: 6px 0 6px 6px !important;
}

.bs-popover-auto[x-placement^="right"] > .arrow::after,
.bs-popover-right > .arrow::after {
    left: 3px !important;
    top: 2px !important;
    border-width: 6px 6px 6px 0px !important;
}

.bs-popover-auto[x-placement^="top"] > .arrow::after,
.bs-popover-top > .arrow::after {
    bottom: 3px !important;
}

.bs-popover-auto[x-placement^="bottom"] > .arrow::before,
.bs-popover-bottom > .arrow::before {
    top: -1px;
    border-width: 0 0.5rem 0.5rem 0.5rem;
    border-bottom-color: rgba(0, 0, 0, 0.25);
}

.bs-popover-auto[x-placement^="bottom"] > .arrow::after,
.bs-popover-bottom > .arrow::after {
    top: 2px !important;
}

/* Popover colour */
.page-wine-grapes .popover {
    border-color: #953661 !important;
}
.page-horticulture .popover {
    border-color: #ab292c !important;
}
.page-fisheries .popover {
    border-color: #357a80 !important;
}
.page-forestry .popover {
    border-color: #148064 !important;
}
.area-cropping .popover {
    border-color: #677c44 !important;
}
.area-livestock .popover {
    border-color: #a16828 !important;
}
.page-hunting .popover {
    border-color: #1b5680 !important;
}
.page-recreational-and-charter-fishing .popover {
    border-color: #1b5680 !important;
}
.theme-main .popover {
    border-color: #1c355e !important;
}

/* Popover arrow colour */

/* Cropping */
.area-cropping .bs-popover-auto[x-placement^="left"] > .arrow::before,
.area-cropping .bs-popover-left > .arrow::before {
    border-left-color: #677c44 !important;
}

.area-cropping .bs-popover-auto[x-placement^="right"] > .arrow::before,
.area-cropping .bs-popover-right > .arrow::before {
    border-right-color: #677c44 !important;
}

.area-cropping .bs-popover-auto[x-placement^="top"] > .arrow::before,
.area-cropping .bs-popover-top > .arrow::before {
    border-top-color: #677c44 !important;
}

.area-cropping .bs-popover-auto[x-placement^="bottom"] > .arrow::before,
.area-cropping .bs-popover-bottom > .arrow::before {
    border-bottom-color: #677c44 !important;
}

/* Industries overview */
.theme-main .bs-popover-auto[x-placement^="left"] > .arrow::before,
.theme-main .bs-popover-left > .arrow::before {
    border-left-color: #1c355e !important;
}

.theme-main .bs-popover-auto[x-placement^="right"] > .arrow::before,
.theme-main .bs-popover-right > .arrow::before {
    border-right-color: #1c355e !important;
}

.theme-main .bs-popover-auto[x-placement^="top"] > .arrow::before,
.theme-main .bs-popover-top > .arrow::before {
    border-top-color: #1c355e !important;
}

.theme-main .bs-popover-auto[x-placement^="bottom"] > .arrow::before,
.theme-main .bs-popover-bottom > .arrow::before {
    border-bottom-color: #1c355e !important;
}

/* Hunting & Recreational Fishing */
.page-hunting .bs-popover-auto[x-placement^="left"] > .arrow::before,
.page-hunting .bs-popover-left > .arrow::before {
    border-left-color: #1b5680 !important;
}

.page-hunting .bs-popover-auto[x-placement^="right"] > .arrow::before,
.page-hunting .bs-popover-right > .arrow::before {
    border-right-color: #1b5680 !important;
}

.page-hunting .bs-popover-auto[x-placement^="top"] > .arrow::before,
.page-hunting .bs-popover-top > .arrow::before {
    border-top-color: #1b5680 !important;
}

.page-hunting .bs-popover-auto[x-placement^="bottom"] > .arrow::before,
.page-hunting .bs-popover-bottom > .arrow::before {
    border-bottom-color: #1b5680 !important;
}

/* Fishing */
.page-recreational-and-charter-fishing .bs-popover-auto[x-placement^="left"] > .arrow::before,
.page-recreational-and-charter-fishing .bs-popover-left > .arrow::before {
    border-left-color: #1b5680 !important;
}

.page-recreational-and-charter-fishing .bs-popover-auto[x-placement^="right"] > .arrow::before,
.page-recreational-and-charter-fishing .bs-popover-right > .arrow::before {
    border-right-color: #1b5680 !important;
}

.page-recreational-and-charter-fishing .bs-popover-auto[x-placement^="top"] > .arrow::before,
.page-recreational-and-charter-fishing .bs-popover-top > .arrow::before {
    border-top-color: #1b5680 !important;
}

.page-recreational-and-charter-fishing .bs-popover-auto[x-placement^="bottom"] > .arrow::before,
.page-recreational-and-charter-fishing .bs-popover-bottom > .arrow::before {
    border-bottom-color: #1b5680 !important;
}

/* Horticulture */
.page-horticulture .bs-popover-auto[x-placement^="left"] > .arrow::before,
.page-horticulture .bs-popover-left > .arrow::before {
    border-left-color: #ab292c !important;
}

.page-horticulture .bs-popover-auto[x-placement^="right"] > .arrow::before,
.page-horticulture .bs-popover-right > .arrow::before {
    border-right-color: #ab292c !important;
}

.page-horticulture .bs-popover-auto[x-placement^="top"] > .arrow::before,
.page-horticulture .bs-popover-top > .arrow::before {
    border-top-color: #ab292c !important;
}

.page-horticulture .bs-popover-auto[x-placement^="bottom"] > .arrow::before,
.page-horticulture .bs-popover-bottom > .arrow::before {
    border-bottom-color: #ab292c !important;
}

/* Livestock */
.area-livestock .bs-popover-auto[x-placement^="left"] > .arrow::before,
.area-livestock .bs-popover-left > .arrow::before {
    border-left-color: #a16828 !important;
}

.area-livestock .bs-popover-auto[x-placement^="right"] > .arrow::before,
.area-livestock .bs-popover-right > .arrow::before {
    border-right-color: #a16828 !important;
}

.area-livestock .bs-popover-auto[x-placement^="top"] > .arrow::before,
.area-livestock .bs-popover-top > .arrow::before {
    border-top-color: #a16828 !important;
}

.area-livestock .bs-popover-auto[x-placement^="bottom"] > .arrow::before,
.area-livestock .bs-popover-bottom > .arrow::before {
    border-bottom-color: #a16828 !important;
}

/* Fisheries */
.page-fisheries .bs-popover-auto[x-placement^="left"] > .arrow::before,
.page-fisheries .bs-popover-left > .arrow::before {
    border-left-color: #357a80 !important;
}

.page-fisheries .bs-popover-auto[x-placement^="right"] > .arrow::before,
.page-fisheries .bs-popover-right > .arrow::before {
    border-right-color: #357a80 !important;
}

.page-fisheries .bs-popover-auto[x-placement^="top"] > .arrow::before,
.page-fisheries .bs-popover-top > .arrow::before {
    border-top-color: #357a80 !important;
}

.page-fisheries .bs-popover-auto[x-placement^="bottom"] > .arrow::before,
.page-fisheries .bs-popover-bottom > .arrow::before {
    border-bottom-color: #357a80 !important;
}

/* Forestry */
.page-forestry .bs-popover-auto[x-placement^="left"] > .arrow::before,
.page-forestry .bs-popover-left > .arrow::before {
    border-left-color: #148064 !important;
}

.page-forestry .bs-popover-auto[x-placement^="right"] > .arrow::before,
.page-forestry .bs-popover-right > .arrow::before {
    border-right-color: #148064 !important;
}

.page-forestry .bs-popover-auto[x-placement^="top"] > .arrow::before,
.page-forestry .bs-popover-top > .arrow::before {
    border-top-color: #148064 !important;
}

.page-forestry .bs-popover-auto[x-placement^="bottom"] > .arrow::before,
.page-forestry .bs-popover-bottom > .arrow::before {
    border-bottom-color: #148064 !important;
}

/* Wine Grapes */
.page-wine-grapes .bs-popover-auto[x-placement^="left"] > .arrow::before,
.page-wine-grapes .bs-popover-left > .arrow::before {
    border-left-color: #953661 !important;
}

.page-wine-grapes .bs-popover-auto[x-placement^="right"] > .arrow::before,
.page-wine-grapes .bs-popover-right > .arrow::before {
    border-right-color: #953661 !important;
}

.page-wine-grapes .bs-popover-auto[x-placement^="top"] > .arrow::before,
.page-wine-grapes .bs-popover-top > .arrow::before {
    border-top-color: #953661 !important;
}

.page-wine-grapes .bs-popover-auto[x-placement^="bottom"] > .arrow::before,
.page-wine-grapes .bs-popover-bottom > .arrow::before {
    border-bottom-color: #953661 !important;
}
