:root {
    --color-fs-world: #1B78FF;
    --color-main-dark: rgb(0, 69, 170);
    --color-gray: #6b7280;
    --color-gray-mid: #dae0e4;
    --color-gray-light: #f1f5f9;

    --color-class-cv: #76B828;
    --color-class-ev: #FFDD00;
    --color-class-dc: #5EC4E1;
}

body {
    background-color: #ffffff;
    color: #1f2937;
    font-family: europa, sans-serif;
    line-height: 1.2;
    padding: 0;
    margin: 0;
}
h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

a {
    color: var(--color-fs-world);
    font-weight: bold;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}
th, td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}
th {
    text-align: left;
    background-color: var(--color-gray-light);
}
footer {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin: 2rem 16px 0;
    text-align: right;
}

.header {
    background: #ffffff;
    border-bottom: 4px solid var(--color-fs-world);
    border-image: linear-gradient(to right, var(--color-main-dark) 0%, var(--color-fs-world) 100%) 1;
    color: var(--color-fs-world);
    /*display: flex;*/
    /*justify-content: space-between;*/
    height: 54px;
    left: 0;
    padding: 16px;
    position: fixed;
    top: 0;
    width: calc(100% - 32px);
    z-index: 1000;

    display: grid;
    gap: 4px 16px;
    grid-template-columns: 320px 1fr 80px;
    grid-template-rows: auto;
    grid-template-areas:
    "title filters logo"
    "nav filters logo";
}
.header nav {
    grid-area: nav;
}
.header h1 {
    margin: 0;
    grid-area: title;
}
.header .filter-container {
    display: flex;
    justify-content: end;
    gap: 16px;
    grid-area: filters;
}

.header > .logo {
    background-image: url(../img/FSWorld_Logo.svg);
    height: 54px;
    grid-area: logo;
    width: 80px;
}
@media only screen and (max-width: 1070px) {
    .header {
        grid-template-columns: 220px 1fr 80px;
    }
    .header h1 {
        font-size: 24px;
    }
    .header .filter-container {
        justify-content: center;
    }
    .header .filters select {
        padding: 4px 2px !important;
    }
    .header .filters.search {
        display: none;
    }

}
@media only screen and (max-width: 700px) {
    .header {
        padding: 8px;
        height: auto;
        width: calc(100% - 16px);

        grid-template-columns: 40px 90px 1fr;
        grid-template-areas:
    "logo title nav"
    "filters filters filters";
    }
    .mobile-hide {
        display: none;
    }
    .header .logo{
        height: 27px;
        width: 40px;
    }
    .header nav {
        line-height: 26px;
    }
    .header nav > ul{
        float: right;
    }
    .mobile-header-spacer {
        height: 54px;
    }
}

.content {
    margin-top: 102px;
    padding: 0 16px;
    min-height: calc(100vh - 173px);
    overflow-x: auto;
    width: calc(100% - 32px);
}

nav > ul {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}
nav > ul > li {
    display: inline-block;
}
nav > ul > li > a {
    color: var(--color-fs-world);
    text-decoration: none;
}
nav > ul > li > a:hover {
    text-decoration: underline;
}

.filters {
    display: flex;
    padding: 4px 0;
    gap: 0;
}

.filters label {
    text-transform: uppercase;
    font-size: 0.75rem;
    padding-left: 2px;
}
.filters select {
    background: none;
    border-color: var(--color-fs-world);
    border-radius: 0;
    border-style: solid;
    border-width: 2px 1px;
    padding: 6px 10px;
    outline: none;
}
.filters input {
    background: none;
    border-color: var(--color-fs-world);
    border-style: solid;
    border-width: 2px;
    border-radius: 12px;
    padding: 6px 10px;
    outline: none;
}
.filters :first-child > select {
    border-left-width: 2px;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}
.filters :last-child > select {
    border-right-width: 2px;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.box-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.floating-hint {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 400px
}

.equation {
    font-size: 1.0rem;
    overflow-x: auto;
}

dl {
    padding: 0 14px;
}

@media only screen and (max-width: 700px) {
    .content {
        margin-top: 66px;
    }
    .box-2 {
        grid-template-columns: 1fr;
    }
    .box-2 > .item {
        max-width: calc(100vw - 32px);
        overflow-x: auto;
    }
    .floating-hint {
        position: initial;
        width: 100%;
    }
    table.table td, table.table th {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

.textbox {
    max-width: 1600px;
    margin: auto;
    position: relative;
}


details {
    border: 2px solid var(--color-fs-world);
}
details > summary {
    font-size: 20px;
    font-weight: bold;
    padding: 16px;
    list-style: none;
}
details > summary::after {
    color: var(--color-fs-world);
    content: "\276F";
    height: 1.3em;
    float: right;
    text-align: center;
    transform: rotate(90deg);
    transition: all 0.35s;
    width: 1em;
}
details:open > summary::after {
    transform: rotate(270deg);
}
details > summary::marker {
    content: "";
}
details summary::-webkit-details-marker {
    display: none;
}
details > div > p {
    padding: 0 16px;
}

.team-class {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.8em;
    margin: 4px 0;
}
.team-class.cv {
    background: var(--color-class-cv);
    color: white;
}
.team-class.ev {
    background: var(--color-class-ev);
}
.team-class.dc {
    background: var(--color-class-dc);
}

button.button-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
}
button.button-icon > i {
    color: var(--color-fs-world);
}
button.button-icon:hover > i {
    color: var(--color-main-dark);
}
button.modal-close {
    right: 16px;
    top: 16px;
    font-size: 20px;
    position: absolute;
}

.table-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
}
/** CELL ORIENTATION **/
table .left, table .l, table .-l, table .l-, table .-l-{
    text-align: left;
    width: 1px;
    white-space: nowrap;
}
table .-l,table .-r, table .-x{
    border-left: 2px solid var(--color-gray-light);
}

table .l-,table .r-, table .x-{
    border-right: 2px solid var(--color-gray-light);
}

table .-l-,table .-r-, table .-x-{
    border-left: 2px solid var(--color-gray-light);
    border-right: 2px solid var(--color-gray-light);
}

table .right, table .r, table .-r, table .r-, table .-r-{
    text-align: right;
    width: 1px;
    white-space: nowrap;
}
table .c{
    text-align: center;
    width: 1px;
    white-space: nowrap;
}

table .rf{
    text-align: right;
    white-space: nowrap;
}

dialog {
    border: none;
    box-shadow: 0 0 18px -5px rgba(0,0,0,.5);
    outline: none;
}