:root {
    --max-width: -webkit-fill-available;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.body::before {
    content: ' ';
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    background-image: image-set(url('/images/background.jpg') 1x);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* used for particles-js to avoid scrollbars on login page */
.body--fixed {
    position: fixed;
}

.body--is-testsystem {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='50px' width='120px'><text x='0' y='18' fill='red' font-size='24' font-style='italic'>Testsystem</text></svg>");
    background-attachment: fixed;
}

.container {
    border-radius: 10px;
    background-color: rgba(255,255,255,0.75);
}

.container--inner {
    background: transparent;
}

.logout-link {
    display: block;
    padding: 5px;
}

.logout-link:hover {
    span {
        color: white;
    }
}

.card {
    background-image: linear-gradient(to top, white 10%, rgb(122, 235, 192, 0.5) 100%);
}

.card-view {
    display: grid!important;
    grid-template-columns: 1fr;
    max-width: var(--max-width) - 20px;
}

.card-view span:nth-of-type(even) {
    min-height: 50px;
    max-width: max-content;
}

.card__customer {
    background-image: linear-gradient(to top, white 10%, rgb(122, 235, 192, 0.2) 100%);
}

.card__button {
    background-color: rgb(122, 235, 192);
    border-color: rgb(122, 235, 192);
}

.card__button:hover {
    background-color: rgb(127, 215, 245);
    border-color: rgb(127, 215, 245);
}

.card-title__outer {
    min-height: 30px;
}

.card:hover {
    box-shadow: 4px 4px 4px rgb(33, 33, 33, 0.25);
    transition: all 0.25s;
}

.module-links {
    display: block;
    margin: 0 auto;
}

.module-link__element-btn,
.module-link__element {
    min-width: 100%;
    border: none;
}

.module-link__element {
    background-color: rgb(106, 184, 238);
}

.h-100 {
    height: 100px;
}

.alert-message {
    top: 0;
    z-index: 999;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out 0s forwards;
}

.missing-error {
    top: 50px;
    z-index: 999;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out 0s forwards;
}

.form__label {
    text-align: left;
}

.curly_id::before {
    display: inline-block;
    content: '\007B\007B';
}

.curly_id::after {
    display: inline-block;
    content: '\007D\007D';
}

.grid-start {
    display: grid;
    grid-template-columns: 1fr;
    grid-row-gap: 10px;
}

.counter {
    text-align: center;
}

.total-transmissions-text,
.total-transmissions {
    height: 3rem;
    line-height: 3rem;
    vertical-align: middle;
}

.total-transmissions {
    font-size: 24px;
    font-weight: bold;
}

.header__logo,
.footer__logo {
    justify-content: center;
    object-fit: contain;
}

.header__logo img,
.footer__logo img {
    display: flex;
    max-width: 100%;
    max-height: 100%;
    height: 60px;
}

.admin-btn,
.counter-btn,
.pw-save-btn,
.create-customer-btn,
.create-customer-link,
.create-praxedo-category-btn {
    width: 100%;
}

.log-in-btn__icon,
.log-out-btn__icon,
.footer__icon {
    display: inline-block;
    font-size: 1rem;
}

/* ALL TABLES */
.data-table {
    background-color: white;
}

/* Customer overview table */
.customer-overview-table {
    display: block;
    max-width: 102%;
    overflow-x: scroll;
}

/* Customer overview table - ftpi */
.cust-table-ftpi {
    min-height: 280px;
}

/* ZIP assignment table */
.tableFixHead {
    overflow: auto;
    min-height: 200px;
    max-height: 700px;
    background-color: rgba(255, 255, 255, 0.75);
}

.tableFixHead thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* password validation rules */
.password-validation-form__label {
    width: 100%;
}

.wrong .fa-check,
.good .fa-times {
    display: none;
}

.wrong .fa-check {
    width: 50px;
}

.good .fa-times {
    width: 30px;
}

.valid-feedback,
.invalid-feedback {
    margin-left: calc(2em + 0.25rem + 1.5rem);
}

.password-special-char-tip i:hover {
    cursor: pointer;
}

.form-group__validation-rules {
    max-width: fit-content;
}

.v-align-center {
    line-height: 1.4;
    vertical-align: middle;
}

.module-table-grid-gap {
    grid-template-columns: 1fr 1fr 1fr;
    grid-row-gap: 10px;
    grid-column-gap: 10px;
}

input[data-action="delete-customer"]::before {
    content: 'asdasda';
}

.pw-edit-button {
    width: 240px;
}

/* Counter after failed loging attempts */
.data-counter__remaining {
    font-size: 1.4rem;
}

nav[role="navigation"] {
    /* styling adopted from bootstrap btn */
    a,
    span {
        display: inline-block;
        width: 140px;
        line-height: 1.5;
        color: white;
        text-align: center;
        text-decoration: none;
        vertical-align: middle;
        cursor: pointer;
        user-select: none;
        background-color: transparent;
        border: 1px solid transparent;
        padding: 0.375rem 0.75rem;
        font-size: 1rem;
        border-radius: 0.25rem;
        transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    }

    a {
        background-color: #0d6efd!important;
    }
    span {
        background-color: #565e64!important;
    }
}

.mapping-pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;

    width: 50%;
    margin: 0 auto;
}

.mapping-pagination .page-link {
    border-radius: 0.25rem;
    color: white;
    background-color: #0d6efd;
}

.mapping-pagination .page-btn {
    width: 100%;
}

/* Tooltips */
.zip-tooltip__text, .ftpi-tooltip__text {
    display: none;
    position: absolute; 
    z-index: 100;
    background-color:rgb(157, 244, 210);
    padding: 3px;
    color:black; 
    top: 30px; 
    left: -340px;
    width: 520px;
    font-size: 14px;
    font-weight: normal;
}

.ftpi-tooltip__text {
    left: 0px;
}

.zip-tooltip__text ul, .ftpi-tooltip__text ul {
    margin-bottom: 0.5rem;
}

.zip-tooltip:hover span.zip-tooltip__text,
.ftpi-tooltip:hover span.ftpi-tooltip__text {
    display: block;
}

/* Tooltip zip assignment */
th.zip-tooltip {
    position: relative;
    z-index: 37;
}

th.ftpi-tooltip {
    position: relative;
    z-index: 37;
}

/* Dropdown for department selection in zip assignment blade */
.dropdown-zip-container .dropdown-menu {
    width: fit-content;
    padding: 20px;
}

.dropdown-zip-container .dropdown-menu li {
    padding: 5px 0;
}

.dropdown-zip-container .dropdown-menu li input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

.dropdown-zip-container .dropdown-menu li label:hover {
    cursor: pointer;
}

.form-control[data-name="selected-departments"] {
    word-wrap: break-word;
    word-break: break-word;
}

.form-check-label {
    width: 0!important;
}

.public-document__link a {
    color: rgba(var(--bs-primary-rgb), var(--bs-text-opacity))!important;
}

.public-document__link {
    color: rgba(var(--bs-primary-rgb), var(--bs-text-opacity))!important;
}

.module-counter {
    font-size: 24px;
}

.module-counter--smaller {
    font-size: 18px;
}

/* ParticlesJS */
#particles-js {
    width: 100%;
    height: 100vh;
}

