/* FONTS */

@font-face {
    font-family: Inter;
    src: url("/static/portal/fonts/Inter-Regular.dc1311138942.woff2") format('woff2'),
        url("/static/portal/fonts/Inter-Regular.3ac83020fe53.woff") format('woff');

    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: Inter;
    src: url("/static/portal/fonts/Inter-Medium.75db5319e7e8.woff2") format('woff2'),
        url("/static/portal/fonts/Inter-Medium.c0638bea87a0.woff") format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: Inter;
    src: url("/static/portal/fonts/Inter-SemiBold.007ad31a53f4.woff2") format('woff2'),
        url("/static/portal/fonts/Inter-SemiBold.66a68ffab2bf.woff") format('woff');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: Inter;
    src: url("/static/portal/fonts/Inter-Bold.444a7284663a.woff2") format('woff2'),
        url("/static/portal/fonts/Inter-Bold.99a0d9a7e4c9.woff") format('woff');
    font-weight: 700;
    font-style: normal;
}

/* VARIABLE DEFINITIONS */

html[data-theme="light"],
:root {
    --font-family-primary: Inter;

    --flex-gap: 68px;

    --container-padding: 10px;
    --component-margin: 5px 0;
    --component-padding: 10px 10px;
    --component-radius: 4px;
    --component-big-radius: 24px;
    --section-header-margin-top: 10px;

    --checkbox-width: 40px;

    --double-column-field-width: 420px;

    --toggle-checkbox-label-width: 180px;
    --toggle-checkbox-left-margin: 40px;
    --toggle-checkbox-right-margin: 10px;
    --toggle-checkbox-total-width: calc(var(--checkbox-width) + var(--toggle-checkbox-label-width) + var(--toggle-checkbox-left-margin) + var(--toggle-checkbox-right-margin));
}

body {
    font-variant-ligatures: no-contextual;
    overflow-x: hidden;
}

.main {
    position: relative;
}

