/*
 *    $Revision$
 *    $Id$
 *
 *    Facilitor default.css, styles for Mobile
 */

/* ---------------------------------------------------------------------------
   Global Variables
--------------------------------------------------------------------------- */
:root {
    --fclt-banner-max-height: 25vh;

    --fclt-header-height: 3rem;
    --fclt-footer-height: 3rem;
}

body {
    background-color: var(--fclt-body-color-5);
}

/* ---------------------------------------------------------------------------
   Base Styles
--------------------------------------------------------------------------- */

img {
    max-width: calc(100vw - 2 * var(--fclt-content-margin));
}

a {
    color: unset;
    text-decoration: none;
}

textarea.form-control {
    --fclt-textarea-padding-x: 0.75rem;
    --fclt-textarea-padding-y: 0.375rem;
    --textarea-height-lines: 2;
    padding: var(--fclt-textarea-padding-y) var(--fclt-textarea-padding-x); /* = ook bootstrap default, maar nu vastgelegd */
    line-height: var(--bs-body-line-height);
    min-height: calc( 2 * var(--bs-border-width)
                    + 2 * var(--fclt-textarea-padding-y)
                    + var(--bs-body-line-height) * var(--textarea-height-lines) * 1em);
}

.form-label, /* Bootstrap overrule */
label {
    font-size: var(--fclt-font-size-s);
    font-weight: 600;
    width: 100%;
}

[data-bs-theme=dark] {
    img.kenmerk {
        filter: invert(1); /* Handtekening witte tekst */
    }
}

/* ---------------------------------------------------------------------------
   Layout & Global Elements
--------------------------------------------------------------------------- */
.header,
footer {
    background-color: var(--bs-body-bg);
    box-shadow: 0 0 1px var(--bs-body-color);
}
.image-banner .header {
    background-color: transparent;
    box-shadow: none;
}
.header {
    height: var(--fclt-header-height);
    display: flex;
    justify-content: space-between;
}
.otap-title {
    position: absolute;
    /* kleuren andersom */
    background-color: var(--bs-body-color);
    color: var(--bs-body-bg);
    border: var(--fclt-border);
    border-radius: var(--fclt-border-radius-xl);
    padding: 0.25rem;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 75%);
    white-space: nowrap;
}
header .otap-title {
    bottom: unset;
    top: 0;
    transform: translate(-50%, 120%);
}

footer {
    height: var(--fclt-footer-height);
}

.page {
    --fclt-content-margin: 1rem;

    padding-top: var(--fclt-header-height);
    padding-bottom: var(--fclt-footer-height);
    &:not(.show, :target) {
        display: none;
    }
}

.fclt-content {
    margin: var(--fclt-content-margin);
    overflow-x: clip;
}

.fclt-sticky-nav {
    position: sticky;
    display: flex;
    flex-flow: nowrap;
    overflow-x: auto;
    top: 0;
    background-color: var(--bs-body-bg);
    padding: calc(var(--fclt-header-height) + var(--fclt-content-margin)) var(--fclt-content-margin) 0;
    margin: calc(-1 * var(--fclt-header-height) - var(--fclt-content-margin)) calc(-1 * var(--fclt-content-margin)) 0;
    z-index: 1;
}

.row {
    & > header,
    & > footer {
        padding-top: calc(-1 * var(--bs-gutter-y));
        padding-right: calc(-0.5 * var(--bs-gutter-x));
        padding-left: calc(-0.5 * var(--bs-gutter-x));
    }
    & > :is(.header,
            footer) {
        padding: 0;
        margin: 0;
    }
}

.card-illustration {
    flex-basis: 100%;
    > * {
        object-fit: cover;
        max-height: none;
        max-width: 100%;
    }
}

.fclt-row-horizontal .card-illustration {
    flex-grow: 0;
    flex-shrink: 0;
    overflow: hidden;
    > * {
        border-radius: 0;
    }
}

/* verticale spacing */
.fclt-block ~ .fclt-block,
:is(span, div) ~ label:is(label, .h4) {
    margin-top: 0.5rem;
}
section:not(:first-child),
section + .btn-wrapper,
section + [type=search],
article ~ article,
.flex-checkbox {
    margin-top: var(--fclt-content-margin);
}

.section-title {
    display: inline-block;
}

.more-link {
    float: right;
}