.particles-position {
    position: absolute!important;
    top: 0!important;
    z-index: -1;
}

/* PiPrax transmission-table */
.transmission-container {
    display: block;
}

.transmission-table {
    table-layout: fixed;
    width: 100%;
}

/* Export Iframe */
#export-iframe__container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    padding: 0;
}

iframe[data-name="export-iframe"] {
    position: absolute;
    top: 0;
}

/* Import Iframe */
#import-iframe__container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    padding: 0;
}

iframe[data-name="import-iframe"] {
    position: absolute;
    top: 0;
}

/* Div */
.btn-back-to-picon {
    position: sticky;
    top: 85px;
    z-index: 300;
    width: max-content;
    margin-left: auto;
    margin-right: 340px;
}

/* Button */
.link-back-to-picon {
    width: 200px;
}

@media only screen and (min-width: 768px) {
    .body::before {
        /* position: absolute; */
    }

    .grid-start {
        display: grid;
        grid-template-columns: 1fr;
    }

    .card-title__outer {
        min-height: 60px;
    }

    .module-link__element-btn,
    .module-link__element,
    .department-selection-btn {
        min-width: 100px;
    }

    .card-view span:nth-of-type(2) {
        height: initial;
    }

    .create-customer-btn,
    .create-customer-link {
        width: initial;
    }

    /* password validation rules */
    .password-validation-form__label {
        width: 200px;
    }

    .pw-save-btn {
        width: 200px;
    }
}

@media only screen and (min-width: 992px) {
    .grid-start {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    .grid-start--2-modules {
        grid-template-columns: 1fr 1fr;
    }

    .height-md-180 {
        height: 180px;
    }

    .card-view {
        grid-template-columns: 1fr 1fr;
    }
}

/* defines the animation */
@keyframes fadeInUp {
    from { 
        opacity: 0;
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0);
    }
    to {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}