/* CSS Document */
/* globals.css is loaded as a versioned <link> in site/main.php so it is
   cache-busted by sys::$version (a bare @import here was NOT, so color/var
   changes in globals.css would not propagate to returning users). */

/* Table of contents
––––––––––––––––––––––––––––––––––––––––––––––––––
- Container
- Base Styles
- Typography
- Links
- Buttons
- Forms
- Breadcrumbs
- Pagination
- Lists
- Utilities
- Notifications
- Loading
- Table
- Tabs
*/

/* Container
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.container {
    margin: 0 auto;
    max-width: 86rem;
    width: 90%;
}

/* Base Styles
–––––––––––––––––––––––––––––––––––––––––––––––––– */
body {
    font-family: var(--ff-body);
    font-size: var(--text-base);

    /*
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
     */
}

html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

/* Typography
–––––––––––––––––––––––––––––––––––––––––––––––––– */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0;
}

p {
    margin-top: 0;
    margin-bottom: 0;
}

/* Visible keyboard focus indicator (keyboard nav only, not mouse clicks). */
:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Links
–––––––––––––––––––––––––––––––––––––––––––––––––– */
a {
    color:inherit;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.link--primary {
    color: var(--primary-500);
}

.link--red {
    color: var(--red-700);
}

.link--green {
    color: var(--green-700);
}

.link--underline {
    text-decoration: underline;
}

/* Buttons
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.btn {
    background-color: var(--primary-blue);
    text-align: center;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    border: solid var(--primary-blue) 1px;
    padding: 0.75em 2.5em;
    font-size: var(--text-sm);
    display: block;
}

.btn--small {
    padding: 0.5em 1em;
}

.btn:active {
    background-color: var(--primary-700);
}

.btn:hover {
    background-color: var(--primary-600);
}

.btn--secondary {
    background-color: var(--grey-100);
    color: var(--black);
    border: 1px solid var(--grey-200);
}

.btn--secondary:active {
    background-color: #fdfeff;
}

.btn--secondary:hover {
    background-color: #e9eaec;
}

.btn--navy {
    background-color: var(--primary-navy);
    color: white;
    border: 1px solid var(--primary-navy);
}

.btn--navy:hover {
    background-color: #192134;
}

.btn--red {
    color: white;
    background-color: var(--red-700);
    border-color: var(--red-700);
}

.btn--green {
    color: white;
    background-color: var(--green-700);
    border-color: var(--green-700);
}

.btn--green:hover {
    background-color: var(--green-800);
}

.btn--red:hover {
    background-color: var(--red-700);
}

.btn--red-outline {
    color: var(--red-700);
    background-color: transparent;
    border-color: var(--red-700);
}

.btn--red-outline:hover {
    background-color: transparent;
}

.btn--outline {
    background-color: transparent;
    color: var(--primary-navy);
    border: 1px solid var(--primary-navy);
    font-weight: normal;
}

.btn--outline:hover {
    background-color: var(--grey-50);
}

.btn--primary-outline {
    background-color: var(--primary-50);
    color: var(--primary-blue);
    border: solid var(--primary-blue) 1px;
}

.btn--primary-outline:hover {
    background-color: var(--primary-50);
}

.btn--transparent-outline {
    background-color: rgb(255,255,255, 0);
    color: var(--grey-50);
    border: solid var(--grey-50) 1px;
}

.btn--transparent-outline:hover {
    /*background-color: var(--primary-50);*/
    background-color: rgb(255,255,255, 0);
}

.btn--disabled {
    background-color: var(--grey-50);
    color: var(--grey-500);
    border: 1px solid var(--grey-200);
    pointer-events: none;
}

.btn--sending {
    pointer-events: none;
    /*cursor: wait;*/
    position: relative;
    overflow: hidden;
}

.btn--sending::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: sending 1.5s linear infinite;
}