.fclt-cards-wrapper {
    margin-top: var(--fclt-content-margin);
    .card {
        .card-illustration {
            > * {
                object-fit: cover;
                max-height: 250px;
                max-width: 100%;
            }
            > i {
                font-size: 4rem;
                padding-top: var(--bs-card-spacer-y);
            }
        }
    }
}

.fclt-row-horizontal { /* Horizontaal scrollbare rij (met cards) */

    display: flex;
    flex-flow: row nowrap;
    overflow-x: auto;
    margin: 0 calc(-1 * var(--fclt-content-margin));
    padding: 0 var(--fclt-content-margin);
    gap: var(--fclt-content-margin);

    article {
        flex-basis: 85%;
        flex-grow: 0;
        flex-shrink: 0;
        margin-top: 0;
    }
    article:only-child {
        flex-basis: 100%;
    }

    .card {
        --fclt-card-inner-height: 4rem;
        --fclt-card-padding: 0.5rem;

        --fclt-card-height: calc(var(--fclt-card-inner-height) + 2 * var(--fclt-card-padding));

        padding: var(--fclt-card-padding);

        .card-illustration {
            height: var(--fclt-card-height);
            flex-basis: var(--fclt-card-height);
            padding: 0;
            margin: calc(-1 * var(--fclt-card-padding));
            margin-right: 0;
            > * {
                object-fit: cover;
                max-height: 100%;
                max-width: none;
            }
            > i {
                font-size: calc(var(--fclt-card-inner-height) - 2 * var(--fclt-card-padding));
                padding: var(--fclt-card-padding);
            }
        }
        .card-content {
            display: flex;
            padding: 0 calc(.5 * var(--bs-card-border-radius));
            flex-direction: column;
            justify-content: space-evenly;
            line-height: normal;
        }
    }

    scrollbar-width: 0;
    &::-webkit-scrollbar {
        display: none;
    }
    .card-title,
    .card-descr {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -moz-box-orient: vertical;
        overflow: hidden;
        margin: 0;
    }
    .card-title {
        font-weight: 600;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
    .card-descr {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

/* ---------------------------------------------------------------------------
Header Components
--------------------------------------------------------------------------- */

.header {
    font-size: 1rem;

    --fclt-header-icon-dimension: 2.25em;
    --fclt-header-icon-margin: 0.25em;
}
/* Header left/right placeholders (to be removed later) */
.header-left,
.header-right {
    display: flex;
}

.header-title,
.bigtitle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100vw - 2 * var(--fclt-header-icon-dimension) - 2 * var(--fclt-header-icon-margin));
    text-align: center;
}

.bigtitle {
    font-size: 1.5em;
    font-weight: 600;
    color: white;
    text-shadow: 0 0 5px black;
    filter: drop-shadow(0 0 5px black);
}

header.page-banner {
    max-height: var(--fclt-banner-max-height);
    overflow: hidden;
    z-index: -1;
    display: flex;
    justify-content: center;
    align-items: center;

    img {
        aspect-ratio: 16 / 9;
        width: 100%;
        opacity: calc(1 / 2);
        max-width: initial;
    }

    & + .spacer {
        height: calc(0.6 * var(--fclt-banner-max-height) - var(--fclt-header-height));
    }
}

.bigtitle {
    top: 0.5em;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 94px);
    padding: 0 0.5em !important;
    text-align: center;
    text-overflow: ellipsis;
    text-shadow: 0 0 5px black;
    filter: drop-shadow(0 0 5px black);
}

/* Icon Buttons within the Header */
.header .icon-button {
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: var(--fclt-header-icon-dimension);
    width: var(--fclt-header-icon-dimension);
    margin: var(--fclt-header-icon-margin);
}

/* ---------------------------------------------------------------------------
   Card & Typography Components
--------------------------------------------------------------------------- */
.card {
    --bs-card-border-radius: var(--fclt-border-radius-xxl);
    --bs-card-spacer-y: 0.5rem;
    --bs-card-spacer-x: 0.5rem;

    overflow: hidden;

    box-shadow: var(--fclt-card-shadow);
    /* Onderstaande padding is bedoeld om ruimte te geven voor de box-shadow van de .card's */
    margin-top: 2px;
    margin-bottom: 4px;

    height: var(--fclt-card-height);
}

.card-link { /* Directe child van een .card */
    border-radius: inherit;
    height: inherit;
}

.card-title > * + * {
    margin-left: 0.5em;
}

