@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Montserrat:wght@200;300;400&display=swap');

@view-transition {
    navigation: auto;
}

:root {
    --grape: #443850;
    --grape_hover: #0F0718;
    --sky: #1A8FE8;
    --sky_hover: #00579A;
    --sand: #EBEBE4;
    --sand_hover: #D0D0C7;
    --sand_dark: #8A8A78;
    --red: #EF426B;
    --red_dark: #8B0928;
    --green: #A1E2E1;
    --green_dark: #1E6A69;
    --white: #fff;
    --debug: deeppink;

    --font-size-xxsmall: 9px;
    --font-size-xsmall: 12px;
    --font-size-small: 14px;
    --font-size-medium: 16px;
    --font-size-large: 18px;
    --font-size-xlarge: 28px;

    font-family: 'Roboto', Calibri, Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: var(--font-size-medium);
    line-height: 1.4;
    color: var(--grape);
    background-color: var(--white);
    text-size-adjust: none;
    -webkit-text-size-adjust: none;
    -webkit-font-smoothing: antialiased;
}

html, body, input, button, textarea, dialog, table, ul, li, p {
    text-size-adjust: none;
    -webkit-text-size-adjust: none;
    margin: 0;
}

body {
    background-color: var(--white);
    overflow-x: hidden;
}

a:not([class]),
a:not([class]):visited {
    color: var(--sky);
    text-decoration: none;
    border-radius: 4px;
}

a:not([class]):hover {
    background-color: var(--sand);
    box-shadow: 0 0 0 4px var(--sand);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: white;
}

::-webkit-scrollbar-thumb {
    background-color: var(--sand_hover);
    border-radius: 4px;
    border: 2px solid white;
}


/* fonts  */
.small { font-size: var(--font-size-small); }
.medium { font-size: var(--font-size-medium); }
.large { font-size: var(--font-size-large); }

.white {color: var(--white);}
.blue {color: var(--sky);}
.red {color: var(--sand);}

.thin { font-weight: 200; }
.bold { font-weight: 600;}
.IconLabel { display: flex; align-items: center; gap: 6px; }
/* fonts END  */



/* Fleet map */
.FleetMapView {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.FMHeader {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--white);
    flex-shrink: 0;
}

.FMTabs {
    display: flex;
    gap: 6px;
    align-items: center;
    flex: 1;
    flex-wrap: wrap;
    justify-content: center;
}

.FMTabSep {
    width: 16px;
}

.FMPage {
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
}

.FMPageTitle {
    font-size: var(--font-size-large);
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.FMGrid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.FMCol {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 150px;
    flex-shrink: 0;
}

.FMColHeader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
}

.FMColSvg {
    height: 40px;
    width: auto;
}

.FMColCode {
    font-size: var(--font-size-small);
}

.FMBoat {
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--sand);
    border-radius: 8px;
    overflow: hidden;
}

a.FMBoat {
    text-decoration: none;
    color: inherit;
}

a.FMBoat:hover {
    background-color: var(--sand_hover);
}

/* Private boat shown to a non-owner: visible for reference, but not bookable. */
.FMBoatLocked {
    opacity: 0.55;
    cursor: default;
}

/* Boat above the viewer's level: looks normal and clickable, but a click explains
   the level requirement instead of opening the booking screen. Shared by the fleet
   map and the 'Alle boten' picker. */
.BoatTileBlocked {
    cursor: pointer;
}
.BoatTileBlocked:hover {
    background-color: var(--sand_hover);
}

.FMBoat .BoatBadge {
    position: static;
    align-self: flex-start;
}

.BoatBadges {
    position: absolute;
    bottom: -6px;
    left: 14px;
    display: flex;
    flex-direction: row;
    gap: 4px;
}

.BoatBadges .BoatBadge {
    position: static;
}

/* Boat tile name + weight, shared by the fleet map and the pickers. */
.BoatTileName {
    line-height: 1.3;
    overflow-wrap: break-word;
    min-width: 0;
}

/* Keep the weight label whole: it wraps to the next line as a unit rather than
   breaking mid-label or being clipped by the tile. */
.BoatTileName .altweight {
    white-space: nowrap;
}


.BoatTileNote {
    font-size: var(--font-size-small);
    color: var(--sand_dark);
}


@media print {
    @page { size: A4 landscape; margin: 10mm; }
    .NoPrint { display: none !important; }
    .FMPage { padding: 0; max-width: 100%; }
    .FMGrid { border-radius: 0; }
}
/* Fleet map END */

/* Boat picker */
.BoatPickerView {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.BoatPickerView .PageHeader {
    position: static;
    flex-wrap: wrap;
}

@media (max-width: 560px) {
    .BoatPickerView .PageHeader {
        flex-direction: column;
        align-items: center;
    }
}

.BoatPickerSection {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    container-type: inline-size;
}


.BoatListItem {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 480px;
    width: 100%;
    container-type: inline-size;
}

.BoatListItem .Button {
    flex: 1;
}

.EmptyMessage {
    color: var(--sand_dark);
    font-size: var(--font-size-small);
    padding: 8px 0;
}

.MyResCarousel,
.BulkResCarousel {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 480px;
}

.MyResTrack,
.BulkResTrack {
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: hidden;
}

.MyResTile {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border-radius: 16px;
    background-color: var(--sky);
    color: var(--white);
    text-decoration: none;
}

.MyResTileInfo {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.MyResTile:hover {
    background-color: var(--sky_hover);
}

/* Existing bulk reservations: same tile layout, kept green, with a cancel
   button on the right. Shown as a carousel at the top of the Bulk tab. */
.BulkResSection {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.BulkResTile,
.BulkResTile:hover {
    background-color: var(--green);
    color: var(--grape);
    cursor: default;
}

.MyResTile.BulkResTile .restime {
    color: var(--green_dark);
    white-space: normal;
    overflow: visible;
}

.BulkResNote {
    font-size: var(--font-size-medium);
    color: var(--green_dark);
}

.BulkResCarousel.single .TilePrev,
.BulkResCarousel.single .TileNext {
    display: none;
}

.MyResTile .restime,
#new_reservation .restime {
    font-size: var(--font-size-medium);
    color: rgb(from var(--white) r g b / 75%);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

button.Button:disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Boat picker END */

/* Tooltip */
.ToolTip {
    position: relative;
    overflow: visible;
}

.ToolTip .ToolTipText {
    box-sizing: border-box;
    display: none;
    background-color: var(--grape);
    font-size: var(--font-size-medium);
    color: var(--white);
    text-align: center;
    white-space: normal;
    border-radius: 6px;
    padding: 4px 8px;
    position: absolute;
    z-index: 10;
    width: 140px;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
}

.ToolTip .ToolTipText::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--grape) transparent transparent transparent;
}

.ToolTip:hover .ToolTipText {
    display: block;
}
/* Tooltip END */

/* Page header and footer  */
.UserLevel {
    font-size: var(--font-size-small);
    color: var(--sand_dark);
    background-color: var(--sand);
    border-radius: 12px;
    padding: 2px 10px;
    white-space: nowrap;
}

.PageHeader.static {
    position: static;
}

.PageHeader {
    position:fixed;
    z-index: 1;
    top:0;
    width:100%;
    box-sizing: border-box;
    background-color: var(--white);
    padding: 16px;
    display: flex;
    gap: 16px 32px;
    align-items: center;
    justify-content: center;
}

/* Page END */


/* Week bar */
#seven_days_ahead_bar {
    position: fixed;
    z-index: 1;
    top: 72px;
    width: 100%;
    background-color: var(--white);
    padding: 16px;
    display: flex;
    gap: 4px;
    justify-content: center;
    box-sizing: border-box;
}

