@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* Notes panel in sidebar */
.notes-sidebar-section {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 0.5rem;
}

.notes-sidebar-toggle {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    font-size: 0.9rem;
}

.notes-sidebar-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.notes-sidebar-body {
    padding: 0 0.75rem 0.75rem;
    max-height: 350px;
    overflow-y: auto;
}

.notes-sidebar-body textarea {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.9);
}

.notes-sidebar-body .note-item {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notes-sidebar-body .note-content {
    margin-top: 2px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    white-space: pre-wrap;
    word-break: break-word;
}

.print-only {
    display: none;
}

@media print {
    .sidebar, .top-row, .no-print, #blazor-error-ui {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    .page {
        display: block !important;
    }

    main {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .content {
        padding: 0 !important;
    }

    .card {
        break-inside: avoid;
    }
}

/* Calendar */
.calendar-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.calendar-grid th { text-align: center; padding: 8px; background: #f8f9fa; border: 1px solid #dee2e6; font-size: 0.85rem; }
.calendar-grid td { border: 1px solid #dee2e6; padding: 4px; vertical-align: top; height: 90px; width: 14.28%; cursor: pointer; overflow: hidden; max-width: 0; }
.calendar-grid td:hover { background: #f0f7ff; }
.calendar-grid td.today { background: #fff3cd; }
.calendar-grid td.other-month { background: #f8f9fa; color: #adb5bd; }
.calendar-grid td.selected { background: #e7f1ff; border-color: #0d6efd; }
.calendar-day-num { font-weight: bold; font-size: 0.85rem; margin-bottom: 2px; }
.calendar-event { font-size: 0.65rem; padding: 1px 4px; margin-bottom: 1px; border-radius: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 100%; }
.calendar-event.meet { background: #cfe2ff; color: #0a58ca; }
.calendar-event.practice { background: #d1e7dd; color: #0f5132; }
.calendar-event.payment { background: #fff3cd; color: #664d03; }

/* Mobile Optimization */
@media (max-width: 768px) {
    /* Cards stack properly */
    .card-body { padding: 0.75rem; }

    /* Larger touch targets */
    .btn { min-height: 44px; }
    .btn-sm { min-height: 36px; font-size: 0.85rem; }
    .form-control, .form-select { min-height: 44px; font-size: 1rem; }

    /* Table scroll */
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table { font-size: 0.85rem; }

    /* Summary cards in rows */
    .row > [class*="col-md"] { margin-bottom: 0.5rem; }

    /* Payment buttons stack */
    .row.g-2 > div { flex: 0 0 100%; max-width: 100%; }

    /* Hide non-essential columns on small screens */
    .hide-mobile { display: none !important; }

    /* Compact headers */
    h3 { font-size: 1.3rem; }
    h5 { font-size: 1.1rem; }
    h6 { font-size: 0.95rem; }
}

/* Bottom nav for parent portal on mobile (≤768px). Mirrors the breakpoint
   ParentLayout.razor.css uses to hide the green sidebar — keep these two
   numbers in sync. */
@media (max-width: 768px) {
    .parent-portal .sidebar { display: none; }
    .parent-portal .parent-top-row { display: none; }

    .parent-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #1a6b3c;
        display: flex;
        justify-content: space-around;
        padding: 6px 0;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
        /* Honour iOS / Android home-indicator area so the bar isn't
           covered by the swipe gesture handle on modern phones. */
        padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    }

    .parent-bottom-nav .pbn-item {
        flex: 1 1 0;
        min-width: 0;
        color: rgba(255,255,255,0.72);
        text-decoration: none;
        text-align: center;
        font-size: 0.65rem;
        padding: 4px 2px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        background: transparent;
        border: 0;
        cursor: pointer;
        /* min-height keeps the touch target ≥44px per the existing mobile
           pattern at the top of this file. */
        min-height: 48px;
    }

    .parent-bottom-nav .pbn-item.active,
    .parent-bottom-nav .pbn-item:hover,
    .parent-bottom-nav .pbn-item:focus-visible {
        color: #fff;
        outline: none;
    }

    .parent-bottom-nav .pbn-item .oi {
        font-size: 1.2rem;
        line-height: 1;
    }

    .parent-bottom-nav .pbn-label {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    /* Icon wrapper lets us absolutely-position the unread badge in the
       corner of the icon without disturbing the column layout. */
    .parent-bottom-nav .pbn-icon-wrap {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    .parent-bottom-nav .pbn-badge {
        position: absolute;
        top: -6px;
        right: -10px;
        background: #dc3545;
        color: #fff;
        border-radius: 999px;
        font-size: 0.6rem;
        font-weight: 600;
        padding: 1px 5px;
        min-width: 16px;
        line-height: 1.2;
        text-align: center;
        box-shadow: 0 0 0 2px #1a6b3c;
    }

    /* Add padding at bottom so content isn't hidden behind bottom nav.
       Adds the safe-area bottom so iPhone home-indicator users don't
       lose the last row to gesture handles. */
    .parent-portal main article {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* "More" drawer — backdrop + bottom sheet. CSS-only transitions; the
       Razor side just toggles the elements in/out. */
    .parent-more-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1050;
        animation: parent-more-fade-in 0.18s ease-out;
    }

    .parent-more-sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        box-shadow: 0 -8px 24px rgba(0,0,0,0.18);
        z-index: 1051;
        padding: 10px 0 calc(20px + env(safe-area-inset-bottom, 0px));
        max-height: 80vh;
        overflow-y: auto;
        animation: parent-more-slide-up 0.22s ease-out;
    }

    .parent-more-sheet .parent-more-handle {
        width: 40px;
        height: 4px;
        background: #ced4da;
        border-radius: 2px;
        margin: 4px auto 12px;
    }

    .parent-more-sheet .pms-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 20px;
        color: #1a1a1a;
        text-decoration: none;
        font-size: 0.95rem;
        border: 0;
        background: transparent;
        width: 100%;
        text-align: left;
    }

    .parent-more-sheet .pms-item .oi {
        color: #1a6b3c;
        font-size: 1rem;
    }

    .parent-more-sheet .pms-item.active,
    .parent-more-sheet .pms-item:hover {
        background: #f0f7f3;
    }

    .parent-more-sheet .pms-item.pms-signout {
        color: #dc3545;
    }

    .parent-more-sheet .pms-item.pms-signout .oi {
        color: #dc3545;
    }

    @keyframes parent-more-fade-in {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    @keyframes parent-more-slide-up {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
}

/* Show bottom nav only on mobile (≤768px). */
@media (min-width: 769px) {
    .parent-bottom-nav { display: none; }
    .parent-more-backdrop, .parent-more-sheet { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   Chat — Fix97 Band-style feed redesign
   Posts (ReplyToMessageId == null) live in a centered feed of cards;
   comments (ReplyToMessageId == post.Id) indent under their parent post.
   ═══════════════════════════════════════════════════════════════════ */

/* Layout */
.chat-container { display: flex; height: calc(100vh - 120px); border: 1px solid #e0e0e0; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); background: #f7f8fa; }
.chat-rooms { width: 280px; border-right: 1px solid #e0e0e0; overflow-y: auto; background: #fafbfc; flex-shrink: 0; }
.chat-room-item { padding: 14px 18px; border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: background 0.15s; }
.chat-room-item:hover { background: #eef1f5; }
.chat-dm-pick:hover { background: #eef1f5; }
.chat-room-item.active { background: linear-gradient(135deg, #0d6efd, #4b8bff); color: white; border-radius: 0; }
.chat-room-item.active .text-muted { color: rgba(255,255,255,0.75) !important; }
.chat-messages-area { flex: 1; display: flex; flex-direction: column; background: #f7f8fa; min-width: 0; }
.chat-messages-header { padding: 14px 20px; border-bottom: 1px solid #e0e0e0; background: #fff; font-weight: 600; font-size: 1.05rem; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }

/* The feed scrolls inside the messages-area; centered, max 720px for readability. */
.chat-feed { flex: 1; overflow-y: auto; padding: 20px; }
.chat-feed-inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

/* Composer pinned at top of feed (Band-style). position:relative so the emoji
   picker anchors to the full-width composer (not the tiny emoji button, which
   sits ~80px from the right edge and made a 340px picker spill off the LEFT of
   a narrow phone screen — un-scrollable, left column clipped). */
.feed-composer { background: #fff; border: 1px solid #e8eaed; border-radius: 14px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); position: relative; }
.emoji-anchor { position: static; }
.feed-composer-row { display: flex; gap: 8px; align-items: center; }
.feed-composer-row .form-control { border-radius: 20px; }
.feed-composer-row button, .feed-composer-row label.btn { border-radius: 20px; }
.feed-composer-image-preview { margin-top: 10px; display: flex; align-items: center; gap: 10px; }
.feed-composer-image-preview img { max-height: 80px; border-radius: 8px; }

/* Post card */
.feed-post { background: #fff; border: 1px solid #e8eaed; border-radius: 14px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.feed-post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.feed-post-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; color: white; flex-shrink: 0; text-transform: uppercase; }
.feed-post-avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.feed-post-meta { flex: 1; min-width: 0; }
.feed-post-sender { font-weight: 700; font-size: 0.95rem; color: #1a1a1a; }
.feed-post-time { font-size: 0.72rem; color: #6c757d; }
.feed-post-title { font-weight: 700; font-size: 1.05rem; padding-left: 10px; border-left: 3px solid #ffc107; margin-bottom: 8px; line-height: 1.35; }
.feed-post-body { font-size: 0.95rem; line-height: 1.5; color: #1a1a1a; word-wrap: break-word; white-space: pre-wrap; }
.feed-post-image-wrap { margin-top: 10px; }
.feed-post-image { max-width: 100%; border-radius: 10px; cursor: pointer; }
.feed-post-actions { display: flex; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #f0f0f0; }
.feed-post-action { font-size: 0.85rem; color: #6c757d; text-decoration: none; padding: 4px 10px; border-radius: 6px; }
.feed-post-action:hover { background: #f1f3f5; color: #0d6efd; }

/* Comment thread under a post */
.comment-thread { margin-top: 12px; padding: 10px 0 0 12px; border-left: 2px solid #e8eaed; display: flex; flex-direction: column; gap: 10px; }
.comment-row { display: flex; gap: 8px; align-items: flex-start; }
.comment-avatar { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: white; flex-shrink: 0; text-transform: uppercase; }
.comment-avatar img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.comment-body { flex: 1; background: #f7f8fa; border-radius: 10px; padding: 8px 12px; min-width: 0; }
.comment-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.comment-sender { font-weight: 700; font-size: 0.8rem; color: #1a1a1a; }
.comment-time { font-size: 0.7rem; color: #6c757d; }
.comment-content { font-size: 0.88rem; line-height: 1.4; color: #1a1a1a; word-wrap: break-word; white-space: pre-wrap; }
.comment-image { max-width: 180px; border-radius: 8px; }
.comment-composer { display: flex; gap: 6px; align-items: center; padding-top: 6px; }
.comment-composer .form-control { border-radius: 16px; }

/* Emoji picker — opens DOWNWARD (top, not bottom). The composer sits at the TOP
   of .chat-feed (overflow-y:auto) with the room-name header right above it. A
   bottom:54px "open up" picker rendered into that header and got clipped by the
   scroll container's overflow box: visible but un-clickable behind the name
   card. Opening below the button keeps it inside the feed and on top. */
.emoji-picker { position: absolute; top: calc(100% + 8px); bottom: auto; right: 0; background: #fff; border: 1px solid #e0e0e0; border-radius: 16px; padding: 12px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; width: 340px; max-width: calc(100vw - 24px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 1000; max-height: 300px; overflow-y: auto; }
.emoji-item { font-size: 1.5rem; cursor: pointer; text-align: center; padding: 6px; border-radius: 8px; transition: background 0.1s; }
.emoji-item:hover { background: #eef1f5; transform: scale(1.15); }

/* @mention pill */
.chat-mention { background: rgba(13, 110, 253, 0.1); color: #0d6efd; padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.chat-mention-self { background: rgba(255, 193, 7, 0.25); color: #856404; }

/* Mention picker */
.mention-picker { position: absolute; bottom: 54px; left: 0; background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 1000; min-width: 240px; max-height: 260px; overflow-y: auto; }
.mention-picker-item { padding: 8px 14px; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 0.9rem; transition: background 0.1s; }
.mention-picker-item:hover, .mention-picker-item.active { background: #eef1f5; }

/* Links in chat */
.chat-link { color: #0d6efd; text-decoration: underline; word-break: break-all; }
.chat-link:hover { opacity: 0.8; }

/* Flash animation (post highlight after jump-from-search) */
.feed-post-flash { animation: feed-post-flash 1.4s ease-out; }
@keyframes feed-post-flash {
    0% { box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.6); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

/* Mobile responsive — drawer-style room/feed panel switching. */
@media (max-width: 768px) {
    /* Use dvh so the mobile address bar collapsing doesn't cut off the input. */
    .chat-container { height: calc(100dvh - 80px); border-radius: 0; border-left: none; border-right: none; }
    /* Parent portal has the green bottom nav (70px) — leave room for it. */
    .parent-portal .chat-container { height: calc(100dvh - 150px); }
    .chat-rooms { width: 100%; flex-shrink: 1; }
    .chat-messages-area { display: none; }
    .chat-container.room-selected .chat-rooms { display: none; }
    .chat-container.room-selected .chat-messages-area { display: flex; width: 100%; }
    .chat-feed { padding: 12px; }
    .feed-post { padding: 12px 14px; border-radius: 12px; }
    .feed-composer { padding: 10px 12px; border-radius: 12px; }
}

/* Fix135: Chat room settings modal + success toast.
   Modal mirrors the .parent-more-backdrop / .parent-more-sheet z-index
   stack (1050 backdrop, 1051 panel) so a chat modal and the parent
   "More" drawer never appear simultaneously on the same screen. */
.chat-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1050;
    animation: chat-modal-fade-in 0.18s ease-out;
}

.chat-modal-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1051;
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.22);
    animation: chat-modal-fade-in 0.18s ease-out;
}

.chat-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1100;
    background: #1a6b3c;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    font-size: 0.9rem;
    animation: chat-modal-fade-in 0.18s ease-out;
}

@keyframes chat-modal-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (max-width: 768px) {
    .chat-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        text-align: center;
    }
}

/* Budget Calculator */
.budget-tabs { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; border-bottom: 2px solid #dee2e6; margin-bottom: 16px; }
.budget-tab { padding: 8px 16px; border: 1px solid #dee2e6; border-bottom: none; border-radius: 8px 8px 0 0; background: #f8f9fa; cursor: pointer; white-space: nowrap; font-size: 0.85rem; }
.budget-tab.active { background: #0d6efd; color: white; border-color: #0d6efd; }
.budget-tab:hover:not(.active) { background: #e9ecef; }
.budget-grand-total { position: sticky; bottom: 0; background: #212529; color: white; padding: 12px 16px; border-radius: 8px; margin-top: 16px; }

/* Roster table */
.roster-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #dee2e6; border-radius: 8px; }
.roster-table-wrap table { font-size: 0.75rem; min-width: 100%; margin: 0; }
.roster-table-wrap th, .roster-table-wrap td { white-space: nowrap; padding: 3px 6px !important; vertical-align: middle; }
.roster-table-wrap th:first-child, .roster-table-wrap td:first-child { position: sticky; left: 0; background: white; z-index: 1; min-width: 140px; padding-left: 10px !important; border-right: 2px solid #dee2e6; }
.roster-table-wrap thead th:first-child { background: #f8f9fa; }
.roster-table-wrap tfoot td:first-child { background: #f8f9fa; }
.roster-table-wrap .form-check-input { margin: 0; }

@media (max-width: 768px) {
    .roster-table-wrap { margin: 0 -1rem; border-radius: 0; }
    .roster-table-wrap table { font-size: 0.65rem; }
    .roster-table-wrap th, .roster-table-wrap td { padding: 2px 3px !important; }
    .roster-table-wrap th:first-child, .roster-table-wrap td:first-child { min-width: 90px; }
}

/* Staff nav hamburger icon — GLOBAL (not scoped) on purpose.
   Local Bootstrap CSS is v5.1.0 while the loaded JS is v5.3.3; the mismatch
   leaves Bootstrap's own .navbar-toggler-icon background-image unresolved, so
   the lines render blank. This used to live in NavMenu.razor.css (scoped), but
   scoped CSS depends on a per-build [b-hash] attribute — when the app's
   WKWebView/service-worker served a stale GymHub.styles.css the hash no longer
   matched the markup and the icon went blank intermittently. A plain global
   selector always matches the span regardless of build hash or cache state.
   site.css loads AFTER bootstrap.min.css, so this wins the cascade. */
.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
