.c3 {
    font-family: inherit;
}

.c3-circle {
    opacity: 1 !important;
}

.c3-tooltip-container {
    z-index: 3;
}

path.domain,
path.range {
    opacity: 0;
}

.c3-axis-y-label,
.c3-axis-x-label,
.c3-axis-y2-label {
    font-family: "nexa-regular", sans-serif;
}

.c3-legend-item text {
    font-family: "nexa-regular", sans-serif;
    font-size: 16px;
    fill: #212529; /* change text colour */
    font-weight: 400;
}

.c3-legend-item-tile {
    stroke-linecap: round; /* makes the ends round = looks like a circle */
    stroke-width: 6; /* tweak size */
}

.c3 .c3-grid line {
    stroke: #bbb;
    stroke-dasharray: 0;
}

.c3 .tick line {
    opacity: 0;
}

.c3 .tick tspan {
    font-family: roboto, sans-serif;
    font-weight: 100;
    font-size: 11px;
}

.c3-tooltip td {
    border-left: none;
}

.c3-tooltip tr {
    border: none;
}

.c3 .c3-tooltip {
    opacity: 1;
}

.c3-tooltip td.name span {
    border-radius: 50%;
}

.c3-tooltip td.name {
    padding-left: 16px;
    text-align: left;
}

.c3-tooltip td.value {
    padding-right: 16px;
}

.c3-tooltip td {
    opacity: 1;
    font-family: roboto, sans-serif;
    font-size: 16px;
}

.c3-tooltip tbody > tr:last-child td {
    padding-bottom: 16px;
}

/* CROPPING */
.cropping .c3-axis-y-label,
.cropping .c3-axis-x-label,
.cropping .c3-axis-y2-label {
    fill: #677c44;
    font-size: 13px;
}

.cropping .c3-tooltip th {
    background: white;
    color: #677c44;
    font-weight: 800;
    font-size: 16px;
    padding: 16px 10px 10px 16px;
}

/* LIVESTOCK #357A80 */

.livestock .c3-axis-y-label,
.livestock .c3-axis-x-label,
.livestock .c3-axis-y2-label {
    fill: #a16828;
    font-size: 13px;
}

.livestock .c3-tooltip th {
    background: white;
    color: #a16828;
    font-weight: 800;
    font-size: 16px;
    padding: 16px 10px 10px 16px;
}

/* HORTICULTURE */

.horticulture .c3-axis-y-label,
.horticulture .c3-axis-x-label,
.horticulture .c3-axis-y2-label {
    fill: #ab292c;
    font-size: 13px;
}

.horticulture .c3-tooltip th {
    background: white;
    color: #ab292c;
    font-weight: 800;
    font-size: 16px;
    padding: 16px 10px 10px 16px;
}

/* WINE GRAPES */

.wine-grapes .c3-axis-y-label,
.wine-grapes .c3-axis-x-label,
.wine-grapes .c3-axis-y2-label {
    fill: #953661;
    font-size: 13px;
}

.wine-grapes .c3-tooltip th {
    background: white;
    color: #953661;
    font-weight: 800;
    font-size: 16px;
    padding: 16px 10px 10px 16px;
}

/* Hunting & Fishing */

.theme-hunting-and-fishing .c3-axis-y-label,
.theme-hunting-and-fishing .c3-axis-x-label,
.theme-hunting-and-fishing .c3-axis-y2-label {
    fill: #1b5680;
    font-size: 13px;
}

.theme-hunting-and-fishing .c3-tooltip th {
    background: white;
    color: #1b5680;
    font-weight: 800;
    font-size: 16px;
    padding: 16px 10px 10px 16px;
}

/* FISHERIES #357A80 */

.fisheries .c3-axis-y-label,
.fisheries .c3-axis-x-label,
.fisheries .c3-axis-y2-label {
    fill: #357a80;
    font-size: 13px;
}

.fisheries .c3-tooltip th {
    background: white;
    color: #357a80;
    font-weight: 800;
    font-size: 16px;
    padding: 16px 10px 10px 16px;
}

/* FORESTRY #148064 */

.forestry .c3-axis-y-label,
.forestry .c3-axis-x-label,
.forestry .c3-axis-y2-label {
    fill: #148064;
    font-size: 13px;
}

.forestry .c3-tooltip th {
    background: white;
    color: #148064;
    font-weight: 800;
    font-size: 16px;
    padding: 16px 10px 10px 16px;
}

/* MAIN #357A80 */

.theme-main .c3-axis-y-label,
.theme-main .c3-axis-x-label,
.theme-main .c3-axis-y2-label {
    fill: #1c355e;
    font-size: 13px;
}

.theme-main .c3-tooltip th {
    background: white;
    color: #1c355e;
    font-weight: 800;
    font-size: 16px;
    padding: 16px 10px 10px 16px;
}

/* Random custom things */

#nsw-forest-area-by-forest-type-2023-24 .c3-shapes path:nth-child(1) {
    stroke: #f29c00 !important;
    fill: #f29c00 !important;
}

#nsw-forest-area-by-forest-type-2023-24 .c3-shapes path:nth-child(3),
#nsw-forest-area-by-forest-type-2023-24 .c3-shapes path:nth-child(8),
#nsw-forest-area-by-forest-type-2023-24 .c3-shapes path:nth-child(9) {
    stroke: #1b5680 !important;
    fill: #1b5680 !important;
}