.card-title {
    transition: margin-bottom var(--fclt-animation-duration) ease-in-out;
    &[aria-expanded]::before {
        content: "\f105";
        font-family: "Font Awesome 6 Pro";
        width: 1.5rem;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        transition: transform var(--fclt-animation-duration) ease-in-out;
    }
    &[aria-expanded="false"] {
        margin-bottom: 0;
    }
    &[aria-expanded="true"]::before {
        transform: rotate(90deg);
    }
}
.main h2.card-title {
    text-align: center;
    margin: 1rem 0 1.5rem;
}

/* Footer specific styles */
footer.page-footer {
    display: flex;
    justify-content: space-around;
}

footer.page-footer > * {
    flex: 1;
    text-align: center;
    align-content: center;
    padding: var(--bs-navbar-padding-y) 0;
    margin: calc(-1 * var(--bs-navbar-padding-y)) 0;
}
.fclt-noti-badge {
    position: absolute;
    transform: translate(calc(-200% / 3), -50%);
}

/* ---------------------------------------------------------------------------
   PDA Dropdown & Related Elements
--------------------------------------------------------------------------- */
/* Background overlay for closing dropdown on click */
.pda-button-more.open::after,
.pda-action-menu.top::after {
    content: "";
    z-index: 2;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
}

.pda-action-menu.top::after {
    z-index: -1; /* Andere stacking context */
}

/* Dropdown Menu */
.pda-action-menu {
    --fclt-menu-spacing: 0.5em;

    position: absolute;
    font-size: 1rem;
    right: var(--fclt-menu-spacing);
    pointer-events: none;
    min-width: 200px;
    border-radius: var(--fclt-border-radius-lg);
    padding: 0.8em 0;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    box-shadow: 0 0 var(--fclt-menu-spacing) var(--fclt-menu-spacing) var(--fclt-body-color-10);
    opacity: 0;
}

.pda-action-menu.top {
    position: fixed;
    top: 3.5em;
    text-indent: initial;
}

.pda-action-menu:not(.top) {
    top: 0;
    transform: translateY(calc(-1 * var(--fclt-menu-spacing) - 100%));
}

/* Dropdown Menu (open state) */
.pda-button-more.open > .pda-action-menu {
    z-index: 3;
    opacity: 1;
    pointer-events: all;
}

.pda-action-menu > [class^="pda-button-"] {
    display: block;
    line-height: 2.8em;
    padding: 0 var(--fclt-card-padding);
    text-align: left;
    text-decoration: none;
}

.pda-action-menu > [class^="pda-button-"] > i {
    margin-right: var(--fclt-menu-spacing);
}

.pda-button-label {
    font-weight: 400;
}

/* ---------------------------------------------------------------------------
   Multi-Actions & Bulk States
--------------------------------------------------------------------------- */
.multiactions {
    position: fixed;
    z-index: 1031; /* Bovenop .header-fixed */
    display: flex;
    pointer-events: none;
    justify-content: space-between;
    align-items: center;
    top: 0;
    left: 0;
    font-size: 1.2em;
    height: var(--fclt-header-height);
    width: 100%;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    opacity: 0;
    transition: opacity var(--fclt-animation-duration) ease-in-out;
}

.multiaction-count::after {
    content: attr(data-count);
}

.multiactions .multiaction-wrapper {
    display: flex;
    justify-content: space-between;
    gap: var(--fclt-gap);
}

.multiactions .multiaction-wrapper.left {
    margin-left: var(--fclt-gap-lg);
}

.multiactions .multiaction-wrapper.right {
    margin-right: var(--fclt-gap-lg);
}

.multiactions .multiaction-wrapper > * {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    padding: calc(1em / 8);
}

.multiactions .multiaction[data-title].fclt-active::after {
    content: attr(data-title);
    position: absolute;
    top: 125%;
    right: 0;
    opacity: calc(7 / 8);
    font-size: 1rem;
    border: var(--fclt-border);
    border-radius: 1em;
    padding: 0.5em;
    background-color: var(--bs-body-bg);
    line-height: 1em;
    font-weight: 600;
}

.bulk-active .multiactions {
    pointer-events: all;
    opacity: 1;
}

.bulk-active .ui-input-search {
    visibility: hidden;
}

.bulk-active > ul {
    animation: flash-dark var(--fclt-animation-duration) 1;
}

