:root {
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
    --white: #FFFFFF;
    --blue: #002754;
    --gray-light: #0000000D;
    --gray-border: #0000001A;
    --link-color: #0094D1;
    --text-color: #4F5A66;
    --background-light: #F8F8F8;
    --callout-red: #D9534F;
    --input-bg: #F8F8F8;
    --input-border: #0000001A;
    --button-blue: #002754;
    --button-white: #FFFFFF;
    --tooltip-color: #272727CC;
    --gray-dark: #455C7B;
    --text-green: #27a168;
    --text-red: #dc3545;
    --text-yellow: #d7a701;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    font-family: var(--font-family);
}

h1, h2, h3, h4, h5, h6, p, a {
    text-decoration: none;
    color: inherit;
    margin: 0;
    padding: 0;
}

a {
    cursor: pointer;
}

select:focus-visible {
    outline: none;
}

.app {
    background-color: var(--white);
}

.container {
    margin-left: auto;
    margin-right: auto;
    max-width: 1440px;
}

.header-container {
    background-color: var(--blue);
}

.header-top {
    height: 91px;
    display: flex;
}

.navigation {
    display: none;
    padding: 10px 20px;
}

.page-option {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    width: 100%;
    height: 30px;
    padding-right: 30px;
    padding-left: 10px;
    border-radius: 5px;
    background-color: var(--gray-light);
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTcnIGhlaWdodD0nMTUnIHZpZXdCb3g9JzAgMCAxNyAxNScgZmlsbD0nbm9uZScgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz48cGF0aCBkPSdNMTIuNjI1IDVMOC42MDcxMSAxLjI5TDQuNTg5MjMgNScgc3Ryb2tlPSdyZ2JhKDI1NSwyNTUsMjU1LC41KScgc3Ryb2tlLXdpZHRoPScyJyBzdHJva2UtbGluZWNhcD0ncm91bmQnIHN0cm9rZS1saW5lam9pbj0ncm91bmQnLz48cGF0aCBkPSdNNC41ODkyMyAxMEw4LjYwNzExIDEzLjc1TDEyLjYyNSAxMCcgc3Ryb2tlPSdyZ2JhKDI1NSwyNTUsMjU1LC41KScgc3Ryb2tlLXdpZHRoPScyJyBzdHJva2UtbGluZWNhcD0ncm91bmQnIHN0cm9rZS1saW5lam9pbj0ncm91bmQnLz48L3N2Zz4K);
    background-position: calc(100% - 5px) 50%;
    background-repeat: no-repeat;
    border: 1px solid var(--gray-border);
    color: var(--white);
    font-family: inherit;
    font-weight: 300;
    font-size: 16px;
}

.header-left {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.header-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    gap: 6px;
}

.header-logo-img {
    height: 24px;
    margin-right: 20px;
}

.header-top-link {
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    padding: 10px;
    height: 35px;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    color: var(--white);
}

.header-top-link:hover {
    border-color: #FFFFFF33;
}

.main-content {
    display: flex;
    min-height: calc(100vh - 91px);
}

.sidebar {
    display: flex;
    flex-direction: column;
    max-height: 100vh;
    justify-content: space-between;
    overflow-y: auto;
    position: sticky;
    top: 0;
    box-shadow: 1px 0 0 var(--gray-border);
    min-width: 280px;
}

.sidebar-content {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 5px;
    padding-top: 20px;
    color: var(--text-color);
}

.sidebar-section {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    margin-bottom: 20px;
}

.sidebar-heading {
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    margin: 5px 0;
    padding-left: 15px;
    text-transform: uppercase;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0 0 5px;
}

.sidebar-item {
    margin-top: 2px;
}

.sub-list {
    margin-top: 0;
    margin-bottom: 5px;
    display: none;
}

.sidebar-link {
    padding-left: 15px;
    padding-right: 5px;
    padding-bottom: 3px;
    padding-top: 3px;
    display: flex;
    align-items: center;
    flex-flow: nowrap row;
    justify-content: space-between;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 300;
}

.sidebar-link:hover {
    background: var(--background-light);
}

.sidebar-active {
    background: #0094D117;
    color: #0094D1;
}

