/* /Components/Dashboard/DashboardBoard.razor.rz.scp.css */
/* The board is a twelve-column grid: a card's width is a whole number of columns, so a drag
   always lands on a layout that survives any screen size. */
.hostish-board[b-tcg1cruopx] {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.hostish-board-card[b-tcg1cruopx] {
    position: relative;
    min-width: 0;
}

/* The grip starts a reorder gesture. It stays faintly visible so the affordance is discoverable
   without hovering, and it owns the pointer so a click on the card body is left alone. */
.hostish-board-grab[b-tcg1cruopx] {
    position: absolute;
    inset: auto auto 0 0;
    width: 22px;
    height: 22px;
    opacity: .35;
    cursor: grab;
    touch-action: none;
    transition: opacity .15s ease;
    background-image:
        radial-gradient(circle, currentColor 1px, transparent 1.5px),
        radial-gradient(circle, currentColor 1px, transparent 1.5px),
        radial-gradient(circle, currentColor 1px, transparent 1.5px);
    background-size: 6px 6px;
    background-position: 3px 15px, 9px 15px, 15px 15px;
    background-repeat: no-repeat;
    color: var(--mud-palette-text-secondary);
}

.hostish-board-card:hover .hostish-board-grab[b-tcg1cruopx],
.hostish-board-card:focus-within .hostish-board-grab[b-tcg1cruopx],
.hostish-board-card.is-dragging .hostish-board-grab[b-tcg1cruopx] {
    opacity: 1;
}

.hostish-board-card.is-dragging .hostish-board-grab[b-tcg1cruopx] {
    cursor: grabbing;
}

.hostish-board-resize[b-tcg1cruopx] {
    position: absolute;
    inset: auto 0 0 auto;
    width: 20px;
    height: 20px;
    opacity: .3;
    cursor: nwse-resize;
    touch-action: none;
    transition: opacity .15s ease;
    border-inline-end: 2px solid var(--mud-palette-text-secondary);
    border-block-end: 2px solid var(--mud-palette-text-secondary);
    border-end-end-radius: 3px;
}

.hostish-board-card:hover .hostish-board-resize[b-tcg1cruopx],
.hostish-board-card:focus-within .hostish-board-resize[b-tcg1cruopx],
.hostish-board-card.is-resizing .hostish-board-resize[b-tcg1cruopx] {
    opacity: .9;
}

/* The card being dragged turns into a placeholder for the slot it will take. */
.hostish-board-card.is-dragging[b-tcg1cruopx] {
    opacity: .4;
    z-index: 1;
}

.hostish-board-card.is-dragging[b-tcg1cruopx],
.hostish-board-card.is-resizing[b-tcg1cruopx] {
    user-select: none;
}

/* Narrow screens keep every card readable: one card per row, whatever width was saved. */
@media (max-width: 960px) {
    .hostish-board-card[b-tcg1cruopx] {
        grid-column: span 12 !important;
    }
}
/* /Components/Pages/Bookings/BookingCalendar.razor.rz.scp.css */
/* Hostish Booking Calendar — isolated styles, loaded through Pms.Web.styles.css.
   Keep wide timelines inside the calendar viewport (never scroll the whole page). */
.hostish-calendar-page[b-heuo3jz7fh] {
    inline-size: 100%;
    max-inline-size: 100%;
    min-inline-size: 0;
    overflow-x: clip;
}
.hostish-calendar-page[b-heuo3jz7fh]  .mud-container {
    min-inline-size: 0;
    max-inline-size: 100%;
}
.hostish-calendar-page[b-heuo3jz7fh]  .hostish-calendar-shell,
.hostish-calendar-page[b-heuo3jz7fh]  .hostish-calendar-month-full {
    box-sizing: border-box;
    inline-size: 100%;
    min-inline-size: 0;
    max-inline-size: 100%;
}
.hostish-calendar-scroll[b-heuo3jz7fh] {
    display: block;
    box-sizing: border-box;
    inline-size: 100%;
    max-inline-size: calc(100dvw - 48px);
    min-inline-size: 0;
    max-block-size: min(68vh, 730px);
    overflow-x:auto;
    overflow-y:auto;
    overscroll-behavior-inline: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    border-radius: 5px;
}
.hostish-calendar-scroll:focus-visible[b-heuo3jz7fh] {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: -2px;
}
.hostish-calendar-scroll-hint[b-heuo3jz7fh] {
    padding: 5px 12px 8px;
    color: var(--mud-palette-text-secondary);
    font-size: .72rem;
}
.hostish-calendar-table[b-heuo3jz7fh] {
    table-layout: fixed;
    border-spacing: 0;
    border-collapse: separate;
    color: var(--mud-palette-text-primary);
    background: var(--mud-palette-surface);
}
.hostish-calendar-table th[b-heuo3jz7fh],
.hostish-calendar-table td[b-heuo3jz7fh] {
    height: 48px;
    padding: 0;
    box-sizing: border-box;
    border-inline-end: 1px solid var(--mud-palette-lines-default);
    border-block-end: 1px solid var(--mud-palette-lines-default);
    text-align: center;
}
.hostish-calendar-table thead th[b-heuo3jz7fh] {
    position: sticky;
    top: 0;
    z-index: 4;
    background: var(--mud-palette-surface);
}
.hostish-calendar-table .unit-col[b-heuo3jz7fh] {
    position: sticky;
    left: 0;
    z-index: 3;
    inline-size: 176px;
    min-inline-size: 176px;
    max-inline-size: 176px;
    padding: 6px 12px;
    text-align: left;
    background: var(--mud-palette-surface);
    box-shadow: 1px 0 0 var(--mud-palette-lines-default);
}
.hostish-calendar-table thead .unit-col[b-heuo3jz7fh] { z-index: 5; }
.hostish-calendar-table .day-col[b-heuo3jz7fh] {
    inline-size: 72px;
    min-inline-size: 72px;
    max-inline-size: 72px;
    color: var(--mud-palette-text-secondary);
    font-size: .73rem;
    font-weight: 400;
}
.hostish-calendar-table .day-col span[b-heuo3jz7fh],
.hostish-calendar-table .day-col strong[b-heuo3jz7fh] { display: block; }
.hostish-calendar-table .day-col strong[b-heuo3jz7fh] {
    color: var(--mud-palette-text-primary);
    font-size: .76rem;
}
.hostish-calendar-table .day-col.today[b-heuo3jz7fh] {
    box-shadow: inset 0 -3px 0 var(--mud-palette-primary);
}
.hostish-calendar-table .capacity[b-heuo3jz7fh] {
    display: block;
    font-size: .72rem;
    font-weight: 400;
    color: var(--mud-palette-text-secondary);
}
.hostish-unit-expander[b-heuo3jz7fh] {
    inline-size: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 3px 0;
    border: none;
    background: transparent;
    color: var(--mud-palette-text-primary);
    cursor: pointer;
    font: inherit;
    text-align: left;
}
.hostish-unit-expander:focus-visible[b-heuo3jz7fh] {
    border-radius: 3px;
    outline: 2px solid var(--mud-palette-primary);
}
.hostish-calendar-table .night-booked[b-heuo3jz7fh],
.hostish-calendar-table .night-free[b-heuo3jz7fh],
.hostish-calendar-table .night-blocked[b-heuo3jz7fh] { background: transparent; }
.hostish-calendar-table .free-night[b-heuo3jz7fh] { opacity: .34; }
/* Blocks use the same single-tone bar geometry as bookings: one bar spanning the
   occupied nights, aligned to the same cell edges. No cell wash behind it. */
.hostish-calendar-table .block-bar[b-heuo3jz7fh] {
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    inline-size: 100%;
    min-block-size: 40px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 5px;
    font: inherit;
    font-size: .82rem;
    font-weight: 650;
    text-align: center;
    line-height: 1.2;
    background: color-mix(in srgb, var(--mud-palette-warning) 22%, var(--mud-palette-surface));
    color: var(--mud-palette-text-primary);
}
.hostish-calendar-table .booking-bar[b-heuo3jz7fh] {
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    inline-size: 100%;
    min-block-size: 40px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font: inherit;
    font-size: .82rem;
    font-weight: 650;
    text-align: center;
    line-height: 1.2;
}
.hostish-calendar-table .booking-bar-name[b-heuo3jz7fh] {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.hostish-calendar-table .booking-bar:hover[b-heuo3jz7fh],
.hostish-calendar-table .booking-bar:focus-visible[b-heuo3jz7fh],
.hostish-month-booking-bar:hover[b-heuo3jz7fh],
.hostish-month-booking-bar:focus-visible[b-heuo3jz7fh] {
    outline: 2px solid var(--mud-palette-text-primary);
    outline-offset: -2px;
}
/* Arrival begins halfway through the first occupied day. Departure extends
   halfway into checkout day, without making checkout an occupied night. */
.hostish-calendar-table .booking-bar.arriving[b-heuo3jz7fh] {
    margin-inline-start: 36px;
    inline-size: calc(100% - 36px);
    border-radius: 7px 3px 3px 7px;
}
.hostish-calendar-table .booking-bar.departing[b-heuo3jz7fh] {
    margin-inline-end: -36px;
    inline-size: calc(100% + 36px);
    border-radius: 3px 7px 7px 3px;
}
.hostish-calendar-table .booking-bar.arriving.departing[b-heuo3jz7fh] { margin-inline-start:36px; margin-inline-end:-36px; inline-size:100%; }
/* Arrow heads are inside their respective half-day sections; do not overlap the name. */
.hostish-calendar-table .booking-bar.arriving[b-heuo3jz7fh]::before {
    content:'↓'; position:absolute; inset-inline-start:8px; top:50%;
    transform:translateY(-50%); font-weight:900; color:inherit; pointer-events:none;
}
.hostish-calendar-table .booking-bar.departing[b-heuo3jz7fh]::after {
    content:'↑'; position:absolute; inset-inline-end:8px; top:50%;
    transform:translateY(-50%); font-weight:900; color:inherit; pointer-events:none;
}
.hostish-calendar-table .booking-bar-name[b-heuo3jz7fh] { display:block; flex:1 1 auto; min-width:0; text-align:center; padding-inline:16px; }

/* The month view is a separate, width-constrained panel, not a table row
   spanning the entire 14-to-180-day timeline. */
.hostish-month-header[b-heuo3jz7fh] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-block-end: 14px;
}
.hostish-month-header-left[b-heuo3jz7fh] { flex: 1 1 230px; min-inline-size: 0; }
.hostish-month-navigation[b-heuo3jz7fh] {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hostish-month-panels[b-heuo3jz7fh] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    inline-size: 100%;
    min-inline-size: 0;
}
.hostish-month-panels:has(> :only-child)[b-heuo3jz7fh] {
    grid-template-columns: minmax(0, 1fr);
}
.hostish-month-panel[b-heuo3jz7fh] {
    box-sizing: border-box;
    min-inline-size: 0;
    overflow: hidden;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    padding: 10px;
}
.hostish-month-title[b-heuo3jz7fh] {
    display: block;
    margin-block-end: 10px;
    text-align: center;
}
.hostish-month-grid[b-heuo3jz7fh]{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:var(--mud-palette-lines-default);}
.hostish-month-weekday[b-heuo3jz7fh] {
    padding: 7px 0;
    background: var(--mud-palette-surface);
    text-align: center;
    font-size: .72rem;
    font-weight: 700;
    color: var(--mud-palette-text-secondary);
}
.hostish-month-weeks[b-heuo3jz7fh] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--mud-palette-lines-default);
    border: 1px solid var(--mud-palette-lines-default);
}
.hostish-month-week[b-heuo3jz7fh] {
    position: relative;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    min-block-size: 74px;
    background: var(--mud-palette-lines-default);
}
.hostish-month-day[b-heuo3jz7fh] {
    box-sizing: border-box;
    min-inline-size: 0;
    min-block-size: 74px;
    padding: 5px 5px 38px;
    background: var(--mud-palette-surface);
    font-size: .75rem;
    overflow: hidden;
}
.hostish-month-day.outside[b-heuo3jz7fh] {
    color: var(--mud-palette-text-disabled);
    background: color-mix(in srgb, var(--mud-palette-background) 65%, var(--mud-palette-surface));
}
.hostish-month-day.booked[b-heuo3jz7fh] {
    background: color-mix(in srgb, var(--mud-palette-primary) 5%, var(--mud-palette-surface));
}
.hostish-month-day.blocked[b-heuo3jz7fh] {
    background: transparent;
}
.hostish-month-date[b-heuo3jz7fh] { display: block; font-weight: 650; }
.hostish-month-block[b-heuo3jz7fh] {
    display: block;
    margin-block-start: 10px;
    font-size: .67rem;
    color: var(--mud-palette-text-secondary);
}
/* A single bar per contiguous booking/week segment. A reservation crossing
   months is shown as continued segments on the adjacent month panels. */
