:root {
    --mast-bg-color: #041e48;
    --mast-color: #ffffff;
    --mast-hover-color: #00c08b;
    --mast-no-link: rgb(105, 115, 124);
    --site-footer-logo-bg-color: #171717;
    --extra-button-color: #ffffff;
    --extra-button-bg-color: #00c08b;
    --pd-lh: 1.3em;
}

/* =====================================================
   The "account masthead" bar across the top of the site
   ===================================================== */
.leaflet-draw-toolbar a {
    background-image: url("img/spritesheet.png");
    background-repeat: no-repeat;
}

.leaflet-retina .leaflet-draw-toolbar a {
    background-image: url("img/spritesheet-2x.png");
    background-size: 270px 30px;
}

.nav-tabs {
    font-size: 10pt;
}

img#beta {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 500;
}

.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-rectangle {
    background-position: 50% 50% !important;
}

.container-header.masthead {
    background: none;
    background-color: var(--mast-bg-color);
}

.account-masthead {
    height: 39px;
    background: none;
    background-color: var(--mast-bg-color);
}

/* The "bubble" containing the number of new notifications. */
.account-masthead .account .notifications a span {
    background-color: var(--mast-color);
}

/* Transparent separator between links */
.account-masthead .account ul li {
    border-left: 2px transparent;
}

/* The text and icons in the user account info. */
.masthead a,
.masthead hgroup h2,
.masthead .nav > li > a,
.masthead .nav > .active > a,
.account-masthead .account .notifications a span,
.account-masthead .account ul li a,
.masthead .site-title a,
.masthead .site-title a:active,
.site-footer,
.site-footer a {
    color: var(--mast-color);
    background-color: var(--mast-bg-color);
    text-shadow: none;
    box-shadow: none;
}

/* The text and icons in the user account info. */
.masthead a,
.masthead hgroup h2,
.masthead .nav > li > a,
.masthead .nav > .active > a,
.masthead .site-title a,
.masthead .site-title a:active,
.site-footer {
    font-family: "Akkurat Pro", Arial, Helvetica, sans-serif;
    font-size: 2rem;
}

/* The text and icons in the user account info. */
.account-masthead .account .notifications a span,
.account-masthead .account ul li a {
    font-size: 1.5rem;
}

.masthead .nav > .active > a:hover,
.masthead .nav > .active > a:focus,
.masthead .nav > li > a:focus,
.masthead .nav > li > a:hover,
.account-masthead .account .notifications a:hover span,
.account-masthead .account ul li a:hover,
.masthead .site-title a:hover,
.masthead .site-title a:focus, .site-footer-links a:focus {
    color: var(--mast-hover-color);
    background-color: inherit;
    text-shadow: none;
    box-shadow: none;
}

.site-footer-links a {
    font-size: smaller;
}

.account-masthead .account ul li.login {
    color: var(--mast-bg-color);
    background-color: var(--mast-color);
    border: 1px solid var(--mast-color);
    border-radius: 25px;
    margin-right: 10px;
}

.account-masthead .account ul li.register {
    color: var(--mast-color);
    background-color: var(--mast-bg-color);
    border: 1px solid var(--mast-color);
    border-radius: 25px;
}

.account-masthead .account ul li.login a, .account-masthead .account ul li.register a {
    color: inherit;
    background-color: inherit;
    border: 1px solid var(--mast-color);
    border-radius: 25px;
}

.account-masthead .account ul li.login a:hover, .account-masthead .account ul li.register a:hover, .site-footer-links a:hover {
    color: var(--mast-hover-color);
}

.account-masthead .account.not-authed span.login, .account-masthead .account.not-authed span.register {
    margin: 0 10px 0 10px;
    position: relative;
    top: 0;
    left: 0;
    color: inherit;
    background-color: inherit;
}

/* ========================================================================
   The main masthead bar that contains the site logo, nav links, and search
   ======================================================================== */

.dwga-header-container {
    padding: 5px;
    background: none;
}

/* Invisible debug output for controller/action */
.debug {
    color: #fefefe;
}

.dwga-search {
    float: right;
}