/* Active states */
.active-page {
    background: var(--fclt-bg-lowlight);
}

.fclt-active {
    position: relative;
}

.fclt-active:not(label)::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    border-radius: inherit;
    background-color: var(--fclt-bg-lowlight);
}

/* ---------------------------------------------------------------------------
   Resultset (list)
--------------------------------------------------------------------------- */
.list-group-item {
    position: relative;
    h6 {
        margin: 0.25rem 0;
    }
}
.list-group-item.list-group-item-first {
    border-top-width: var(--bs-list-group-border-width);
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}
.list-group-item-last {
    border-bottom-right-radius: inherit;
    border-bottom-left-radius: inherit;
}

.list-content {
    display: flex;
    overflow-wrap: anywhere;
}
.list-header {
    display: flex;
    flex-wrap: wrap;
    /* white-space: nowrap; */
    align-items: center;
    gap: 0.5em;
    > h6 {
        margin: 0;
    }
    &:not(:empty) + .subheader:not(:empty) {
        margin-top: 0.5em;
    }
}
.list-aside.badge {
    position: absolute;
    right: 1em;
    bottom: 1em;
}
.list-illustration {
    width: 2.5em;
    max-height: 2.5em;
    img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}
.list-properties {
    font-size: 0.7em;
    font-weight: 600;
    color: grey;
}

/* Grotere velden; filterPanel & bloktijden */
.offcanvas,
#bloktijden,
.big_radio {
    font-size: 1.25rem;
    & label {
        font-size: 1rem;
    }
}

/* reservering_new_by_placetime.asp */
.beschikb0 {
    color: #FFF;
    background-color: #EE7E86;
}
.beschikb10 {
    color: #FFF;
    background-color: #FBC489;
}
.beschikb50 {
    color: #FFF;
    background-color: #CDE479;
}
.beschikb100 {
    color : #FFF;
    background-color: #80D094;
}
.vrijedag {
    color : #333;
    background-color: #eee;
}
.vrijweekend {
    color : #f33;
    background-color: #eee;
}
.werkweekend {
    color : #f33;
    background-color: inherit;
}

/* sensorstates */
.sensorstate span {
    padding-right: 6px;
}
.stateval {
    font-style: italic;
}
/* ---------------------------------------------------------------------------
   Icon-grid
--------------------------------------------------------------------------- */

.icon-grid {
    padding: .75rem;
}

.fclt-more {
    display: none;
    margin-top: 0.5rem;
}

.main { /* Specific styling for the frontpage (menu-)icon-grid */
    .icon-grid > .row {
        max-height: 32vw;
        overflow: hidden;
        border-radius: var(--fclt-border-radius);
        transition: max-height var(--fclt-animation-duration-l) ease-in-out;
    }

    .icon-grid > .row.closed {
        max-height: 0;
    }

    .icon-grid .menu-more {
        border-radius: var(--fclt-border-radius-lg);
    }

    .fclt-more {
        display: block;
    }
}

/* Submenu-item-text */
.icon-grid > .row a.menu-item.has-submenu {
    text-decoration: underline;
}

/* Menu-icon */
.icon-grid > .row a.menu-item .menu-icon {
    font-size: calc(10vw / 3 * 2);
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--bs-card-border-radius);
    background-color: var(--fclt-bg-lowlight);
    overflow: hidden;
    > img {
        object-fit: cover;
        min-width: 100%;
        min-height: 100%;
    }
}

/* Menu-text */
.icon-grid > .row a.menu-item .menu-caption {
    /* Vertical breathing room */
    margin: 0.5em 0;

    /* Typography */
    text-align: center;
    font-size: max(12px, 2vw); /* No less than 12px */
    font-weight: 600;
}

/* ---------------------------------------------------------------------------
   Input & Utility Elements
--------------------------------------------------------------------------- */
input[type="date"]::-webkit-calendar-picker-indicator,  /* Removing the native type=date calendar in webkit */
input[type="time"]::-webkit-calendar-picker-indicator { /* And the clock in the native type=time input */
    display: none;
}

input[type="file"] {
    display: none!important;
    position: absolute;
    top: -100px;
}

.input-icon-wrapper {
    position: relative;
    display: block;
    white-space: nowrap;
}

.input-icon-wrapper > .dateklikker,
.input-icon-wrapper > .timeklikker {
    position: absolute;
    display: flex;
    font-size: 1.2em;
    top: 50%;
    transform: translateY(-50%);
    right: 0.4em;
}