.DayButton {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    align-items: center;
    gap: 2px;
    cursor: pointer;
}

.DayButton .day-name {
    font-size: var(--font-size-xsmall);
}

.DayButton .day-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--font-size-small);
    background-color: var(--sand);
    color: var(--grape);
}

.DayButton .day-number:hover {
    background-color: var(--sand_dark);
}


.DayButton.weekend .day-number {
    background-color: var(--sand_hover);
}

.DayButton.weekend .day-number:hover {
    background-color: var(--sand_dark);
}

.DayButton.selected .day-number {
    background-color: var(--sky);
    color: var(--white);
}

.DayButton.selected .day-number:hover {
    background-color: var(--sky_hover);
}

/* .locked = frozen while viewing a reservation; .disabled = past the booking horizon. */
.DayButton.locked,
.DayButton.disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* Week-paging chevrons, shown only when the club allows booking more than a week ahead. */
.DayBarNav {
    align-self: flex-end;
    height: 44px;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0 4px;
    cursor: pointer;
    line-height: 1;
    font-size: var(--font-size-xlarge);
    color: var(--grape);
}
.DayBarNav:hover {
    color: var(--sky);
}

/* Week bar END */

 
/* Scheduler */
#time_line_rows {
    position: relative;
    margin: 136px 0 72px;
}

.Reservation {
    box-sizing: border-box;
    position: absolute;
    left: 72px;
    width: calc(100vw - 96px);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 16px 0 32px;
}

.Reservation.Existing {
    background-color: var(--sand);
    overflow: visible;  /* the alternatives menu hangs below the tile */
}

/* .ResBody's container-type creates a stacking context, so the menu can't rise
   above later tiles on its own — lift the whole tile while it's open. */
.Reservation.Existing.MenuOpen {
    z-index: 100;
}

.TimeslotPickerView #new_reservation {
    box-sizing: border-box;
    position: absolute;
    left: 72px;
    padding: 8px 16px;
    width: calc(100vw - 96px);
    background-color: rgb(from var(--sky) r g b / 90%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    cursor: grab;
    user-select: none;
    z-index: 10;
    touch-action: none;
    transition: box-shadow 0.15s ease-out, transform 0.15s ease-out;
}

.TimeslotPickerView #new_reservation.lifted {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgb(from var(--grape_hover) r g b / 35%);
}

/* Hidden until JS moves it from <body> into #time_line_rows, so it never
   flashes at the top of the page on first paint. */
.TimeslotPickerView > #new_reservation {
    display: none;
}

.TimeslotPickerView #new_reservation:active {
    cursor: grabbing;
}

.TimeslotPickerView #new_reservation.confirmed {
    background-color: var(--sky);
    cursor: default;
    touch-action: auto;
}

.TimeslotPickerView #new_reservation.confirmed .nrh {
    display: none;
}

#res_toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background-color: var(--green);
    color: var(--grape);
    padding: 16px 24px;
    border-radius: 8px;
    width: max-content;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    text-align: center;
    z-index: 1000;
    animation: toast-in 0.3s ease;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#res_toast.error { background-color: var(--red); color: var(--white); }

#res_toast.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(-32px);
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-32px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.ResBody {
    flex: 1;
    container-type: inline-size;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-height: 0;
}

