@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root {
    --bg-btn-on: #4caf50;
    --bg-btn-stop: #c5030e;
    --bg-btn-origin: #f69126;
    --bg-btn-origin-dark: #ff8400;
    --bg-btn-red-dark: #dc3545e0;
    --bg-btn-red-dark-hover: #ff0018b5;
    --bg-btn-blue: #9be8fc;
    --bg-btn-black: #000000;
    --bg-btn-white: #fff;
    --bg-btn-datlien: #969696;
    --bg-btn-mongcot: #c3c1a8;
    --bg-btn-maunuoc: #87ceeb;
    --bg-sucsess: rgb(181 241 192 / 79%);
    --bg-error: rgb(205 33 33 / 85%);
    --bg-Trangthaicua: #cae9ebf7;
    --bg-Trangthaiauthuyen: #ade1f9;
    --bg-TQTTL: #bae8ed;
    --bg-TQTHL: #a9efc6ad;
    --bg-TQTAT: #c3eff985;
}
.bg-sucssess {
    background: var(--bg-sucsess) !important;
    color: var(--bg-btn-black) !important;
}
.bg-error {
    background: var(--bg-error) !important;
    color: var(--bg-btn-white) !important;
}
.bg-on {
    background-color: var(--bg-btn-on) !important;
    color: var(--bg-btn-white) !important;
}

.text-on {
    color: var(--bg-btn-on) !important;
}

.bg-stop {
    background-color: var(--bg-btn-stop) !important;
    color: var(--bg-btn-white) !important;
}

.text-stop {
    color: var(--bg-btn-stop) !important;
}

.row {
    margin-left: unset
}


/* Đảm bảo container-body không vượt quá kích thước màn hình */

.logo {
    width: 50px;
    border-radius: 50%;
}

/*.container-body {
    width: 100%;*/
/* Chiều rộng của container bằng 100% chiều rộng màn hình */
/*height: calc(100vh - 75px);*/
/* Chiều cao của container bằng 100% chiều cao màn hình */
/*overflow: hidden;*/
/* Ẩn mọi nội dung tràn ra ngoài */
/*display: flex;*/
/* Nếu bạn muốn sử dụng Flexbox để căn chỉnh */
/*flex-direction: column;*/
/* Đặt chiều hướng của flexbox là cột */
/*background-color: #f7f7f7 !important;
}

.container-body.full {
    height: calc(100vh);
}*/


/* Đảm bảo rằng mọi phần tử bên trong container cũng không vượt quá */

.container-fluid {
    width: 100%;
    height: 100%;
    /*overflow: auto;*/
    /* Hiển thị thanh cuộn nếu nội dung quá dài */
}

    .container-fluid.full {
        overflow: hidden;
    }


/* Giới hạn chiều rộng cho các phần tử bên trong */

.row {
    max-width: 100%;
    flex-grow: 1;
    /* Làm cho các phần tử con chiếm hết không gian còn lại */
}

    .row [class^="col-"] .box {
        border: 1px solid #cacaca !important;
        /* border-inline-start: 3px solid #007ac2!important; */
        background-color: #ffff;
    }

        .row [class^="col-"] .box .cardDDC {
            font-size: 15px;
            position: relative;
            /* overflow: hidden; */
        }

            .row [class^="col-"] .box .cardDDC .dock-expand {
                position: absolute;
                right: -6px;
                border-radius: 100%;
                border: 1px solid var(--bg-btn-datlien);
                background: #ffffff;
                width: 18px;
                height: 18px;
                --dashboard-line-height: 0;
                padding-top: 2px;
                top: -6px;
                z-index: 9999;
            }

            .row [class^="col-"] .box .cardDDC .dock-expand {
                visibility: hidden;
            }

            .row [class^="col-"] .box .cardDDC:hover .dock-expand {
                visibility: visible;
                cursor: pointer;
            }

            .row [class^="col-"] .box .cardDDC .dock-expand svg {
                margin-inline-start: 3px;
                padding-inline-end: 1.5px;
                fill: #000000;
                position: absolute;
            }

            .row [class^="col-"] .box .cardDDC .Card_head {
                padding-top: 2px;
            }

                .row [class^="col-"] .box .cardDDC .Card_head .title {
                    /* background-color: #007ac2; */
                    /* width: 100%; */
                    /* padding: 2px 20% 2px 10px; */
                    padding-left: 5px;
                    color: var(--bs-body-color);
                    /* text-transform: uppercase; */
                    text-align: center;
                    font-size: 15px;
                    font-weight: 600;
                }

            .row [class^="col-"] .box .cardDDC .Card_body {
                padding: 2px;
                width: 100%;
                overflow: hidden;
                /* Ẩn bất kỳ phần nào vượt ra ngoài */
                box-sizing: border-box;
                /* Bao gồm padding và border trong kích thước */
                white-space: nowrap;
                /* Ngăn không cho nội dung xuống dòng (nếu cần) */
            }

            .row [class^="col-"] .box .cardDDC .Card_footer {
                line-height: 1.25;
                font-size: 11px;
                font-style: italic;
            }

