﻿.page-schedule .col-md-3 .widget {
    background: var(--bs-body-bg);
    border-radius: 8px;
    padding: 12px;
}

/* Giao diện chung */
.schedule-item {
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 0px;
    background: var(--bs-body-bg);
    transition: 0.3s;
}

    .schedule-item .top .left {
        width: 60%;
        padding-right: 20px;
        position: relative;
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        gap: 5px;
    }

    .schedule-item .top .right {
        width: 40%;
        padding-left: 20px;
        display: flex;
        flex-direction: column;
        gap: 5px;
        flex-wrap: wrap;
    }

        .schedule-item .top .right .expand {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

            .schedule-item .top .right .expand .root {
                display: flex;
                flex-direction: column;
                gap: 4px;
            }

    .schedule-item .top .left .box {
        display: flex;
        justify-content: space-between;
        gap: 24px;
        align-items: center;
    }

    .schedule-item .top .right .expand .root .type {
        font-weight: bold;
        color: #34344B;
        padding-left: 28px;
        background-image: url(/images/icon-ship.png);
        background-size: 20px;
        background-repeat: no-repeat;
        background-position: left center;
    }

    .schedule-item .top .right .expand .root .vassel a {
        font-weight: 500;
        color: #1D62E7;
    }

    .schedule-item .top .right .more {
        margin-left: auto;
        margin-top: auto;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        height: 33px;
        gap: 8px;
        font-weight: 600;
        color: #5A7184;
    }

    .schedule-item .top .left .brand {
        width: 110px;
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

        .schedule-item .top .left .brand .book {
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 33px;
            background: #FFF4DD;
            border-radius: 8px;
            color: #dc0000;
            font-weight: bold;
            text-transform: uppercase;
        }

        .schedule-item .top .left .brand .view {
            font-weight: 500;
            font-size: 14px;
            line-height: 1;
        }

    .schedule-item .top .left .root {
        display: flex;
        align-items: center;
        gap: 24px;
    }

        .schedule-item .top .left .root .it {
            padding-left: 30px;
            background-image: url(/images/icon-local-active.png);
            background-size: 24px;
            background-repeat: no-repeat;
            background-position: left center;
            display: block;
        }

        .schedule-item .top .left .root .name {
            font-weight: bold;
            color: var(--bs-body-color);
        }

        .schedule-item .top .left .root .date {
            color: #5A7184;
            font-weight: 500;
        }

    .schedule-item:hover {
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    }

    .schedule-item .top .left .root .arrow {
        width: 24px;
        height: 24px;
        display: block;
        background-image: url(/images/icon-arrow.png);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }

    .schedule-item .top .left .day .name {
        font-weight: bold;
        color: var(--bs-body-color);
    }

    .schedule-item .top .left .day .sub {
        color: #5A7184;
        font-weight: 500;
    }

    .schedule-item .top .left .update {
        color: #5A7184;
        margin-top: auto;
        font-size: 14px;
        font-weight: 500;
    }

    .schedule-item .top .left:after {
        content: "";
        display: block;
        width: 1px;
        height: 80px;
        max-height: 90%;
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        background: #E2E2E2;
    }

    .schedule-item .top .right .expand {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

        .schedule-item .top .right .expand .root {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

            .schedule-item .top .right .expand .root .type {
                font-weight: bold;
                color: var(--bs-body-color);
                padding-left: 28px;
                background-image: url(/images/icon-ship.png);
                background-size: 20px;
                background-repeat: no-repeat;
                background-position: left center;
            }

.more {
    color: #007bff;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .more i {
        transition: transform 0.3s ease-in-out;
    }

.detail-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.3s;
    opacity: 0;
}

    .detail-container.show {
        max-height: 500px;
        opacity: 1;
        display: block !important;
    }

/* Step Detail */
.step {
    padding: 10px 0;
}

.location, .journey {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.icon {
    width: 20px;
    height: 20px;
    background: #007bff;
    border-radius: 50%;
}

.name {
    font-weight: 600;
}

.dot {
    margin: 0 5px;
    color: #007bff;
}

.ship {
    font-size: 16px;
    font-weight: 600;
    color: #343a40;
}

.skeleton {
    background: var(--bs-body-bg);
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 0.25rem;
    display: flex;
    flex-direction: column;
}

.skeleton-box {
    height: 15px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f6f6f6 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 4px;
    margin-bottom: 8px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.list-schedule {
    flex-direction: column;
    gap: 1px;
}

.container-input {
    position: relative;
    display: flex;
    align-items: center;
}

.clear-btn {
    display: none; /* Ẩn mặc định */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #999;
}

    .clear-btn:hover {
        color: red;
    }

.schedule-item .bot {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #E2E2E2;
    display: none;
}

.schedule-item.save .bot {
    margin-top: 15px;
    padding-top: 15px;
}

.schedule-item .bot .step {
    display: flex;
    flex-direction: column;
}

.schedule-item .bot .location {
    display: flex;
    align-items: center;
    gap: 24px;
}

.schedule-item .bot .journey {
    display: flex;
    align-items: center;
    gap: 24px;
}

.schedule-item .bot .icon {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #fff;
    background-size: 24px;
    background-repeat: no-repeat;
    background-position: center;
}

.schedule-item .bot .location .icon {
    background-image: url(/images/icon-local-2.png);
    background-color: #F8F8F8;
}

.schedule-item .bot .location.end .icon {
    background-image: url(/images/icon-local-end.png);
    background-color: #EDF9E6;
}

.schedule-item .bot .location .box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .schedule-item .bot .location .box .name {
        display: flex;
        flex-wrap: wrap;
        column-gap: 8px;
        row-gap: 4px;
        align-items: center;
    }

        .schedule-item .bot .location .box .name .value {
            font-weight: bold;
            color: var(--bs-body-color);
        }

        .schedule-item .bot .location .box .name .date {
            font-weight: bold;
        }

        .schedule-item .bot .location .box .name .dot {
            width: 4px;
            height: 4px;
            background: #5A7184;
            border-radius: 50%;
            display: block;
        }

        .schedule-item .bot .location .box .name .sub {
            font-weight: 500;
            color: #5A7184;
        }

    .schedule-item .bot .location .box .addr {
        font-size: 14px;
        color: #5A7184;
        font-weight: 500;
    }

.schedule-item .bot .journey .icon {
    background-image: url(/images/icon-arrow-down.png);
}

.schedule-item .bot .box {
    width: calc(100% - 48px - 24px);
}

.schedule-item .bot .journey .box {
    padding: 5px 15px;
    background: var(--bs-body-bg);
    border-radius: 8px;
    display: flex;
}

.schedule-item.save .bot .journey .box {
    padding: 15px;
}

.schedule-item .bot .journey .box .ship {
    padding-right: 48px;
    display: flex;
    align-items: center;
    padding-left: 36px;
    color: var(--bs-body-color);
    font-weight: 500;
    background-image: url(/images/icon-ship-2.png);
    background-size: 24px;
    background-repeat: no-repeat;
    background-position: left center;
    border-right: 1px solid #e2e2e2;
}

.schedule-item .bot .journey .box .value {
    padding-left: 48px;
    display: flex;
    column-gap: 48px;
}

    .schedule-item .bot .journey .box .value .name {
        font-weight: bold;
        color: var(--bs-body-color);
    }

    .schedule-item .bot .journey .box .value .date {
        font-weight: 500;
        color: #5A7184;
    }

@media (max-width: 767px) {
    .schedule-item .top {
        flex-wrap: wrap;
    }

        .schedule-item .top .left {
            width: 100%;
            padding-right: 0;
            border-bottom: 1px solid #E2E2E2;
            padding-bottom: 10px;
            margin-bottom: 10px;
        }

            .schedule-item .top .left:after {
                display: none;
            }

            .schedule-item .top .left .box {
                flex-wrap: wrap;
                gap: 20px;
            }

            .schedule-item .top .left .brand {
                width: 100%;
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
            }

                .schedule-item .top .left .brand .book {
                    min-width: 80px;
                    text-align: center;
                    padding: 0 16px;
                }

            .schedule-item .top .left .root {
                width: 100%;
                gap: 20px;
                justify-content: space-between;
            }

            .schedule-item .top .left .day {
                width: auto;
            }

        .schedule-item .top .right {
            width: 100%;
            padding-left: 0;
            position: relative;
        }

            .schedule-item .top .right .expand .root {
                width: 100%;
            }

            .schedule-item .top .right .expand .tag {
                position: absolute;
                bottom: 8px;
                right: 0;
            }

            .schedule-item .top .right .more {
                margin-left: 0;
                margin-right: auto;
                height: 35px;
            }

    .schedule-item .bot {
        padding-top: 10px;
        margin-top: 10px;
    }

        .schedule-item .bot .location {
            gap: 8px;
        }

        .schedule-item .bot .step {
            gap: 5px;
        }

        .schedule-item .bot .journey {
            gap: 8px;
        }

            .schedule-item .bot .journey .box {
                padding: 5px 15px;
                flex-wrap: wrap;
            }

                .schedule-item .bot .journey .box .ship {
                    width: 100%;
                    padding-right: 0;
                    border-right: none;
                }

                .schedule-item .bot .journey .box .value {
                    flex-direction: column;
                    column-gap: 0;
                    row-gap: 20px;
                    padding-top: 10px;
                    margin-top: 10px;
                    border-top: 1px solid #e2e2e2;
                    width: 100%;
                    padding-left: 0;
                }

    .schedule-item.save .top .left {
        width: 100%;
    }

    .schedule-item.save .top .right {
        width: 100%;
    }

        .schedule-item.save .top .right .more {
            font-size: inherit;
        }
}
