/* Today */
.gkmb__oneforall.-today h3 {
    font-family: var(--f-family);
    font-weight: var(--f-weight-b);
    font-size: var(--f-size-l-2);
}

/* Spacing comes from the subarea margin, not from the grid gap of the extension CSS */
.gkmb__oneforall.-today .oneforall__day {
    gap: 0;
    grid-gap: 0;
}

.gkmb__oneforall.-today .day__subarea {
    margin-bottom: 1rem;
}

.gkmb__oneforall.-today .oneforall__infotext.-before {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.gkmb__oneforall.-today.layout-0 .subarea__textwrap {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status__div {
    display: none;
}

.gkmb__oneforall.-today .oneforall__infotext.-before p {
    line-height: 1.2;
}

.gkmb__oneforall.-today.layout-0 .subarea__titlewrap {
    font-weight: var(--f-weight-b);
    color: rgb(var(--c-neutral-darkest));
}

.gkmb__oneforall.-today.layout-0 .reservation__statusicon.font__fas {
    position: absolute;
    top: .3rem;
    left: -2rem;
}

.gkmb__oneforall.-today.layout-0 .oneforall__day {
    padding-right: 2rem;
    padding-left: 2rem;
}

.gkmb__oneforall.-today.layout-3 h3 {
    text-align: left;
    margin-bottom: 0.5rem;
}

.gkmb__oneforall.-today .subarea__text {
    font-size: var(--f-size-s-2);
}

.gkmb__oneforall.-today .subarea__title {
    font-weight: var(--f-weight-b);
}

.gkmb__oneforall.-today .reservation__statustitle {
    display: none;
}

.gkmb__oneforall.-today .reservation p {
    font-size: var(--f-size-s-2);
}


/* Area Weeks view */
.oneforall__week {
    margin-bottom: 2rem;
}

.week__table {
    width: 100%;
}

.week__table th {
    text-align: left;
    padding: 0.3rem 1rem;
    border: 2px solid rgb(var(--c-neutral-lightest));
}

.week__table td {
    text-align: left;
    padding: 0.3rem 1rem;
    border: 2px solid rgb(var(--c-neutral-lighter));
}

.week__table th,
.week__table td:first-child {
    background-color: rgb(var(--c-primary));
    color: rgb(var(--c-neutral-lightest));
}

.oneforall__week .event {
    border: 1px solid rgb(var(--c-neutral-light));
    background: rgb(var(--c-neutral-lightest));
    padding: 0.5rem 1rem;
}

.event__name {
    line-height: 120%;
}

.event__info {
    margin-top: 0.5rem;
}

.-today .event__info {
    margin-top: 0;
}

.-today .event {
    margin-top: 1rem;
}

.event__link,
.event__scoringformat,
.event__blockingtime,
.event__registrationdeadline,
.event__starttime {
    font-size: var(--f-size-s-2);
}

.event__link {
    display: block;
}

.oneforall__week .day {
    display: grid;
    grid-gap: 0.5rem;
}

.gkmb__oneforall.-weeks .oneforall__infotext {
    display: none;
}

/* Edit */
/* frame table fallback for older TYPO3 projects */
.frame-type-table {
    scrollbar-width: thin;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 10px;
    width: 100%;
}

.frame-type-table::-webkit-scrollbar-track {
    -webkit-border-radius: 0.5rem;
    -moz-border-radius: 0.5rem;
    border-radius: 0.5rem;
}

.frame-type-table::-webkit-scrollbar {
    height: 1rem;
}

.frame-type-table::-webkit-scrollbar-thumb {
    -webkit-border-radius: 0.5rem;
    -moz-border-radius: 0.5rem;
    border-radius: 0.5rem;
}

table.edit__list {
    width: 100%;
    border: 1px solid rgb(var(--c-neutral-light));
}

table.edit__list th {
    background: rgb(var(--c-primary));
    color: rgb(var(--c-neutral-lightest));
    padding: 0.6rem 1.5rem;
    text-align: left;
    font-family: var(--f-family-b);
    font-weight: normal;
}

table.edit__list td:first-child,
table.edit__list th:first-child {
    border-left: none;
}

table.edit__list tr td {
    background: rgb(var(--c-neutral-lightest));
}

table.edit__list tr:nth-child(odd) td {
    background: rgb(var(--c-neutral-lighter));
}

table.edit__list td {
    padding: 0.6rem 1.5rem;
}

table.edit__list td.td__small,
table.edit__list th.th__small {
    width: 30px;
    padding: 0.6rem 10px;
    text-align: center;
}

table.edit__list td.td__large {
    min-width: 200px;
}

table.edit__list td.td__medium {
    min-width: 130px;
}

td.-datedisabled,
td.-disabled {
    color: rgba(var(--c-neutral), 0.5);
}

.access__icon {
    position: relative;
}

.access__icon img {
    height: 1rem;
    margin-right: 0.3rem;
}

td.-datedisabled .access__icon::after,
td.-disabled .access__icon::after {
    content: '';
    font-family: 'FaSolid';
    font-size: 12px;
    color: rgba(var(--c-primary), 1);
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
    line-height: 12px;
}

td.-datedisabled .access__icon::after {
    content: '\f017';
}

td.-disabled .access__icon::after {
    content: '\f5ec';
}

td.-datedisabled .access__icon::before,
td.-disabled .access__icon::before {
    content: '';
    width: 11px;
    height: 11px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    background: rgb(var(--c-neutral-lightest));
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 0;
}

td.-datedisabled .access__icon,
td.-disabled .access__icon {
    opacity: 0.5;
}

.edit__subheader {
    background: rgb(var(--c-primary));
    color: rgb(var(--c-neutral-lightest));
    font-family: var(--f-family-b);
    font-size: var(--f-size-l-1);
    padding: 0.3rem 1.5rem;
}

.edit__content {
    padding: 2rem 1.5rem;
    border: 1px solid rgb(var(--c-neutral-light));
    margin-bottom: 2rem;
}

.fontawesome__subheader {
    background: rgb(var(--c-neutral-dark));
    color: rgb(var(--c-neutral-lightest));
    font-family: var(--f-family-b);
    padding: 0.2rem 1rem;
}

.fontawesome__content {
    display: grid;
    grid-gap: var(--g-gap);
    padding: 1rem;
    border: 1px solid rgb(var(--c-neutral-light));
}

.tx-gkmboneforall .fontawesome__content dl {
    margin: 0;
}

.content__repetition,
.content__access {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: var(--g-gap);
    align-items: flex-start;
}

.tx-gkmboneforall .content__repetition dl,
.tx-gkmboneforall .content__access dl {
    margin: 0;
}

.select__reservation {
    display: block;
    margin-bottom: 1rem;
}

.tx-gkmboneforall dd label,
.tx-gkmboneforall dt {
    font-family: var(--f-family-b);
}

.tx-gkmboneforall dt p {
    font-family: var(--f-family);
    font-size: var(--f-size-s-1);
}

.tx-gkmboneforall dl {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr;
    margin: 0 0 2rem 0;
}

.tx-gkmboneforall dl:last-child {
    margin-bottom: 0;
}

.tx-gkmboneforall dt {
    margin-bottom: 1rem;
}

.tx-gkmboneforall dd {
    margin: 0;
}

.gkmb__oneforall.-edit,
.gkmb__oneforall.-update {
    margin-bottom: 2rem;
}

.gkmb__oneforall.-update input,
.gkmb__oneforall.-update select,
.gkmb__oneforall.-update textarea {
    margin: 0;
}

.new.font__button {
    margin-top: 2rem;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle input {
    opacity: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    position: absolute;
    top: 0;
    left: 0;
}

.toggle__checkbox {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(var(--c-neutral-light));
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}

.toggle__checkbox::before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: rgb(var(--c-neutral-lightest));
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.toggle__checkbox {
    background-color: rgb(var(--c-primary));
}

input:focus+.toggle__checkbox {
    box-shadow: none;
}

input:checked+.toggle__checkbox::before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.field__description {
    font-family: var(--f-family);
}

.list.font__button {
    margin-left: 1rem;
}

input[type="color"] {
    padding: 0;
}

.access__icon img {
    border-radius: 0;
}

@media (min-width: 640px) {

    /* edit */
    table.edit__list td.td__small,
    table.edit__list th.th__small {
        width: 50px;
    }

}

@media (min-width: 680px) {

    /* today */
    .gkmb__oneforall.-today.layout-0 .subarea__textwrap {
        position: relative;
        display: flex;
        flex-direction: row;
        gap: 0 0.5rem;
        grid-gap: 0 0.5rem;
        flex-wrap: wrap;
    }

    .gkmb__oneforall.-today .subarea__text {
        margin-top: 0.3rem;
    }
}

@media (min-width: 800px) {

    /* edit */
    .content__repetition {
        grid-template-columns: 1fr 1fr 1fr;
    }

}