.ResLeft {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ResRight {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Compound selectors: these must outrank .Button's own padding, which is
   declared later in this file. */
@container (max-width: 280px) {
    .Button.BtnInRes .btn-label {
        display: none;
    }
    .Button.BtnInRes {
        width: 44px;
        padding: 0;
        justify-content: center;
    }
}

/* Longer label than the other in-tile buttons, so it collapses sooner. */
@container (max-width: 400px) {
    .Button.ResAltBtn .btn-label {
        display: none;
    }
    .Button.ResAltBtn {
        width: 44px;
        padding: 0;
        justify-content: center;
    }
}

.TimePoint15Min {
    border-top: 1px dashed var(--sand);
    box-sizing: border-box;
    min-height: 32px;
    max-height: 32px;
    user-select: none;
    position: relative;
}

.TimePoint15Min .Time{
    background-color: var(--white);
    color: var(--sand_dark);
    position: relative;
    top: -13px;
    padding: 0 16px
}

.TimePoint15Min.InPast .Time {
    color: var(--sand);
}

.TimePoint15Min.DarkHours {
    background: linear-gradient(to right, var(--white) 72px, rgb(from var(--sand) r g b / 50%) 72px);
    border-top-color: var(--sand);
}

.HTimeShade {
    position: absolute;
    top: 0;
    background-color: var(--sand);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}


/* button */
.BoatBadge {
    position: absolute;
    bottom: -6px;
    left: 14px;
    font-size: var(--font-size-xxsmall);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 1px 6px;
    white-space: nowrap;
    color: var(--white);
    background-color: var(--sky);
    pointer-events: none;
    border-radius: 10px;
    border: 2px solid var(--white);
}

.BoatBadge.unavailable {
    background-color: var(--red);
}

.BoatBadge.instruction {
    background-color: var(--green);
    color: var(--green_dark);
}

.BoatBadge.private {
    background-color: var(--grape);
}

.Button {
    color: var(--white);
    background-color: var(--sky);
    border-radius: 22px;
    height: 44px;
    padding: 0 16px;
    text-decoration: none;
    text-overflow: ellipsis;
    position: relative;
    overflow: visible;
    border: none;
    white-space: nowrap;
    display: flex;
    flex-direction: row;
    align-items: center;
    /*justify-content: center;*/
    gap: 6px;
    cursor: pointer;
}

.Button.Circle {
    width: 44px;
    padding: 0;
    justify-content: center;
}

/* Icon only — a label would break the circle's width and gap. Drop .Circle to
   let the button grow back into a pill around its label. */
.Button.Circle .btn-label {
    display: none;
}

.Button:hover {
    background-color: var(--sky_hover);
}

.Button.Secondary {
    background-color: var(--sand);
    color: var(--grape);
    text-decoration: none;
}

.Button.Secondary:hover {
    background-color: var(--sand_hover);
}

.Button.Grape {
    background-color: var(--grape);
    color: var(--white);
    text-decoration: none;
}

.Button.Grape:hover {
    background-color: var(--grape_hover);
}

.Button.White {
    background-color: var(--white);
    color: var(--grape);
    text-decoration: none;
}

.Button.White:hover {
    background-color: var(--sand);
}

/* These buttons sit on a sand-coloured tile (reservation tiles, report cards),
   where the default White hover (--sand) blends in, so they darken one step. */
.Button.White.ResAltBtn:hover,
.ReportCard .Button.White:hover {
    background-color: var(--sand_hover);
}


.Button.disabled,
.Button.disabled:hover {
    pointer-events: none;
    cursor: default;
    background-color: rgb(from var(--sand) r g b / 50%);
    color: rgb(from var(--grape) r g b / 35%);
}


/* Main nav */
.AdminNav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 48px;
}

.AdminNavButtons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.AdminNav a {
    text-decoration: none;
}

.AdminNavLogo {
    height: 64px;
}

/* Page content */
.PageTitle {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--font-size-xlarge);
    font-weight: 300;
    color: var(--grape);
}

.PageContent {
    margin: 24px 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    overflow-x: hidden;
}

.SectionTitle {
    margin-bottom: 12px;
}

.BoatTypeList {
    display: flex;
    flex-direction: column;
}

.BoatTypeRow {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 36px;
}

.BoatTypeRow > * {
    font-weight: 400;
}

.BoatTypeRow img {
    flex: 0 0 120px;
    object-fit: contain;
    object-position: left center;
}

.BoatTypeCode {
    flex: 0 0 56px;
}

.BoatTypeName {
    flex: 1;
}

/* Stats page */
.StatsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 16px;
}

.StatsCard {
    /*background: var(--white);*/
    /*border: 1px solid var(--sand);*/
    border-radius: 12px;
    padding: 20px 24px;
}

.StatsCard.full {
    grid-column: 1 / -1;
}

.StatsCardTitle {
    font-weight: 700;
    margin-bottom: 16px;
}

.DropZone {
    border: 2px dashed var(--sand_hover);
    background-color: var(--sand);
    border-radius: 16px;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    min-height: 140px;
    justify-content: center;
    transition: 0.15s;
}

.DropZoneHover {
    border-color: var(--sky);
    background-color: var(--sand_hover);
}

.DropZoneError {
    border-color: var(--grape);
    background-color: var(--grape);
    color: var(--white);
}

.DropZoneHint {
    color: var(--sand_dark);
    text-align: center;
}

.DropZone table {
    border-collapse: collapse;
    font-size: var(--font-size-small);
}

.DropZone th, .DropZone td {
    border: 1px solid var(--sand_hover);
    padding: 4px 12px;
    text-align: left;
    white-space: nowrap;
}

.Feedback {
    padding: 8px 16px;
    border-radius: 8px;
}

.FeedbackSuccess {
    background-color: var(--green);
    color: var(--grape);
}
.FeedbackError {
    background-color: var(--red);
    color: var(--white);
}

.Hidden {
    display: none !important;
}

.KnrbForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
}
.KnrbForm .FilterField {
    width: 100%;
}
.KnrbActions {
    display: flex;
    gap: 8px;
}

.Logo {
    max-width: 180px;
    height: auto;
}

/* Shared KNRB login pop-up */
.KnrbModalOverlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background-color: rgb(from var(--grape) r g b / 45%);
}
.KnrbModalCard {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 380px;
    box-sizing: border-box;
    padding: 24px;
    border-radius: 12px;
    background-color: var(--white);
    box-shadow: 0 12px 40px rgb(from var(--grape) r g b / 30%);
}
.KnrbModalCard .KnrbForm {
    width: 100%;
    max-width: none;
}
.KnrbModalClose {
    position: absolute;
    top: 8px;
    right: 14px;
    font-size: var(--font-size-xlarge);
    line-height: 1;
    color: var(--sand_dark);
    cursor: pointer;
}
.KnrbModalClose:hover {
    color: var(--grape);
}

/* KNRB sync diff (two lists of add / remove candidates). Rows reuse the boat-picker
   tile (.BPBoat) and check (.DataCheck) so the selection UI is identical to selecting
   boats for a bulk reservation. */
.KnrbDiff {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 16px;
}
.KnrbDiffCol {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Whether row 1 is column names or already data — guessed, but the admin decides. */
.MapperHeaderToggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    cursor: pointer;
}

/* The level-change column applies only to a CSV sync (KNRB carries no levels), so it is
   hidden unless the panel is in CSV mode. */
#knrb_update_col {
    display: none;
}
#knrb_diff_panel.ShowUpdates #knrb_update_col {
    display: flex;
}
/* The name-adoption column applies only to a KNRB sync (a CSV never renames), so it is
   hidden unless the panel is in KNRB mode. */
