/* Weekly calendar table rendered by weekly-board-calendar.js. */
.tb-table-wrap {
    overflow-x: auto;
    position: relative;
}

.tb-table-wrap .tb-table {
    transition: opacity .22s ease;
}

.tb-table-wrap .ftb-title {
    width: 100%;
    min-width: 720px;
    margin: 0;
    padding: 18px 24px;
    background: #e83272;
    color: #fff;
    text-align: center;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 800;
}

.tb-table-wrap .ftb-title span {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    opacity: .9;
}

.tb-table-wrap.is-loading .tb-table,
.tb-table-wrap.is-filtering .tb-table {
    opacity: .72;
}

.tb-table-wrap.is-filtering::after,
.tb-table-wrap.is-loading::after {
    content: "מסנן...";
    position: sticky;
    inset-inline-start: 16px;
    top: 12px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    margin: 10px;
    padding: 8px 12px;
    border: 1px solid #dfe7ee;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #003b5c;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(0, 47, 75, .12);
}

.tb-table-wrap.is-filtering::before,
.tb-table-wrap.is-loading::before {
    content: "";
    position: sticky;
    inset-inline-start: 86px;
    top: 22px;
    z-index: 6;
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-inline-start: -34px;
    border: 2px solid #dfe7ee;
    border-top-color: #e83272;
    border-radius: 50%;
    animation: tb-filter-spin .7s linear infinite;
}

.tb-table {
    min-width: 720px;
    display: grid;
    grid-template-columns:120px minmax(0, 1fr);
    direction: rtl;
    gap: 0;
    border-top: 1px solid #dfe7ee;
    border-inline-start: 1px solid #dfe7ee;
    background: #dfe7ee;
}

.tb-head {
    background: #e83272;
    color: #fff;
    text-align: center;
    padding: 15px 10px;
    font-weight: 700;
    border-inline-end: 1px solid rgba(255, 255, 255, .22);
    border-bottom: 1px solid #dfe7ee;
}

.tb-head.empty {
    background: #fff;
    border-inline-end: 1px solid #dfe7ee;
}

.tb-days-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 8px 10px;
    background: #fff;
    border-inline-end: 1px solid #dfe7ee;
    border-bottom: 1px solid #dfe7ee;
    flex-direction: row;
    justify-content: flex-end;
}

.tb-day-button {
    appearance: none;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 82px;
    min-height: 34px;
    padding: 6px 10px;
    font: inherit;
    box-shadow: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease !important;
    background: #c0deec !important;
    color: #405167 !important;
    border: 3px solid transparent !important;
    border-radius: 12px !important;
    font-weight: bold !important;
}

.tb-day-button:hover,
.tb-day-button:focus-visible,
.tb-day-button.is-active {
    background: #f2f7fa;
    border-color: #cc275a !important;
    box-shadow: none;
    outline: none;
    color: #cc275a !important;
}

.tb-day-date {
    font-size: 11px;
    font-weight: 600;
    opacity: .82;
    display: none;
}

.tb-time {
    min-height: 170px;
    border: 0;
    border-inline-end: 1px solid #dfe7ee;
    border-bottom: 1px solid #dfe7ee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #003b5c;
    font-weight: 700;
    background: #fafcfe;
}

.tb-cell {
    min-height: 170px;
    padding: 8px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: visible;
    background: #fff;
    border-inline-end: 1px solid #dfe7ee;
    border-bottom: 1px solid #dfe7ee;
}

.tb-card {
    width: 150px;
    flex: 0 0 150px;
    background: #fff;
    border: 1px solid #dfe7ee;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0, 47, 75, .08);
}

.tb-card img {
    width: 100%;
    max-width: 150px;
    flex: 0 0 auto;
    object-fit: cover;
    display: block;
}

.tb-card-body {
    padding: 8px;
    text-align: center;
}

.tb-card-title {
    color: #003b5c;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
}

.tb-card-time {
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
}

.tb-card-trainer {
    font-size: 11px;
    color: #003b5c;
    font-weight: 600;
    margin-bottom: 4px;
}

.tb-card-category {
    font-size: 11px;
    color: #e83272;
    font-weight: 700;
    margin-bottom: 8px;
}

.tb-card-btn {
    display: inline-block;
    background: #e83272;
    color: #fff;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
}

.tb-table-message {
    width: 100%;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #667085;
    font-size: 14px;
    font-weight: 700;
    background: #fff;
    border: 1px dashed #cfd9e3;
    border-radius: 10px;
}

.tb-card--skeleton {
    pointer-events: none;
    box-shadow: none;
}

.tb-skeleton-img,
.tb-skeleton-line {
    position: relative;
    overflow: hidden;
    background: #e8eef4;
}

.tb-skeleton-img::after,
.tb-skeleton-line::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent);
    animation: tb-skeleton-shimmer 1.15s infinite;
}

.tb-skeleton-img {
    width: 100%;
    height: 92px;
}

.tb-skeleton-line {
    width: 100%;
    height: 10px;
    margin: 0 auto 8px;
    border-radius: 999px;
}

.tb-skeleton-line.short {
    width: 62%;
    margin-bottom: 0;
}

@keyframes tb-skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

@keyframes tb-filter-spin {
    100% {
        transform: rotate(360deg);
    }
}

.tb-card--completed {
    opacity: .55;
    filter: grayscale(100%);
    position: relative;
}

.tb-card--completed::before {
    content: "הסתיים";
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    z-index: 2;
    background: rgba(0, 59, 92, .84);
    color: #fff;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
}

.tb-time-current,
.tb-cell-current {
    background: #fff7fb;
}