.table td,
.table th {
    padding: 5px;
    font-size: 12px;
}

.alert-list {
    max-height: 300px;
    overflow-y: auto;
    /* border: 1px solid #ddd; */
    padding: 3px;
    /* background-color: #f9f9f9; */
    width: 100%;
}

#alert-list .d-flex.justify-content-between {
    width: 100%; /* Đảm bảo chiếm hết chiều rộng */
    background-color: #fff;
    padding: 3px;
    margin-bottom: 2px;
    border: 1px solid #ccc;
}
    #alert-list .d-flex.justify-content-between > div:first-child {
        flex-grow: 1; /* Cho phép mở rộng theo nội dung */
        white-space: nowrap; /* Ngăn nội dung xuống dòng */
    }
.alert-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Hiển thị "..." nếu bị cắt */
}




.table_TrangThaiCustomDashboarh {
    font-weight: 600;
}

    .table_TrangThaiCustomDashboarh .td1,
    .table_TrangThaiCustomDashboarh .td3 {
        background-color: #0d6efd;
        color: #ffff;
    }

    .table_TrangThaiCustomDashboarh .td2 {
        background-color: #25e6a5;
        color: red;
    }

.boxChildren {
    border: 1px solid #cacaca6e;
    margin: 2px 2px 2px 2px;
    padding: 0px;
    background: #f7f7f7cc;
}

    .boxChildren .btn {
        border-radius: 0 !important;
    }

    .boxChildren table span.donvi {
        font-size: 12px;
    }

    .boxChildren table.tableNoborder td,
    .boxChildren table.tableNoborder th {
        border: none;
    }

.bodyChildren button.btn-iconCustom {
    width: 70px;
    height: 70px;
    border: none;
    color: white;
    border-radius: 50% !important;
    font-size: 16px;
}

    .bodyChildren button.btn-iconCustom.on {
        background-color: var(--bg-btn-on);
    }

    .bodyChildren button.btn-iconCustom.stop {
        background-color: var(--bg-btn-stop);
    }

    .bodyChildren button.btn-iconCustom img {
        width: 20px;
        height: 20px;
        vertical-align: middle;
    }

.AuThuyenCard {
    width: 100%;
    /* background-color: yellow; */
    height: 14em;
    position: relative;
    top: 0;
    left: 0;
    display: flex;
    /* Chuyển thành Flexbox để dễ dàng căn giữa */
    justify-content: center;
    /* Căn giữa theo chiều ngang */
    align-items: flex-start;
    /* Căn giữa theo chiều dọc */
    border: none;
}