#knrb_rename_col {
    display: none;
}
#knrb_diff_panel.ShowRenames #knrb_rename_col {
    display: flex;
}
/* Removing from a CSV assumes the file is the complete member list. */
.KnrbDiffWarn {
    color: var(--red_dark);
    font-size: var(--font-size-small);
}
.KnrbDiffSelectAll {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-small);
    cursor: pointer;
}
.KnrbDiffList {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 360px;
    overflow-y: auto;
    padding: 4px;
}
.KnrbDiffEmail {
    color: var(--sand_dark);
    font-size: var(--font-size-small);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.SetupIntro {
    text-align: center;
}
.SetupIntro .SectionTitle {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.ImpersonationBar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 8px 16px;
    background-color: var(--sky);
    color: var(--white);
}
.MapperContainer {
    width: 100%;
    padding-bottom: 8px;
}


.MapperScrollWrapper {
    overflow-x: auto;
    width: 100%;
}

.MapperSelectsRow {
    display: flex;
    gap: 8px;
    min-width: max-content;
    padding-bottom: 8px;
}

.MapperSelectsRow .MapperSelect {
    width: 130px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.MapperDataScroll {
    overflow-y: auto;
    max-height: 300px;
    min-width: max-content;
}

.MapperColumns {
    display: flex;
    gap: 8px;
}

.MapperCol {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 130px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.MapperActions {
    position: sticky;
    bottom: 0;
    background: var(--white);
    padding-top: 16px;
    display: flex;
    gap: 12px;
}

.MapperCsvHeader,
.MapperCell {
    color: var(--sand_dark);
    padding: 2px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.MapperCsvHeader { min-height: calc(1em + 4px); }
.MapperCell      { min-height: calc(1em * 1.4 + 4px); }

.MapperSelect.Mapped,
.MapperSelect.Mapped:focus {
    background-color: var(--sky);
    color: var(--white);
    border-color: var(--sky);
}


.MapperCell.Mapped,
.MapperCsvHeader.Mapped {
    background-color: rgb(from var(--sky) r g b / 10%);
    color: var(--grape);
}


/* Dropdown menu */
.DropTrigger {
    position: relative;
}

.DropMenu {
    display: none;
    flex-direction: row;
    border-radius: 8px;
    background-color: var(--white);
    box-shadow: 0 4px 16px 0 var(--sand_dark);
    padding: 4px;
    scroll-margin-bottom: 20px;
}

/* Floating overlay mode (AdminNav and any non-inline use) */
.DropTrigger .DropMenu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    overflow: hidden;
    z-index: 100;
    min-width: 100%;
    flex-direction: column;
}

.DropTrigger.open .DropMenu {
    display: flex;
}

/* The alternatives button sits at the tile's right edge, so its menu hangs from
   the right instead of running off-screen. */
.DropTrigger .ResAltMenu {
    left: auto;
    right: 0;
}

.ResAltMenu .DropMenuScroll {
    gap: 4px;
}


.DropMenuScroll {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 60vh;
}

.DropMenuItem {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    height: 44px;
    min-height: 44px;
    text-decoration: none;
    white-space: nowrap;
    background-color: var(--white);
    color: var(--grape);
    border-radius: 8px;
}

.DropMenuItem:hover {
    background-color: var(--sand);
}

/* Active choice — same tint as a selected boat tile. */
.DropMenuItem.selected {
    background-color: rgb(from var(--sky) r g b / 15%);
}

/* Toolbar */
.Toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-direction: row;
    flex-wrap: wrap;
}

.Toolbar.Center {
    justify-content: center;
    width: 100%;
}

.FilterField {
    font-family: inherit;
    font-size: var(--font-size-medium);
    color: var(--grape);
    background-color: var(--white);
    border: 2px solid var(--sand);
    border-radius: 4px;
    padding: 0 16px;
    height: 44px;
    width: 160px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.FilterField:hover {
    border-color: var(--sand_hover);
}

.LoginForm {
    width: 100%;
}

.FilterField.LoginField {
    width: 100%;
}

.FilterField.CodeInput {
    width: 100%;
    text-align: center;
    letter-spacing: 8px;
    font-size: var(--font-size-xlarge);
}

.ClubField {
    width: fit-content;
    padding: 0 8px;
}

.FilterField:focus {
    border-color: var(--sky);
    box-shadow: inset 0 0 8px 2px rgb(from var(--sky) r g b / 12%);
}

/* Inline data editor */
.DataTable {
    overflow-x: auto;
}

/* While a boat-type picker is open, stop its ancestors clipping the dropdown. Both the table
   (overflow-x:auto) and the page wrapper (overflow-x:hidden) force overflow-y to compute as
   auto, which scroll-clips the menu when the list is filtered to one or two rows; lifting the
   clip only while a picker is open lets the menu hang past the row. body keeps its own
   overflow-x:hidden, so a wide row can't force a horizontal page scrollbar meanwhile. */
.DataTable:has(.BoatTypePicker.open),
.PageContent:has(.BoatTypePicker.open) {
    overflow: visible;
}

.DataRow {
    display: flex;
    align-items: center;
    border-bottom: 1px dotted var(--sand);
    min-width: max-content;
    padding: 2px 0;
}

.DataRowUnavailable .DataCell {
    color: var(--red_dark);
    background-color: rgb(from var(--red) r g b / 10%);
}

.DataRowUnavailable .DcMenu {
    background-color: transparent;
}

.DataRowIsAdmin .DataCell {
    background-color: rgb(from var(--sky) r g b / 10%);
}

.DataRowIsAdmin .DcMenu {
    background-color: transparent;
}

.DataRowIsCoach .DataCell {
    background-color: rgb(from var(--sky) r g b / 10%);
}

.DataRowIsCoach .DcMenu {
    background-color: transparent;
}

.DataRowHeader {
    font-weight: 600;
    color: var(--sand_dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.DataRowHeader .DataCell {
    font-size: var(--font-size-xsmall);
}

/* Clickable Admin/Coach column headers that filter the list by role. */
.RoleFilter {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.RoleFilter:hover {
    text-decoration: underline;
}

.RoleFilter.active {
    color: var(--sky);
    text-decoration: underline;
}

.DataCell {
    padding: 4px;
    margin: 2px;
    display: flex;
    align-items: center;
    min-height: 40px;
    box-sizing: border-box;
    outline: none;
    font-size: var(--font-size-medium);
}

[contenteditable].DataCell {
    border-radius: 4px;
    outline: 2px solid transparent;
    outline-offset: -2px;
    transition: outline-color 0.15s, box-shadow 0.15s;
}

[contenteditable].DataCell:hover,
.DataRowAdd [contenteditable].DataCell {
    outline-color: var(--sand_hover);
}

[contenteditable].DataCell:focus {
    outline-color: var(--sky);
    box-shadow: inset 0 0 8px 2px rgb(from var(--sky) r g b / 12%);
}

.DataCellInactive {
    opacity: 0.25;
    cursor: default;
}

.DataCellSaved {
    background-color: rgb(from var(--sky) r g b / 12%);
    border-radius: 4px;
    transition: background-color 0.8s;
}

select.DataCell,
.MapperSelect {
    display: block;
    font-family: inherit;
    font-size: var(--font-size-medium);
    color: var(--grape);
    background-color: var(--sand);
    border: none;
    border-radius: 4px;
    padding: 6px 8px;
    height: 36px;
    cursor: pointer;
}

select.DataCell:focus,
.MapperSelect:focus {
    outline: none;
    background-color: var(--sand_hover);
}

.BoatTypePicker.DataCell {
    background-color: var(--sand);
    border-radius: 4px;
    cursor: pointer;
    gap: 4px;
    height: 36px;
    padding: 6px 8px;
}

.BoatTypePicker.DataCell:hover {
    background-color: var(--sand_hover);
}

.DataCell.DcNote {
    padding: 2px;
}

.NoteEditable {
    flex: 1;
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 2px 4px;
    border-radius: 4px;
    outline: 2px solid transparent;
    outline-offset: -2px;
    transition: outline-color 0.15s, box-shadow 0.15s;
    font-size: var(--font-size-medium);
    cursor: text;
}

[contenteditable].NoteEditable:hover,
.DataRowAdd .NoteEditable {
    outline-color: var(--sand_hover);
}

[contenteditable].NoteEditable:focus {
    outline-color: var(--sky);
    box-shadow: inset 0 0 8px 2px rgb(from var(--sky) r g b / 12%);
}

.OwnerSelect {
    flex: 1;
    font-family: inherit;
    font-size: var(--font-size-medium);
    color: var(--grape);
    background-color: var(--sand);
    border: none;
    border-radius: 4px;
    padding: 6px 8px;
    height: 36px;
    cursor: pointer;
}

.OwnerSelect:focus {
    outline: none;
    background-color: var(--sand_hover);
}

.DataRow.IsPrivate .NoteEditable { display: none; }
.DataRow:not(.IsPrivate) .OwnerSelect { display: none; }

.ReservePanel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 8px;
    padding: 8px;
    max-width: 1000px;
}

.ReservePanelInfo {
    width: 100%;
    margin: 0;
}

.Panel {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border-radius: 8px;
    background-color: var(--sand);
}

.VerticalSpacer {
    width: 100%;
    height: 16px;
}

.ReserveInput {
    font-family: inherit;
    font-size: var(--font-size-medium);
    color: var(--grape);
    background-color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 6px 8px;
    height: 44px;
    box-sizing: border-box;
    cursor: pointer;
}

.ReserveTime {
    display: flex;
    align-items: center;
    gap: 2px;
}

.ReserveTimeSelect {
    padding-right: 8px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.ReserveNoteInput {
    flex: 1;
    min-width: 120px;
    width: auto;
    border: 2px solid var(--white);
}

.ReserveNoteInput:hover {
    border: 2px solid var(--sand_hover);
    cursor: pointer;
}

.CheckLabel {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Damage report ("Schade" tab) — a single stacked form. */
.ReportForm {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px;
    box-sizing: border-box;
}

.BoatTypePicker.ReportTypePicker {
    width: 100%;
    box-sizing: border-box;
}

.ReportForm .Button {
    align-self: flex-start;
}

.ReportPhotoRow {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ReportPhotoRow .Button {
    align-self: center;
}

.ReportPhotoPreview {
    width: 200px;
    max-width: 100%;
    border-radius: 12px;
}

.ReportBoatPicker {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Wider than the shared .BPSearch (160px) so a longer boat name fits. */
input.ReportBoatSearch {
    width: 100%;
}

.ReportBoatResults {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 260px;
    overflow-y: auto;
}

/* Nothing shows until the user searches (display:flex above would otherwise
   defeat the hidden attribute). */
.ReportBoatResults[hidden] {
    display: none;
}

.ReportBoatOption {
    cursor: pointer;
}

.ReportBoatOption:hover {
    background-color: var(--sand_hover);
}

/* Damage-reports overview (MUI_reports.php) */
.ReportList {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ReportListEmpty {
    color: var(--sand_dark);
}

.ReportCard {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    background-color: var(--sand);
}

/* Handled reports use the same layout as open ones, only dimmed. */
.ReportCard.resolved {
    background-color: rgb(from var(--sand) r g b / 40%);
}

.ReportCardMain {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.ReportCardTitle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ReportBoat {
    font-weight: 600;
    color: var(--grape);
}

/* Base .BoatBadge is absolutely positioned; keep it inline beside the name. */
.ReportCardTitle .BoatBadge {
    position: static;
}

.ReportCardMeta {
    color: var(--sand_dark);
    font-size: var(--font-size-small);
}

.ReportCardNote {
    color: var(--grape);
}

.ReportCardPhotoLink {
    display: inline-block;
    margin-top: 8px;
}

.ReportCardPhoto {
    display: block;
    width: 160px;
    max-width: 100%;
    border-radius: 8px;
    cursor: pointer;
}

.ReportCardActions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 0 auto;
}

@media (max-width: 560px) {
    .ReportCard {
        flex-direction: column;
        gap: 12px;
    }
    .ReportCardActions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.InviteMessageArea {
    width: 100%;
    min-height: 80px;
    font-family: inherit;
    font-size: var(--font-size-medium);
    color: var(--grape);
    background-color: var(--white);
    border: 2px solid var(--sand);
    border-radius: 4px;
    padding: 8px 12px;
    box-sizing: border-box;
    resize: vertical;
    outline: none;
}

.InviteMessageArea:focus {
    border-color: var(--sky);
    box-shadow: inset 0 0 8px 2px rgb(from var(--sky) r g b / 12%);
}

.ReserveDateWrapper {
    position: relative;
}

.ReserveDateHidden {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    pointer-events: none;
}

.ReserveDateBtn {
    font-family: inherit;
    font-size: var(--font-size-medium);
    color: var(--grape);
    background-color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 0 12px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.ReserveDateBtn:hover {
    background-color: var(--sand_hover);
}

/* Reservation tabs (Mijn reserveringen / Bulk reserveringen) */
.ResTabs {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}

.ResTab {
    font-weight: 700;
    color: var(--grape);
    opacity: 0.45;
    cursor: pointer;
    padding: 2px 0 4px;
    border-bottom: 2px solid transparent;
    user-select: none;
}

.ResTab.active {
    opacity: 1;
    border-bottom-color: var(--sky);
}

.ResTabCount {
    font-weight: 400;
    color: var(--sky);
}

.ResTabPanel {
    display: none;
    width: 100%;
}

.ResTabPanel.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* The Bulk tab replaces the whole personal-reservation flow, so hide the
   favorites + "Reserveer andere boot" sections while it is active. */
.BulkTabActive .MineTabContent {
    display: none;
}

/* Unified boat picker (resources/boat_picker.php) — fleet-map style */
.BoatPicker {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.BPSearch {
    width: 160px;
}

.BPLevels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

/* While searching, keep the search field but hide the level dropdown / extra. */
.BoatPicker.searching .BPLevels > :not(.BPSearch) {
    display: none;
}

.DropArrowUp {
    display: none;
}

.open > .DropArrowDown {
    display: none;
}

.open > .DropArrowUp {
    display: inline;
}

.DropMenuDivider {
    height: 1px;
    background-color: var(--sand);
    margin: 4px 6px;
}

.BPGrids {
    width: 100%;
}

.BPGrid {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.BPGrid.active,
.BoatPicker.searching .BPGrid {
    display: flex;
}

.BPCol {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 150px;
    flex-shrink: 0;
}

.BPColHeader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px 2px;
}

.BPColSvg {
    height: 32px;
    width: auto;
}

.BPColCode {
    font-size: var(--font-size-small);
}

.BPBoat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background-color: var(--sand);
    border-radius: 8px;
    text-decoration: none;
    color: var(--grape);
}

a.BPBoat,
label.BPBoat {
    cursor: pointer;
}

a.BPBoat:hover,
label.BPBoat:hover {
    background-color: var(--sand_hover);
}

.BPBoat.selected {
    background-color: rgb(from var(--sky) r g b / 15%);
}

/* Keep the badge inline within the tile (base .BoatBadge is absolute), on its
   own row below the name/weight, sized to its content. */
.BPBoat .BoatBadge {
    position: static;
    align-self: flex-start;
}

.BPBoatInfo {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.BPBoat[hidden],
.BPCol[hidden] {
    display: none;
}

/* Weight range trailing a boat name — picker, fleet map and alternatives menu. */
.altweight {
    color: var(--sand_dark);
}

.DataCheck {
    appearance: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: url('../img/icons/icon_check.svg') center / contain no-repeat;
    opacity: 0.10;
}

.DataCheck:checked {
    background-image: url('../img/icons/icon_check_hot.svg');
    opacity: 1;
}

.RowMenu {
    position: fixed;
    border-radius: 8px;
    overflow: hidden;
    z-index: 200;
    background: var(--white);
    box-shadow: 0 4px 16px 0 var(--sand_dark);
}

.DcName   { width: 220px; }
.DcType   { width: 80px; }
.DcLevel  { width: 56px; justify-content: center; }
.DcWeight { width: 65px; }
.DcPriv   { width: 55px; justify-content: center; }
.DcEmail  { width: 260px;}

.DataRowGroupHeader {
    border-bottom: none;
    padding: 4px 0 0;
}
.DcGroupLabel  {
    font-size: var(--font-size-xsmall);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--sand_dark);
    text-align: center;
    border-bottom: 1px solid var(--sand_hover);
    padding-bottom: 2px;
}
.DcNote   { width: 300px; }
.DcMenu   { width: 56px; padding: 0 6px; justify-content: center; }

/* Manager END */

/* Login */
.CenterWrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.CenterColumn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 460px;
    padding: 0 24px;
}

.BrandLogo {
    Width: 240px;
}

.AboutWrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 48px 24px 64px;
    max-width: 800px;
    margin: 0 auto;
}

.AboutLogo {
    width: 200px;
}

/* Inline how-to / explainer screenshots. */
.HowToImage {
    max-width: 100%;
    zoom: 50%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px 0 var(--sand);
    margin: 24px auto 32px auto;
    display: inline-block;
}

.AboutBody {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--grape);
}

/* FAQ page (faq.php). Fill the wrap's full width so collapsed items are already
   as wide as an opened one — otherwise the content-sized column jumps wider on
   open. Scoped to the FAQ so it doesn't affect other About pages. */
.AboutBody:has(.FaqList) {
    align-self: stretch;
}

.FaqList {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    /* interpolate-size is inherited; setting it here lets the item content
       animate to/from auto height without affecting the rest of the site. */
    interpolate-size: allow-keywords;
}

.FaqList details {
    padding: 12px 16px;
}

/* Animate the open/close of each FAQ item. ::details-content wraps all the
   content of a <details> so no per-item markup changes are needed. */
.FaqList details::details-content {
    height: 0;
    overflow: hidden;
    transition: height 0.15s ease, content-visibility 0.15s allow-discrete;
}

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

.FaqList summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--grape);
}

.FaqList details[open] summary {
    margin-bottom: 8px;
}

.FaqList p {
    margin: 0;
}

/* Bullet lists in the FAQ and the About/intro body share the same rhythm. */
.FaqList ul,
.AboutBody ul {
    margin: 8px 0 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Breathing room when a sentence follows a bullet list. */
.FaqList ul + p {
    margin-top: 12px;
}

/* Cross-fading boat hero animation (about.php, index.php). */
#boat_anim_wrap {
    position: relative;
    height: 64px;
    width: 100%;
}

#boat_anim_wrap img {
    position: absolute;
    height: 64px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.6s ease;
}

#boat_b {
    opacity: 0;
}

/* Paired phone hero shots (introduction.php). */
.HeroShots {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 48px;
    width: 100%;
    margin: 8px 0 16px;
}

.HeroShots img {
    width: 50%;
    max-width: 220px;
    height: auto;
    cursor: zoom-in;
}

/* Full-page overlay when a hero shot is clicked (introduction.php). */
.HeroOverlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--white);
    justify-content: center;
    align-items: center;
    padding: 24px;
    cursor: zoom-out;
}

.HeroOverlay.Open {
    display: flex;
}

.HeroOverlay img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
}

/* Demo video grid (about.php). */
.DemoGrid {
    display: flex;
    gap: 12px;
    margin: 8px;
}

.DemoItem {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: var(--grape);
}

.DemoTitle {
    font-size: var(--font-size-small);
    font-weight: 700;
    margin: 8px;
}

.DemoThumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    background: var(--sand);
}

.DemoThumb.Wide {
    object-fit: contain;
}

/* Full-height sand background for the video demo pages (video/*.php). */
.VideoPage {
    background-color: var(--sand);
    min-height: 100dvh;
}

.InfoMessage {
    color: var(--sand_dark);
    font-size: var(--font-size-small);
    text-align: center;
    margin: 0;
}

.InfoMessage a {
    color: var(--grape);
}

.InfoMessageError {
    color: var(--red_dark);
}

.Button.Sky {
    background-color: var(--sky);
}

.Button.Sky:hover {
    background-color: var(--sky_hover);
}

.PinFields {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.Toolbar .PinFields {
    width: auto;
}

.PinLabel {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.PinInput {
    width: calc(4ch + 36px);
}

.PinError {
    color: var(--red_dark);
}
/* Login END */

/* Home page layout */
.HomeView {
    display: flex;
    flex-direction: column;
    height: 100vh;
    gap: 8px;
    overflow: hidden;
}

.HomeView .PageHeader,
.HomeView #home_top_bar {
    position: static;
    flex-shrink: 0;
    width: auto;
}

#home_top_bar {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 16px 32px;
    padding: 16px 16px 8px 16px;
    background-color: var(--white);
}

.HomeView #seven_days_ahead_bar {
    position: static;
    width: auto;
    padding: 0;
    background: none;
    justify-content: flex-start;
}

