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

:root {
    --primary: #3B515F;
    --black: #231F20;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: "Open Sans", sans-serif;
    margin: 0;
    padding: 0;
    color: var(--black);
    background-color: #F4F7F9;
}

body.noScroll {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}

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

button {
    cursor: pointer;
}

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 {
    padding: 0;
    max-width: none;
    max-height: none;
    border: none;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: none;
    position: fixed;
    top: 0;
    left: 0;
}

dialog[open] {
    display: flex;
}

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

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

.button.small {
    padding: 10px 20px;
    font-size: 16px;
    line-height: 1;
}

.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);
    }
}

@media (max-width: 800px) {
    .button {
        max-width: none;
    }
}


/*************
RTE
 */

.rte h1,
.rte h2,
.rte h3,
.rte h4,
.rte h5,
.rte h6,
.rte p {
    font-size: revert;
    margin: revert;
}


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

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


/*****
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(--primary);
    border-radius: 50%;
    animation: loading 1s ease infinite;
}

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

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

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

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

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

@media (max-width: 800px) {
    .card {
        padding: 20px;
    }
}


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


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

.table thead {
    font-weight: 600;
    position: sticky;
    top: 0;
    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;
}

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

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


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

button.swal2-styled {
    width: auto;
}