/* Bedoeld voor 1 grote button met optioneel 1 kleine button er rechts naast (bijv. bijlage + trash) */
.btn-wrapper {
    display: flex;
    button,
    [role=button] {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        overflow: hidden;
        &:last-child {
            flex-shrink: 0;
        }
        &:first-child {
            flex-grow: 1;
            flex-shrink: 1;
        }
    }
}

[role="button"] {
    position: relative;
    padding-left: calc(1.25em + 2 * 0.5em); /* Ruimte voor het icoontje (1.25em = .fa-fw)*/
    > i {
        position: absolute;
        top: 50%;
        left: 0.5em;
        transform: translateY(-50%);
        [role="button"] + [role="button"] > & { /* Prullebak icon na bijlage-knop */
            left: 50%;
            transform: translate(-50%, -50%);
        }
    }
}

/* Handtekening */
img.kenmerk {
    display: block;
    max-height: 180px;
    border: var(--fclt-border);
    border-radius: var(--bs-border-radius);
}

/* Geen handtekening -> geen plaatje */
img.kenmerk:is(:not([src]), [src=""]) {
    display: none;
}

/* Wel een handtekening -> onderdruk dan de 'toevoegen' knop */
img.kenmerk[src]:not([src=""]) + .bijlage1.button.signature {
    display: none;
}

.toast {
    position: absolute;
    z-index: 1032; /* bovenop multiactions */
    top: var(--fclt-header-height);
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Elke (niet eerste) btn-wrapper */
.btn-wrapper + .btn-wrapper {
    margin-top: .5em;
}

@keyframes flash-dark {
    0% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(calc(5 / 6));
    }
    100% {
        filter: brightness(1);
    }
}

.limit-lines-1,
.limit-lines-2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}
.limit-lines-1 {
    -webkit-line-clamp: 1;
    line-clamp: 1;
}
.limit-lines-2 {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}
.semibold {
    font-weight: 600;
}
.bold {
    font-weight: bold;
}
.italic {
    font-style: italic;
}

