.context-table {
    width: 100%;
    border-collapse: collapse;
    /*font-family: 'Arial', sans-serif; !* Or your preferred font *!*/
}

.context-table th, .context-table td {
    border: 1px solid var(--rimexx-color-border); /* Lighter gray border */
    padding: 4px;
    vertical-align: top; /* Align text to the top */
}

.context-table th {
    background-color: var(--rimexx-color-control-background); /* Light gray header background */
    font-weight: bold;
    text-align: left;
}

.context-table .key {
    font-style: italic;
    color: var(--rimexx-color-text); /* Darker gray for keys */
}

.context-table .value {
    white-space: pre-wrap;
    word-break: break-word; /* Allow words to break */
}

.context-table ul {
    list-style: none;
    padding-left: 20px; /* Indent lists */
}

.context-table li {
    /*margin-bottom: 5px;*/
}


/* Responsive design adjustments */
@media (max-width: 768px) {
    .context-table {
        font-size: 12px;
    }
    .context-table td {
        padding: 5px;
    }
}

.builder-form {
    .remove-button {
        top:0 !important;
        right:0 !important;
        background-color: var(--rimexx-color-blue-light) !important;
        color: var(--rimexx-color-blue-dark) !important;
        border-bottom-left-radius: 50%;
        z-index: 500;
        opacity: 0.4;

        &:hover {
            background-color: var(--rimexx-color-red-dark) !important;
            color: var(--rimexx-color-red-light) !important;
            opacity: 1;
        }
    }
}

.text-link {
    color: var(--rimexx-color-accent);
    cursor: pointer;
}

.rimexx-select {
    height: 32px;
    width: 100%;
    background-color: var(--rimexx-color-control-background);
    border: 1px solid var(--rimexx-color-border);
    border-radius: var(--rimexx-border-radius-xs);
}

.input-wrapper {
    ul {
        list-style: none;

        li {
            margin-bottom: 4px;
        }
    }
}

.donkers-tabs {
    display: flex;
    flex-direction: column;
    width: 100%;

    .tabs {
        display: flex;
        gap: 5px;

        .tab {
            .donkers-button {
                border-bottom: 0;
                border-bottom-left-radius: 0;
                border-bottom-right-radius: 0;

                &.outline {
                    border-color: var(--rimexx-color-border);
                    color: var(--rimexx-color-text);

                    &:hover {
                        color: var(--rimexx-color-accent-text);
                    }
                }
            }
        }
    }

    .tab-content {
        border: 1px solid var(--rimexx-color-border);
        border-radius: 0 5px 5px 5px;
        height: 100%;
        padding: 0 10px 10px;

        .content-flow {
            padding-top:10px;
        }
    }
}

.app {
    .mini-app {
        margin-top: 20px;

        input:not([type="checkbox"]):not([type="radio"]), textarea {
            border: 1px solid var(--rimexx-color-border);
            border-radius: 4px;
            background: var(--rimexx-color-control-background) none repeat scroll 0 0;
            outline: currentcolor none medium;
            width: 100%;
            padding-left: 5px;

            &::placeholder {
                color: var(--rimexx-color-text-soft);
            }

            &:focus {
                border: 1px solid var(--rimexx-color-accent);
            }
        }

        input:not([type="checkbox"]):not([type="radio"]) {
            height: 32px;

            &:disabled {
                background: var(--rimexx-color-control-background-dark);
                cursor: not-allowed;
            }
        }

        textarea:disabled {
            background: var(--rimexx-color-control-background-dark);
            cursor: not-allowed;
        }
    }
}

.menu-title {
    font-weight: 500;
    padding:5px;
}

.menu-divider {
    border-bottom: 1px solid var(--rimexx-color-border);
}

.menu-option {
    display: flex;
    padding: 5px;
    font-size: 1rem;
    align-items: center;

    i {
        margin-right: 5px;
    }
    &:hover {
        cursor: pointer;
        background-color: var(--rimexx-color-accent-light);
    }
}



.developer-translations {
    input {
        border: 0;
        background: none;
        width: 100%;
        height: 100%;
        padding-left: 5px;
        padding-right: 5px;
    }

    td.cell-input {
        padding: 0 !important;
    }
}