@keyframes sending {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.btn--block {
    width: 100%;
    height: 3rem;
    font-size: var(--text-base);
}

.btn--cover {
    width: 100%;
}

.btn--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn--responsive {
    width: 100%;
}

@media (min-width: 768px) {
    .btn--responsive {
        width: auto;
    }
}

.btn--hero {
    border-radius: 5px;
    padding: 0.75em 1.5em;
}

/* Forms
================================================== */
form {
    margin: 0;
}

.form-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="date"],
textarea,
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: var(--slate-700);
}

.input,
.select {
    height: 2.5rem;
    display: inline-flex;
    padding: 0 0.875rem;
    /*padding: 6px 10px;  The 6px vertically centers text on FF, ignored by Webkit */
    background-color: #fff;
    border: 1px solid var(--grey-200);
    border-radius: 4px;
    box-shadow: none;
    box-sizing: border-box;
    font-size: var(--text-sm);
}

.input:focus,
.textarea:focus{
    border: 1px solid var(--primary-blue);
    outline: 0;
}

.textarea {
    background-color: #fff;
    border: 1px solid var(--grey-200);
    border-radius: 4px;
    box-shadow: none;
    padding: 0.875rem;
    font-size: var(--text-sm);
    line-height: 1.5;
}

.textarea--full {
    width: 100%;
}

.input--full {
    width: 100%;
}

.input-container {
    display: flex;
    align-items: center;
    max-width: 100%;
    font-size: var(--text-base);
    margin-bottom: 0.875rem;
}

.input-container--full {
    width: 100%;
}

.input-container--half {
    width: 50%;
}

.input--signin {
    height: 3rem;
    border: 1px solid var(--grey-300);
}

.select__container {
    position: relative;
    display: flex;
    height: 2.5rem;
    align-items: center;
}

.select__container--full {
    width: 100%;
}

.select__container--half {
    width: 50%;
}

.select {
    background-color: var(--grey-50);
    cursor: pointer;
}

.select--full {
    width: 100%;
}

.select:hover {
    border: 1px solid var(--primary-blue);
}

.select-suffix {
    position: absolute;
    display: inline-flex;
    right: 1rem;
    pointer-events: none;
}

.password__container {
    position: relative;
    display: flex;
    height: 2.5rem;
    align-items: center;
}

.password-suffix {
    position: absolute;
    display: inline-flex;
    right: 1rem;
    cursor: pointer;
}

.password-suffix i {
    color: var(--grey-700);
}

.search-suffix {
    appearance: none;
    position: absolute;
    display: inline-flex;
    right: 1rem;
    background-color: white;
    border: none;
}

textarea {
    min-height: 100px;
    padding-top: 6px;
    padding-bottom: 6px; }

label,
legend {
    display: block;
    margin-bottom: .5rem;
    color: var(--slate-700);
    font-size: var(--text-sm);
}

.label--none {
    height: 0px;
    width: 0px;
    padding: 0px;
    margin: 0px;
    
    opacity:0;
	-moz-opacity:0;
	-khtml-opacity:0;
	-ms-filter:"alpha(opacity=0)";
	filter:alpha(opacity=0);
	filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);
}

.label--inline {
    display: inline-block;
    margin-left: .5rem;
    font-weight: normal;
}

.label--red {
    color: var(--red-700);
}

.file__container {
    display: flex;
    align-items: center;
    font-size: var(--text-base);
    cursor: pointer;
}

.file {
    padding: 6px 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.file:hover {
    border: 1px solid var(--primary-500);
}

.drag-drop__container {
    width: 100%;
    height: 180px;
    border: 1px dashed var(--grey-300);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--slate-700);
    font-size: var(--text-sm);
}

.drag-drop__container.highlight {
    border-color: var(--primary-500);
    background-color: var(--primary-50);
}

.drag-drop__label-link {
    display: unset;
    cursor: pointer;
    color: var(--primary-500);
}

.drag-drop__legend {
    font-size: var(--text-xs);
    color: var(--slate-600);
}