.bodyAuThuyen {
    width: 100%;
    background-color: #9be8fc;
    height: 13em;
    position: relative;
    top: 0;
    left: 0;
    border: 1px solid#cacaca;
}

    .bodyAuThuyen .lineTop {
        position: absolute;
        top: 10%;
        background-color: #b6b6b6;
        z-index: 999;
        width: 60%;
        height: 2vh;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 10px;
    }

    .bodyAuThuyen .lineBot {
        position: absolute;
        bottom: 0;
        background-color: #b6b6b6;
        z-index: 999;
        width: 100%;
        height: 4vh;
        left: 50%;
        transform: translateX(-50%);
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
    }

    .bodyAuThuyen .lineLeft,
    .bodyAuThuyen .lineRight {
        transform-origin: bottom;
        /* Quay sang phải 90 độ */
        transition: transform 0.5s ease;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        z-index: 9;
        border: 1px dotted black;
        background-color: #cacaca;
        /* background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1)), linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1)); */
        /* background-size: 20px 20px; */
        /* Kích thước ô caro */
        width: 13px;
        height: 7.6em;
    }

    .bodyAuThuyen .lineRight {
        transform: rotate(30deg);
    }

    .bodyAuThuyen .lineLeft {
        transform: rotate(-30deg);
    }

    .bodyAuThuyen .lineLeft {
        position: absolute;
        bottom: 2.5rem;
        /* Gốc cố định ở đáy */
        left: 25%;
    }


    /* .bodyAuThuyen .lineLeft:hover {
    transform: rotate(-90deg);
} */

    .bodyAuThuyen .lineRight {
        position: absolute;
        bottom: 2.5rem;
        /* Gốc cố định ở đáy */
        right: 25%;
    }


    /* .bodyAuThuyen .lineRight:hover {
    transform: rotate(90deg);
} */

    .bodyAuThuyen .txt {
        position: relative;
        top: 45%;
        color: rgb(0, 0, 0);
        font-size: 14px;
        font-weight: 600;
    }

    .bodyAuThuyen .txtLeft {
        position: absolute;
        left: 2%;
        text-transform: uppercase;
        z-index: 99;
    }

    .bodyAuThuyen .txtRight {
        position: absolute;
        right: 2%;
        text-transform: uppercase;
        z-index: 99;
    }

    .bodyAuThuyen .txtCenter {
        position: absolute;
        left: 50%;
        transform: translate(-50%, -50%);
        /* Dịch để căn giữa cả hai chiều */
    }

    .bodyAuThuyen .txtDes {
        position: absolute;
        left: 50%;
        bottom: 3px;
        transform: translate(-50%, 0%);
        text-transform: uppercase;
        font-weight: 500;
        font-family: "Roboto", sans-serif;
        font-size: 20px;
        z-index: 999;
        color: var(--bg-btn-white);
    }

    .bodyAuThuyen .txtCenter .txtBoxTitle {
        text-transform: uppercase;
    }

    .bodyAuThuyen .txt .txtBox {
        border: 1px solid #cacaca;
        padding: 2px 10px;
        text-align: center;
        background-color: #ffff;
    }

.boxChildren_ThongSo .title {
    text-align: center;
    font-weight: 600;
    font-family: "Roboto", sans-serif;
    text-transform: uppercase;
    padding: 5px;
}

.boxChildren_ThongSo .row [class^="col-"] .boxChil {
    background-color: white;
    padding: 10px 5px;
}

    .boxChildren_ThongSo .row [class^="col-"] .boxChil .valTime {
        font-size: 12px;
        font-style: italic;
    }

    .boxChildren_ThongSo .row [class^="col-"] .boxChil .txt {
        /* font-weight: 600;
    vertical-align: middle;
    line-height: normal; */
        text-transform: uppercase;
        font-size: 14px;
        color: var(--bg-btn-origin);
        font-weight: 600;
        font-family: "Roboto", sans-serif;
    }

    .boxChildren_ThongSo .row [class^="col-"] .boxChil .val {
        font-size: 25px;
        color: var(--bg-btn-black);
        font-weight: 800;
        font-family: "Roboto", sans-serif;
    }

.table-hover-td td:hover {
    background-color: #f1f1f1;
}

    .table-hover-td td:hover button {
        cursor: pointer;
    }

table.table-padding-td thead td,
table.table-padding-td thead th,
table.table-padding-td tbody td,
table.table-padding-td tbody th {
    padding: 20px;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 600;
    font-family: "Roboto", sans-serif;
}