/* Padding around logo and search */
.dwga-header-row {
    padding: 10px 10px 10px 0px;
    margin-left: 0px;
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.dwga-header-row > div {
    padding-left: 0;
}

.dwga-header-row .logo {
    height: auto;
    width: 350px;
}

/* Make menu like main BPA site */
.headermenu {
    float: right;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.headermenu > .menu-item {
    display: inline-block;
    list-style-type: none;
    margin: 0 1rem 0 0;
    position: relative;
}

.dwga-inlineblock {
    display: inline-block;
}

.dwga-title {
    margin-left: 15px;
}

.masthead {
    border-top: 1px solid var(--mast-bg-color);
    border-bottom: 1px solid var(--mast-bg-color);
    background: none;
    background-color: var(--mast-bg-color);
}

.dwga-header {
    color: #69737c;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    display: block;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    font-size: 17px;
    font-weight: normal;
    height: 134px;
    line-height: 27.09375px;
    margin-bottom: 0px;
    margin-left: 101px;
    margin-right: 101px;
    margin-top: 0px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 10px;
}

/* Alignment of navigation */
.masthead .navigation,
ul.nav {
    margin: 0px 0px 2px 0px;
}

/* Float the navbar left */
/* data.wa.gov.au floats left, here it looks better floating right */
.masthead .nav-collapse {
    float: left;
}

/* Space the nav links (Dataset, Orgs, Groups) so the hover/active underline is separated */
.navbar .nav > li > a {
    margin-left: 2px;
}

/* The "box shadow" effect that appears around the search box when it
   has the keyboard cursor's focus. */
.masthead input[type="text"]:focus {
    -webkit-box-shadow: inset 0px 0px 2px 0px rgba(0, 0, 0, 0.7);
    box-shadow: inset 0px 0px 2px 0px rgba(0, 0, 0, 0.7);
}

/* changes for bpa logo */
.masthead #dwga-header-container .dwga-logo {
    background: none;
}

.masthead #dwga-header-container .dwga-logo:hover {
    background: none;
}

.masthead #dwga-header-container .dwga-logo .logo {
    display: inline-block;
}

.masthead #dwga-header-container .dwga-logo {
    height: 100%;
    width: 100%;
}

.masthead .logo img {
    max-height: 100%;
    height: 83.2px;
}

img {
    max-width: 100%;
}

/* end of changes for bpa logo */

/* Navigation links on hover */
/* .masthead .navigation ul.nav li a:hover,
.masthead .navigation ul.nav li.active a {
  background: none;
  color: #2ea3f2;
  text-decoration: none;
  box-shadow: none;
} */

.toolbar,
.toolbar::before,
.toolbar::after {
    border-bottom: none;
}

/* hide breadcrums */
/* .toolbar {
  display: none;
}
.breadcrums {
  display: none;
} */
/* ===========================================
   The content in the middle of the front page
   =========================================== */

/* Hide featured section */
.featured {
    visibility: hidden;
    height: 0px;
}

/* The background outside of the hero pane */
.hero,
[role="main"] {
    background: #fefefe;
}

/* Remove the "box shadow" effect around various boxes on the page. */
.box {
    box-shadow: none;
}

/* Remove the borders around the "Welcome to CKAN" and "Search Your Data"
   boxes. */
.hero .box {
    border: none;
}


/* Change the background color of the "Popular Tags" box. */
.homepage .module-search .tags {
    color: rgb(105, 115, 124);
    background-color: #fcfcfc;
}

/* Remove some padding. This makes the bottom edges of the "Welcome to CKAN"
   and "Search Your Data" boxes line up. */
.module-content:last-child {
    padding-bottom: 0px;
}

.module-content p {
    margin-top: 1em;
    margin-bottom: 1em;
}

/* Bottom half of front page for featured orgs/groups */
.homepage [role="main"] {
    min-height: 100px;
    padding-top: unset;
}

/* private datasets */
.module-content .dataset-private {
    margin-top: 14px;
    margin-right: 10px;
}

.module-content .label-private {
    background-color: #333333;
    font-family: Arial, sans-serif;
}

