/* Day mode and upcoming schedule timeline. */
.ftb-head {
    background: #e43f78 !important;
    color: #fff !important;
    border-left: 1px solid rgba(255, 255, 255, .32);
}

.tb-week-day-head {
    width: 100%;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
}

.tb-week-day-head,
.tb-week-day-head * {
    color: #fff !important;
}

.tb-week-day-head:hover,
.tb-week-day-head:focus-visible {
    background: #d9366d !important;
    color: #fff !important;
    outline: 0;
    box-shadow: inset 0 -4px 0 rgba(255, 255, 255, .22);
}

.tb-day-view {
    width: 100%;
    min-width: 0;
    direction: rtl;
    border-radius: 24px;
    background: #f4f9fd;
    overflow: hidden;
}

.tb-day-view[hidden] {
    display: none !important;
}

.tb-day-view__header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border: 0;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: #e43f78;
    color: #fff;
}

.tb-day-view__header h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.tb-day-view__header h3 span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
    font-weight: 700;
}

.tb-back-to-week {
    flex: 0 0 auto;
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    padding: 0 16px;
    background: #e43f78;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.tb-back-to-week:hover,
.tb-back-to-week:focus-visible {
    background: #d9366d;
    color: #fff;
    outline: 0;
}

.tb-day-view__status {
    margin: 0;
    padding: 12px 14px;
    border-right: 1px solid #e2edf4;
    border-left: 1px solid #e2edf4;
    background: #fff;
    color: #063f66;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.tb-day-view__status[hidden] {
    display: none !important;
}

.tb-day-view__status.is-error {
    color: #b42343;
}

.tb-day-timeline {
    max-height: 650px;
    overflow: auto;
    background: #fff;
    border-radius: 0 0 18px 18px;
    border: 1px solid #e2edf4;
}

.tb-week-schedule {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
}

.tb-week-day-section {
    min-width: 0;
    border-bottom: 1px solid #edf1f5;
    background: #fff;
}

.tb-week-day-section:last-child {
    border-bottom: 0;
}

.tb-week-day-section-head {
    min-height: 48px;
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 14px 8px;
    background: #fff;
    color: #063f66;
    text-align: right;
}

.tb-week-day-section-head strong {
    color: #063f66;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

.tb-week-day-section-head span {
    color: #6b7d8d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.tb-week-day-section-body {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 12px 14px;
    background: #fff;
    scrollbar-width: thin;
}

.tb-week-day-section .tb-hour-row {
    display: flex;
    flex: 0 0 230px;
    min-width: 230px;
    flex-direction: column;
    min-height: 0;
    border: 1px solid #edf1f5;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.tb-week-day-section .tb-hour-label {
    padding: 8px 10px;
    border-left: 0;
    border-bottom: 1px solid #e5eef5;
    background: #f6fbff;
    color: #e43f78;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    direction: rtl;
}

.tb-week-day-section .tb-hour-content {
    display: flex;
    padding: 8px;
    gap: 8px;
    flex-direction: column;
}

.tb-week-day-section .tb-day-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.tb-week-empty-day {
    width: 100%;
    padding: 0 2px 14px;
    color: #6b7d8d;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.tb-hour-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    min-height: 90px;
    border-bottom: 1px solid #e5eef5;
    background: #fff;
}

.tb-hour-row:last-child {
    border-bottom: 0;
}

.tb-hour-label {
    padding: 18px 12px;
    font-weight: 700;
    color: #063f66;
    background: #f6fbff;
    border-left: 1px solid #e5eef5;
    text-align: center;
    direction: ltr;
}

.tb-hour-row.has-items .tb-hour-label {
    color: #e43f78;
}

.tb-hour-content {
    min-width: 0;
    padding: 12px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.tb-day-card {
    width: 190px;
    max-width: 190px;
    min-width: 0;
    background: #fff;
    border: 1px solid #dfeaf2;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(6, 63, 102, .08);
    text-align: right;
    overflow: hidden;
}

.tb-day-card__image {
    width: 100%;
    height: 80px;
    overflow: hidden;
    border-radius: 12px;
    background: #f6fbff;
}

.tb-day-card img,
.tb-day-card__image img {
    display: block;
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
}

.tb-day-card__body {
    min-width: 0;
}

.tb-day-card__title,
.tb-day-card__body strong {
    display: block;
    margin-top: 8px;
    font-weight: 700;
    color: #063f66;
    font-size: 14px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.tb-day-card__meta {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #5c6f82;
    line-height: 1.35;
}

.tb-day-card__meta span {
    display: inline-block;
    margin: 0 0 4px 4px;
    color: #5c6f82;
    font-size: 12px;
}

.tb-day-card__body p {
    margin: 4px 0 0;
    color: #5c6f82;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tb-day-card__button,
.tb-day-card__body a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e43f78;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 12px;
}

.tb-day-card__button:hover,
.tb-day-card__body a:hover {
    background: #d9366d;
    color: #fff !important;
}

.ftb-page.tb-day-mode .ftb-board {
    display: none !important;
}

.ftb-page.tb-day-mode > .ftb-title {
    display: none !important;
}

.ftb-page.tb-day-mode .ftb-mobile-shell {
    display: none !important;
}

@media (max-width: 768px) {
    .ftb-page.tb-day-mode .ftb-layout {
        display: block;
    }

    .ftb-page.tb-day-mode .ftb-title {
        display: none !important;
    }

    .ftb-page.tb-day-mode .ftb-layout {
        width: calc(100% - 28px);
        margin: 0 auto;
    }

    .ftb-page.tb-day-mode .ftb-board-wrap {
        padding: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .tb-day-view__header {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px;
    }

    .tb-day-view__header h3 {
        font-size: 18px;
    }

    .tb-day-timeline {
        max-height: 620px;
    }

    .tb-week-day-section-head {
        min-height: 44px;
        padding: 10px 12px 7px;
    }

    .tb-week-day-section-body {
        padding: 0 10px 12px;
        gap: 9px;
    }

    .tb-week-day-section .tb-hour-row {
        display: flex;
        flex: 0 0 220px;
        min-width: 220px;
        min-height: 0;
    }

    .tb-week-day-section .tb-hour-label {
        padding: 8px 10px;
        font-size: 12px;
    }

    .tb-week-day-section .tb-hour-content {
        padding: 8px;
        gap: 8px;
    }

    .tb-hour-row {
        grid-template-columns: 68px minmax(0, 1fr);
        min-height: 86px;
    }

    .tb-hour-label {
        padding: 16px 8px;
        font-size: 12px;
    }

    .tb-hour-content {
        padding: 10px;
        gap: 10px;
    }

    .tb-day-card {
        width: min(190px, 100%);
        max-width: 190px;
    }
}