table.table-padding-td-mini thead td,
table.table-padding-td-mini thead th,
table.table-padding-td-mini tbody td,
table.table-padding-td-mini tbody th {
    padding: 5px;
    font-size: 16px;
    /* text-transform: uppercase; */
    font-weight: 600;
    font-family: "Roboto", sans-serif;
}

table.table-padding-td-sm thead td,
table.table-padding-td-sm thead th,
table.table-padding-td-sm tbody td,
table.table-padding-td-sm tbody th {
    padding: 18px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
    font-family: "Roboto", sans-serif;
}
.bodyChildren table .bg-change-ttcuacong {
    background: var(--bg-Trangthaicua);
    color: var(--bg-btn-black);
}
.bodyChildren table .bg-change-ttauthuyen {
    background: var(--bg-Trangthaiauthuyen);
    color: var(--bg-btn-black);
}
.bodyChildren table .bg-change-tqttl {
    background: var(--bg-TQTTL);
    color: var(--bg-btn-black);
}
.bodyChildren table .bg-change-tqthl {
    background: var(--bg-TQTHL);
    color: var(--bg-btn-black);
}
.bodyChildren table .bg-change-tqtat {
    background: var(--bg-TQTAT);
    color: var(--bg-btn-black);
}


.bodyChildren table .bg-change-color {
    background: #e6f7ff;
    color: var(--bg-btn-black);
}

.bodyChildren .btnLoading.active {
    background-color: var(--bg-btn-red-dark);
    transition: background-color 0.3s ease;
    color: var(--bg-btn-white);
}

.bodyChildren .btnLoadingActive {
    background-color: var(--bg-btn-red-dark);
    transition: background-color 0.3s ease;
    color: var(--bg-btn-white);
}

.bodyChildren td:hover.btnLoadingActive,
.bodyChildren .btnLoading.active:hover {
    background-color: var(--bg-btn-red-dark-hover);
    /* transition: background-color 0.3s ease; */
    color: var(--bg-btn-white);
}

.CuaCongCard {
    position: relative;
    width: 100%;
    height: 20em;
    display: flex;
    justify-content: center;
    align-items: self-end;
    border: none;
    padding: 10px;
}

    .CuaCongCard .bodyCuaCong {
        width: 100%;
        height: 10em;
        position: relative;
        top: 0;
        left: 0;
    }

    .CuaCongCard .txtCuaCong {
        position: absolute;
        left: 50%;
        transform: translate(-50%, 0%);
        z-index: 999;
    }

        .CuaCongCard .txtCuaCong .txtHaLuu {
            position: relative;
            top: -210px;
            background-color: var(--bg-btn-mongcot);
            padding: 5px;
            /* border: 3px solid #cacaca6e; */
            text-transform: uppercase;
            font-size: 16px;
            font-weight: 500;
            text-align: center;
        }

        .CuaCongCard .txtCuaCong .txtThuongLuu {
            position: relative;
            bottom: -10px;
            background-color: var(--bg-btn-mongcot);
            padding: 5px;
            /* border: 3px solid #cacaca6e; */
            text-transform: uppercase;
            font-size: 16px;
            font-weight: 500;
            text-align: center;
        }

.boxCuaCong {
    display: flex;
    /* Sử dụng Flexbox */
    align-items: flex-end;
    /* Canh giữa theo chiều dọc */
    justify-content: space-between;
    /* Phân bố đều */
    gap: 0;
    /* Loại bỏ khoảng cách giữa các phần tử */
    height: 50%;
}

    .boxCuaCong .datLien {
        height: 5vh;
        background-color: var(--bg-btn-datlien);
        width: 8vw;
    }

    .boxCuaCong .MongCua1,
    .boxCuaCong .MongCua2,
    .boxCuaCong .MongCua3 {
        width: 5vw;
        height: 20vh;
    }

        .boxCuaCong .MongCua1 .txtMongCot,
        .boxCuaCong .MongCua2 .txtMongCot,
        .boxCuaCong .MongCua3 .txtMongCot {
            position: relative;
            /* background-color: var(--bg-btn-mongcot); */
            padding: 5px;
            top: 112px;
            /* border: 3px solid #cacaca6e; */
            text-transform: uppercase;
            font-size: 16px;
            font-weight: 500;
            border-radius: 50%;
            text-align: center;
            left: -2%;
            z-index: 99;
        }

        .boxCuaCong .MongCua1 .MongCua,
        .boxCuaCong .MongCua2 .MongCua,
        .boxCuaCong .MongCua3 .MongCua {
            width: 100%;
            height: 100%;
            background-color: var(--bg-btn-mongcot);
            clip-path: polygon(0% 0%, 0% 100%, 100% 100%, 100% 40%, 70% 0%);
        }

    .boxCuaCong .Cua {
        width: 100%;
        height: 6em;
        /* background-color: red; */
    }