@media (max-width: 560px) {
    #home_top_bar {
        flex-direction: column;
        align-items: center;
    }
    .HomeView #seven_days_ahead_bar {
        justify-content: center;
    }
}

.HomeView #timeline_wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 0 16px 16px;
    position: relative;
}

#rowgo_watermark {
    position: fixed;
    bottom: 0px;
    left: 8px;
    z-index: 100;
    opacity: 0.4;
    transition: opacity 0.2s;
}

#rowgo_watermark:hover {
    opacity: 1;
    background-color: transparent;
    box-shadow: none;
}

/* Home timeline */

#timeline_header {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--white);
    overflow: visible;
}

#new_reservation_row {
    position: sticky;
    top: 60px; /* HEADER_H */
    z-index: 5;
    background-color: var(--white);
}

#timeline_bulk {
    position: sticky;
    top: 60px; /* HEADER_H */
    z-index: 6;
}

#timeline_inner {
    position: relative;
}

.HTimeCol {
    position: absolute;
    bottom: 0;
    border-left: 1px dashed var(--sand);
    box-sizing: border-box;
    pointer-events: none;
}

.HTimeLabel {
    position: absolute;
    bottom: 4px;
    font-size: var(--font-size-medium);
    color: var(--sand_dark);
    padding: 4px 6px;
    white-space: nowrap;
    transform: translateX(-50%);
}

