/* /Pages/Index.razor.rz.scp.css */

/* ── Sticky controls bar ── */
.cal-sticky-controls[b-bt7s1tptbf] {
    position: sticky;
    top: 0;
    z-index: 900;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.pub-cal-wrapper[b-bt7s1tptbf] {
    margin-top: 0;
}

/* ── Toolbar ── */
.pub-cal-toolbar[b-bt7s1tptbf] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    border-bottom: none;
    background: #fff;
    min-height: 54px;
}

/* ── Field selector tabs ── */
.pub-field-tabs[b-bt7s1tptbf] {
    display: flex;
    align-items: center;
    background: #f1f3f5;
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
    flex-shrink: 0;
}

.pub-field-tab[b-bt7s1tptbf] {
    border: none;
    background: transparent;
    border-radius: 8px;
    padding: 5px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.12s, color 0.12s, box-shadow 0.12s;
    white-space: nowrap;
}

.pub-field-tab.active[b-bt7s1tptbf] {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.pub-field-tab:hover:not(.active)[b-bt7s1tptbf] {
    color: #374151;
    background: rgba(255,255,255,0.6);
}

/* ── Toolbar right group (week nav + filters) ── */
.pub-toolbar-right[b-bt7s1tptbf] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

/* ── Week navigation ── */
.pub-week-controls[b-bt7s1tptbf] {
    display: grid;
    grid-template-columns: 38px minmax(150px, 1fr) 38px auto;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    outline: none;
}

.pub-nav-arrow[b-bt7s1tptbf] {
    border: 1px solid #d0d7de;
    background: #fff;
    color: #1f2937;
    border-radius: 12px;
    font-size: 26px;
    line-height: 1;
    font-weight: 700;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pub-nav-arrow:hover[b-bt7s1tptbf] {
    background: #f3f4f6;
}

.pub-week-info-button[b-bt7s1tptbf] {
    border: 1px solid #d0d7de;
    background: #fff;
    border-radius: 14px;
    padding: 7px 12px;
    min-width: 0;
    text-align: center;
    cursor: pointer;
}

.pub-week-info-button:hover[b-bt7s1tptbf] {
    background: #f8fafc;
}

.pub-week-label[b-bt7s1tptbf] {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    line-height: 1.15;
}

.pub-week-range[b-bt7s1tptbf] {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pub-week-badge[b-bt7s1tptbf] {
    display: inline-flex;
    margin-top: 5px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #e8f5e9;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
}

.pub-week-picker[b-bt7s1tptbf] {
    border: 1px solid #d0d7de;
    border-radius: 12px;
    padding: 6px 8px;
    min-height: 44px;
    font-size: 13px;
    background: #fff;
}

/* ── Calendar grid scroll container ── */
.pub-grid-scroll[b-bt7s1tptbf] {
    overflow: auto;
    position: relative;
    max-height: calc(100vh - 118px);
    -webkit-overflow-scrolling: touch;
}

.pub-grid-calendar[b-bt7s1tptbf] {
    display: grid;
    position: relative;
    width: 100%;
    min-width: 0;
    border: 1px solid #dee2e6;
    background: #fff;
}

/* ── Sticky header / time cells ── */
.pub-grid-corner[b-bt7s1tptbf],
.pub-grid-day-header[b-bt7s1tptbf],
.pub-grid-part-header[b-bt7s1tptbf],
.pub-grid-time[b-bt7s1tptbf] {
    background: #fff;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.pub-grid-corner[b-bt7s1tptbf] {
    grid-column: 1;
    grid-row: 1 / span 2;
    position: sticky;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    z-index: 80;
}

.pub-grid-day-header[b-bt7s1tptbf] {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 4px 6px 3px;
    text-align: center;
    font-weight: 600;
    z-index: 70;
}

.pub-day-name[b-bt7s1tptbf] {
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    text-transform: capitalize;
    line-height: 1.2;
}

.pub-day-date[b-bt7s1tptbf] {
    font-size: 11px;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.2;
    white-space: nowrap;
}

.pub-grid-day-header.today .pub-day-name[b-bt7s1tptbf],
.pub-grid-day-header.today .pub-day-date[b-bt7s1tptbf] {
    color: #0d6efd;
}

.pub-grid-part-header[b-bt7s1tptbf] {
    position: sticky;
    top: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: #495057;
    z-index: 65;
}

.pub-grid-time[b-bt7s1tptbf] {
    position: sticky;
    left: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
    font-size: 11px;
    color: #6c757d;
    z-index: 60;
}

/* ── Base slot cells ── */
.pub-grid-cell[b-bt7s1tptbf] {
    border-right: 1px solid #eef1f4;
    border-bottom: 1px solid #eef1f4;
    min-width: 0;
    min-height: 0;
    position: relative;
    background: #fff;
    z-index: 1;
}

.pub-grid-cell.today-col[b-bt7s1tptbf],
.pub-grid-day-header.today[b-bt7s1tptbf] {
    background: #f5faff;
}

.pub-grid-cell.pub-cal-editable[b-bt7s1tptbf] {
    cursor: pointer;
}

.pub-grid-cell.pub-cal-editable:hover[b-bt7s1tptbf] {
    outline: 2px solid rgba(13, 110, 253, 0.25);
    outline-offset: -2px;
}

/* ── Booking group ── */
.pub-grid-booking[b-bt7s1tptbf] {
    z-index: 5;
    font-weight: 600;
    color: #1f2933;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 3px solid rgba(0, 0, 0, 0.18);
    border-radius: 6px;
    margin: 2px;
    padding: 2px 5px;
}

.pub-grid-booking.pub-cal-picked[b-bt7s1tptbf] {
    opacity: 0.45;
    outline: 2px dashed #6c757d;
}

/* ── Match blocks ── */
.pub-grid-match[b-bt7s1tptbf] {
    z-index: 12;
    background: #dbeafe;
    border-left: 4px solid #0d6efd;
    color: #0b3868;
    border-radius: 6px;
    margin: 2px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px 7px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: filter 0.12s;
}

.pub-grid-match:hover[b-bt7s1tptbf] {
    filter: brightness(0.96);
}

.pub-grid-match-shared[b-bt7s1tptbf] {
    border-left-style: double;
    border-left-width: 5px;
}

.pub-grid-away-match[b-bt7s1tptbf] {
    z-index: 3;
    padding: 2px;
    overflow: hidden;
}

.pub-away-pill[b-bt7s1tptbf] {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
    padding: 2px 6px;
    background: #f8f9fa;
    border: 1px dashed #adb5bd;
    border-radius: 4px;
    font-size: 0.72rem;
    color: #6c757d;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.pub-away-pill:hover[b-bt7s1tptbf] {
    background: #e9ecef;
    color: #212529;
    border-color: #6c757d;
}

.pub-away-pill-ico[b-bt7s1tptbf] {
    flex-shrink: 0;
    font-size: 0.8rem;
}

.pub-away-pill-text[b-bt7s1tptbf] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Arrangement blocks ── */
.pub-grid-arrangement[b-bt7s1tptbf] {
    z-index: 20;
    background: #fff3cd;
    border-left: 4px solid #f59f00;
    color: #5f4200;
    margin: 2px;
    padding: 4px 6px;
    border-radius: 5px;
    overflow: hidden;
    min-width: 0;
    font-size: 11px;
    line-height: 1.3;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    cursor: pointer;
}

.pub-grid-arrangement:hover[b-bt7s1tptbf] {
    filter: brightness(0.97);
}

.pub-grid-booking.pub-cal-editable[b-bt7s1tptbf],
.pub-grid-match.pub-cal-editable[b-bt7s1tptbf] {
    cursor: pointer;
}

.pub-grid-booking.pub-cal-editable:hover[b-bt7s1tptbf],
.pub-grid-match.pub-cal-editable:hover[b-bt7s1tptbf] {
    filter: brightness(0.97);
}

.pub-booked-row[b-bt7s1tptbf] {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.pub-booking[b-bt7s1tptbf],
.pub-arr-title[b-bt7s1tptbf],
.pub-match-title[b-bt7s1tptbf] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    min-width: 0;
}

.pub-booking[b-bt7s1tptbf]    { flex: 1 1 auto; }

.pub-arr-card[b-bt7s1tptbf] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pub-arr-title[b-bt7s1tptbf],
.pub-match-title[b-bt7s1tptbf] { font-weight: 700; }

.pub-arr-meta[b-bt7s1tptbf],
.pub-match-time[b-bt7s1tptbf]  { font-size: 11px; opacity: 0.85; }

/* ── Edit controls ── */
.cal-del-btn[b-bt7s1tptbf] {
    margin-left: auto;
    flex: 0 0 auto;
    border: none;
    background: rgba(255,255,255,0.45);
    border-radius: 4px;
    width: 18px;
    height: 18px;
    line-height: 16px;
    padding: 0;
    font-weight: 700;
}

.cal-conflict-badge[b-bt7s1tptbf] {
    margin-top: 3px;
    border: 0;
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 11px;
    background: rgba(220, 53, 69, 0.14);
    color: #842029;
    font-weight: 700;
    width: fit-content;
}

.cal-drop-arrow[b-bt7s1tptbf],
.cal-cell-add[b-bt7s1tptbf] {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    pointer-events: none;
}

.cal-drop-arrow[b-bt7s1tptbf] { color: #0d6efd; }

.cal-cell-add[b-bt7s1tptbf] {
    color: #adb5bd;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.1s;
}

.pub-grid-cell.pub-cal-editable:hover .cal-cell-add[b-bt7s1tptbf] { opacity: 1; }

.cal-edit-hint[b-bt7s1tptbf] {
    position: absolute;
    right: 5px;
    bottom: 3px;
    font-size: 11px;
    opacity: .8;
}

/* ── Match detail dialog ── */
.cal-match-dialog[b-bt7s1tptbf] {
    background: #fff;
    border-radius: 10px;
    width: min(640px, calc(100vw - 24px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.cal-match-modal-title[b-bt7s1tptbf] {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
}

.cal-match-detail-grid[b-bt7s1tptbf] {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 7px 12px;
    font-size: 13px;
}

.cal-match-detail-label[b-bt7s1tptbf] {
    color: #6c757d;
    font-weight: 700;
}

.cal-match-modal-actions[b-bt7s1tptbf] {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

/* ── Mobile day navigation bar (hidden on desktop) ── */
.mobile-day-nav[b-bt7s1tptbf] {
    display: none;
}

.mobile-day-label[b-bt7s1tptbf] {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Tablet + mobile (≤ 768 px): toolbar stacks to 2 rows ── */
@media (max-width: 768px) {

    html[b-bt7s1tptbf], body[b-bt7s1tptbf] {
        height: 100%;
        overflow: hidden;
    }

    body.cal-page[b-bt7s1tptbf] { overflow: hidden; }

    .cal-sticky-controls[b-bt7s1tptbf] {
        position: sticky;
        top: 0;
        z-index: 900;
        background: #fff;
        flex-shrink: 0;
    }

    .pub-cal-toolbar[b-bt7s1tptbf] {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin-bottom: 0;
        padding: 4px 8px 6px;
        min-height: auto;
    }

    /* Row 1: tabs scroll horizontally */
    .pub-field-tabs[b-bt7s1tptbf] {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 2px;
    }
    .pub-field-tabs[b-bt7s1tptbf]::-webkit-scrollbar { display: none; }

    .pub-field-tab[b-bt7s1tptbf] { padding: 6px 14px; font-size: 13px; }

    /* Row 2: week nav + checkboxes centred */
    .pub-toolbar-right[b-bt7s1tptbf] {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
    }

    .pub-week-controls[b-bt7s1tptbf] {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 6px;
        padding: 0;
        width: 100%;
    }

    .pub-nav-arrow[b-bt7s1tptbf]        { width: 36px; height: 36px; min-height: 36px; font-size: 20px; border-radius: 9px; }
    .pub-week-info-button[b-bt7s1tptbf] { min-height: 36px; min-width: 155px; max-width: 230px; padding: 4px 10px; border-radius: 10px; }
    .pub-week-label[b-bt7s1tptbf]       { font-size: 13px; }
    .pub-week-range[b-bt7s1tptbf]       { font-size: 11px; }
    .pub-week-badge[b-bt7s1tptbf]       { display: none; }
    .pub-week-picker[b-bt7s1tptbf]      { display: none; }

    .pub-toggle-check[b-bt7s1tptbf] {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 13px;
        margin-right: 0;
    }

    .cal-undo-btn[b-bt7s1tptbf] { padding: 5px 12px; font-size: 13px; }

    /* Edit / booking bars */
    .cal-booking-bar[b-bt7s1tptbf], .cal-edit-panel[b-bt7s1tptbf] {
        display: flex; flex-wrap: wrap; gap: 6px;
        align-items: center; padding: 7px 8px;
    }
    .cal-team-select[b-bt7s1tptbf]     { min-width: 150px; flex: 1 1 150px; }
    .cal-recurring-label[b-bt7s1tptbf] { font-size: 12px; white-space: nowrap; }
    .cal-enddate[b-bt7s1tptbf]         { max-width: 145px; flex: 0 0 145px; }
    .cal-book-btn[b-bt7s1tptbf],
    .cal-cancel-btn[b-bt7s1tptbf]      { min-height: 32px; padding: 4px 10px; font-size: 12px; white-space: nowrap; }
    .cal-booking-hint[b-bt7s1tptbf]    { flex: 1 1 100%; font-size: 12px; }
    .cal-pickup-bar[b-bt7s1tptbf]      { font-size: 12px; }
    .cal-pickup-bar .btn[b-bt7s1tptbf] { margin-left: 0 !important; }

    /* Calendar wrapper: fixed height so only grid scrolls */
    .pub-cal-wrapper[b-bt7s1tptbf] {
        height: calc(100dvh - 172px);
        overflow: hidden;
        min-height: 0;
    }

    /* Only the calendar grid scrolls */
    .pub-grid-scroll[b-bt7s1tptbf] {
        height: 100%;
        max-height: none;
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        scroll-snap-type: x proximity;
    }

    /* Desktop scroll grid: full-week scrollable */
    .pub-grid-desktop .pub-grid-calendar[b-bt7s1tptbf] {
        width: auto;
        min-width: var(--mobile-total-width);
        grid-template-columns: var(--mobile-columns) !important;
    }

    /* Mobile grid: uses its own inline style */
    .pub-grid-mobile .pub-grid-calendar[b-bt7s1tptbf] {
        width: 100%;
        min-width: 0;
    }

    .pub-grid-desktop .pub-grid-day-header[b-bt7s1tptbf] { scroll-snap-align: start; }
}

/* ── Phone (≤ 640 px): single-day mobile calendar ── */
@media (max-width: 640px) {

    /* Stack all toolbar rows vertically */
    .pub-toolbar-right[b-bt7s1tptbf] {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    /* Week nav: 3-col grid (prev | info | next), date picker on new row */
    .pub-week-controls[b-bt7s1tptbf] {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 6px;
        align-items: center;
        flex-wrap: unset;
    }

    /* Date picker visible as full-width row beneath the 3 nav buttons */
    .pub-week-picker[b-bt7s1tptbf] {
        display: block !important;
        grid-column: 1 / -1;
        width: 100%;
        min-height: 40px;
    }

    /* Checkboxes: side-by-side row */
    .pub-toggle-check[b-bt7s1tptbf] { font-size: 13px; }

    /* Mobile day nav row */
    .mobile-day-nav[b-bt7s1tptbf] {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 0.5rem;
        padding: 4px 8px 6px;
        border-top: 1px solid #dee2e6;
        width: 100%;
    }

    /* Taller controls area: navbar ~52px + controls ~230px */
    .pub-cal-wrapper[b-bt7s1tptbf] {
        height: calc(100dvh - 282px);
    }

    /* Hide the full-week desktop grid on mobile */
    .pub-grid-desktop[b-bt7s1tptbf] {
        display: none !important;
    }

    /* Show the single-day mobile grid */
    .pub-grid-mobile[b-bt7s1tptbf] {
        display: block;
        height: 100%;
        max-height: none;
        overflow-x: hidden !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: none;
    }

    /* Prevent any element inside the toolbar from pushing past its container */
    .pub-cal-toolbar[b-bt7s1tptbf] {
        overflow: hidden;
    }

    /* Ensure toolbar-right and its direct flex children stay within bounds */
    .pub-toolbar-right[b-bt7s1tptbf],
    .pub-toolbar-right > *[b-bt7s1tptbf] {
        min-width: 0;
        max-width: 100%;
    }

    /* iOS date inputs sometimes ignore width:100% without this */
    .pub-week-picker[b-bt7s1tptbf] {
        -webkit-appearance: none;
        appearance: none;
        box-sizing: border-box;
    }
}

/* ── Desktop only (> 640 px): hide mobile grid ── */
@media (min-width: 641px) {
    .pub-grid-mobile[b-bt7s1tptbf] {
        display: none;
    }
}

/* ── Phone (≤ 480 px): size adjustments only ── */
@media (max-width: 480px) {
    .pub-field-tab[b-bt7s1tptbf]        { padding: 5px 10px; font-size: 12px; }
    .pub-nav-arrow[b-bt7s1tptbf]        { width: 30px; height: 30px; font-size: 17px; }
    .pub-week-info-button[b-bt7s1tptbf] { min-height: 30px; min-width: 130px; max-width: 180px; padding: 3px 7px; }
    .pub-week-label[b-bt7s1tptbf]       { font-size: 11px; }
    .pub-week-range[b-bt7s1tptbf]       { font-size: 10px; }
    .pub-toggle-check[b-bt7s1tptbf]     { font-size: 11px; gap: 3px; }
    .cal-undo-btn[b-bt7s1tptbf]         { padding: 4px 8px; font-size: 11px; }
    .cal-edit-panel[b-bt7s1tptbf]       { font-size: 11px; padding: 5px 8px; }
    .cal-edit-hint[b-bt7s1tptbf]        { display: none; }
    .pub-booking-sub[b-bt7s1tptbf]      { font-size: 0.62rem; padding: 1px 2px; }
}

/* ── Booking modal ── */
.cal-modal-backdrop[b-bt7s1tptbf] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.cal-booking-modal[b-bt7s1tptbf] {
    background: #fff;
    border-radius: 12px;
    width: min(420px, calc(100vw - 24px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.cal-modal-header[b-bt7s1tptbf] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #dee2e6;
}

.cal-modal-title[b-bt7s1tptbf] { font-weight: 700; font-size: 15px; }

.cal-modal-body[b-bt7s1tptbf]  { padding: 14px 16px; }

.cal-modal-info[b-bt7s1tptbf] {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
    text-transform: capitalize;
}

.cal-modal-type-tabs[b-bt7s1tptbf] {
    display: flex;
    gap: 4px;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 3px;
}

.cal-type-tab[b-bt7s1tptbf] {
    flex: 1;
    border: none;
    background: transparent;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}

.cal-type-tab.active[b-bt7s1tptbf] {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.cal-type-tab:hover:not(.active)[b-bt7s1tptbf] { color: #374151; }
/* /Shared/NavMenu.razor.rz.scp.css */
/* outer bar */
.fm-navbar[b-avkceijdao] {
	background-color: #f8f9fa;
	height: 3.5rem;
	display: flex;
	align-items: center;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	margin-bottom: 1rem;
	position: sticky;
	top: 0;
	z-index: 500;
}

/* container to space brand and menu */
.fm-container[b-avkceijdao] {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 0 1rem;
}

/* brand/logo */
.fm-brand[b-avkceijdao] {
	font-size: 1.25rem;
	font-weight: bold;
	color: #343a40;
	text-decoration: none;
	flex-grow: 1; /* push toggler to right on mobile */
}

@media (min-width: 768px) {
	.fm-brand[b-avkceijdao] {
		flex-grow: 0;
		margin-right: 2rem;
	}
}

/* mobile toggler — hidden on md+ */
.fm-toggler[b-avkceijdao] {
	border: none;
	background: transparent;
	height: 3.5rem;
	display: flex;
	align-items: center;
	padding: 0 0.5rem;
	cursor: pointer;
}

@media (min-width: 768px) {
	.fm-toggler[b-avkceijdao] {
		display: none;
	}
}

/* hamburger icon — three horizontal bars via pseudo-elements */
.fm-toggler-icon[b-avkceijdao] {
	display: block;
	width: 22px;
	height: 2px;
	background: #555;
	position: relative;
}

.fm-toggler-icon[b-avkceijdao]::before,
.fm-toggler-icon[b-avkceijdao]::after {
	content: '';
	display: block;
	width: 22px;
	height: 2px;
	background: #555;
	position: absolute;
	left: 0;
}

.fm-toggler-icon[b-avkceijdao]::before { top: -7px; }
.fm-toggler-icon[b-avkceijdao]::after  { top:  7px; }

/* Desktop: always show as flex row */
@media (min-width: 768px) {
	.fm-collapse[b-avkceijdao] {
		flex-grow: 1;
		display: flex !important;
		align-items: center;
	}
}

/* Mobile: slide-down dropdown on .show */
@media (max-width: 767px) {
	.fm-collapse[b-avkceijdao] {
		/* fixed = always relative to the viewport, never clipped by a sidebar or
		   an ancestor with overflow:hidden. This stops the menu appearing off-screen
		   to the left when the NavMenu is rendered inside a sidebar container. */
		position: fixed;
		top: 3.5rem;
		left: 0;
		right: 0;
		background: #f8f9fa;
		box-shadow: 0 4px 10px rgba(0,0,0,0.12);
		z-index: 499; /* just below the sticky navbar z-index: 500 */
		border-top: 1px solid #dee2e6;
		max-height: calc(100vh - 3.5rem);
		overflow-y: auto;
	}

	.fm-collapse.show[b-avkceijdao] {
		display: flex !important;
		flex-direction: column;
		align-items: stretch;
		padding: 0.25rem 0;
	}

	.fm-menu[b-avkceijdao] {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.fm-item[b-avkceijdao] {
		margin: 0;
		height: auto;
	}

	.fm-link[b-avkceijdao] {
		height: auto;
		padding: 0.75rem 1.5rem;
		border-radius: 0;
		justify-content: flex-start;
	}
}

/* horizontal menu UL */
.fm-menu[b-avkceijdao] {
	display: flex;
	align-items: center;
	padding: 0;
	margin: 0;
	list-style: none;
}

/* each menu item */
.fm-item[b-avkceijdao] {
	margin: 0 0.5rem;
	height: 3.5rem;
	display: flex;
	align-items: center;
}

/* link itself */
.fm-link[b-avkceijdao] {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 1rem;
	font-size: 0.95rem;
	color: #495057;
	text-decoration: none;
	border-radius: 0.25rem;
	transition: background-color 0.2s, color 0.2s;
}

	.fm-link:hover[b-avkceijdao] {
		background-color: rgba(0, 123, 255, 0.1);
		color: #0056b3;
	}

	.fm-link.active[b-avkceijdao] {
		background-color: rgba(0, 123, 255, 0.25);
		color: #004085;
	}
