﻿.appbar-white {
    background-color: white !important;
    color: black !important;
}

.appbar-dark {
    background-color: rgba(50,51,61,1) !important;
    color: white !important;
}

.navmenu-paper {
    height: 100%;
    background-color: inherit;
    display: flex;
    flex-direction: column;
}

.main-content {
    padding: 10px 16px;
}

.catalog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.training-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.filterInputSmall {
    margin-top: 0 !important;
}

.selectInputSmall {
    margin-top: 0 !important;
}

.scrollbar-thin::-webkit-scrollbar {
    height: 6px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.centered-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.centered-container > * {
    width: 100%;
}

.heading-with-line {
    font-weight: 600;
    display: inline-block;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--mud-palette-primary);
}

.training-card.waitinglist {
    opacity: 0.5;
    position: relative;
}

.waitinglist-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.clamp-5 {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.clamp-10 {
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.center-loading {
    display: flex;
    justify-content: center;
    align-items: start;
    height: 100vh;
    margin-top: 30px;
}

.fixed-dialog-content {
    min-height: 600px;
    max-height: 600px;
    overflow-y: auto;
}

.dashboard-container {
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

.dashboard-grid {
    display: grid;
    grid-template-areas:
        "announcements  kennissessies"
        "learnteam      trainingen"
        "recent         .";
    grid-template-columns: 1fr 320px;
    grid-template-rows: repeat(3, 1fr);
    height: calc(100vh - 160px);
    min-height: calc(3 * 320px + 2 * 24px);
    gap: 24px;
    width: 100%;
}

.grid-announcements { grid-area: announcements; }
.grid-kennissessies { grid-area: kennissessies; }
.grid-learnteam     { grid-area: learnteam; }
.grid-trainingen    { grid-area: trainingen; }
.grid-recent {
    grid-area: recent;
    justify-self: start;
    width: 320px;
}

.dashboard-grid > div {
    display: flex;
    min-width: 0;
    min-height: 0;
}

.dashboard-grid > div > * {
    width: 100%;
    height: 100%;
}

/* Caps card image height so title/description are never clipped by the widget boundary */
.widget-card-image {
    max-height: 115px;
}

@media (max-width: 768px) {
    .widget-card-image {
        max-height: 115px;
    }
}

.announcements-desktop {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.announcements-mobile {
    display: none;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-areas:
            "announcements"
            "kennissessies"
            "learnteam"
            "trainingen"
            "recent";
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 320px);
        height: auto;
    }

    .grid-recent {
        width: 100%;
        justify-self: stretch;
    }

    .announcements-desktop {
        display: none;
    }

    .announcements-mobile {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }
}

.image-crop-container {
    width: 100%;
    max-height: 60vh;
    overflow: hidden;
}

.image-crop-wrapper {
    width: 100%;
    max-height: 60vh;
}

.image-crop-wrapper img {
    display: block;
    max-width: 100%;
    max-height: 60vh;
}