html {
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: none;
}

body {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue",  Arial, sans-serif;
    line-height: 1.5;
    color: #313131;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
}

* {
    box-sizing: border-box;
}

.cf-color-primary {
    color: #e68937;
}

.cf-color-secondary {
    color: #eeb154;
}

a {
    color: #0051c3;
    text-decoration: underline;
    text-underline-offset: 4px;
}

h1 {
    font-size: 32px;
    padding: 0;
    margin: 0 0 10px 0;
}

code {
    background-color: #ddd;
}

nav, main, footer {
    max-width: 700px;
    width: 100%;
    padding: 0 10px;
}

nav {
    margin: 20px 0;
}

main, footer {
    margin-bottom: 20px;
}

footer {
    font-size: 12px;
    color: #666;
    text-align: center;
}

table {
    width: 100%;
    border-spacing: 0;
    border-collapse: separate;
}

thead {
    background-color: #f2f2f2;
}

th, td {
    padding: 13px 18px;
    text-align: left;

    border-top: 1px solid #d9d9d9;
}

th {
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

tr th:first-child {
    border-top-left-radius: 4px;
}

tr th:last-child {
    border-top-right-radius: 4px;
}

tr td:first-child, tr th:first-child {
    border-left: 1px solid #d9d9d9;
}

tr td:last-child, tr th:last-child {
    border-right: 1px solid #d9d9d9;
}

td.none {
    text-align: center;
    color: #999;
}

tbody tr:last-child td {
    border-bottom: 1px solid #d9d9d9;
}

tbody tr:last-child td:first-child {
    border-bottom-left-radius: 4px;
}

tbody tr:last-child td:last-child {
    border-bottom-right-radius: 4px;
}

.search {
    position: relative;
    margin-bottom: 20px;
}

.search i {
    position: absolute;
    z-index: 1;
    left: 4px;
    top: 6px;
}

.search input {
    width: 100%;
    line-height: 16px;
    padding: 8px 8px 8px calc(29px);
    border: 1px solid #797979;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    background-color: #fff;
}

.search input:focus {
    border-color: #3c6af8;
}

select[name=currency] {
    border: none;
    appearance: none;
    cursor: pointer;
    color: #0051c3;
    font-weight: bold;
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 24px;
    }

    main {
        padding: 0;
    }

    .search {
        margin-left: 10px;
        margin-right: 10px;
    }
    
    thead {
        position: sticky;
        top: 0;
    }

    th, td {
        padding: 10px 12px;
    }

    tr th:first-child {
        border-top-left-radius: 0;
    }

    tr th:last-child {
        border-top-right-radius: 0;
    }

    tr td:first-child, tr th:first-child {
        border-left: none;
    }

    tr td:last-child, tr th:last-child {
        border-right: none;
    }

    tbody tr:last-child td:first-child {
        border-bottom-left-radius: 0;
    }

    tbody tr:last-child td:last-child {
        border-bottom-right-radius: 0;
    }
}