@media screen and (max-width: 800px) {
    .invite.page input {
        margin-inline: auto;
    }    
}

.page.weeklist {
    padding: var(--page-padding);

    #divFilter {
        display: grid;
        grid-template-columns: 400px 350px 1fr;
        grid-auto-flow: column;
        margin-bottom: 32px;
        column-gap: 32px;
    }

    x-text {
        display: inline-block;
    }

    section {
        width: calc(100vw - var(--menu-width) - 100px);   
        max-height: calc(100vh - 250px);
        overflow-x: auto;     
        margin-top: 16px;
    }

    table {
        border-collapse: collapse;
    }

    th, td {
        padding: 4px;
    }

    th {
        text-align: center;        
        border-bottom: 1px solid gray;
        user-select: none;
    }

    td {
        /* text-align: right; Ruud vind rechtse uitlijning niet mooi*/ 
        text-align: center;
        border: 1px solid black;        
    }
    
    th.left, td.left {
        text-align: left;
    }
    
    td.error {
        background: indianred;
    }

    td.negative {
        background: lightcoral;
        color: white;
    }    

    td.special {
        background: #babff7;
    }

    td.group {
        border: none;      
        padding-top: 24px;        
        font-weight: bold;          
        border-bottom: 2px solid black;
        text-align: left;
    }

    td.memo {
        color: white;
        user-select: none;
    }

    .main-table {
        width: 1500px;
        margin-bottom: 32px;
    }

    .main-table > thead {
        position: sticky;
        top: 0;
        background: var(--page-bg-color);
        z-index: 1; 
        box-shadow: inset 0 2px 0 #000000, inset 0 -2px 0 #000000;
        outline: 2px solid var(--page-bg-color);
    }

    .main-table tbody > tr {
        cursor: pointer;
    }

    .main-table tbody > tr:not(:has(td.group)):hover {
        background: mediumaquamarine;
    }

    .main-table tbody > tr:not(:has(td.group)).sub-table:hover {
        background: transparent;
    }

    table.sub-table tbody tr, .main-table tr.sub-table {
        cursor: default;
    }    

    table.sub-table {
        margin: 24px;
    }

    table.sub-table thead {
        border-bottom: 3px solid black;
    }

    table.sub-table th {
        font-weight: 500;
        user-select: none;
    }

    textarea {
        height: 300px;
        width: 650px;
        border: 1px solid gray;
        outline: none;
        border-radius: 7px;
        padding: 12px;
        font-size: 1.2em;
    }
}