body {
    display: flex;
    justify-content: center;
    letter-spacing: -0.5px;
}

#app {

    .header:not(.index-welcome .header) {
    /*&:not(.index-welcome) .header {*/
        border-bottom: unset !important;
    }

    .navigation {
        border-right: unset !important;
    }

    .shortcut-blox {
        display: flex;
        flex-direction: column;
        width:80px;
        height:80px;
        background-color: var(--rimexx-color-background);
        border:1px solid var(--rimexx-color-border);
        border-radius: var(--rimexx-border-radius-sm);
        justify-content: center;
        align-items: center;

        .title {
            font-size: 0.8rem;
        }

        &:hover {
            background-color: var(--rimexx-color-accent);
            cursor: pointer;
            color: #fff;
        }
    }
}

.application-calendar, .application-calendar-day {
    height: 100%;

    .all-day {
        display: flex;
        height: 55px;
        border: 1px solid var(--rimexx-color-border);
        background: var(--rimexx-color-control-background);
        align-items: center;
        padding-left: 10px;
        padding-right: 10px;
    }

    .calendar-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    table {
        border-collapse: collapse;
        width: 100%;

        th {
            border: 1px solid var(--rimexx-color-border);
            padding: 5px;
            text-align: center;
        }
        td {
            border: 1px solid var(--rimexx-color-border);
            padding: 5px 10px 5px 5px;
            width: 125px;
            height: 125px;
            text-align: right;
            font-weight: 400;

            &:hover:not(.week-number):not(.today) {
                cursor: pointer;
                background-color: var(--rimexx-color-accent-light);
            }

            &.week-number {
                font-size: 0.925rem;
                text-align: center;
                font-weight: 300;
                padding:0;
                width: 20px;
                background-color: var(--rimexx-color-control-background);
            }

            .calendar-entry {
                overflow:hidden;
                padding:5px;
                position:absolute;
                display:flex;
                flex-direction:column;
                width:calc(100% - 10px);
                background-color:var(--rimexx-color-accent);
                color: var(--rimexx-color-accent-text);
                border: 1px solid var(--rimexx-color-border);
                border-radius: var(--rimexx-border-radius-sm);
            }
        }
    }

    .prev-month, .next-month {
        color: var(--rimexx-color-text-soft);
        font-weight: 300;

        .donkers-badge {
            background: var(--rimexx-color-accent-light) !important;
            color: var(--rimexx-color-text-soft) !important;
        }
    }
    .today {
        background-color: var(--rimexx-color-accent-light);
        color: var(--rimexx-color-accent);
        cursor: pointer;
        text-decoration: underline;
        font-weight: 700;
    }
}

.navigation {
    &::-webkit-scrollbar {
        background-color: var(--rimexx-color-border);
        width: 8px;
        border-left: 0;
    }
}

.hamburger {
    height:100%;
    display:none;
    align-items:center;

    &:hover {
        cursor: pointer;
    }
}

aside.navigation.unhide {
    z-index:999;
    min-width:320px;
}

header.unhide {
    z-index:1000;
}

@media(max-width: 1539px) {
    #screenshotButton {
        display: none;
    }
    .hamburger {
        display:flex;
    }
    aside.navigation:not(.unhide) {
        display: none !important;
    }
    header.header {
        .title {
            span {
                white-space: nowrap;
            }
        }
    }
    header.header .logo-title {
        background-color: transparent !important;
        padding-right: 0 !important;
        padding-left: 0 !important;

        .title-wrapper {
            width: 1000%;
        }
    }
    header .nav-right .right-content {
        margin-left: 0 !important;
        padding-right: 10px !important;
    }
    .container .main .content {
        padding-left: 10px !important;
    }
}

table.mini-calendar {
    border-collapse: collapse;
    width: 100%;
    border-spacing: 0;
    border-top: 1px solid var(--rimexx-color-border);
    border-left: 1px solid var(--rimexx-color-border);

    td {
        padding: 0.5rem;
        border-bottom: 1px solid var(--rimexx-color-border);
        border-right: 1px solid var(--rimexx-color-border);

        &.shrink {
            width: 0;
            white-space: nowrap;
        }
    }
}