.file-preview {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-bottom: 0.875rem;
    margin-top: 0.875rem;
}

.file-preview__element {
    position: relative;
    width: 100%;
    padding: 0.5rem;
    background-color: var(--grey-50);
    border: 1px solid var(--grey-200);
    color: var(--slate-700);
    font-size: var(--text-sm);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

a.file-preview__element:hover {
    background-color: var(--grey-100);
    border: 1px solid var(--grey-300);
}

@media only screen and (min-width: 993px) {
    .file-preview__element {
        width: calc(50% - 0.4375rem);
    }
}

.file-preview__name {
    color: var(--slate-700);
    margin-bottom: 0.5rem;
}

.file-preview__size {
    font-size: var(--text-xs);
    color: var(--slate-500);
}

.file-preview__img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--slate-200);
}

.file-preview__icon {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    border: 1px solid var(--grey-200);
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-500);
}

.file-preview__element .fa-xmark,
.file-preview__element .fa-download{
    position: absolute;
    right: 1rem;
    top: 1rem;
    line-height: 1rem;
}

fieldset {
    padding: 0;
    border-width: 0; }
input[type="checkbox"],
input[type="radio"] {
    display: inline; }
label > .label-body {
    display: inline-block;
    margin-left: .5rem;
    font-weight: normal; }


/* Breadcrumbs
================================================== */
.breadcrumb__nav {
    height: 3rem;
    align-items: center;
    display: flex;
    /*background-color: var(--white);*/
}

.breadcrumb {
    align-items: center;
    display: flex;
    font-size: var(--text-xs);
}

.breadcrumb__item {
    margin-right: 1.5rem;
    color: var(--grey-500);

    /* Used to position the separator between items */
    position: relative;
}

.breadcrumb__item:hover {
    color: var(--grey-900);
}

.breadcrumb__item:not(:last-child)::after {
    position: absolute;
    right: 0;
    top: 0;
    transform: translate(0.75rem, 0px);

    content: '›';
}

@media only screen and (max-width: 768px) {
    .breadcrumb__item:not(:nth-last-child(-n+2)) {
        display: none;
    }
}

/* Pagination
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.pagination-wrapper {
    text-align: center;
    /*margin-bottom: 4rem;*/
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    color: var(--grey-400);
    padding-left: 0;
    flex-wrap: wrap;
}

.pagination__item {
    position: relative;
    display: flex;
    justify-content: center;
    border: solid 1px var(--grey-200);
    background-color: var(--grey-50);
    font-size: var(--text-sm);
    color: var(--grey-700);
    cursor: pointer;
    align-items: center;
}


.pagination__item:hover,
.pagination__item.active {
    background-color: white;
}


.pagination__item--previous,
.pagination__item--next {
    padding: 0.75rem 2rem;
    gap: 0.5rem;
}

.pagination__item--previous.inactive,
.pagination__item--next.inactive {
    display: none;
}

.pagination__item--number {
    padding: 0.75rem 1rem;
}

.pagination__numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    gap: 1rem;
}

.pagination__link {
    position: absolute;
    display: block;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}


/* Lists
================================================== */
ul {
    list-style-type: none;
}

/* Utilities
================================================== */
.fixed {
    position: fixed;
    width: 100%;
}

.overflow-hidden {
    overflow: hidden;
}

.hidden { display: none !important; }

/*
.section-spacing {
    padding: 6rem 0;
}
*/

.page-spacing {
    padding: 4rem 0;
}

.underline {
    text-decoration: underline;
}

.bold {
    font-weight: bold;
}

.text-xs {
    font-size: var(--text-xs);
}