.HTimeLabel.InPast {
    color: var(--sand);
}

#now_line {
    position: absolute;
    width: 2px;
    background-color: var(--sky);
    pointer-events: none;
}

.sun_line {
    position: absolute;
    top: 2px;
    z-index: 1;
}

.sun_line .ToolTipText {
    top: calc(100% + 8px);
    bottom: auto;
    left: 0;
}

.sun_line .ToolTipText::after {
    top: auto;
    bottom: 100%;
    border-color: transparent transparent var(--grape) transparent;
}

.sun_line img {
    width: 24px;
    height: 24px;
    display: block;
    transform: translateX(-50%);
}

.HReservation {
    position: absolute;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    padding: 6px 10px;
    overflow: visible;
    box-sizing: border-box;
}

.HBulkReservation {
    position: absolute;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    padding: 6px 10px;
    box-sizing: border-box;
    background-color: var(--green);
    cursor: pointer;
    z-index: 2;
}

.HBulkReservation.expanded {
    z-index: 20;
}

.HBulkReservation .boatname,
.HBulkReservation .user {
    position: relative;
}

.HBulkExpandIcon {
    position: absolute;
    top: 6px;
    left: 8px;
}

.HBulkReservation .boatname,
.HBulkReservation .user,
.HBulkBoatList {
    padding-left: 28px;
}