.module-content .label.label-inverse a {
    text-decoration: none;
    /* color: #ffffff !important; */
    color: lightgrey;
}

a,
a:active,
a:hover,
a:focus {
    color: rgb(32, 57, 157);
    text-decoration: none;
}

/* The box around featured orgs/groups */
.box {
    border: none;
}

.btn {
    border: 1px solid #cccccc;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: bold;
}

h1.pull-left {
    margin-bottom: 0px;
}

/* page header for bar with menu home|dataset|methods|gallery|information etc */
.wrapper .page-header {
    background: none;
}

.module-content p {
    margin-top: 1em;
    margin-bottom: 1em;
}

body {
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    font-size: 12pt;
}

body {
    color: rgb(86, 86, 86);
    background-color: rgb(200, 200, 200);
}

/* The debug toggle */
#debug-toggle {
    color: rgb(200, 200, 200);
}

/* Fix wrapping of label in list on resource page */
/* .nav-item > a span {
  white-space: nowrap;
  overflow: hidden;
  display: block;
} */

.org-sidebar {
    list-style: none;
    padding: 0 0 0 0;
    margin: 0 0 0 0;
}

.list-group-item {
    position: relative;
    display: block;
    padding: 10px 15px;
    margin-bottom: -1px;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #555;
}

.site-footer {
    padding: 0px;
    min-height: 0px;
}

.site-footer-links {
    text-align: center;
    /* padding-top: 20px;
    padding-bottom: 20px; */
    padding: 20px;
}

.site-footer-links a {
    padding-right: 20px;
}

.site-footer-logo, .site-footer-logo span, .site-footer-logo a {
    background-color: var(--site-footer-logo-bg-color);
}

.site-footer-logo {
    padding: 30px;
    text-align: center;
}

.site-footer-logo .ncris-footer {
    padding-left: 30px;
}

.site-footer-logo img.bpa-img {
    width: 150px;
    height: 137.14px;
}

.site-footer-logo img.ncris-img {
    width: 150px;
    height: 100px;
}

/* Need this to break out of the automatically generated .container class*/
.site-footer .container {
    width: 100%;
    padding-left: 0px;
    padding-right: 0px;
}

.search-background {
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    padding: 5px;
    height: 320px;
}

.search-wrapper {
    position: relative;
}

.webp .lazyload.search-background, .webp .lazyloading.search-background {
    background-image: url("/header-background_2_small.webp");
}

.no-webp .lazyload.search-background, .no-webp .lazyloading.search-background {
    background-image: url("/header-background_2_small.png");
}

.webp .lazyloaded.search-background {
    background-image: url("/header-background_2.webp");
}

.no-webp .lazyloaded.search-background {
    background-image: url("/header-background_2.png");
}

.lazyload.search-background,
.lazyloading.search-background {
    -webkit-filter: blur(10px);
    filter: blur(10px);
}

.lazyloaded.search-background {
    transition: filter 1000ms, -webkit-filter 1000ms;
    -webkit-filter: blur(0);
    filter: blur(0);
}

.search-instructions {
    font-size: xx-small;
    clear: both;
}

.open-data {
    font-size: small;
    clear: both;
    margin-bottom: 5px;
}

/** show background image 'transparently', but ensure inputs are white (no transparency) **/
.homepage .module-search {
    padding: 0;
    margin: 3% 5% 3% 5%;
    background-color: transparent;
    position: absolute;
    top: 0;
    /*firefox needs min width spelt out*/
    width: 90%;
}

.homepage .module-search .module-content {
    color: rgb(105, 115, 124);
    background-color: rgba(255, 255, 255, 0.9)
}

.featured-orgs {
    padding-top: 15px;
}

.featured-orgs .heading {
    margin: 0 0 20px -5px;
    font-size: 24px;
    line-height: 40px;
}

/* ====================================
   For changing the heading to include the words Data Portal
   ==================================== */

.pull-left > img {
    padding-left: 20px;
}

.data_portal_text {
    color: black;
    line-height: 3;
    padding-left: 140px;
    font-size: 28px;
}


.topnav {
    overflow: visible;
}