.warned, .error { color:#900; }


@media only screen and (max-width: 768px) {
    .hide-on-small-only, .hide-on-small-and-down { display: none !important; }
}

@media only screen and (max-width: 992px) {
    .hide-on-med-and-down { display: none !important; }
}

@media only screen and (max-width: 1200px) {
    .hide-on-large-and-down { display: none !important; }
}

@media only screen and (min-width: 769px) {
    .hide-on-med-and-up { display: none !important;}
}

@media only screen and (min-width: 768px) and (max-width: 992px) {
    .hide-on-med-only { display: none !important; }
}

@media only screen and (min-width: 993px) {
    .hide-on-large-only { display: none !important; }
}

@media only screen and (min-width: 1201px) {
    .hide-on-extra-large-only { display: none !important; }
}

@media only screen and (min-width: 1201px) {
    .show-on-extra-large { display: block !important; }
}

@media only screen and (min-width: 993px) {
    .show-on-large { display: block !important; }
}

@media only screen and (min-width: 768px) and (max-width: 992px) {
    .show-on-medium { display: block !important; }
}

@media only screen and (max-width: 768px) {
    .show-on-small { display: block !important; }
}

@media only screen and (min-width: 769px) {
    .show-on-medium-and-up { display: block !important; }
}

@media only screen and (max-width: 992px) {
    .show-on-medium-and-down { display: block !important; }
}

/* Notifications
================================================== */
.info{
    background-color: var(--primary-50);
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: var(--text-sm);
    color: var(--primary-800);
    margin-bottom: 1rem;
    border: 1px solid var(--primary-400);
}

.info__icon {
    margin-right: 0.5rem;
    color: var(--primary-400);
}


.success {
    background-color: var(--green-50);
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: var(--text-sm);
    color: var(--green-800);
    margin-bottom: 1rem;
    border: 1px solid var(--green-400);
}

.success__text {
    color: var(--green-800);
    font-size: var(--text-sm);
}

.success__icon {
    margin-right: 0.5rem;
    color: var(--green-400);
}

.error {
    background-color: var(--red-50);
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: var(--text-sm);
    color: var(--red-800);
    margin-bottom: 1rem;
    border: 1px solid var(--red-400);
}

.error__icon {
    margin-right: 0.5rem;
    color: var(--red-400);
}

.warning {
    background-color: var(--yellow-50);
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: var(--text-sm);
    color: var(--yellow-800);
    margin-bottom: 1rem;
    border: 1px solid var(--yellow-400);
}

.warning__text {
    color: var(--yellow-800);
    font-size: var(--text-sm);
    line-height: 1.5;
}

.warning__icon {
    margin-right: 0.5rem;
    color: var(--yellow-400);
}

/* Loading
================================================== */
.loading{
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background:url('/img/ico/load.gif') no-repeat center;
    z-index: 100;
    text-align: center;
}

.loading.halted{
    background: none;
    background-color: transparent;
}

.loading.halted .close{
    color: red;
    font-size: 32px;
    position: absolute;
    top: 30%;
    margin-top: -16px;
    margin-right: 5px;
    z-index: +2;
    right: 10px;
    background-size: 29px 29px;
}

.loading .error{
    position: absolute;
    top: 30%;
    left: 10px;
    right: 10px;
}

.loading .warning{
    position: absolute;
    top: 30%;
    left: 10px;
    right: 10px;
}

/* Table
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.table__container {
    border-radius: 4px;
    border: 1px solid var(--slate-200);
    overflow-x: scroll;
    width: 100%;
}

.table {
    font-size: var(--text-sm);
    border-spacing: 0;
    border-collapse: collapse;
    width: 100%;
}

.table__thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.table__thead-icon {
    color: var(--grey-700);
    margin-left: 0.5rem;
    padding: 2px 4px;
    background-color: var(--grey-100);
    border-radius: 4px;
}

.table__tbody {
    background-color: white;
    color: var(--slate-700);
}

.table__cell {
    padding: 0.75rem 0.5rem;
    text-align: left;
    white-space: nowrap;
    line-height: 1.5;
}

.table__cell--small {
    padding: 0.5rem 0.5rem;
}

.table__cell:first-of-type {
    padding-left: 1.25rem;
}

.table__cell:last-of-type {
    padding-right: 1.25rem;
}

.table__cell--head {
    border-bottom: 1px solid var(--slate-100);
    background-color: var(--grey-50);
}

.table__cell--right {
    text-align: right;
}

.table__cell--left {
    text-align: left;
}

.table__cell--bold {
    font-weight: bold;
}

.table__cell--actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.table__cell--legend {
    padding: 0 0.75rem 0.75rem 0.75rem;
    text-align: left;
    font-size: var(--text-xs);
    font-style: italic;
}

.table__cell--description {
    font-style: italic;
    margin-top: 2px;
    color: var(--grey-700);
    font-size: var(--text-xs);
}

.table__cell--legend:first-of-type {
    padding-left: 1.25rem;
}

.table__row:not(:last-of-type) {
    border-bottom: 1px solid var(--slate-100);
}

.table__row--red {
    background-color: var(--red-50);
}

.table__status {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: var(--text-xs);
}

.table__status--active {
    background-color: var(--green-50);
    border: 1px solid var(--green-200);
    color: var(--green-700);
}

.table__status--inactive {
    background-color: var(--red-50);
    border: 1px solid var(--red-200);
    color: var(--red-700);
}

.table__popup-trigger {
    cursor: pointer;
}

.table__actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

.table__actions--end {
    margin-top: 0.5rem;
}

.table__end-activity {
    margin-top: 1rem;
    color: var(--slate-700);
    font-size: var(--text-sm);
}

@media (min-width: 768px) {
    .table__actions {
        flex-direction: row;
        width: unset;
        justify-content: flex-end;
    }
}

/* Tabs
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.tabs {
    border-bottom: 1px solid var(--grey-200);
}

.tabs__nav {
    margin-bottom: -1px;
    display: flex;
}

.tab__link {
    font-size: var(--text-sm);
    color: var(--slate-600);
    white-space: nowrap;

    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.tab__link:hover {
    color: var(--slate-700);
}

.tab__link:not(:first-of-type) {
    margin-left: 2rem;
}

.tab__link.selected {
    border-bottom: 2px solid var(--primary-blue);
    color: var(--primary-600);
}

.tab__link.selected:hover {
    color: var(--primary-600);
}

/* Sub - Tabs
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.subtabs {
    padding: 0 1rem;
    background-color: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: 4px;
    margin: 0.5rem 0 1.5rem 0;
}

.subtabs__nav {
    display: flex;
    flex-direction: column;
    font-size: var(--text-sm);
    /*font-weight: bold;*/
    gap: 0.5rem;
    color: var(--slate-600);
}