/* ANIMATION */

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slowFadeIn {
    0% { opacity: 0; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* LINKS */

a:link,
a:visited {
    color: var(--body-fg);
    font-weight: 400;
    line-height: 140%;
}

a:hover,
a:focus,
a:active {
    text-decoration: underline;
}

.disabled-link {
    pointer-events: none;
    cursor: default;
    text-decoration: none !important;
}

.disabled-link:hover,
.disabled-link:focus {
    text-decoration: none !important;
}

/* GLOBAL DEFAULTS */

h1 {
    font-weight: 700;
    font-size: xx-large;
    color: var(--body-fg);
}

h2 {
    font-size: large;
}

ul > li {
    list-style-type: none;
}

fieldset {
    border-top: 0;
    border-bottom: 1px solid var(--hairline-color);
}

.visually-hidden,
.visually-hidden-legend > legend,
.visually-hidden-description > .description {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
    color: var(--body-fg);
    background-color: var(--body-bg);
}

.visibility-hidden {
    visibility: hidden;
    width: 0;
    height: 0;
    border: none;
    padding: 0;
    margin: 0;
    position: absolute;
}

/* TEXT STYLES & MODIFIERS */

.help,
p.help,
form p.help,
div.help,
form div.help,
div.help li {
    font-weight: lighter;
}


.form-row div.help {
    padding-top: 5px;
}

.text-secondary {
    font-weight: lighter;
    font-size: 0.6875rem;
    color: var(--body-quiet-color);
}

/* TABLES */

thead th,
tfoot td {
    color: var(--body-fg);
    font-size: 0.8125rem;
    border-top: 0;
}

tr:nth-child(even),
tr:nth-child(even) .errorlist,
tr:nth-child(odd)+.row-form-errors,
tr:nth-child(odd)+.row-form-errors .errorlist {
    background: var(--body-bg);
}

tbody > tr:hover {
    background: var(--darkened-bg);
}

.table-editable tbody > tr:hover {
    /* don't change background color when there are inputs in the table, so we could meet the minimal contrast requirements */
    background: unset;
}

@media (max-width: 767px) {
    .table-editable tbody .vTextField {
        width: 100%;
    }
}



tbody a:link,
tbody a:visited {
    text-decoration: underline;
    text-decoration-thickness: var(--inline-link-thickness);
    text-underline-offset: var(--inline-link-offset);
}

tbody a:hover {
    text-decoration-thickness: var(--inline-link-hover-thickness);
}

table thead th .raw-text {
    margin: 0 2px;
    padding: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}


/* SORTABLE TABLES */

.results {
    min-height: 2rem;
    /* to fit the sortable columns focus indicator (outline) */
    padding-top: 2px;
}

thead th,
thead th.sorted {
    background: var(--body-bg);
}

thead th.sorted .text {
    padding-right: 0;
    display: inline-block;
}

table thead th.sorted a.sortremove {
    visibility: visible; /* Always visible, not only on hover */
}

table thead th.sorted {
    position: relative;
}

table thead th.sorted .sortoptions {
    padding: 0;
    position: absolute;
    right: 0;
    top: 6px;
}

table thead th.sorted .sortoptions a {
    width: 24px;
    height: 24px;
    background: none;
    mask: url("/static/admin/img/sorting-icons.1c5313b2a4e2.svg") no-repeat center;
    mask-size: 24px auto;
    background-color: var(--body-fg);
}

table thead th.sorted .sortoptions a.ascending {
    mask-position: 0 -50px;
}

table thead th.sorted .sortoptions a.ascending:focus,
table thead th.sorted .sortoptions a.ascending:hover {
    mask-position: 0 -74px;
    background-color: var(--sortable-table-button-hover-fg);
}

table thead th.sorted .sortoptions a.descending {
    mask-position: 0 -98px;
}

table thead th.sorted .sortoptions a.descending:focus,
table thead th.sorted .sortoptions a.descending:hover {
    mask-position: 0 -122px;
    background-color: var(--sortable-table-button-hover-fg);
}

table thead th.sorted .sortoptions a.sortremove {
    mask-size: 20px auto;
    mask-position: 0 2px;
}

table thead th.sorted .sortoptions a.sortremove:focus,
table thead th.sorted .sortoptions a.sortremove:hover {
    mask-position: 0 -18px;
    background-color: var(--sortable-table-button-hover-fg);
}

table thead th.sorted .sortoptions a.sortremove:after {
    content: '';
}

table thead th.sorted .sortoptions a.sortremove:hover:after,
table thead th.sorted .sortoptions a.sortremove:focus:after  {
    color: var(--sortable-table-button-hover-fg);
}

table thead th.sorted .sortpriority {
    font-size: 1.1em;
    vertical-align: 7px;
    margin-left: 3px;
    margin-right: 3px;
}

table thead th .text span {
    padding: 8px 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

table thead th .text a:link,
table thead th .text a:visited {
    margin: 0 2px;
    padding: 8px 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--body-fg);
}

table thead th.sorted .text a:link,
table thead th.sorted .text a:visited {
    margin-right: 80px;
}

table .action-checkbox {
    vertical-align: middle;
}

.results tbody td img {
    width: 16px;
}

@media (max-width: 1600px) {
    table thead th.sorted .sortoptions {
        position: unset;
        padding: 5px 5px 0 0;
    }

    table thead th.sorted .text a:link,
    table thead th.sorted .text a:visited {
        margin-right: unset;
    }
}

optgroup::before {
    font-style: normal;
}

/* FORM DEFAULTS */

input,
textarea,
select,
.form-row p,
form .button {
    accent-color: unset;
}

input::placeholder {
    color: var(--placeholder-fg);
}

input:focus::placeholder {
    color: var(--input-focus-fg);
}

div.help {
    padding: 2px 3px;
}

input[type=text],
input[type=password],
input[type=email],
input[type=url],
input[type=number],
input[type=tel],
input[type=date],
input[type=time],
textarea,
select,
.vTextField {
    padding: 8px 8px;
    color: var(--input-fg);
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    outline: 0;
    flex-basis: calc(100% - var(--flex-gap) - 24px);
    margin-bottom: 0;
}

input[type=text]:hover,
input[type=password]:hover,
input[type=email]:hover,
input[type=url]:hover,
input[type=number]:hover,
input[type=tel]:hover,
input[type=date]:hover,
input[type=time]:hover,
textarea:hover,
select:hover,
.vTextField:hover {
    color: var(--input-hover-fg);
    background-color: var(--input-hover-bg);
    border: 1px solid var(--input-hover-border);
}

input[type=text]:focus,
input[type=password]:focus,
input[type=email]:focus,
input[type=url]:focus,
input[type=number]:focus,
input[type=tel]:focus,
input[type=date]:focus,
input[type=time]:focus,
textarea:focus,
select:focus,
.vTextField:focus {
    color: var(--input-focus-fg);
    background-color: var(--input-focus-bg);
    outline: 2px solid var(--input-focus-border);
}

input[type=text]:active,
input[type=password]:active,
input[type=email]:active,
input[type=url]:active,
input[type=number]:active,
input[type=tel]:active,
textarea:active,
select:active,
.vTextField:active {
    color: var(--input-active-fg);
    background-color: var(--input-active-bg);
    border: 1px solid var(--input-active-border);
}

input[type=text],
input[type=password],
input[type=email],
input[type=url],
input[type=number],
input[type=tel],
input[type=date],
input[type=time],
select {
    box-sizing: border-box;
    border-radius: var(--component-radius);
    height: 40px;
}

.errors input:not(:focus),
.errors select:not(:focus),
.errors textarea:not(:focus),
td ul.errorlist + input:not(:focus),
td ul.errorlist + select:not(:focus),
td ul.errorlist + textarea:not(:focus) {
    border-color: var(--body-bg);
    outline: 1px solid var(--error-fg);
}

/* FORM BUTTONS */

input[type=submit]:active,
input[type=submit]:focus,
input[type=submit]:hover {
    background: none;
}

/* DETAILS / SUMMARY */
details > summary:hover {
    text-decoration: underline;
}

details > div {
    margin-top: 10px;
}

/* DROPDOWN */

.dropdown-content {
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--darkened-bg);
    border-radius: var(--component-radius);
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
}

.dropdown-content.show {
    display: flex;

    animation: fadeIn 350ms;
}

/* DROPDOWN */
.tooltip {
    z-index: 2000;
    color: var(--body-fg);
    background-color: var(--darkened-bg);
    border-radius: var(--component-radius);
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
    padding: var(--component-padding);
    max-width: 300px;

    font-weight: normal;
    font-size: 0.9rem;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    
    animation: slowFadeIn 600ms;
}

/* MODULES */

.module {
    padding-bottom: 20px;
    margin-bottom: 10px;
    background: none;
}

.module h2,
.module caption,
.inline-group h2 {
    padding: 0;
    font-weight: 600;
    font-size: medium;
    background: var(--body-bg);
    color: var(--body-fg);
}

.module caption,
.inline-group h2 {
    font-size: medium;
    letter-spacing: 0;
    text-transform: none;
}

.module.aligned {
    border-bottom: 1px solid var(--hairline-color);
}

.module.aligned.tabcontent,
.inline-group.tabcontent {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

.module.aligned.tabcontent.last,
.inline-group.tabcontent:has(fieldset.last) {
    border-bottom: none;
    margin-bottom: 20px;
}

/* MESSAGES & ERRORS */

.errornote {
    font-weight: 400;
    border: none;
    border-radius: 18px;
}

/* OBJECT TOOLS */

.object-tools {
    margin-top: 0;
    position: absolute;
    top: 20px;
    right: 24px;
    max-width: 500px;
    display: flex;
    flex-direction: row;
}

.object-tools.object-tools-dashboard {
    right: 24px;
}

.object-tools li {
    margin-bottom: 40px;
}

.object-tools li {
    margin-left: 10px;
}

.object-tools a:link,
.object-tools a:visited {
    padding: 12px 12px;
    border: 1px solid var(--object-tools-bg);
    font-weight: 600 !important;
    text-transform: none;
    border-radius: var(--component-radius);
    font-size: 0.8125rem;
}

.object-tools a:hover,
.object-tools a:focus,
.object-tools a:active {
    border: 1px solid var(--object-tools-hover-bg);
    text-decoration: none;
}

.object-tools a:focus {
    outline: 2px solid var(--object-tools-hover-bg);
    outline-offset: 1px;
}

.object-tools a.addlink {
    background-image: none;
}

/* PAGE STRUCTURE */

#content {
    /* to allow absolute positioning of .object-tools */
    position: relative;
    padding: 20px 24px;
}

#footer {
    padding: 0px;
}