/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
    display: none;
}

.header-left {
    flex: 0 1 auto;
}

.header-right {
    padding-right: 0;
}

.site-parent {
    width: 100%;
    height: 100%;
    position: relative;
}


.site-title {
    margin-left: 15px;
    height: 100%;
    position: relative;
}

.site-title .topnav {
    height: 100%;
    position: relative;
    width: 100%
}

@media screen and (max-width: 990px) {
    .site-title .topnav .headermenu {
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;
    }
}

@media screen and (max-width: 600px) {

    .account-masthead {
        height: auto;
    }

    .account-masthead .unstyled {
        padding: 0
    }

    .dwga-header-row {
        align-items: flex-start;
    }

    .topnav a {
        display: none;
        right: 30px;
        margin-bottom: 10px;
    }

    .topnav a.icon {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        padding-right: 10px;
    }

    .topnav .headermenu {
        width: 0;
        position: absolute;
        top: 0;
        right: 60px;
        transition: 0.4s;
    }

    .topnav.responsive .headermenu {
        position: relative;
        top: 0;
        right: 100px;
        display: block;
    }

    .topnav.responsive .headermenu a {
        display: block;
    }

    .dwga-header-row .logo {
        width: 225px;
    }

    .masthead .logo img {
        max-height: 100%;
        /*width: 100px;*/
        height: 91.22px
    }

}

/*ensure rectangular images are 'squared' before becoming 'circles'*/
.icon_logo_default {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
}

.icon_logo_child {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}

.no-circular-logo {
    border-radius: 6px !important;
}

.project-details {
    margin: 0 15px 25px 0
}

.project-details h3 {
    margin-top: 5px
}

.project-details .nav-pills {
    padding: 0 0 0 0
}

.project-details .nav-pills li a {
    padding: 0 25px 15px 0
}

.project-name {
    min-height: 60px;
}

.project-description, .truncate-overflow {
    line-height: var(--pd-lh);
    position: relative;
    text-align: left;
    padding-right: 1em; /* space for ellipsis */
    margin: 0 0 0 0;
    min-height: 90px;
}

.truncate-overflow {
    --max-lines: 3;
    max-height: calc(var(--pd-lh) * var(--max-lines));
    overflow: hidden;
}

.truncate-overflow::before, .truncate-overflow::after {
    position: absolute;
    bottom: 0;
}

.truncate-overflow::before {
    height: var(--pd-lh);
    content: "...";
    right: 0;
}

.truncate-overflow::after {
    height: var(--pd-lh);
    content: "";
    left: 0;
    width: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 100%);
}

.truncate-toggle {
    display: inline-block;
    margin-top: -10px;
}

.truncate-toggle::after {
    content: "";
}

.module h1 {
    /* ensure text kept within container */
    overflow-wrap: anywhere;
}

.form-select.control-order-by {
    float: right;
    flex-direction: row;
    justify-content: flex-end;
    margin-left: 0px;
}

.form-select {
    margin-bottom: 0px;
}

.form-group {
    padding-bottom: 0px;
}

.search-form {
    padding-bottom: 0px;
}

.search-form.control-order-by {
    margin-left: 0px;
}

.bulk-btn {
    float: right;
    margin: 0 0 0 0;
}

.bulk-btn a {
}

.bulkdl {
    display: flex;
    flex-direction: column;
    flex: initial;
}

.bulkdl-lr {
    float: right;
    text-align: right;
    margin-bottom: 1em;
    line-height: 1.5;
}

.bulkdl-btn {
    float: right;
    margin-bottom: 1em;
}

.results {
    display: flex;
}

.result-count {
    flex: 1;
}

.result-found {
    margin-top: 0px;
}

.size-info {
    display: inline-block;
}
.size-found {
    margin-top: 0px;
    font-size: .8em;
}
.resources {
    border-top: 1px dotted #dddddd;
    display: block;
    clear: both;
}

.fa-sync::before {
    content: "\f021";
}

.fa-caret-square-down::before {
    content: "\f150";
}

.fa-caret-square-up::before {
    content: "\f151";
}