.countUp {
    width:100%;

    .number {
        width: 50%;
        font-size: 2rem;
        font-weight:600;
        text-align: right;
    }
}

.user-profile-table {
    width: 100%;
    border-collapse: collapse;

    td {
        padding: 0.5rem;
    }
}

.index-welcome {

    padding:0;

    .white-outline {
        text-shadow:.5px .5px .5px var(--rimexx-color-background), -.5px -.5px .5px var(--rimexx-color-background), .5px -.5px .5px var(--rimexx-color-background), -.5px .5px .5px var(--rimexx-color-background);
    }

    .index-nav {
        font-weight: 400;
        font-size: 1rem;
    }

    .title-1 {
        font-size:3.5rem;
        font-weight: 700;
        letter-spacing: -1px;

        span {
            color: var(--rimexx-color-accent);
        }
    }
    .title-2 {
        font-size:3rem;
        font-weight: 700;
        color: var(--rimexx-color-accent);
        letter-spacing: -1px;

        span {
            color: var(--rimexx-color-text);
        }
    }

    .message {
        font-size:1.5rem;
        margin-top:50px;
    }

    .call-to-action {
        display: flex;
        justify-content: center;
        margin-top: 50px;

        button {
            box-shadow: var(--rimexx-shadow-sm);
        }
    }

    .header {
        align-items: center;
        width: 100%;
        height: 116px;
        min-height: 116px;
        padding: 10px 20px;
        background-color: var(--rimexx-color-accent-light-fixed);
    }
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    background: url(/images/backdrop.avif);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    pointer-events: none;
}

@media(max-width: 768px) {
    .hide-sm {
        display: none;
    }
}

@media(max-width: 1024px) {
    .hide-md {
        display: none;
    }
}

.small-caps {
    /*font-variant: unicase;*/
    /*font-variant: all-small-caps;*/
    font-size: 0.75rem;
}

.no-wrap {
    white-space: nowrap;
}

.rimexx-accordion {
    details {
        interpolate-size: allow-keywords;
        overflow: clip;
        margin-top: 0.125em;
        border: 1px solid var(--rimexx-color-control-background);
        background: var(--rimexx-color-background);
        color: var(--rimexx-color-text);
        border-radius: 5px;
    }

    details summary {
        display: block;
        cursor: pointer;
        position: relative;
        padding: 0.5em 0.5em 0.5em 0.7em;
        background: var(--rimexx-color-control-background);
        color: var(--rimexx-color-text);
        border-radius: 5px 5px 0 0;
        font-weight:600;
    }

    details:not([open]) summary:hover,
    details:not([open]) summary:focus {
        background: var(--rimexx-color-control-background);
        color: var(--rimexx-color-accent-7);
    }

    details[open] summary {
        outline: 1px solid var(--rimexx-color-accent);
        background: var(--rimexx-color-accent);
        color: #ffffff;
    }

    details[open]::details-content {
        height: auto;
    }

    details::details-content {
        height: 0;
        overflow-y: clip;
        transition: content-visibility 475ms allow-discrete, height 475ms;
    }

    details main {
        padding: 1em 1em;
    }
}


.code-highlight {
    white-space: pre-wrap; /* This ensures newlines and tabs are preserved */
    word-wrap: break-word; /* Prevents word overflow */
    font-size: 0.85rem;
    font-family: source-code-pro, Menlo, Monaco, Consolas, Courier New, monospace;
    border: 1px solid var(--rimexx-color-border);
    border-radius: var(--rimexx-border-radius-xs);
    overflow: hidden;
}

code {
    padding: 4px;
    background-color: var(--rimexx-color-accent-light);
    /*color: var(--rimexx-color-accent-text);*/
    font-size: 0.8rem;
    font-family: source-code-pro, Menlo, Monaco, Consolas, Courier New, monospace;
    border-radius: var(--rimexx-border-radius-xs);
}

td.title_td {
    background-color: var(--rimexx-color-accent-light);
}