/* HEADER */

#header {
    padding: 0px;
    padding-right: 24px;
    border-bottom: 1px solid var(--hairline-color);
}

#header a:link,
#header a:visited,
#logout-form button {
    color: var(--accent);
}

#site-name {
    display: grid;
    align-items: center;
    height: 32px;
    padding: 16px 20px;
}

#site-logo,
.branding-site-logo-preview {
    display: flex;
    max-height: 32px;
}

#user-tools {
    font-size: 0.875rem;
    text-transform: none;
}

#user-tools a,
#logout-form button
{
    font-weight: 600;
    font-size: 0.75rem;
    border-bottom: none;
    margin: 0 1rem;
    text-transform: none;
}

#user-tools a:focus,
#user-tools a:hover,
#user-tools a:active,
#logout-form button:focus,
#logout-form button:hover,
#logout-form button:active {
    text-decoration: underline;
}

#language-form {
    display: inline-block;
}

#language-select {
    padding: 0;
    margin: 0;
    background-color: transparent;
    border: none;
    color: var(--accent);
}

#language-select option {
    color: var(--accent);
    background-color: var(--header-bg);
}

.custom-select {
    position: relative;
    color: var(--accent);
}

.select-button {
    color: var(--accent);
    cursor: pointer;
    border: none;
    margin: 0 1rem;
    background: none;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.2rem;
}