.tb-time-current {
    color: #e83272;
    box-shadow: inset 0 0 0 2px rgba(232, 50, 114, .16);
}

.tb-weekly-filter-open {
    display: none;
}
.ftb-mobile-filter-open.tb-weekly-filter-open {
    display: none;
}
@media (max-width: 768px) {
    .ftb-page .ftb-layout {
        display: block;
        width: calc(100% - 20px);
        margin: 0 auto;
    }

    .ftb-page .ftb-layout > .ftb-filters {
        display: none;
    }

    .tb-weekly-filter-open {
        position: fixed;
        right: 16px;
        bottom: 18px;
        z-index: 9998;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 104px;
        height: 46px;
        padding: 0 18px;
        border: 0;
        border-radius: 999px;
        background: linear-gradient(135deg, #ef4b78, #d63c67);
        color: #fff;
        font: inherit;
        font-size: 14px;
        font-weight: 800;
        box-shadow: 0 12px 28px rgba(214, 60, 103, .34);
        cursor: pointer;
    }

    .ftb-mobile-filter-panel .ftb-search {
        margin-bottom: 16px;
    }

    .ftb-mobile-filter-panel .ftb-search input {
        width: 100%;
    }

    .ftb-mobile-filter-panel .ftb-group {
        margin: 0 0 18px;
        padding: 0 0 16px;
        border-bottom: 1px solid #edf1f5;
    }

    .ftb-mobile-filter-panel .ftb-group h3 {
        margin: 0 0 10px;
        color: #083b63;
        font-size: 15px;
        font-weight: 800;
    }

    .ftb-mobile-filter-panel .ftb-filter-subheading {
        margin: 12px 0 8px;
        color: #667085;
        font-size: 12px;
        font-weight: 800;
    }

    .ftb-mobile-filter-panel .ftb-group label {
        display: flex;
        align-items: center;
        gap: 9px;
        min-height: 34px;
        color: #344054;
        font-size: 14px;
        font-weight: 600;
    }

    .ftb-mobile-filter-panel .ftb-time-range {
        margin-top: 6px;
    }

    .tb-table-wrap {
        display: block;
        overflow-x: visible;
        width: 100%;
    }

    .tb-table-wrap .ftb-title {
        display: block;
        min-width: 0;
        padding: 14px 16px;
        font-size: 22px;
        line-height: 1.2;
    }

    .tb-table-wrap .ftb-title span {
        margin-top: 4px;
        font-size: 12px;
    }

    .tb-table {
        min-width: 0;
        width: 100%;
        grid-template-columns: 72px minmax(0, 1fr);
        border-inline-start: 0;
    }

    .tb-head.empty {
        display: none;
    }

    .tb-days-nav {
        grid-column: 1 / -1;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        overflow-x: auto;
        padding: 10px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .tb-days-nav::-webkit-scrollbar,
    .tb-cell::-webkit-scrollbar {
        display: none;
    }

    .tb-day-button {
        flex: 0 0 76px;
        width: 76px;
        min-height: 44px;
        padding: 6px 8px;
        border-radius: 10px !important;
        border-width: 2px !important;
        scroll-snap-align: start;
    }

    .tb-day-label {
        font-size: 13px;
        line-height: 1.1;
    }

    .tb-day-date {
        margin-top: 3px;
        font-size: 10px;
        display: none;
    }

    .tb-time {
        min-height: 124px;
        padding: 8px 4px;
        font-size: 11px;
        line-height: 1.25;
        text-align: center;
    }

    .tb-cell {
        min-height: 124px;
        padding: 8px;
        flex-direction: column;
        overflow-x: visible;
        gap: 8px;
    }

    .tb-card {
        width: 100%;
        flex: 0 0 auto;
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        min-height: 108px;
        border-radius: 10px;
    }

    .tb-card img {
        width: 92px;
        max-width: none;
        height: 100%;
        min-height: 108px;
    }

    .tb-card-body {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        min-width: 0;
        padding: 9px 10px;
        text-align: start;
    }

    .tb-card-title {
        width: 100%;
        margin-bottom: 4px;
        font-size: 13px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .tb-card-time,
    .tb-card-trainer,
    .tb-card-category {
        margin-bottom: 3px;
        font-size: 11px;
        line-height: 1.25;
    }

    .tb-card-btn {
        margin-top: 3px;
        padding: 5px 12px;
        font-size: 11px;
    }

    .tb-table-message {
        min-height: 96px;
        padding: 12px;
        font-size: 13px;
    }

    .tb-skeleton-img {
        width: 92px;
        height: 100%;
        min-height: 108px;
    }

    .tb-card--completed::before {
        top: 6px;
        inset-inline-start: 6px;
    }

    .tb-table-wrap.is-filtering::after,
    .tb-table-wrap.is-loading::after {
        top: 8px;
        margin: 8px;
        padding: 7px 10px;
        font-size: 11px;
    }

    .tb-table-wrap.is-filtering::before,
    .tb-table-wrap.is-loading::before {
        top: 17px;
    }

    .ftb-mobile-filter-open.tb-weekly-filter-open {
        display: block;
        width: 92% !important;
        margin: 0 auto;
        left: 0 !important;
        right: 0 !important;
        min-width: 80%;
        color: #cc275a;
        background: #c0deec;
        border: none;
        border-radius: 10px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.41);
    }
    .ftb-mobile-filter-apply {
        color: white !important;
    }
}

@media (max-width: 420px) {
    .tb-table {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .tb-time {
        font-size: 10px;
    }

    .tb-card {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .tb-card img,
    .tb-skeleton-img {
        width: 78px;
    }

    .tb-card-body {
        padding: 8px;
    }
}