.hostish-month-booking-bar[b-heuo3jz7fh] {
    box-sizing: border-box;
    position: absolute;
    z-index: 2;
    top: 29px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-inline-size: 0;
    overflow: hidden;
    padding: 0 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font: inherit;
    font-size: .69rem;
    font-weight: 650;
    white-space: nowrap;
    text-align: center;
}
.hostish-month-booking-bar > span[b-heuo3jz7fh] {
    flex:1 1 auto; text-align:center; min-width:0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hostish-month-booking-bar.continues-before[b-heuo3jz7fh] { border-start-start-radius: 1px; border-end-start-radius: 1px; }
.hostish-month-booking-bar.continues-after[b-heuo3jz7fh] { border-start-end-radius: 1px; border-end-end-radius: 1px; }
.hostish-month-booking-bar.arriving[b-heuo3jz7fh]::before,
.hostish-month-booking-bar.departing[b-heuo3jz7fh]::after {
    flex: 0 0 auto;
    font-weight: 900;
    font-size: .8rem;
}
.hostish-month-booking-bar.arriving[b-heuo3jz7fh]::before { content: '↓'; margin-inline-end: 3px; }
.hostish-month-booking-bar.departing[b-heuo3jz7fh]::after { content: '↑'; margin-inline-start: 3px; }
@media (max-width: 960px) {
    .hostish-month-panels:not(:has(> :only-child))[b-heuo3jz7fh] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 670px) {
    .hostish-month-panels[b-heuo3jz7fh] { grid-template-columns: minmax(0, 1fr) !important; }
    .hostish-month-week[b-heuo3jz7fh], .hostish-month-day[b-heuo3jz7fh] { min-block-size: 64px; }
    .hostish-month-day[b-heuo3jz7fh] { padding-inline: 3px; }
    .hostish-month-panel[b-heuo3jz7fh] { padding: 6px; }
    .hostish-calendar-scroll[b-heuo3jz7fh] { max-inline-size: calc(100dvw - 24px); }
}

/* Provider-derived and parent/child shadow blocks: read-only bars with the same
   shape and cell alignment as booking bars, only non-interactive. */
.hostish-month-booking-bar.external-block[b-heuo3jz7fh] {
    cursor: default;
}
.hostish-calendar-table .night-blocked .block-bar[b-heuo3jz7fh] {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* One authoritative date grid for both confirmed and derived blocks. */
.hostish-calendar-table tbody td[colspan][b-heuo3jz7fh] {
    background-image: repeating-linear-gradient(to right,transparent 0,transparent 71px,
        var(--mud-palette-lines-default) 71px,var(--mud-palette-lines-default) 72px);
}
.hostish-calendar-table .booking-bar[b-heuo3jz7fh],
.hostish-calendar-table .block-bar[b-heuo3jz7fh] {
    box-sizing: border-box;
    min-block-size: 40px;
    position: relative;
    margin-block: 4px;
}
.hostish-calendar-table .block-bar[b-heuo3jz7fh] { display:flex;align-items:center;justify-content:center; }
.hostish-calendar-table .block-bar.arriving[b-heuo3jz7fh],
.hostish-calendar-table .booking-bar.arriving[b-heuo3jz7fh] {
    margin-inline-start: 36px;
    inline-size: calc(100% - 36px);
    padding-inline-start: 27px;
}
.hostish-calendar-table .block-bar.departing[b-heuo3jz7fh],
.hostish-calendar-table .booking-bar.departing[b-heuo3jz7fh] {
    margin-inline-end: -36px;
    inline-size: calc(100% + 36px);
    padding-inline-end: 27px;
}
.hostish-calendar-table .block-bar.arriving.departing[b-heuo3jz7fh],
.hostish-calendar-table .booking-bar.arriving.departing[b-heuo3jz7fh] { margin-inline-start:36px; margin-inline-end:-36px; inline-size:100%; }
.hostish-calendar-table .booking-bar.arriving[b-heuo3jz7fh]::before,
.hostish-calendar-table .block-bar.arriving[b-heuo3jz7fh]::before {
    content:'↓';inset-inline-start:9px;color:inherit;
}
.hostish-calendar-table .booking-bar.departing[b-heuo3jz7fh]::after,
.hostish-calendar-table .block-bar.departing[b-heuo3jz7fh]::after {
    content:'↑';inset-inline-end:9px;color:inherit;
}
.hostish-calendar-table .block-bar.arriving[b-heuo3jz7fh]::before,
.hostish-calendar-table .block-bar.departing[b-heuo3jz7fh]::after {
    position:absolute;top:50%;transform:translateY(-50%);
    font-weight:900;
}

/* Checkout markers on the next week/month: half of the real departure day. */
.hostish-month-booking-bar.checkout-marker[b-heuo3jz7fh] { padding: 0 4px 0 0; justify-content:flex-end; }
.hostish-month-booking-bar.checkout-marker > span[b-heuo3jz7fh] { display:none; }
.hostish-month-booking-bar.checkout-marker.departing[b-heuo3jz7fh]::after { margin-inline-start:0; }
