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

:root {
    --primary: #349041;
    --light-green: #C5E2C9;
    --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: #F8F8F8;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

body.noScroll {
    overflow: hidden;
}

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

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

select {
    padding: 8px 34px 8px 10px;
    appearance: none;
    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;
}

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-transform: uppercase;
    text-align: center;
    font-size: 20px;
    padding: 15px 45px;
    max-width: 330px;
    appearance: none;
    cursor: pointer;
    display: block;
    width: 100%;
    font-weight: 700;
    outline: none;
}

.button.outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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


/*******************
Main
 */

main {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.container {
    max-width: 1600px;
    margin: auto;
    overflow-x: auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 20px rgb(8 21 66 / 5%);
    border-radius: 15px;
    display: none;
}

.container.active {
    display: block;
}

.container.loading {
    position: relative;
    opacity: 0.5;
    pointer-events: none;
}

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

/****
Typography
 */

.title {
    font-size: 30px;
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
    font-weight: 700;
}


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


.table {
    width: 100%;
}

.table thead {
    font-weight: 800;
    position: sticky;
    top: 0;
    background-color: white;
}

.table tbody tr {
    transition: 0.3s;
    cursor: pointer;
}

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


/*************** Response Popup ****************/

#popup {
}

#popupContent {
    margin: auto;
    width: 100%;
    max-width: 600px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
}

#popupMessage {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 15px;
}

#popupActions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
    margin-bottom: 14px;
}

#popupClose {
    text-align: center;
    text-decoration: underline;
    font-size: 19px;
    cursor: pointer;
}