/* Font sizes from 05px to 50px */

.font-05px { font-size: 5px !important; }
.font-10px { font-size: 10px !important; }
.font-12px { font-size: 12px !important; }
.font-14px { font-size: 14px !important; }
.font-16px { font-size: 16px !important; }
.font-18px { font-size: 18px !important; }
.font-20px { font-size: 20px !important; }
.font-22px { font-size: 22px !important; }
.font-24px { font-size: 24px !important; }
.font-26px { font-size: 26px !important; }
.font-28px { font-size: 28px !important; }
.font-30px { font-size: 30px !important; }
.font-32px { font-size: 32px !important; }
.font-34px { font-size: 34px !important; }
.font-36px { font-size: 36px !important; }
.font-38px { font-size: 38px !important; }
.font-40px { font-size: 40px !important; }
.font-42px { font-size: 42px !important; }
.font-44px { font-size: 44px !important; }
.font-46px { font-size: 46px !important; }
.font-48px { font-size: 48px !important; }
.font-50px { font-size: 50px !important; }


/* Background colors */
.bg-light-success { background-color: #e9fbed !important; }
.bg-light-danger { background-color: #f8d7da !important; }
.bg-light-warning { background-color: #fff3cd !important; }
.bg-light-info { background-color: #d1ecf1 !important; }
.bg-dark-blue { background-color: #3c68b6 !important; }

/* Text colors */
.text-success { color: #28a745 !important; }
.text-danger { color: #dc3545 !important; }
.text-warning { color: #ffc107 !important; }
.text-info { color: #17a2b8 !important; }

/* Margins and paddings */
.p-0125 { padding: 0.125rem !important; }
.p-025 { padding: 0.25rem !important; }
.p-05 { padding: 0.5rem !important; }
.p-1 { padding: 1rem !important; }
.p-15 { padding: 1.5rem !important; }
.p-2 { padding: 2rem !important; }
.p-3 { padding: 3rem !important; }

.pt-0125 { padding-top: 0.125rem !important; }
.pt-025 { padding-top: 0.25rem !important; }
.pt-05 { padding-top: 0.5rem !important; }
.pt-1 { padding-top: 1rem !important; }
.pt-15 { padding-top: 1.5rem !important; }
.pt-2 { padding-top: 2rem !important; }
.pt-3 { padding-top: 3rem !important; }

.pb-0125 { padding-bottom: 0.125rem !important; }
.pb-025 { padding-bottom: 0.25rem !important; }
.pb-05 { padding-bottom: 0.5rem !important; }
.pb-1 { padding-bottom: 1rem !important; }
.pb-15 { padding-bottom: 1.5rem !important; }
.pb-2 { padding-bottom: 2rem !important; }
.pb-3 { padding-bottom: 3rem !important; }

.pl-0125 { padding-left: 0.125rem !important; }
.pl-025 { padding-left: 0.25rem !important; }
.pl-05 { padding-left: 0.5rem !important; }
.pl-1 { padding-left: 1rem !important; }
.pl-15 { padding-left: 1.5rem !important; }
.pl-2 { padding-left: 2rem !important; }
.pl-3 { padding-left: 3rem !important; }

.pr-0125 { padding-right: 0.125rem !important; }
.pr-025 { padding-right: 0.25rem !important; }
.pr-05 { padding-right: 0.5rem !important; }
.pr-1 { padding-right: 1rem !important; }
.pr-15 { padding-right: 1.5rem !important; }
.pr-2 { padding-right: 2rem !important; }
.pr-3 { padding-right: 3rem !important; }


.m-0125 { margin: 0.125rem !important; }
.m-025 { margin: 0.25rem !important; }
.m-05 { margin: 0.5rem !important; }
.m-1 { margin: 1rem !important; }
.m-15 { margin: 1.5rem !important; }
.m-2 { margin: 2rem !important; }
.m-3 { margin: 3rem !important; }

.mt-0125 { margin-top: 0.125rem !important; }
.mt-025 { margin-top: 0.25rem !important; }
.mt-05 { margin-top: 0.5rem !important; }
.mt-1 { margin-top: 1rem !important; }
.mt-15 { margin-top: 1.5rem !important; }
.mt-2 { margin-top: 2rem !important; }
.mt-3 { margin-top: 3rem !important; }

.mb-0125 { margin-bottom: 0.125rem !important; }
.mb-025 { margin-bottom: 0.25rem !important; }
.mb-05 { margin-bottom: 0.5rem !important; }
.mb-1 { margin-bottom: 1rem !important; }
.mb-15 { margin-bottom: 1.5rem !important; }
.mb-2 { margin-bottom: 2rem !important; }
.mb-3 { margin-bottom: 3rem !important; }

.mr-0125 { margin-right: 0.125rem !important; }
.mr-025 { margin-right: 0.25rem !important; }
.mr-05 { margin-right: 0.5rem !important; }
.mr-1 { margin-right: 1rem !important; }
.mr-15 { margin-right: 1.5rem !important; }
.mr-2 { margin-right: 2rem !important; }
.mr-3 { margin-right: 3rem !important; }

.ml-0125 { margin-left: 0.125rem !important; }
.ml-025 { margin-left: 0.25rem !important; }
.ml-05 { margin-left: 0.5rem !important; }
.ml-1 { margin-left: 1rem !important; }
.ml-15 { margin-left: 1.5rem !important; }
.ml-2 { margin-left: 2rem !important; }
.ml-3 { margin-left: 3rem !important; }


.va-middle { vertical-align: middle !important; }
.va-top { vertical-align: top !important; }
.va-bottom { vertical-align: bottom !important; }
.va-baseline { vertical-align: baseline !important; }
.va-text-top { vertical-align: text-top !important; }
.va-text-bottom { vertical-align: text-bottom !important; }


.minwidth-100px { min-width: 100px !important;}
.minwidth-150px { min-width: 150px !important; }
.minwidth-200px { min-width: 200px !important; }
.minwidth-250px { min-width: 250px !important; }
.minwidth-300px { min-width: 300px !important; }

/* Session Dashboard Styles */
.session-dashboard-table-wrapper {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}

.session-dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.session-dashboard-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.file-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
}

.file-chip-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--color-border);
    border-radius: 0.8rem;
    background: var(--color-card);
    color: var(--color-foreground);
    text-decoration: none;
    box-shadow: 0 8px 24px -24px rgba(15, 23, 42, 0.4);
}

.file-chip-link:hover,
.file-chip-link:focus-visible {
    color: var(--color-primary);
    border-color: color-mix(in srgb, var(--color-primary) 30%, var(--color-border));
}

.file-chip-remove {
    position: absolute;
    top: 0;
    right: 0;
    width: 1.15rem;
    height: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    background: var(--bs-danger);
    color: #fff;
    transform: translate(40%, -40%);
    box-shadow: 0 10px 20px -18px rgba(220, 38, 38, 0.95);
    z-index: 2;
}

.file-chip-remove:hover,
.file-chip-remove:focus-visible {
    background: color-mix(in srgb, var(--bs-danger) 86%, #000);
    color: #fff;
}

.file-chip-remove i {
    font-size: 0.6rem;
}

.login-screen-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-background);
}

.login-screen-card {
    width: 100%;
    max-width: 420px;
}

.login-screen-logo {
    display: block;
    width: 170px;
    max-width: 60vw;
    height: auto;
    margin: 0 auto 1rem;
}






/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .hide_in_mobile {
        display: none !important;
    }

    /* Hide page title blocks on mobile */
    .main-content .header h2,
    .main-content .header p.text-muted {
        display: none !important;
    }

    /* Login logo mobile constraint */
    .login-screen-logo {
        width: 120px;
        max-width: 50vw;
    }

    /* Container adjustments */
    .container-fluid {
        padding: 0.5rem !important;
    }
    
    .payments-table-container {
        border-radius: 8px;
        margin: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        position: relative;
    }
    
    /* Scroll indicator shadow */
    .payments-table-container::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to left, rgba(0,0,0,0.1), transparent);
        pointer-events: none;
    }
    
    /* Card spacing */
    .card {
        border-radius: 8px;
        margin-bottom: 0.75rem !important;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Form columns stack on mobile */
    .card-body .row .col-md-5,
    .card-body .row .col-md-2 {
        margin-bottom: 0.5rem;
    }
    
    .card-body .btn {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Header section */
    .bg-white.p-3 {
        padding: 1rem !important;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }
    
    .bg-white.p-3 > div:last-child {
        width: 100%;
    }
    
    .bg-white.p-3 .d-flex.gap-3 {
        width: 100%;
        justify-content: space-between;
    }
    
    .bg-white.p-3 h2 {
        font-size: 1.1rem !important;
    }
    
    .bg-white.p-3 p {
        font-size: 0.8rem !important;
    }
    
    /* Table adjustments */
    .payments-table {
        min-width: 600px;
    }
    
    .payments-table thead th {
        padding: 0.6rem 0.3rem;
        font-size: 0.7rem;
        white-space: nowrap;
    }
    
    .payments-table tbody td {
        padding: 0.5rem 0.3rem;
        font-size: 0.75rem;
    }
    
    /* Member name column */
    .member-name-cell {
        min-width: 120px;
        max-width: 120px;
        font-size: 0.7rem;
        padding: 0.5rem 0.4rem;
        box-shadow: 3px 0 5px rgba(0,0,0,0.1);
    }
    
    /* Week cells - larger touch targets */
    .week-cell {
        min-width: 55px;
        max-width: 55px;
        padding: 0.6rem 0.3rem;
    }
    
    .week-cell-content {
        gap: 0.4rem;
        flex-wrap: nowrap;
    }
    
    /* Icons - larger for touch */
    .add-payment-icon {
        font-size: 1.1rem !important;
    }
    
    .add-invitee-icon {
        font-size: 0.9rem !important;
    }
    
    .payment-value {
        font-size: 0.75rem;
    }
    
    /* Week cell badges */
    .week-cell .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
        white-space: nowrap;
    }
    
    .week-cell .badge i {
        font-size: 0.65rem;
    }
    
    /* Month headers */
    .month-header {
        font-size: 0.75rem;
        padding: 0.5rem 0.3rem !important;
    }
    
    /* Year selector */
    .year-selector {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .year-selector button {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .year-selector h4 {
        font-size: 1.25rem;
    }
    
    /* Dashboard dashboard header */
    .session-dashboard-card {
        border-radius: 8px;
        margin-bottom: 1rem;
    }
    
    .session-dashboard-table-wrapper {
        max-height: calc(100vh - 300px);
    }
    
    /* Modal adjustments */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-body .row {
        margin: 0;
    }
    
    /* Force single column on mobile for invitee modal */
    #existing-invitees-section.col-md-6,
    #invitee-form-section.col-md-6 {
        max-width: 100% !important;
        flex: 0 0 100% !important;
        border-right: none !important;
        margin-bottom: 1rem;
    }
    
    #existing-invitees-section {
        max-height: 200px;
        padding-bottom: 1rem;
        border-bottom: 1px solid #dee2e6;
    }
    
    /* Form inputs in modals */
    .modal-body .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    
    .modal-body .form-control {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    /* Modal buttons */
    .modal-footer .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        min-width: 80px;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    /* Prevent text overflow in cells */
    .week-cell,
    .member-name-cell {
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Better scrolling visual */
    .session-dashboard-table-wrapper::-webkit-scrollbar {
        height: 6px;
    }
    
    .session-dashboard-table-wrapper::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 3px;
    }
}

@media (max-width: 576px) {
    /* Extra small devices */
    .member-name-cell {
        min-width: 100px;
        max-width: 100px;
        font-size: 0.65rem;
    }
    
    .payments-table thead th {
        font-size: 0.65rem;
        padding: 0.5rem 0.2rem;
    }
    
    .week-cell {
        min-width: 45px;
        max-width: 45px;
    }
    
    .month-header {
        font-size: 0.7rem;
    }
    
    /* Hide hover effects on touch devices */
    .add-invitee-icon {
        opacity: 0.6;
    }
    
.year-selector h4 {
        font-size: 1.1rem;
    }
}

/* Sidebar admin section */
.sidebar-admin-block {
    border: 0;
    background: transparent;
    border-radius: var(--radius-lg);
    padding: 0.2rem 0;
}

.sidebar-admin-label {
    font-size: 0.67rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--color-muted-foreground);
    margin: 0 0 0.5rem 0.4rem;
}

.sidebar-admin-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    padding: 0.65rem 0.75rem;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--color-foreground);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    opacity: 0.95;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.sidebar-admin-link:hover {
    background: var(--color-muted);
}

.sidebar-admin-icon {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: var(--radius-sm);
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.85rem;
}

.sidebar-admin-icon i {
    font-size: 0.9rem;
    color: var(--color-muted-foreground);
}

.sidebar-admin-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    gap: 0.16rem;
}

.sidebar-admin-title {
    color: var(--color-foreground);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-admin-subtitle {
    color: var(--color-muted-foreground);
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-admin-badge {
    margin-left: auto;
    font-size: 0.64rem;
    font-weight: 700;
    color: var(--color-muted-foreground);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 0.12rem 0.46rem;
    background: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sidebar-logout-link {
    background: #dc2626;
    color: #ffffff !important;
    border: 1px solid #dc2626;
}

.sidebar-logout-link i,
.sidebar-logout-link span {
    color: #ffffff !important;
}

.sidebar-logout-link:hover {
    background: #b91c1c !important;
    border-color: #b91c1c;
    color: #ffffff !important;
}

.sidebar-collapse-toggle {
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: var(--radius-md);
    border-color: var(--color-border);
    color: var(--color-muted-foreground);
}

.sidebar-collapse-toggle:hover {
    background: var(--color-muted);
    border-color: var(--color-input);
    color: var(--color-foreground);
}

/* Collapsible sidebar (desktop): icon-only mode */
body.sidebar-collapsed .sidebar {
    width: 82px;
}

body.sidebar-collapsed .main-content {
    margin-left: 82px;
}

body.sidebar-collapsed .sidebar .sidebar-brand {
    justify-content: center;
}

body.sidebar-collapsed .sidebar .sidebar-brand-text,
body.sidebar-collapsed .sidebar .sidebar-version,
body.sidebar-collapsed .sidebar .sidebar-text,
body.sidebar-collapsed .sidebar .sidebar-admin-label,
body.sidebar-collapsed .sidebar .sidebar-admin-meta,
body.sidebar-collapsed .sidebar .sidebar-admin-badge,
body.sidebar-collapsed .sidebar .sidebar-chevron {
    display: none !important;
}

body.sidebar-collapsed .sidebar .sidebar-brand {
    justify-content: center !important;
}

body.sidebar-collapsed .sidebar .nav-link,
body.sidebar-collapsed .sidebar .sidebar-admin-link {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    gap: 0;
}

body.sidebar-collapsed .sidebar .nav-link i,
body.sidebar-collapsed .sidebar .sidebar-admin-link i {
    width: auto;
    font-size: 1rem;
    margin: 0;
}

body.sidebar-collapsed .sidebar .sidebar-admin-block {
    padding: 0.45rem;
}

body.sidebar-collapsed .sidebar .sidebar-admin-link {
    padding: 0.45rem;
}

body.sidebar-collapsed .sidebar .sidebar-admin-icon {
    margin: 0;
}

body.sidebar-collapsed .sidebar .collapse {
    display: none !important;
}

@media (max-width: 1024px) {
    body.sidebar-collapsed .sidebar {
        width: 280px;
    }

    body.sidebar-collapsed .main-content {
        margin-left: 0;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Make all interactive elements easier to tap */
    .week-cell {
        padding: 0.7rem 0.3rem;
    }
    
    .add-payment-icon,
    .add-invitee-icon,
    .payment-value {
        padding: 0.25rem;
    }
    
    /* Show invitee icons on touch devices */
    .week-cell .add-invitee-icon {
        opacity: 0.6 !important;
    }
}

/* ============================================================ */
/*  Dashboard overview                                          */
/* ============================================================ */

.dashboard-overview-card,
.dashboard-activity-card,
.dashboard-table-card {
    border: 1px solid color-mix(in srgb, var(--color-border) 84%, transparent);
    border-radius: calc(var(--radius-lg) + 0.05rem);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
    box-shadow: 0 22px 42px -34px rgba(15, 23, 42, 0.45);
}

.dashboard-overview-card {
    display: grid;
    gap: 0.4rem;
    height: 100%;
    padding: 1.25rem;
}

.dashboard-kicker {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted-foreground);
}

.dashboard-overview-value {
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #0f172a;
}

.dashboard-overview-meta {
    color: var(--color-muted-foreground);
    font-size: 0.9rem;
}

.dashboard-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-section-title h5 {
    margin-bottom: 0.2rem;
}

.dashboard-activity-card {
    display: grid;
    gap: 0.95rem;
    height: 100%;
    padding: 1rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px -30px rgba(15, 23, 42, 0.35);
}

.dashboard-activity-card-link {
    display: grid;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.dashboard-activity-card-link:hover,
.dashboard-activity-card-link:focus {
    color: inherit;
    text-decoration: none;
}

.dashboard-activity-card.is-attendance-pending {
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.95) 0%, rgba(226, 232, 240, 0.94) 100%);
    filter: grayscale(0.4);
}

.dashboard-activity-head {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: start;
}

.dashboard-activity-icon {
    width: 3.25rem;
    height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.18) 0%, rgba(14, 116, 144, 0.22) 100%);
    color: #0f766e;
    font-size: 1.15rem;
}

.dashboard-activity-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-activity-name {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.2rem;
}

.dashboard-activity-coach,
.dashboard-activity-session-date,
.dashboard-activity-sessions {
    color: var(--color-muted-foreground);
    font-size: 0.84rem;
}

.dashboard-activity-sessions {
    min-height: 2.5rem;
}

.dashboard-attendance-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
    font-weight: 800;
    font-size: 0.84rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.dashboard-attendance-chip.is-pending {
    background: rgba(100, 116, 139, 0.16);
    color: #475569;
}

.dashboard-table-card .card-header {
    background: transparent;
    border-bottom: 1px solid color-mix(in srgb, var(--color-border) 82%, transparent);
    padding: 1rem 1.25rem;
}

.dashboard-table-card .card-body {
    padding: 0;
}

.dashboard-table-card .table {
    margin-bottom: 0;
}

.dashboard-table-card .table th {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-muted-foreground);
    white-space: nowrap;
}

