/* Fix small display bugs on news/event cards */
#qg-content .qg-forgov-cards .qg-card .content { background-color: #fff; }
#qg-content .qg-forgov-cards .qg-card .content .details .qg-card-category { padding-right: 0; }
#qg-content .qg-forgov-cards .qg-card .content .details h2,
#qg-primary-content .qg-forgov-cards .qg-card .content .details h2 {
    line-height: inherit;
}

/* Add styles for table header columns */
tbody>tr>th {
    background: #13578b;
    color: #fff;
}

/* Fix spacing issues */
table {
    margin-bottom: 1em;
}

h4 {
    margin-top: 1.5em;
}

@media print {
  /* Quickfix for SWE issue where closed accordions aren't opened for printing */
  .qg-accordion.qg-accordion-v2 article .qg-accordion--closed+.collapsing-section {
    display: block;
    visibility: inherit;
    opacity: inherit;
    max-height: inherit;
  }
  /* Hide sitewide alert for printing */
  .qg-site-wide-alert {
    display: none;
  }
}



/*## QGDS styles ##*/

/* User login dropdown */
#user-menu a {
    align-items: center;
    color: var(--qld-body-color);
    display: flex;
}
#user-menu .user-profile-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%23FFE500'%3E%3Cpath d='M240.92-268.31q51-37.84 111.12-59.77Q412.15-350 480-350t127.96 21.92q60.12 21.93 111.12 59.77 37.3-41 59.11-94.92Q800-417.15 800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 62.85 21.81 116.77 21.81 53.92 59.11 94.92ZM480.01-450q-54.78 0-92.39-37.6Q350-525.21 350-579.99t37.6-92.39Q425.21-710 479.99-710t92.39 37.6Q610-634.79 610-580.01t-37.6 92.39Q534.79-450 480.01-450ZM480-100q-79.15 0-148.5-29.77t-120.65-81.08q-51.31-51.3-81.08-120.65Q100-400.85 100-480t29.77-148.5q29.77-69.35 81.08-120.65 51.3-51.31 120.65-81.08Q400.85-860 480-860t148.5 29.77q69.35 29.77 120.65 81.08 51.31 51.3 81.08 120.65Q860-559.15 860-480t-29.77 148.5q-29.77 69.35-81.08 120.65-51.3 51.31-120.65 81.08Q559.15-100 480-100Zm0-60q54.15 0 104.42-17.42 50.27-17.43 89.27-48.73-39-30.16-88.11-47Q536.46-290 480-290t-105.77 16.65q-49.31 16.66-87.92 47.2 39 31.3 89.27 48.73Q425.85-160 480-160Zm0-350q29.85 0 49.92-20.08Q550-550.15 550-580t-20.08-49.92Q509.85-650 480-650t-49.92 20.08Q410-609.85 410-580t20.08 49.92Q450.15-510 480-510Zm0-70Zm0 355Z'/%3E%3C/svg%3E");
    height: 1.5rem;
    width: 1.5rem;
    line-height: 1.5;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Page utilities */
.fg-page-utilities > div {
    margin-bottom: 1.5rem;
}
.fg-page-utilities > div:not(:first-child) {
    margin-left: 2rem;
}


/* ## Search widget select elements ## */
.qg-search-widget select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='currentColor' d='M4.251 181.1C7.392 177.7 11.69 175.1 16 175.1c3.891 0 7.781 1.406 10.86 4.25l197.1 181.1l197.1-181.1c6.5-6 16.64-5.625 22.61 .9062c6 6.5 5.594 16.59-.8906 22.59l-208 192c-6.156 5.688-15.56 5.688-21.72 0l-208-192C-1.343 197.7-1.749 187.6 4.251 181.1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    appearance: none;
    background-position: right 11px center;
    background-size: 1rem auto;
}


/* ## Global alert override ## */
.global-alert .qld-global-alert-main {
    .global-alert-message {
        max-width: 100%;
    }
    .global-alert-action {
        white-space: nowrap;
    }
}