.selected-value {
    font-weight: 600;
    font-size: 0.75rem;
    text-align: left;
    font-family: var(--font-family-primary);
    letter-spacing: 0.5px;
}

.select-button:hover {
    text-decoration: underline;
}

.arrow{
    position:relative;
    display:block;
    height:1em;/*height should be double border*/
    top: 0.3em;/*half of height*/
}
.arrow:before,
.arrow:after{
    position:absolute;
    display:block;
    content:"";
    border:0.5em solid transparent;/*adjust size*/
}
/*Change four 'top' values below to rotate (top/right/bottom/left)*/
.arrow:before{
    top:0;
    border-top-color: var(--accent) /*Chevron Color*/
}
.arrow:after{
    top:-3px;/*adjust thickness*/
    border-top-color:var(--header-bg);/*Match background colour*/
}

#deleted-objects {
    word-wrap: break-word;
}

/* AUTOCOMPLETE */

.select2-container {
    flex: 1;
    width: unset !important;
}

.select2-selection {
    min-height: 1.4rem !important;
}

.select2-selection__arrow {
    min-height: 40px !important;
}

.select2-selection__rendered {
    line-height: unset !important;
    margin-top: 12px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--button-bg) !important;
}

.select2-dropdown {
    background: var(--body-bg) !important;
    color: var(--body-fg) !important;
    border-color: var(--input-border) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    color: var(--input-fg) !important;
    background-color: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    border-radius: 2px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:hover {
    color: var(--input-hover-fg) !important;
    background-color: var(--input-hover-bg) !important;
    border: 1px solid var(--input-hover-border) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:active {
    color: var(--input-active-fg) !important;
    background-color: var(--input-active-bg) !important;
    border: 1px solid var(--input-active-border) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    color: var(--input-focus-fg) !important;
    background-color: var(--input-focus-bg) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus-visible {
    outline: 2px solid var(--input-focus-border) !important;
}

/* AUTOCOMPLETE IN OBJECT-TOOLS */
.object-tools .select2-container {
    max-width: 20rem !important;
}

.object-tools .select2-selection {
    height: auto !important;
    border: 1px solid var(--object-tools-bg) !important;
    background-color: var(--object-tools-bg) !important;
    color: var(--object-tools-fg) !important;
    font-weight: 600 !important;
}

.object-tools .select2-selection:hover {
    border: 1px solid var(--object-tools-hover-bg) !important;
    background-color: var(--object-tools-hover-bg) !important;
}

.object-tools .select2-selection:focus-visible {
    outline: 2px solid var(--object-tools-hover-bg) !important;
    outline-offset: 1px !important;
}

.object-tools .select2-selection__rendered {
    padding: 12px;
    margin-top: 0;
    line-height: 140% !important;
}

.object-tools .select2-selection__placeholder,
.object-tools .select2-selection__rendered {
    color: var(--object-tools-fg) !important;
}

.object-tools .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--object-tools-fg) transparent transparent transparent !important;
}

.object-tools .select2-selection__arrow {
    padding-right: 12px;
}

/* SIGNED OUT SIGN IN BUTTON */

a.signinlink:link,
a.signinlink:visited {
    padding: 12px 12px;
    color: var(--primary);
    border-radius: var(--component-radius);
}

a.signinlink:focus,
a.signinlink:hover {
    background: var(--button-secondary-hover-bg);
    color: var(--body-fg);
    text-decoration: none;
}

/* EXTRA CHANGE LIST BUTTONS */

.object-tools a.tertiary:link,
.object-tools a.tertiary:visited {
    color: var(--button-tertiary-fg);
    background: var(--button-tertiary-bg);
    border: 1px solid var(--button-tertiary-border);
}

.object-tools a.tertiary:focus,
.object-tools a.tertiary:hover {
    color: var(--button-tertiary-hover-fg);
    background: var(--button-tertiary-hover-bg);
    border-color: var(--button-tertiary-hover-border);
}

/* CUSTOM PAGE SUBMIT BUTTON */

input[type=submit].primary {
    padding: 12px;
    color: var(--button-primary-fg);
    background: var(--button-primary-bg);
    font-weight: 600;
}

input[type=submit].primary:active,
input[type=submit].primary:focus,
input[type=submit].primary:hover {
    color: var(--button-primary-hover-fg);
    background: var(--button-primary-hover-bg);
    text-decoration: none;
}

/* "DEFAULT" SUBMIT BUTTON */
.button.default,
input[type=submit].default,
.submit-row input.default {
    background: var(--object-tools-bg);
    color: var(--object-tools-fg);
    padding: 12px 12px;
    border: 1px solid var(--object-tools-bg);
    font-weight: 600 !important;
}

.button.default:hover,
.button.default:focus,
.button.default:active,
input[type=submit].default:hover,
input[type=submit].default:focus,
input[type=submit].default:active,
.submit-row input.default:hover,
.submit-row input.default:focus,
.submit-row input.default:active {
    background: var(--object-tools-hover-bg);
    border: 1px solid var(--object-tools-hover-bg);
    text-decoration: none;
}

.button.default:focus-visible,
input[type=submit].default:focus-visible,
.submit-row input.default:focus-visible {
    outline: 2px solid var(--object-tools-hover-bg);
    outline-offset: 1px;
}

/* PAGINATOR */

.paginator {
    border-top: none;
}

.paginator > ul {
    margin: 0;
    align-items: center;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
}

.paginator > ul > li {
    margin: 5px;
}

.paginator a:link,
.paginator a:visited {
    padding: 8px 12px;
    color: var(--button-tertiary-fg);
    background: var(--button-tertiary-bg);
    border: 1px solid var(--button-tertiary-border);
    border-radius: var(--component-radius);
}

.paginator a:hover,
.paginator a:focus,
.paginator a:active,
.paginator a.showall:hover,
.paginator a.showall:focus,
.paginator a.showall:active {
    color: var(--button-tertiary-hover-fg);
    background: var(--button-tertiary-hover-bg);
    border-color: var(--button-tertiary-hover-border);
}

.paginator a:focus-visible,
.paginator a.showall:focus-visible {
    outline: var(--component-outline);
    outline-offset: 1px;
}

.paginator a.this-page {
    vertical-align: unset;
    border-color: transparent;
    color: var(--button-tertiary-hover-fg);
    background: var(--button-tertiary-hover-bg);
}

.paginator a.showall {
    margin-left: 20px;
}

@media (max-width: 1200px) {
    .paginator {
        flex-direction: column;
    }

    .paginator > ul {
        flex-wrap: wrap;
    }

    .paginator a.showall {
        margin-left: 0;
    }
  }

/* THEME SWITCH */

.theme-toggle {
    border: 1px solid var(--page-header-button-border);
    border-radius: var(--component-radius);
}

.theme-toggle:focus,
.theme-toggle:focus-visible,
.theme-toggle:hover,
.theme-toggle:active {
    border-color: var(--page-header-button-border);
    background: var(--page-header-button-border);
}

.theme-toggle svg {
    padding: 6px;
    fill: var(--accent) !important;
    color: transparent !important;
}

.theme-toggle:focus svg,
.theme-toggle:focus-visible svg,
.theme-toggle:hover svg,
.theme-toggle:active svg {
    fill: var(--header-bg) !important;
}

/* BREADCRUMBS */

div.breadcrumbs {
    background: var(--breadcrumbs-bg);
    padding: 0;
    border: none;
    color: var(--breadcrumbs-fg);
    text-align: left;
    font-weight: 600;
    margin-bottom: 10px;
}

div.breadcrumbs a:link,
div.breadcrumbs a:visited {
    color: var(--breadcrumbs-link-fg);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: var(--inline-link-thickness);
    text-underline-offset: var(--inline-link-offset);
}

div.breadcrumbs a:hover {
    text-decoration-thickness: var(--inline-link-hover-thickness);
}

div.breadcrumbs a:focus, div.breadcrumbs a:hover {
    color: var(--breadcrumbs-fg);
    font-weight: 600;
}

.headingrow {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.headingtitleandsubmit {
    max-width: 70%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 767px) {
    .headingrow {
        align-items: start;
        flex-direction: column;
    }
}

/* DELETE CONFIRMATION */

.delete-confirmation form input[type="submit"]:focus-visible {
    outline: 2px solid var(--delete-button-hover-bg);
    outline-offset: 1px;
}

.delete-confirmation form .cancel-link {
    border: 1px solid var(--input-border);
    background-color: var(--body-bg);
    color: var(--body-fg);
}

.delete-confirmation form .cancel-link:hover,
.delete-confirmation form .cancel-link:focus,
.delete-confirmation form .cancel-link:active {
    background-color: var(--border-color);
    border-color: unset;
    text-decoration: none;
}

.delete-confirmation form .cancel-link:focus-visible {
    outline: var(--component-outline);
    outline-offset: 1px;
}

.delete-confirmation .cancel-and-delete {
    margin-left: 10px;
}

/* MESSAGELIST */
ul.messagelist {
    position: absolute;
    top: 30px;
    inset-inline-end: 15px;
    z-index: 2;
}

ul.messagelist li {
    position: relative;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    border-radius: var(--component-radius);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 16px;
    padding-inline-start: 50px;
    max-width: 250px;
    margin-bottom: 16px;
    min-height: 40px;
}

ul.messagelist li.info,
ul.messagelist li.success,
ul.messagelist li.warning,
ul.messagelist li.error {
    background-size: 22px auto;
    background-position: 16px 24px;
}

ul.messagelist li.error {
    background-image: url("/static/admin/img/icon-error.4aff0a169a60.svg");
}

ul.messagelist li.dismiss {
    opacity: 0;
    animation: fadeOut 500ms; /* matches messagelist.js: MESSAGELIST_FADEOUT_MS */
}

ul.messagelist li .close-button {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    width: 16px;
    height: 16px;
    background-image: url("/static/portal/images/close.2fc0539b76b6.svg");
    background-size: contain;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

ul.messagelist li .close-button:hover,
ul.messagelist li .close-button:focus {
    transform: scale(1.2);
}

ul.messagelist li > div {
    padding-inline-end: 14px;
}

ul.messagelist li.with-actions > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

ul.messagelist li.with-actions .primary-action {
    cursor: pointer;
    padding: 10px 16px;
    border: 1px solid var(--object-tools-bg);
    border-radius: var(--component-radius);
    background: var(--object-tools-bg);
    color: var(--object-tools-fg);
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 4px;
}

ul.messagelist li.with-actions .primary-action:hover {
    border: 1px solid var(--object-tools-hover-bg);
    background-color: var(--object-tools-hover-bg);
}

ul.messagelist li.with-actions .primary-action:focus-visible {
    outline: 2px solid var(--object-tools-hover-bg);
    outline-offset: 1px;
}

ul.messagelist li.with-actions .secondary-action {
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: var(--component-radius);
    background: transparent;
    color: var(--object-tools-bg);
    font-weight: 400;
    font-size: 0.875rem;
    text-decoration: underline;
    text-decoration-thickness: var(--inline-link-thickness);
    text-underline-offset: var(--inline-link-offset);
}

ul.messagelist li.with-actions .secondary-action:hover {
    border-color: transparent;
    background-color: transparent;
    color: var(--object-tools-hover-bg);
    text-decoration-thickness: var(--inline-link-hover-thickness);
}

ul.messagelist li.with-actions .secondary-action:focus-visible {
    outline: 2px solid var(--object-tools-hover-bg);
    outline-offset: 1px;
} 

ul.messagelist a:link,
ul.messagelist a:visited {
    text-decoration: underline;
    text-decoration-thickness: var(--inline-link-thickness);
    text-underline-offset: var(--inline-link-offset);
    color: var(--inline-link-fg);
}

ul.messagelist a:hover {
    text-decoration-thickness: var(--inline-link-hover-thickness);
    color: var(--inline-link-hover-fg);
}

/* ABOUT PAGE */
.content-extra a:link,
.content-extra a:visited {
    text-decoration: underline;
    text-decoration-thickness: var(--inline-link-thickness);
    text-underline-offset: var(--inline-link-offset);
}

.content-extra a:hover {
    text-decoration-thickness: var(--inline-link-hover-thickness);
}

/* DIALOG */
.dialog {
    border: none;
    border-radius: var(--component-big-radius);
    box-shadow: var(--component-shadow);
}

.dialog .dialog-content {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

.dialog .dialog-content h2 {
    margin-top: 0;
}

.dialog .dialog-close-button {
    position: absolute;
    top: -35px;
    inset-inline-end: -10px;
    width: 34px;
    height: 34px;
    background-image: url("/static/portal/images/close.2fc0539b76b6.svg");
    background-size: contain;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.dialog .dialog-actions {
    margin-top: 36px;
    display: flex;
    justify-content: flex-end;
}

.dialog .dialog-actions .button.default,
.dialog .dialog-actions .button.button-tertiary,
.dialog .dialog-actions input[type=submit].default {
    margin: 0;
    margin-inline-start: 12px;
}

.dialog .dialog-actions-wide .button.default,
.dialog .dialog-actions-wide .button.button-tertiary,
.dialog .dialog-actions-wide input[type=submit].default {
    padding: 12px 48px;
}

.autosize-dialog {
    min-width: 350px;
    max-width: 60%;
    max-height: 50%;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 50px 24px 24px 24px;
}

.autosize-dialog .dialog-content {
    padding-top: 24px;
}

.fullscreen-dialog {
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: var(--component-padding);
}

@media (max-width: 1200px) {
    .autosize-dialog {
        max-width: 80%;
    }
}

@media (max-width: 767px) {
    .autosize-dialog {
        width: auto;
        max-width: 100%;
        max-height: 100%;
        margin: 0 auto;
    }
}

@media (max-height: 800px) {
    .autosize-dialog {
        max-height: 100%;
        margin: 0 auto;
    }
}

/* ICONS */
.inline-icon {
    display: inline;
    vertical-align: middle;
}

.button-icon {
    display: inline;
    margin-inline-end: 2px;
    vertical-align: middle;
}

.inline-icon svg {
    width: 16px;
    height: 16px;
}

.inline-icon-small svg,
.button-icon svg {
    width: 12px;
    height: 12px;
}