.dashboard-table-card .table td {
    vertical-align: middle;
}

.dashboard-empty-state {
    padding: 1.5rem;
    color: var(--color-muted-foreground);
}

/* Dashboard approval action buttons */
.dashboard-approval-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ============================================================ */
/*  Coach payment proof cell                                    */
/* ============================================================ */
.coach-payment-proof-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.coach-payment-proof-upload-label {
    cursor: pointer;
}

/* ============================================================ */
/*  Global mobile calendar responsive styles                    */
/* ============================================================ */

@media (max-width: 767.98px) {
    .offcanvas.offcanvas-end,
    .offcanvas.offcanvas-bottom {
        width: 100vw !important;
        max-width: 100vw !important;
    }

    .offcanvas.offcanvas-bottom {
        max-height: 80vh;
        border-radius: 1.25rem 1.25rem 0 0;
    }

    .activities-year-calendar-months {
        grid-template-columns: 1fr !important;
        padding: 0.5rem !important;
        gap: 0.5rem !important;
    }

    .activities-year-month {
        border-radius: var(--radius-md);
    }

    .activities-year-day {
        min-height: 4.5rem;
        padding: 0.35rem 0.25rem;
    }

    .activities-year-day-number {
        font-size: 0.82rem;
    }

    .activities-year-thumb {
        width: 1.25rem;
        height: 1.25rem;
        font-size: 0.6rem;
        border-radius: 0.35rem;
    }
}