.parent-link {
    padding-left: 2px;
}

.sub-link {
    margin-left: 16.66667px;
    padding-left: 5px;
}

.sidebar-link-text {
    display: flex;
    align-items: center;
    height: 21px;
}

.sidebar-link-button {
    background: 0 0;
    border: 0;
    color: inherit;
    display: inherit;
    padding: 0;
}

.sidebar-link-icon {
    font-size: 9px;
    width: 13px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    opacity: .25;
}

.feedback {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    flex: 0 0 auto;
    flex-direction: column;
}

.feedback-btn {
    border: 1px solid var(--gray-border);
    border-radius: calc(5px * 1.5);
    color: #637288;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 10px;
}

.feedback-btn:hover {
    background: var(--background-light);
}

/* Content */

.content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 30px 31px;
}

.content-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gray-border);
}

.content-head-left {
    flex: 1 1 auto;
}

.content-title {
    font-size: 30.4px;
    font-weight: 500;
    line-height: 1.2;
    color: #384248;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.payment-logo {
    display: flex;
    align-items: center;
}

.payment-logo img {
    height: 30px;
}

.content-body {
    flex: 1 1 auto;
    max-width: 100%;
    padding-top: 30px;
}

.markdown-body {
    line-height: 1.5;
    text-size-adjust: 100%;
    word-wrap: break-word;
}

.markdown-p {
    font-size: 15px;
    margin-bottom: 16px;
    font-weight: 300;
    color: var(--text-color);
}

.success {
    color: var(--text-green);
}

.danger {
    color: var(--text-red);
}

.warning {
    color: var(--text-yellow);
}

.markdown-a {
    color: var(--link-color);
    text-decoration: underline;
}

blockquote {
    border-left: 0.25em solid #DfE2E5;
    margin: 0;
    padding: 21.28px;
    margin-bottom: 15px;
}

.callout-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.callout-icon {
    font-size: 20px;
    margin-left: -10px;
    margin-right: 11px;
}

.callout-title {
    margin: 0;
    font-size: 18.75px;
    color: var(--callout-red);
}

.callout-content {
    margin: 0 0 0 21.28px;
}

.callout-error {
    background-color: #FDF7F7;
    border-color: var(--callout-red);
}

label.markdown-p {
    margin-bottom: 8px;
    font-size: 13px;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin-bottom: 10px;
}

.multiple-input-wrapper {
    display: flex;
    flex-direction: row;
    max-width: 500px;
    white-space: nowrap;
}

.info {
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
}

.info img {
    height: 12px;
}

input {
    font-family: var(--font-family);
    font-weight: 500;
    margin-bottom: 10px;
    border: 1px solid var(--input-border);
    padding: 8px 14px;
    border-radius: 6px;
}

::placeholder {
    color: var(--input-border);
}

.input-danger {
    border: 1px solid var(--text-red);
}

.info-danger {
    color: var(--text-red);
    font-size: 13px;
    font-weight: 500;
}

.inputed-form {
    font-weight: 500;
    font-size: 15px;
    margin-top: -6px;
    margin-bottom: 6px;
}

input[type=text] {
    font-size: 14px;
    color: var(--text-color);
    background-color: var(--input-bg);
}

input[type=submit] {
    background-color: var(--button-blue);
    color: var(--button-white);
    cursor: pointer;
    margin-top: 12px;
    font-weight: 300;
}

input[type=submit]:hover {
    background-color: var(--gray-dark);
}

input:focus-visible {
    outline: none;
}

form select {
    margin-bottom: 16px;
    border: 1px solid var(--input-border);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 300;
    color: var(--text-color);
    background-color: var(--input-bg);
    background-image: url(../images/icons/chevron_down.svg);
    background-position: calc(100% - 10px) 50%;
    background-repeat: no-repeat;
    -webkit-appearance: none;
    appearance: none;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 300;
    color: var(--text-color);
    background-color: var(--input-bg);
    margin-bottom: 16px;
    border: 1px solid var(--input-border);
    padding: 4px 8px;
    border-radius: 6px;
}

.checkbox-container input {
    padding: 0;
    height: initial;
    width: initial;
    margin: 0;
    display: none;
    cursor: pointer;
}