.HBulkReservation .user {
    color: var(--green_dark);
}

.HBulkBoatList {
    display: none;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--green_dark);
}

.HBulkReservation.expanded .HBulkBoatList {
    display: block;
}

.HBulkBoatItem {
    padding: 2px 0;
    white-space: nowrap;
}

.HReservation .BoatBadge {
    bottom: -10px;
    left: 4px;
}

.HReservation::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background-color: var(--sand);
    z-index: 0;
}

.boatname,
.user {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.HReservation .boatname,
.HReservation .user {
    position: relative;
    z-index: 2;
}

.HReservation .user {
    color: rgb(from var(--grape) r g b / 75%);
}

.restime {
    font-size: var(--font-size-small);
    color: var(--grape);
    white-space: nowrap;
}

.HResPast {
    opacity: 0.55;
}

.HResOwn::before {
    background-color: var(--sky);
}

.HResOwn .boatname {
    color: white;
}

.HResOwn .user {
    color: rgb(from var(--white) r g b / 75%);
}

.HResOwn:hover::before {
    background-color: var(--sky_hover);
}

/* A past own reservation is shown but not editable, so it gets no clickable affordance. */
.HResOwn.HResPast:hover::before {
    background-color: var(--sky);
}

a.HResOwn {
    text-decoration: none;
    cursor: pointer;
}

#new_reservation {
    position: absolute;
    border-radius: 8px;
    background-color: rgb(from var(--sky) r g b / 90%);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 8px 28px;
    cursor: grab;
    user-select: none;
    z-index: 2;
    container-type: inline-size;
}

#new_reservation:active {
    cursor: grabbing;
}

#boatname,
#new_res_date,
#new_res_time {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#new_res_time {
    pointer-events: none;
    white-space: nowrap;
}

.nrh {
    position: absolute;
    background-color: var(--sky);
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    z-index: 1;
}

.nrh:hover {
    background-color: var(--sky_hover);
}

