@import url('//fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,700;1,400;1,700&display=swap');

html, * {
    box-sizing: border-box;
}
html, body {
    height: 100%;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
}

/*COLORS*/

:root {
    --negative: #D55050;
    --positive: #489b4d;
    --regular: #5D738A;
    --export: #5BB7DF;
    --action: #5BB7DF;

    --grey-bg: #eee;
    --grey-dark: #2d2d2d;

    --blue-10: #DADDF0;
    --blue-15: #BFC3DD;
    --blue-20: #9290C3;
    --blue-30: #40477B;
    --blue-40: #262A53;
    --blue-50: #1D2041;
    --blue-60: #12142C;

    --cta-blue-mid: #1a6fbd;
    --cta-yellow-mid: #ffed5b;

    --purple-mid: #673ab7;
    --pink-mid: #e91e63;
    --green-teal: #009688;
    --green-bright: #1ed085;

    /* Responsive breakpoints */
    --breakpoint-mobile: 767px;
    --breakpoint-tablet: 1023px;
    --breakpoint-desktop: 1024px;

    /* Container widths */
    --container-mobile: 100%;
    --container-tablet: 95%;
    --container-desktop: 1200px;
}

/* CTAS & BUTTONS */

.cta {
    color: var(--cta-blue-mid);
    cursor: pointer;
}
.regular {
    background: var(--blue-60);
    border-color: var(--blue-60);
    color: var(--blue-10);
}
.positive {
    background: var(--positive);
    border-color: var(--positive);
    color: #fff;
}
.negative {
    background: var(--negative);
    border-color: var(--negative);
    color: #fff;
}
.action {
    background: var(--cta-blue-mid);
    border-color: var(--cta-blue-mid);
    color: #fff;
}
.export {
    background: var(--cta-blue-mid);
    border-color: var(--cta-blue-mid);
    color: #fff;
}
button:disabled {
    background: #eee !important;
    border-color: #eee !important;
    color: #aaa !important;
}

/* ELEMENTS */

label {
    display: block;
}
input, select {
    background: #fff;
    border: 1px solid var(--blue-20);
    border-radius: 3px;
    line-height: 2em;
    height: 2em;
    padding: 0 0.5em;
    color: #000;
    max-width: 100%;
}
button, .ui-button {
    border: 1px solid transparent;
    border-radius: 3px;
    height: 2em;
    display: flex;
    align-items: center;
    padding: 0 0.5em;
    cursor: pointer;
    justify-content: center;
}
.highlighted-select {
    background: var(--green-teal);
    border-color: var(--green-teal);
    color: #fff;
}
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1em;
    font-family: 'Poppins', sans-serif;
    font-weight: normal;
}
.ds-hidden {
    display: none !important;
}

/* CUSTOM CHECKBOXES / RADIOS */

.custom-checkmark {
    display: inline-flex;
    position: relative;
    cursor: pointer;
    align-items: center;
}
.custom-checkmark input[type="checkbox"], .custom-checkmark input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.custom-checkmark-mark {
    position: relative;
    height: 1em;
    width: 1em;
    background-color: var(--blue-10);
    border-radius: 3px;
    border: 2px solid;
    flex-shrink: 0;
}
.custom-checkmark-left .custom-checkmark-mark {
    margin-right: 0.5em;
}
.custom-checkmark-right .custom-checkmark-mark {
    margin-left: 0.5em;
}
.custom-radio {
    border-radius: 50%;
}
.custom-checkmark:hover input ~ .custom-checkmark-mark {
    background-color: var(--blue-20);
}
.custom-checkmark input:disabled ~ .custom-checkmark-mark {
    opacity: 0.5;
}
.custom-checkmark input:checked:disabled ~ .custom-checkmark-mark {
    opacity: 0.75;
}
.custom-checkmark input:checked ~ .custom-checkmark-mark {
    background-color: var(--blue-30);
}
.custom-checkmark-mark:after {
    content: "";
    position: absolute;
    display: none;
}
.custom-checkmark input:checked ~ .custom-checkmark-mark:after {
    display: block;
}
.custom-checkmark .custom-checkbox::after {
    top: 0;
    left: 0.2em;
    width: 5px;
    height: 8px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}
.custom-checkmark .custom-radio::after {
    top: 0.15em;
    left: 0.15em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}
.custom-checkmark-center {
    justify-content: center;
}

/* STRUCTURE */