.CuaCongCard .AuThuyenText {
    height: 100%;
    width: 4%;
    text-align: center;
}

    .CuaCongCard .AuThuyenText .title {
        transform: rotate(90deg);
        /* Quay 90 độ theo chiều kim đồng hồ */
        transform-origin: left bottom;
        /* Gốc quay, tùy chỉnh theo vị trí */
        display: inline-block;
        /* Đảm bảo quay đúng */
    }

.CuaCongCard .MatNuoc {
    width: 100%;
    height: 10vh;
}

    .CuaCongCard .MatNuoc .MauNuoc {
        width: 100%;
        height: 100%;
        background-color: var(--bg-btn-maunuoc);
    }

.DoMoCuaCong .KhungCong {
    width: 100%;
    height: 100px;
    /* border: 3px solid #cacaca6e; */
    border-top: none;
    position: relative;
    overflow: hidden;
    /* Giữ nội dung không vượt khung */
    /* background-color: #e8e8e8; */
    /* Màu nền cho cửa cống */
}


/* Mực nước nằm bên dưới */

.MucNuocNen {
    width: 100%;
    height: 30%;
    /* background-color: #87ceeb; */
    /* Màu xanh cho nước */
    position: absolute;
    bottom: 0;
    z-index: 1;
    /* Nằm dưới lớp cửa cống */
}


/* Mực nước mô phỏng đóng cửa */

.MucNuoc {
    width: 100%;
    /* background-color: #4caf50; */
    background: repeating-linear-gradient(45deg, #919191, #919191 5px, #ccc 5px, #ccc 10px);
    /* Màu xanh lá cây cho cửa đóng */
    position: absolute;
    z-index: 2;
    /* Nằm trên mực nước nền */
    transition: height 0.5s ease;
    /* Hiệu ứng mượt */
}


    /* Đóng từ trên xuống */

    .MucNuoc.DongTren {
        top: 0;
    }


    /* Đóng từ dưới lên */

    .MucNuoc.DongDuoi {
        bottom: 0;
    }

.DoMoCuaCong .textCuaCong {
    text-align: center !important;
}

    .DoMoCuaCong .textCuaCong .txtNumber {
        position: relative;
        background-color: var(--bg-btn-mongcot);
        padding: 5px;
        top: -15px;
        /* border: 3px solid #cacaca6e; */
        text-transform: uppercase;
        font-size: 16px;
        font-weight: 500;
    }

#IMGDisconnect {
    background-color: var(--bg-btn-black);
    position: relative;
    top:0;
    left:0;
}
    #IMGDisconnect span {
        position: absolute;
        color: black;
        top: 30%;
        left: 6%;
        background: white;
        text-transform: uppercase;
        font-weight: 700;
        font-size: 16px;
        padding: 10px;
        border: 5px solid red;
    }

.Card_body.bodyCamera {
    display: flex;
    justify-content: center; /* Căn giữa theo chiều ngang */
    align-items: center; /* Căn giữa theo chiều dọc */
}



.MatKetNoi {
    line-height: 1.25;
    font-size: 11px;
    color: red;
}

.mkncuacong1.active, .mkncuacong2.active {
    animation: blinkConnectColor 0.8s infinite;
}
@keyframes blinkConnectColor {
    0%,50%,100% {
        color: red;
    }

    25%,75% {
        color: #ffae1f;
    }
}
