/**********************
Global
**********************/

:root {
    --blue: #1ebdbc;
    --dark-blue: #0a6e74;
    --success: #17cc9d;
    --cancelled: #8a95a0;
    --queued: #4751bf
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F4F7F9;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
optgroup,
select,
textarea {
    font: inherit;
    color: inherit;
    background-color: transparent;
    display: block;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
    border: none;
}

input,
select,
textarea {
    border: 1px solid lightgray;
    padding: 10px;
}

textarea {
    resize: none;
}

img,
picture,
video {
    display: block;
    height: auto;
    width: 100%;
}

.dialog {
    max-width: none;
    max-height: none;
    border: none;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.dialog[open] {
    display: flex;
    padding: 20px;
}

.dialogContent {
    background-color: white;
    max-width: 575px;
    margin: 0 auto auto;
    padding: 20px;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    position: relative;
}

.dialogContent.fullscreen {
    max-width: none;
    height: 100%;
}

.dialogExit {
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

/***************
Table
 */


.table {
    width: 100%;
    margin-bottom: 20px;
}

.table thead {
    font-weight: 800;
    background-color: white;
}

.table tbody tr {
    transition: 0.3s;
}

.table tbody tr:nth-of-type(odd) {
    background-color: #ECF1F5
}

.table tbody tr:nth-of-type(even) {
    background-color: #F4F7F9
}

.table tbody tr:hover {
    background-color: #f3ece8;
    cursor: pointer;
}

.table td {
    padding: 10px;
    white-space: nowrap;
    font-size: 16px;
}

.table td a {
    text-decoration: underline;
}

/************
Button Loading
************/

.button {
    background-color: var(--blue);
    color: white;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    padding: 15px 45px;
    appearance: none;
    cursor: pointer;
    display: block;
    width: 100%;
}

.button.danger {
    background-color: darkred;
}

.button.center {
    margin: auto;
}

.button.loading {
    position: relative !important;
    pointer-events: none !important;
    color: transparent !important;
}

.button.loading::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 4px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: loading 1s ease infinite;
}


@keyframes loading {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}


/*******
Swiper
*******/

:root {
    --swiper-pagination-bullet-size: 20px;
    --swiper-theme-color: var(--blue);
}

/****************
Mobile/Desktop
 */

@media (min-width: 801px) {
    .mobileOnly {
        display: none !important;
    }
}

@media (max-width: 800px) {
    .desktopOnly {
        display: none !important;
    }
}

/*******************
Container
 */

.container {
    max-width: 1200px;
    margin: auto;
}


/********
Inputs
 */

.input {
    width: max-content;
    display: block;
    padding: .375rem 2.25rem .375rem .75rem;
    font-size: 16px;
    color: #212529;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    appearance: none;
}

.dropdown {
    width: max-content;
    display: block;
    padding: .375rem 2.25rem .375rem .75rem;
    font-size: 16px;
    color: #212529;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    appearance: none;
}

.dropdown:focus,
.input:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgb(13 110 253 / 25%);
}


/*****
Main
 */

main {
    padding: 20px;
}

main.loading > section {
    position: relative;
    opacity: 0.5;
    pointer-events: none;
}

main.loading::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 50px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 7px solid transparent;
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: loading 1s ease infinite;
}

.card {
    font-size: 14px;
    background-color: white;
    box-shadow: 0 0 20px rgb(8 21 66 / 5%);
    border-radius: 15px;
    padding: 30px;
}

.card.scroll {
    overflow-x: auto;
}

.cardInner {
    min-width: fit-content;
}

.cardTitle {
    font-size: 22px;
    font-weight: 800;
}

.cardBody {
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 800px) {
    main {
        grid-template-columns: 1fr
    }

    .card {
        padding: 20px;
    }

    .card {
        grid-column: 1/2 !important;
    }
}

/***************************
Pagination Pages
***************************/

.pagination {
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.paginationItem {
    border-bottom: 2px solid lightgray;
    transition: 0.3s;
    padding: 5px 15px;
    font-size: 20px;
    cursor: pointer;
    color: lightgray;
}

.paginationItem.deco {
    pointer-events: none;
}

.paginationItem:hover,
.paginationItem.active {
    color: #231f20;
    border-bottom: 2px solid #231f20;
}

/*****************
Swal
********************/

.swal2-select,
.swal2-actions button {
    width: auto;
}

.swal2-html-container {
    text-align: left;
}

/****************
Iframe
 */

html.iframe #header,
html.iframe #footer {
    display: none;
}

/*************
Copy
 */

span[data-copy] {
    cursor: pointer;
}