.subtab__link {
    padding: 0.25rem 0.5rem;
    margin: 0.5rem 0 0.5rem 0;
}

.subtab__link:hover {
    color: var(--slate-700);
}

.subtab__link.selected {
    border-left: 2.5px solid var(--slate-900);
    color: var(--slate-900);
}

@media (min-width: 768px) {
    .subtabs__nav {
        flex-direction: row;
    }

    .subtab__link {
        padding: 0.75rem 0.5rem;
        margin: 0;
    }

    .subtab__link.selected {
        border-bottom: 2px solid var(--slate-900);
        border-left: none;
    }
}

/* Flexbox - Equal Columns
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.flexbox__container {
    display: block;
}

.flexbox__list {
    margin: 1rem 0;
    padding: 0;
    /*padding: 0 0 0 3rem;*/
}

@media (min-width: 768px) {
    .flexbox__container {
        display: flex;
        flex-wrap: wrap;
    }

    .flexbox__col {
        width: 50%;
    }

    .flexbox__col--gap {
        margin-right: 1rem;
    }

    .flexbox__list {
        margin: 1rem 0;
        padding: 0 0 0 3rem;
    }
}

@media (min-width: 993px) {
    .flexbox__col {
        flex: 1;
    }
}

/* Responsive Image
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.image-container {
    position: relative;
    max-width: 100%;
}

.responsive-image {
    display: block;
    width: 100%;
    height: auto;
}