/* ============================================================ */
/*  Image upload spinner overlay                                */
/* ============================================================ */

.activity-table-image-frame.is-uploading {
    pointer-events: none;
}

.activity-image-upload-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    border-radius: inherit;
    z-index: 2;
    font-size: 1.2rem;
    color: var(--color-muted-foreground, #6b7280);
}

.activity-table-image-stack {
    position: relative;
}

.file-upload-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    color: var(--color-muted-foreground, #6b7280);
    font-size: 1rem;
}

/* ============================================================ */
/*  Timeline side-dock                                          */
/* ============================================================ */

.timeline-dock {
    width: 380px;
    max-width: 95vw;
}

.timeline-filter-bar {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.75rem;
}

.timeline-items {
    position: relative;
    padding: 0;
}

.timeline-items::before {
    content: '';
    position: absolute;
    left: calc(1rem - 1px);
    top: 1.75rem;
    bottom: 1.75rem;
    width: 2px;
    background-color: var(--bs-primary, #4f9cf9);
    opacity: 0.2;
    border-radius: 1px;
}

.timeline-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: none;
    position: relative;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item-dot {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--bs-primary, #4f9cf9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--bs-primary, #4f9cf9);
    margin-top: 0.3rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 3px rgba(79, 156, 249, 0.08);
}

.timeline-item-body {
    flex: 1;
    min-width: 0;
    background: var(--color-muted, #f8f9fb);
    border-radius: 0.6rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--color-border, #e5e7eb);
}

.timeline-item-action {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.15rem;
}

.timeline-item-desc {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
    word-break: break-word;
}

.timeline-item-meta {
    margin-bottom: 0.15rem;
}

.timeline-entity-badge {
    font-size: 0.7rem;
}

.timeline-item-time {
    font-size: 0.72rem;
}

.timeline-empty {
    color: var(--color-muted-foreground, #6b7280);
}

.timeline-btn-trigger {
    white-space: nowrap;
}

/* ============================================================ */
/*  Sidedock / Offcanvas z-index override                       */
/*  Must exceed language selector (1030) and its dropdown (1100) */
/*  Note: set directly on the element selectors – the :root CSS  */
/*  variable is overridden by Bootstrap's higher-specificity     */
/*  .offcanvas rule and would not take effect.                   */
/* ============================================================ */

.offcanvas,
.offcanvas-xxl,
.offcanvas-xl,
.offcanvas-lg,
.offcanvas-md,
.offcanvas-sm {
    z-index: 1110;
}

.offcanvas-backdrop {
    z-index: 1105;
}

.secondary-sidedock {
    z-index: 1150;
}

/* ============================================================ */
/*  Collapsible filter card (mobile-only collapse)              */
/* ============================================================ */

.filter-card .filter-card-toggle {
    display: none;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.filter-card .filter-card-toggle i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.filter-card.is-open .filter-card-toggle i {
    transform: rotate(180deg);
}

@media (max-width: 767.98px) {
    .filter-card .card-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        background: transparent;
        border-bottom: 0;
    }

    .filter-card .filter-card-toggle {
        display: inline-flex;
    }

    .filter-card .filter-card-body {
        display: none;
        border-top: 1px solid var(--color-border, #e5e7eb);
    }

    .filter-card.is-open .filter-card-body {
        display: block;
    }
}

@media (min-width: 768px) {
    .filter-card .card-header {
        display: none;
    }

    .filter-card .filter-card-body {
        display: block !important;
    }
}

/* year-select filter card: slightly wider for "YYYY/YYYY" format */
.report-year-select {
    min-width: 8.5rem;
}

/* ============================================================ */
/*  Compact offcanvas / side-dock forms                         */
/*  Reduces internal spacing so all fields fit without          */
/*  scrolling on typical desktop viewport heights.              */
/* ============================================================ */

.offcanvas-header {
    padding: 0.65rem 1rem;
}

.offcanvas-body {
    padding: 0.65rem 1rem;
}

.offcanvas-body .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.offcanvas-body .form-control,
.offcanvas-body .form-select {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    font-size: 0.875rem;
}

.offcanvas-body .form-text {
    font-size: 0.72rem;
    margin-top: 0.15rem;
}

.offcanvas-body form .mb-3 {
    margin-bottom: 0.5rem !important;
}

.offcanvas-body form .mb-4 {
    margin-bottom: 0.65rem !important;
}

.offcanvas-body form .my-4 {
    margin-top: 0.65rem !important;
    margin-bottom: 0.65rem !important;
}

.offcanvas-body form .mt-3,
.offcanvas-body form .mt-4 {
    margin-top: 0.65rem !important;
}

.offcanvas-body form .row.g-3 {
    --bs-gutter-y: 0.5rem;
    --bs-gutter-x: 0.75rem;
}

.offcanvas-body h6 {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.offcanvas-body p.text-muted.mb-0.small {
    font-size: 0.75rem;
}

.offcanvas-body .d-grid.mt-4 {
    margin-top: 0.75rem !important;
}


/* ============================================================ */
/*  Parent self-registration screen                             */
/* ============================================================ */

.register-screen-card {
    max-width: 32rem;
}

.register-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}

.register-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.register-step.is-active,
.register-step.is-done {
    opacity: 1;
}

.register-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: var(--muted, #f1f5f9);
    color: var(--muted-foreground, #64748b);
    font-size: 0.8125rem;
    font-weight: 600;
}

.register-step.is-active .register-step-number {
    background: var(--primary, #0f172a);
    color: var(--primary-foreground, #ffffff);
}

.register-step.is-done .register-step-number {
    background: rgba(22, 163, 74, 0.15);
    color: #16a34a;
}

.register-step-label {
    font-size: 0.8125rem;
    color: var(--muted-foreground, #64748b);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.register-step.is-active .register-step-label {
    color: var(--foreground, #0f172a);
    font-weight: 500;
}

.register-kid-card {
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 0.625rem;
    padding: 0.875rem;
    margin-bottom: 0.75rem;
    background: var(--muted, #f8fafc);
}

.register-kid-card .form-label {
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
}

@media (max-width: 575.98px) {
    .register-step-label {
        display: none;
    }

    .register-steps {
        justify-content: center;
        gap: 0.75rem;
    }

    .register-step {
        flex: 0 0 auto;
    }
}
