:root {
    --primary-color: #009983;
    --primary-dark-color: #005D50;
    --primary-light-color: #cee8e9;
    --hover-blue-color: #9bd6d8;
    --hover-yellow-color: #ffeac1;
    --success-color: var(--primary-color);
    /* --warning-color: #FFA800; */
    --warning-color: #CE7400;
    --error-color: #f24e1e;
    --link-color: white;
    --text-color: #333333;
    --notice-color: #e70000;
    --light-gray: #eeeeee;
    --btn-border-radius: 0.5rem;
    --btn-border-color: #b5b5b5;
}

:focus {
    outline-color: var(--primary-dark-color);
    outline-width: 2px;
}

::-webkit-scrollbar {
    display: none;
    width: 0.25rem;
    height: 0.25rem;
}

::-webkit-scrollbar-track {
    background: #eeeeee99;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark-color);
}

::selection {
    background: var(--hover-yellow-color);
    color: var(--text-color);
}

body {
    width: 100vw;
    font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", system-ui;
}

header {
    padding: 1rem 2rem;
    width: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header>* {
    display: flex;
    align-items: center;
    column-gap: 5px;
    color: white;
}

#logo_block {
    font-size: 2rem;
    font-weight: 600;
}

#logo_block>span {
    display: flex;
    flex-wrap: wrap;
}

#logout_block {
    font-size: 1.125rem;
    justify-content: flex-end;
    gap: 1rem;
}

#logout_block>* {
    display: flex;
    align-items: center;
    gap: 5px;
}

main {
    width: 100%;
    min-height: 100vh;
    padding: 0 0.625rem 0.625rem;
    position: relative;
}

.access_control {
    border: none !important;
    font-size: 1rem;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
    --link-color: var(--text-color);
    opacity: 0.5;
}

.access_control:hover {
    opacity: 1;
}

a,
a:hover,
a:active {
    color: var(--link-color);
    text-decoration: none;
}

label {
    margin-bottom: 0;
}

.btn_main_style {
    width: fit-content;
    padding: 0.5rem 0.85rem;
    border-radius: var(--btn-border-radius);
    border: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 0.5rem;
}

.btn_main_style:hover {
    filter: brightness(0.9);
}

.btn_main_style:disabled {
    filter: grayscale(1);
    opacity: 0.8;
}

.btn_main_style.confirm_btn {
    display: inline-flex;
    background: var(--primary-color);
    color: white;
}

.btn_main_style.cancel_btn {
    display: inline-flex;
    background: white;
    border: var(--btn-border-color) 1px solid;
}

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

img[src$='.svg'] {
    width: 1.5rem;
    height: 1.5rem;
}

img[src$='.svg'].small_icon {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 1rem;
    vertical-align: -3px;
}

input,
select,
textarea {
    display: inline-block;
    border-radius: var(--btn-border-radius);
    border: var(--btn-border-color) 1px solid;
    padding: 0.25rem 1rem;
}

input:not([role="switch"]):disabled,
select:disabled,
textarea:disabled {
    filter: grayscale(1);
    background: var(--light-gray);
}

.title_block {
    border-bottom: lightgray 2px solid;
    overflow: hidden;
    text-align: center;
    display: grid;
    grid-template-areas:
        'back title'
        'instruction instruction'
    ;
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.625rem;
    margin: 0 -0.625rem;
}

#to_previous_page {
    grid-area: back;
}

.page_title {
    grid-area: title;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--text-color);
    text-align: center;
}

.page_instruction {
    grid-area: instruction;
    width: 100%;
    margin: 0 auto;
    padding: 0.625rem 0;
    text-align: left;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.page_instruction:empty {
    padding: 0;
}

.step_title {
    padding-left: 0.5rem;
    margin-bottom: 2rem;
    border-left: var(--primary-color) 0.5rem solid;
    font-size: 1.25rem;
    font-weight: 600;
}

@media (max-width: 800px) {
    header {
        padding: 1rem;
    }

    #logo_block {
        font-size: 24px;
    }

    #logo_block img {
        width: 32px;
        height: auto;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 12px;
    }
}

@media (max-width: 540px) {
    header {
        display: block;
    }
}

.loading {
    width: 100%;
    min-height: calc(1rem * 1.5 + 8px);
    background: var(--light-gray);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.loading::before {
    content: '';
    width: 80%;
    background: linear-gradient(to left, transparent, #ffffffa1, transparent);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    animation: slide 2s infinite ease-in-out;
}

@keyframes slide {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}