.checkbox-container label {
    position: relative;
    cursor: pointer;
}

.checkbox-container label:before {
    content:'';
    -webkit-appearance: none;
    background-color: var(--white);
    border: 1px solid var(--input-border);
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
    margin-right: 14px;
}

.checkbox-container input:checked + label:after {
    content: '';
    display: block;
    position: absolute;
    top: 5px;
    left: 9px;
    width: 3px;
    height: 9px;
    border: solid var(--text-color);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container .markdown-p {
    margin: 1px 0;
    font-size: 14px;
}

.checkbox-container .markdown-p span{
    position: absolute;
    top: 1px;
    font-weight: 500;
    width: max-content;
}

.resimulate-btn {
    background-color: var(--button-blue);
    color: var(--button-white);
    cursor: pointer;
    margin-bottom: 16px;
    font-size: 13px;
    padding: 7px 14px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 16px;
    margin-right: 5px;
}

.resimulate-btn:hover {
    background-color: var(--gray-dark);
}

.footer-container {
    padding-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 47px;
}

.copyright-text {
    font-size: 14px;
    color: #637288;
}

.copyright-logo {
    height: 15px;
    margin: 0 6px;
    padding-bottom: 3px;
    vertical-align: middle;
}

/* Custom Tooltip */

[hover-tooltip] {
    position: relative;
    cursor: default;
}

[hover-tooltip]:hover::before {
    content: attr(hover-tooltip);
    font-size: 14px;
    text-align: center;
    position: absolute;
    display: block;
    left: 5%;
    min-width: 450px;
    max-width: 600px;
    bottom: calc(100% - 39px);
    transform: translate(4%);
    animation: fade-in 300ms ease;
    background: var(--tooltip-color);
    border-radius: 6px;
    padding: 10px;
    color: #ffffff;
    z-index: 1;
}

[hover-tooltip]:hover::after {
    content: "";
    position: absolute;
    display: block;
    left: 95%;
    width: 0;
    height: 0;
    bottom: calc(100% - 10px);
    border: 1px solid black;
    border-color: var(--tooltip-color) transparent transparent transparent;
    border-width: 4px 6px 0;
    animation: fade-in 300ms ease;
    z-index: 1;
    transform: rotateY(0deg) rotate(90deg);
}

[hover-tooltip][tooltip-position=bottom]:hover::before {
    bottom: auto;
    top: calc(100% + 10px);
}

[hover-tooltip][tooltip-position=bottom]:hover::after {
    bottom: auto;
    top: calc(100% + 6px);
    border-color: transparent transparent #272727;
    border-width: 0 6px 4px;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */

@media (max-width: 768px) {
    .main-content {
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - 101px);
    }

    .header-logo {
        display: flex;
        align-items: center;
    }

    .header-logo-img {
        margin-left: 12px;
        height: 18px;
    }

    .sidebar {
        display: none;
    }

    .header-top {
        height: 51px;
        overflow-x: auto;
    }

    .navigation {
        display: block;
    }
}

@media (max-width: 992px) {
    [hover-tooltip]:hover::before {
        left: 50%;
        min-width: 150px;
        max-width: 200px;
        bottom: calc(100% + 10px);
        transform: translate(-50%);
    }
    [hover-tooltip]:hover::after {
        left: 50%;
        bottom: calc(100% + 6px);
        transform: none;
    }
}

/* Animation */

.slide-bottom {
    -webkit-animation: slide-bottom 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: slide-bottom 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@-webkit-keyframes slide-bottom {
    0% {
        -webkit-transform: translateY(-5px);
        transform: translateY(-5px);
    }
    100% {
        -webkit-transform: translateY(0px);
        transform: translateY(0px);
    }
}

@keyframes slide-bottom {
    0% {
        -webkit-transform: translateY(-5px);
        transform: translateY(-5px);
    }
    100% {
        -webkit-transform: translateY(0px);
        transform: translateY(0px);
    }
}

.success-banner {
    background: #dff0d8;
    border-radius: 7.5px;
    padding: 10px;
    font-weight: bold;
    margin-bottom: 15px;
}