/* Vertical handles (timeslot picker) */
.nrh_top, .nrh_bottom {
    left: 0;
    right: 0;
    height: 20px;
    background-image: url('../img/icons/icon_move_ver_light.svg');
    cursor: ns-resize;
    touch-action: none;
}
.nrh_top    { top: 0;    border-radius: 16px 16px 0 0; }
.nrh_bottom { bottom: 0; border-radius: 0 0 16px 16px; }
/* The bar stays 20px so it doesn't swallow a short reservation; the hit area
   reaches 44px by extending away from the tile. touch-action must be repeated here:
   it isn't inherited onto the pseudo-element, so without it the extended zone stays
   touch-action:auto and the browser can steal the gesture as a scroll (the drag then
   needs several tries on mobile). */
.nrh_top::before    { content: ''; position: absolute; top: -24px; left: 0; right: 0; bottom: 0; touch-action: none; }
.nrh_bottom::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: -24px; touch-action: none; }
/* Home timeline END */


/* Timeslot picker */
.TimeslotPickerView {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.TimeslotPickerView .PageHeader,
.TimeslotPickerView #seven_days_ahead_bar {
    position: static;
    flex-shrink: 0;
    width: auto;
}

.TimeslotPickerView .PageHeader {
    flex-wrap: wrap;
}

.TimeslotPickerView #time_line_rows {
    flex: 1;
    overflow-y: auto;
    margin: 0;
}
.SunMarker {
    position: absolute;
    left: calc(50vw + 24px);
    top: 0;
    transform: translate(-50%, -50%);
}

/* On mobile the timeslot picker is tight, so shrink the day circles to 40px. */
@media (max-width: 560px) {
    .TimeslotPickerView .DayButton .day-number {
        width: 40px;
        height: 40px;
    }
    .TimeslotPickerView .DayBarNav {
        height: 40px;
    }
}
/* Timeslot picker END */


/* Kiosk */
#kiosk_name_step {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

#kiosk_pin_step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.KioskNameInput {
    width: 100%;
}

.KioskNameList {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 480px;
    height: 60vh;
    overflow-y: auto;
}

.KioskNameBtn {
    display: none;
    background: var(--sand);
    border: none;
    border-radius: 22px;
    padding: 12px 24px;
    font-size: var(--font-size-medium);
    font-weight: 500;
    color: var(--grape);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.KioskNameBtn:hover,
.KioskNameBtn:active {
    background: var(--sand_hover);
}

/* Group users (MUI_users.php): row marker, tag, and the "Leden beheren" panel. */
.GroupNameField {
    width: 320px;
    max-width: 100%;
}

.DataRowGroup {
    background-color: rgb(from var(--sky) r g b / 6%);
}

.DcGroupTag {
    color: var(--grape);
    font-weight: 700;
    cursor: pointer;
}

.DcGroupTag:hover {
    text-decoration: underline;
}

.GroupMembersPanel {
    padding: 8px 0 16px;
}

.GmBox {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    background: var(--sand);
    border-radius: 12px;
    padding: 16px;
}

.GmTitle {
    font-weight: 600;
    color: var(--grape);
}

.GmMembers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.GmEmpty {
    font-size: var(--font-size-small);
    color: var(--grape);
    opacity: 0.6;
}

.GmChip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    color: var(--grape);
    border-radius: 22px;
    padding: 6px 8px 6px 16px;
}

.GmChipRemove {
    display: inline-flex;
    align-items: center;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.GmSearch {
    width: 100%;
}

.GmCandidates {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
}

.GmCandidate {
    display: block;
    width: 100%;
    font-size: var(--font-size-medium);
}

.KioskPinDots {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.KioskPinDot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--grape);
    background: transparent;
    transition: background 0.1s;
}

.KioskPinDot.filled {
    background: var(--grape);
}


.KioskPinGrid {
    display: grid;
    grid-template-columns: repeat(3, 44px);
    gap: 8px;
    justify-content: center;
}

.KioskPinBtn {
    width: 44px;
    height: 44px;
    font-size: var(--font-size-medium);
    font-weight: 600;
    background: var(--sand);
    border: none;
    border-radius: 22px;
    color: var(--grape);
    cursor: pointer;
    transition: background 0.1s;
    user-select: none;
}

.KioskPinBtn:hover,
.KioskPinBtn:active {
    background: var(--sand_hover);
}

.KioskPinBtnEmpty {
    visibility: hidden;
    pointer-events: none;
}

@keyframes KioskShake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-10px); }
    40%      { transform: translateX(10px); }
    60%      { transform: translateX(-8px); }
    80%      { transform: translateX(8px); }
}

.KioskPinShake {
    animation: KioskShake 0.4s ease;
}
/* Kiosk END */

/* Video demo pages */
.VideoWrap {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    padding: 24px 16px;
    text-align: center;
}
.BackLink {
    position: absolute;
    left: 16px;
    top: 24px;
}
.PhoneFrame {
    position: relative;
    width: min(460px, 100%, calc((100dvh - 140px) * 1347 / 2753));
    margin: 0 auto;
    aspect-ratio: 1347 / 2753;
}
.PhoneScreen {
    position: absolute;
    top: 2%;
    left: 5%;
    width: 90%;
    height: 96%;
    object-fit: cover;
    background: var(--grape);
    cursor: pointer;
}
.PlayBtn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.PhoneFrame.is-paused .PlayBtn,
.DesktopFrame.is-paused .PlayBtn {
    opacity: 1;
}
.DesktopVideo {
    position: relative;
    width: min(100% - 32px, 1359px, calc((100dvh - 260px) * 2718 / 1882));
    margin: 0 auto 24px;
    container-type: inline-size;
}
.DesktopVideo.Manager {
    width: min(100% - 32px, 1566px, calc((100dvh - 260px) * 3132 / 2168));
}
.DesktopVideo::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
    inset: -1px;
    border: 2px solid var(--sand);
    border-radius: calc(1.6cqw + 1px);
    box-shadow: 0px 8px 24px 0px rgb(from var(--grape) r g b / 40%);
    pointer-events: none;
}
.DesktopFrame {
    position: relative;
    width: 100%;
    border-radius: 1.6cqw;
    overflow: hidden;
    line-height: 0;
}
.DesktopScreen {
    display: block;
    width: 100%;
    height: auto;
    background: var(--grape);
    cursor: pointer;
}
.DesktopFrame .PlayBtn {
    width: 10%;
}
.PlayBtn svg {
    display: block;
    width: 100%;
    height: auto;
}
.PhoneFrame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
/* Video demo END */