#body-ctn-flex-wrap {
    display: flex;
    min-height: 100%;
    flex-direction: column;
}
#body-top-ctn {
    flex: 1;
}
#body-footer-ctn {
    background: var(--blue-60);
    height: 15em;
}

#body-top-flex-wrap {
    display: flex;
    min-height: calc(100vh - 5em);
    flex-direction: row;
}
#body-content-ctn {
    flex: 1;
    background-color: #8e94b9;
    background-image: linear-gradient(#7e84aa,#bdc0d5);
    background-attachment: fixed;
}
#body-content-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem;
}

#content-panel {
    background: var(--blue-10);
    padding: 1rem;
}

.buttonset {
    display: flex;
    margin: 0 0 0 -0.5rem;
    flex-wrap: wrap;
    align-items: flex-end;
}
.buttonset-right {
    justify-content: flex-end;
}
.buttonset > * {
    margin: 0 0 2px 0.5rem;
}

/* TOAST */

#toast-container {
    position: fixed;
    top: 5%;
    right: 1rem;
    width: 20rem;
    z-index: 99;
}
.toast {
    padding: 1.25rem;
    background-color: var(--positive);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(100%);
    margin-bottom: 0.625rem;
}
.toast.negative {
    background-color: var(--negative);
    color: #fff;
}

/* LIST PAGINATOR & SETTINGS */

#pagination-ctn {
    background: var(--blue-40);
    padding: 0.25rem 0.5rem;
    color: #fff;
}
#pagination-ctn-flex-wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 0 0 -1rem;
    align-items: center;
}
#pagination-ctn-flex-wrap > * {
    margin: 0 0 2px 1rem;
}
#pagination-ctn-spacer {
    flex-grow: 1;
}
#list-toggle-all-btn {
    font-size: 0.8rem;
}
#pagination-limit {
    width: 5rem;
    color: #000;
}
#pagination-nav {
    list-style: none;
    padding: 0;
    height: 2rem;
    display: flex;
    align-items: center;
    margin: 0 0 0 0.5rem;
}
.pagination-page {
    margin: 0 0 0 0.5rem;
    cursor: pointer;
}
.pagination-page.current {
    color: #ccc;
    cursor: default;
}

#list-preferences-ctn {
    margin-left: 1rem;
    position: relative;
}
#list-preferences-toggle {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--cta-yellow-mid);
}
#list-preferences-expando {
    background: #fff;
    border: 1px solid var(--grey-dark);
    padding: 1rem;
    position: absolute;
    top: 110%;
    right: 0;
    z-index: 2;
    box-shadow: 4px 4px 8px #000;
    text-align: right;
    display: none;
    color: #000;
}
#list-preferences-expando label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 0;
}
#list-preferences-expando .label-text {
    line-height: 1.1em;
    width: 5.5rem;
    text-align: left;
}
#list-preferences-expando select {
    width: 12rem;
    border: 1px solid var(--blue-20);
}
#list-preferences-buttonset {
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    border-top: 2px dashed var(--blue-10);
}

/* Accessibility CSS for Screen Readers */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
    outline: 2px solid var(--cta-blue-mid);
    /*outline-offset: 2px;*/
}

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--blue-40);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
}

@media (forced-colors: active) {
    a:focus,
    button:focus,
    input:focus,
    select:focus,
    textarea:focus,
    [tabindex]:focus {
        outline: 2px solid SelectedItem;
    }
}

/* Basic responsive adjustments */
@media screen and (max-width: 767px) {
    #body-top-flex-wrap {
        flex-direction: column;
    }

    #body-content-inner {
        padding: 0.5rem;
    }

    #content-panel {
        padding: 0.75rem;
    }

    #pagination-ctn-flex-wrap {
        justify-content: center;
    }
}

@media screen and (min-width: 768px) {
    #body-content-inner {
        padding: 1rem 2rem;
    }
}

/* Simplified container classes */
.container {
    width: 100%;
    max-width: var(--container-desktop);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Responsive utility classes */
.mobile-only {
    display: none;
}

.tablet-only {
    display: none;
}

.desktop-only {
    display: none;
}

@media (max-width: 767px) {
    .mobile-only {
        display: block;
    }

    .hide-on-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .tablet-only {
        display: block;
    }

    .hide-on-tablet {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .desktop-only {
        display: block;
    }

    .hide-on-desktop {
        display: none !important;
    }
}