.bootstrap-table .fixed-table-toolbar {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    margin-right: 10px;
}

.bootstrap-table .page-list .dropdown-menu .dropdown-item {
    padding: 0 0 0 15px;
}

#summary-table th, #summary-table td {
    width: auto;
    font-size: 10px;

}

/*break whitespace on new-line*/
#summary-table th .th-inner {
    white-space: pre;
}

#summary-table th .th-inner.sortable {
    padding-right: 15px !important;
}

@media screen and (min-width: 1201px) {
    #summary-table th:nth-child(n+4),
    #summary-table td:nth-child(n+4) {
        width: 4em;
        text-align: center;
    }

    #summary-table th:nth-child(1),
    #summary-table th:nth-child(2),
    #summary-table th:nth-child(7),
    #summary-table td:nth-child(1),
    #summary-table td:nth-child(2),
    #summary-table td:nth-child(7) {
        min-width: 11em;
        width: 11em;
        text-align: center;
    }

    #summary-table th:nth-child(3),
    #summary-table th:nth-child(4),
    #summary-table th:nth-child(10),
    #summary-table td:nth-child(3),
    #summary-table td:nth-child(4),
    #summary-table td:nth-child(10) {
        min-width: 5em;
        width: 5em;
        text-align: center;
    }

    #summary-table th:nth-child(5),
    #summary-table td:nth-child(5) {
        min-width: 8em;
        width: 8em;
        text-align: center;
    }

    #summary-table th:nth-child(n+12),
    #summary-table td:nth-child(n+12) {
        display: none;
        text-align: center;
    }


}

@media screen and (max-width: 1200px) {


    #summary-table th:nth-child(n+4),
    #summary-table td:nth-child(n+4) {
        min-width: 4em;
        text-align: center;
        with: auto;
    }
}


#user-comms {
    text-align: left;
    color: var(--mast-bg-color);
    background-color: var(--mast-color);
    border-top: 2px solid var(--mast-hover-color);
    border-right: none;
    border-left: none;
    border-radius: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: baseline;
    padding: 10px 20px 2px 20px;
    font-size: 13px;
}

#user-comms p {
    margin: 0 0 5px 0 !important;
}

#user-comms .comms-title {
    margin: 0;
}

#user-comms .comms-message {
    display: inline-block;
    padding-bottom: 10px;
}

#user-comms .header-left {
    color: var(--mast-hover-color);
    margin-right: 10px;
}

#user-comms .comms-link {
    margin-left: 30px;
    color: inherit;
    background-color: inherit;
    border: 1px solid var(--mast-hover-color);
    border-radius: 10px;
    padding: 5px;
    white-space: nowrap;
    width: min-content;
}

#user-comms .comms-link a {
    margin-left: 5px;
    color: inherit;
    background-color: inherit;
    text-shadow: none;
    box-shadow: none;
    font-size: 14px;
}

#user-comms .comms-link a:hover, #user-comms .comms-link a:focus {
    color: var(--mast-hover-color);
    background-color: inherit;
    text-shadow: none;
    box-shadow: none;
}

#user-comms .comms-owner {
    font-style: italic;
}

.s3filestore_url_window {
    cursor: pointer;
}

.download-window-links {
    padding-right: 1px;
    font-size: 16px;
}

.optional-resource {
    font-size: 12px;
    font-style: italic;
}

.resource-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.content_action {
    margin-bottom: 10px;
}

/* styling for map */

.dataset-map-expanded #dataset-map {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
}

.loading:before {
    padding-left: 10px;
    font-style: italic;
    content: "Loading";
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
}

.loading:after {
    content: "...";
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
    animation: ellipsis-dot 1s infinite .3s;
    animation-fill-mode: forwards;
    width: 1.25em;
}

@keyframes ellipsis-dot {
    25% {
        content: "";
    }
    50% {
        content: ".";
    }
    75% {
        content: "..";
    }
    100% {
        content: "...";
    }
}

/* The background color */
.main {
    background: #fefefe;
}
/* shopping cart button content counter*/
.shopping-cart-dock .shopping-cart-dock--heading .counter:after {
    content: attr(data-count);
}