#livestock-overview-price-change .c3-shapes path:nth-child(1) {
    stroke: hsl(32, 60%, 39%) !important;
    fill: hsl(32, 60%, 39%) !important;
}

#livestock-overview-price-change .c3-shapes path:nth-child(2) {
    stroke: hsl(32, 60%, 44%) !important;
    fill: hsl(32, 60%, 44%) !important;
}

#livestock-overview-price-change .c3-shapes path:nth-child(3) {
    stroke: hsl(32, 60%, 49%) !important;
    fill: hsl(32, 60%, 49%) !important;
}

#livestock-overview-price-change .c3-shapes path:nth-child(4) {
    stroke: hsl(32, 60%, 54%) !important;
    fill: hsl(32, 60%, 54%) !important;
}

#livestock-overview-price-change .c3-shapes path:nth-child(5) {
    stroke: hsl(32, 60%, 59%) !important;
    fill: hsl(32, 60%, 59%) !important;
}

#livestock-overview-price-change .c3-shapes path:nth-child(6) {
    stroke: hsl(32, 60%, 64%) !important;
    fill: hsl(32, 60%, 64%) !important;
}

#livestock-overview-price-change .c3-shapes path:nth-child(7) {
    stroke: hsl(32, 60%, 69%) !important;
    fill: hsl(32, 60%, 69%) !important;
}

#livestock-overview-price-change .c3-shapes path:nth-child(8) {
    stroke: hsl(32, 60%, 74%) !important;
    fill: hsl(32, 60%, 74%) !important;
}

#australian-monthly-chickpea-exports-and-the-commencement-of-ramadan
    .c3-region:nth-child(even)
    rect {
    fill: rgb(162, 159, 75) !important;
    fill-opacity: 0.5 !important;
}

#australian-monthly-chickpea-exports-and-the-commencement-of-ramadan
    .c3-region:nth-child(odd)
    rect {
    fill: #f29c00;
    fill-opacity: 0.5 !important;
}

#sheep-and-lamb-prices .c3-target-ESTLI--10-year-average-,
#sheep-and-lamb-prices .c3-target-NMI--10-year-average- {
    stroke-dasharray: 2, 1;
}

#northern-rivers-mill-crush-shares .c3-target-4-Year-Average-Level {
    stroke-dasharray: 3, 1;
}

#sheep-slaughter-vs-flock-size .c3-line-Slaughter-10yr-average--LHS-,
#sheep-slaughter-vs-flock-size .c3-target-Flock-size-10-year-average--RHS- {
    stroke-dasharray: 2, 1;
}

.c3-target-China-Price-Parity--RHS- {
    stroke-dasharray: 3, 1;
}

.c3-shapes-Export-Average-Value {
    stroke-dasharray: 3, 1;
}

.c3-shapes-Import-Average-Value {
    stroke-dasharray: 3, 1;
}

.c3-target-Avg--Monthly-Export-Vol---RHS- {
    stroke-dasharray: 3, 1;
}

.c3-target-10-year-average {
    stroke-dasharray: 3, 1;
}

.c3-target-Average----tonne-,
.c3-target-Red-Wine-average,
.c3-target-White-Wine-average,
.c3-line-Average-Production {
    stroke-dasharray: 3, 1;
}

.c3-target-5-year-average-price {
    stroke-dasharray: 3, 1;
}

.c3-target-2003-to-2007,
.c3-target-2008-to-2012,
.c3-target-2013-to-2017,
.c3-target-2018-to-2022,
.c3-target-All-Wool,
.c3-target-Combined-Cotton---Rice-Production--RHS- {
    stroke-dasharray: 3, 1;
}

.c3-target-Lamb-10-year-average--LHS-,
.c3-target-Mutton-10-year-average--RHS- {
    stroke-dasharray: 3, 2;
}

.c3-target-NMI-10-year-average,
.c3-target-ESTLI-10-year-average {
    stroke-dasharray: 1, 1;
}

#legend-mutton-10-year-average.nsw-mutton-and-lamb-slaughter-000-head-5-legend,
#legend-lamb-10-year-average.nsw-mutton-and-lamb-slaughter-000-head-5-legend {
    display: none !important;
}

.c3-target-Average-discount-heavy-steer-to-restocker-steer {
    stroke-dasharray: 3, 1;
}

/* c3-line-5-Yr-Avg-Feed-1--Del-Port-Kembla- */
.c3-line-5-Yr-Avg-Feed-1--Del-Port-Kembla- {
    stroke-dasharray: 2, 1;
}

.c3-line {
    stroke-width: 2px;
}

#pdi-main .c3-area {
    opacity: 1;
}

/* transparent-area */

#pdi-main .transparent-area .c3-area {
    opacity: 0.5;
}

.c3-tooltip-container {
    max-width: 250px;
}

.value-of-nsw-horticulture-output {
    display: flex;
    flex-direction: row;
}

/* Mobile styles */
@media (max-width: 1000px) {
    .value-of-nsw-horticulture-output {
        flex-direction: column;
    }
}


/*Tooltip (not c3)*/

/* Tooltip */
.theme-main .pdi-footnote {
    color: #224379;
}

.page-recreational-fishing .pdi-footnote {
    color: #1b5680 !important;
}

.theme-main .popover {
    border-color: #224379;
}

.page-recreational-fishing .popover {
    border-color: #1b5680 !important;
}

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

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

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

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

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

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

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

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