.bulkable > a {
    transition: filter var(--fclt-animation-duration-s) ease-out;
}
.bulk-selected::after {
    content: "\f058";
    font-family: "Font Awesome 6 Pro";
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    font-size: 1.25rem;
    font-weight: 900;
    background-color: var(--fclt-body-bg);
    border-radius: 1rem;
    box-shadow: 0 0 2px 2px var(--fclt-body-bg);
    line-height: normal;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
.flex-center-y {
    display: flex;
    align-items: center;
}

/* ---------------------------------------------------------------------------
   Suggest
--------------------------------------------------------------------------- */
div.suggestklikker {
    /* Reset suggest.css */
    left: unset;
    width: unset;

    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(-50%, -50%);

    /* Binnenste uitlijning */
    display: flex;
    justify-content: center;
    align-items: center;
}

.sgDropdown {
    font-size: var(--fclt-font-size-s);
}
.sgDropdown .dropdown-item:not(.more) {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.sgDropdown .dropdown-item.selected { /* = bootstrap active style */
    color: var(--bs-dropdown-link-active-color);
    text-decoration: none;
    background-color: var(--bs-dropdown-link-active-bg);
}

.sgText /* Suggest Regel Tekst */
{
    flex: 1;
    padding: 0.25em 0;
}

.suggestextratext /* Extra Tekst (fldExtraDesc) */
{
    margin: unset;
}

.sgDesc:not(:empty) /* Suggest Regel Comment (descr) */
{
    color: var(--bs-secondary-color);
    background-color: var(--bs-secondary-bg);
    padding: 0.25em 0.5em;
    white-space: normal;
}
.suggestfoto /* foootooo */
{
    margin: unset;
}
.suggestMore {
    display: block;
}

.mobplan {
    text-align: center;
}

.mobplan img {
    border: var(--fclt-border);
    max-width: 100%;
}

/* ---------------------------------------------------------------------------
   Flags
--------------------------------------------------------------------------- */
.mldflag0 i, .resflag0 i, .opdrflag0 i, .bezflag0 i { color: #b0b0b0 !important }
.mldflag1 i, .resflag1 i, .opdrflag1 i, .bezflag1 i { color: #4d4d4d !important }
.mldflag2 i, .resflag2 i, .opdrflag2 i, .bezflag2 i { color: #f15854 !important }
.mldflag3 i, .resflag3 i, .opdrflag3 i, .bezflag3 i { color: #ffd600 !important }
.mldflag4 i, .resflag4 i, .opdrflag4 i, .bezflag4 i { color: #5da5da !important }
.mldflag5 i, .resflag5 i, .opdrflag5 i, .bezflag5 i { color: #60bd68 !important }
.mldflag6 i, .resflag6 i, .opdrflag6 i, .bezflag6 i { color: #673ab7 !important }
.mldflag7 i, .resflag7 i, .opdrflag7 i, .bezflag7 i { color: #faa43a !important }
.mldflag8 i, .resflag8 i, .opdrflag8 i, .bezflag8 i { color: #b276b2 !important }
.mldflag9 i, .resflag9 i, .opdrflag9 i, .bezflag9 i { color: #b2912f !important }

label > i + span,
.flag > i + :is(span, label) {
    margin-left: 0.5em;
}

/* ---------------------------------------------------------------------------
   Notities
--------------------------------------------------------------------------- */
.reply-wrapper-m {
    position: relative;
    display: flex;
    align-items: center;
    height: 4em;
    width: 100%;
    margin: 0;
    margin-bottom: .5em;
}
.reply-container-m {
    width: calc(100% - 1.1em);
    max-height: 3.2em;
    border-radius: 8px;
    padding: 0.4em;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.03);
    border-left: 0.3em solid var(--notesbackgroundcolor);
}

.reply-header-m,
.reply-body-m {
    position: relative;
    text-overflow: ellipsis;
    overflow: hidden;
    margin: 4px;
    line-height: 1.3em;
}

.reply-header-m {
    font-size: 0.8em;
    font-weight: 600;
}
.reply-body-m {
    display: block;
    font-size: small;
}

/* Onderstaande werkt niet in IE11, maar boeie, het gaat alleen om de ellipsis [...] */
.reply-body-m {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    max-height: 1.3em; /* Dit is de IE11 fallback, hoogte = 1 line-height */
}
img.bb-image,
img.note-image {
    max-height: 800px;
    max-width: 100%;
    border-radius: var(--fclt-border-radius-lg);
}

/* ---------------------------------------------------------------------------
   Berichten / Community (MSG)
--------------------------------------------------------------------------- */
.body-msg * {
    text-shadow: none;
}
.body-msg div[data-role=header] { /* Neem de notitie-kleuren over */
    background-color: var(--notesbackgroundcolor);
    color: white;
}

/* MSG commons */
.card.msg {
    gap: var(--fclt-gap-lg);
    padding: 0 0.5em;
    margin: 0 -0.5em;
    border: 0;
    box-shadow: none;
}
.msg-image,
.ins-image {
    /* max-height: 25vh; Unsupported by webview (App) */
    max-height: 200px;
    overflow: hidden;
    border-radius: var(--fclt-border-radius-lg);
}
.msg-image i,
.ins-image i {
    font-size: 4em;
}
.msg-image img,
.ins-image img {
    max-width: 100%;
}
.primary-action-button { /* Grote ronde knop */
    opacity: 0.85;
    font-size: 1.5rem;
    border-radius: 50%;
    background-color: var(--notesbackgroundcolor);
    box-shadow: 0 0 0    1px white,
                0 0 5px -1px black;
    height: 2.25em;
    width: 2.25em;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}
.primary-action-button i {
    color: #FFFFFF;
}
.link-fixed-bottom-left,
.link-fixed-bottom-right {
    position: fixed;
    z-index: 1;
    bottom: calc(1.5em + 3rem + 1px);
    right: 1.5em;
}
.link-fixed-bottom-left {
    left: 1.5em;
}

/* Edit-scherm */
.body-msg label:not(.selector) { /* Placeholders zijn voldoende */
    display: none;
}
.body-msg article.invisible,
.msg-edit-reply.invisible {
    display: none;
}
.msg-main-body { /* Het bericht-textarea */
    min-height: 200px!important; /* bootstrap overrule */
    max-height: 200px;
}
.msg-post-msg {
    margin: 0.5em 0.5em 0 auto;
}
#msg-form .msg-image,
#msg-form .msg-image img {
    border-radius: 0;
}
.ins-img-upload,
.msg-img-upload { /* msg-image placeholder fa-camera */
    inset: 0;
    color: var(--fclt-border-color);
}
.ins-img-upload,
.msg-img-upload {
    span {
        aspect-ratio: 1 / 1;
        padding: var(--fclt-card-padding);
        margin: 1em 0;
        color: var(--fclt-border-color);
        border: var(--fclt-border);
        border-radius: 50%;
    }
}

/* Show-mode (ook de preview op het edit-scherm) */
.msg-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--fclt-gap);
    max-width: 100%;
    white-space: nowrap;
}
.msg-info { /* (link) wrapper voor profiel & naam */
    display: flex;
    align-items: center;
    gap: var(--fclt-gap);
    min-width: 0;
}
.profile-photo {
    flex-shrink: 0; /* ? */
}
.selfie {
    display: block;
    margin: 0.5rem auto;
    border-radius: 100px;
    aspect-ratio: 1 / 1;
    max-width: 150px;
    max-height: 200px;
    object-fit: cover;
}
.profile-photo {
    display: inline-block;
    height: 35px;
    width: 35px;
    border-radius: 50%;
    background-position: center;
    background-size: cover;
    border: var(--fclt-border-width) solid rgba(255, 255, 255, .33);
}
.msg-author {
    overflow: hidden;
    text-overflow: ellipsis;
}
.msg-details { /* (rechter) wrapper voor categorie & datum */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--fclt-gap-sm);
}
.msg-date {
    font-size: 0.9em;
}
.msg-category {
    line-height: 2em;
    border-radius: 1em;
    padding: 0 0.5em;
    background-color: var(--notesbackgroundcolor);
    color: #FFFFFF;
}
.msg-category[data-active=true] {
    box-shadow: 0 0 4px 2px var(--notesbackgroundcolor);
}
.card.msg .card-descr { /* Volledige bericht */
    -webkit-line-clamp: initial;
    line-clamp: initial;
    margin-top: 0.5em;
}
.card.msg.preview .card-descr { /* Bericht in lijst afgekapt op 8 regels */
    -webkit-line-clamp: 8;
    line-clamp: 8;
}
.msg-actions { /* Bericht-acties container */
    display: flex;
    justify-content: space-between;
}
.msg-actions > * {
    display: flex;
    align-items: center;
    line-height: 2.5em;
    gap: var(--fclt-gap-lg);
    padding: 0 0.5em;
    color: var(--notesbackgroundcolor);
}
.msg-inter-action,
.msg-action { /* Alle interactie- en reactie-knoppen */
    display: inline-block;
    text-align: center;
    min-width: 2.5em;
    border-radius: var(--fclt-border-radius-lg);
}
.msg-edit-reply { /* Edit-knop */
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--fclt-gap);
}

/* MSG Replies */
.msg-post-reply-container { /* Reply textarea container */
    font-size: 1rem;
    margin-right: 0.5em;
    align-self: flex-end;
}
.msg-replies-container { /* Replies container */
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--fclt-gap);
    padding-top: 0.5em;
}
.msg-reply-container { /* Reply container */
    width: 85%;
    align-self: flex-start;
    justify-content: center;
    box-shadow: -0.1em 0.2em 0.2em var(--fclt-border-color);
}
.msg-reply-container.self {
    align-self: flex-end;
    background-color: var(--notesbackgroundcolor);
    color: white;
    box-shadow: 0.1em 0.2em 0.2em var(--fclt-border-color);
}
[data-count]::after { /* Interactie-counter (likes, replies) */
    content: attr(data-count);
}
.reply-header {
    display: flex;
    justify-content: space-between;
}
.reply-author {
    font-weight: 600;
}
.reply-timestamp {
    font-size: 0.8em;
}
.reply-header .reply-timestamp:only-child {
    margin-left: auto;
}

/*////////////////////////////////////////////////////////
//                                                      //
//              Zwaar wegende styling                   //
//                                                      //
////////////////////////////////////////////////////////*/

.required.required  {
    border-left: 3px solid var(--requiredbordercolor) !important;
}
.mayberequired  {
    border-left: 3px dotted var(--requiredbordercolor) !important;
}
.missing.missing,
.suggest.missing.suggest.missing {
    background-color: #ff5050 !important;  /* harde kleur.. ok */
}
.mayberequired.missing,
.suggest.mayberequired.missing {
    background-color: #ffcc80 !important;  /* harde kleur.. ok */
}
.attention.attention {
    color: var(--fclt-color-red)!important;
}