﻿body {
    font-family: 'Segoe UI';
    font-size: 14px;
    margin: 0;
}

.online {
    background-color: #038a0b;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

.offline {
    background-color: #ba0000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

.cam-img-thumb img{
    margin: 10px;
}

.my-checkboxlist td {
    border: none !important;
    background: #f1f1f1;
}

.my-checkboxlist input[type=checkbox] {
    margin-right: 10px;
    transform: scale(1.5);
}

.img-nav{
    display: inline-block;
    padding: 10px;
    text-align: center;
    margin-left: 10%;
    background-color: #f1f1f176;
}

.img-nav input[type=button]{
    height: 35px;
    width: 80px;
}

.weather table {
    border: none;
    border-collapse: collapse;
    margin: 5px 0;
}

.weather td{
    border: none;
}

.cam-data{
    font-size: 16px;
    font-weight: 700;
    margin: 10px;
}

.page select {
    padding: 7.5px 14px 5px 14px;
    margin-bottom: 8px;
    margin-right: 20px;
}

.map-page{
    width: 100%;
    height: calc(100vh - 85px);
    position:fixed;
    top: 85px;
    left: 0;
    display: flex;
    flex-direction: row;
}

.map-filter{
    width: calc(20% - 20px);
    min-width: 300px;
    margin: 0;
    padding: 10px;
}

.filter-box{

}

.filter-box .lich{
    width: 100%;
}

.yellow-box {
    width: 25px;
    height: 5px;
    background-color: yellow;
    display: inline-block;
    margin-left: 20px;
}

.red-box {
    width: 25px;
    height: 5px;
    background-color: red;
    display: inline-block;
    margin-left: 20px;
}

.map-show{
    width: calc(100% - 300px);
    margin: 0;
}

.my-slider {
    position: absolute;
    width: 300px;
    left: 50px;
    top: 10px;
}

img.home-icon{
    width: 18px;
    margin-right: 5px;
    margin-bottom: -3px;
}

img.login-icon {
    margin-bottom: -4px;
    margin-right: 10px;
    filter: drop-shadow(0px 0px 1px #fff);
    width: 22px;
}

.History{
    margin-top: 30px;
    background: #f1f1f1;
    padding: 15px;
}

.LyDo {
    background: #066d04;
    color: #fff;
    font-style: italic;
    font-weight: 600;
    padding: 10px 20px;
    margin: 5px 0px 5px 40px;
    border-radius: 5px;
}

.LyDo:before{
    content: url('Images/MoveNext20.png');
    margin-left: -55px;
    margin-right: 40px;
}

.overlay {
    display: none;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    background: rgb(0 0 0 / 0.86);
}

.overlay-box {
    background: #fff;
    padding: 40px;
    width: 400px;
    margin: 100px auto auto auto;
    border-radius: 3px;
    text-align: center;
    display: block;
    text-align: center;
}

.Note {
    display: none;
    background: #fff;
    border: 1px solid #094d7d;
    box-shadow: 0 0 10px 0 #555;
    padding: 0;
    width: 360px;
    min-height: 80px;
    margin: 20px auto;
    text-align: center;
    padding: 20px;
}

.Review {
    background: #ffcc00;
    color: #000;
    padding: 3px 8px;
    border-radius: 20px;
    cursor: default;
}

.Review:hover div.Note {
    display: block;
    position: absolute;
    z-index: 1000;
}

.BoSung {
    background: #0656d4;
    color: #fff;
    padding: 0px 8px 2px 8px;
    margin-left: 15px;
    display: inline-block;
    border-radius: 18px;
    font-size: 0.8rem;
}

.ChinhSua {
    background: #ff5500;
    color: #fff;
    padding: 0px 8px 2px 8px;
    margin-left: 15px;
    display: inline-block;
    border-radius: 18px;
    font-size: 0.8rem;
}

.menu-item {
    display: inline-block;
    padding: 3px 10px 5px 10px;
    border-radius: 3px;
    background: #164578;
    color: #ffdb00;
    margin: 3px 8px;
}

a.menu-item{
    text-decoration: none;
}

.table-title{
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.AttackFile{
    background: #e2e2e2;
    font-style: italic;
    padding: 3px 8px;
    border-radius: 30px;
}

.AttackFile:empty{
    display: none;
}

    .AttackFile .close {
        padding: 2px 8px;
        border-radius: 20px;
        background: #000;
        color: #fff;
        margin-right: -5px;
        margin-left: 8px;
        cursor: pointer;
    }

.menu{
    height: 35px;
    background: #eee;
    display: block;
}

.menu-item:first-child{
    margin-left: 10px;
}

.banner {
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    background: #002c5b;
    width: 100%;
}

.user-info{
    width: calc(100% - 210px);
    text-align: right;
    padding: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;    
}

#user-info {
    cursor: pointer;
}

.user-menu{
    display: none;
    position: absolute;
    top: 30px;
    right: 30px;
    background: #fff;
    padding: 10px;
    min-width: 100px;  
    border-radius: 5px;
    box-shadow: #e2e2e2 2px 2px 1px;
}

.user-menu a{
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #000;
}

.user-menu a:hover{
    background: #e2e2e2;
}

.logo-text {    
    color: #fff;
    font-size: 1.5rem;
    text-transform: uppercase;
    padding: 10px;
    font-family: Tahoma;
    width: 200px;
}

.logo-text a{
    color: #fff;
    text-decoration: none;
}

input {
    font-family: 'Segoe UI';
    font-size: 14px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}


.msg:has(.msg-content:empty){
    display: none;
}

.msg:not(:empty){
    background: #f7ecaf;
    color: #c70404;
    padding: 10px;
    text-align: center;
    display: block;
    margin: 10px auto;
}

.page{
    margin: 0 10px;
}

.page-content{
    overflow: auto;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
}

.page-content td{
    padding: 5px 8px;
    border: 1px solid #808080;
    vertical-align: top;
}

    .page-content td th {
        background: #029fd1;
        color: #fff;
        font-weight: 700;
        padding: 10px 8px;
        text-align: left;
    }

    .page-content td table td{
        width: 50%;
    }

    .page-content td .table-title{
        color: #a80101;
        margin-top: 0px;
    }

    .page-content th {
        background: #0a5b98;
        color: #ffe547;
        font-weight: 700;
        padding: 10px 8px;
        text-align: left;
    }

.page-content tr:nth-child(2n+1){
    background: #edf7ff;
}

.page-content tr:hover {
    background: #f7ecaf;
}

.page-content td a{
    margin: 3px 10px 3px 0;
    text-decoration: none;
    color: #fff;
    padding: 1px 8px;
    border-radius: 5px;
    background: #0455b9;
    display: inline-block;
    text-align: center;
}

    .page-content td a.ThaoTacSua {
        background: #ff5500;
        font-size: 1rem;
    }

    .page-content td a.ThaoTacXoa {
        background: #a80101;
        font-size: 1rem;
    }

    .page-content td a.ThaoTacDuyet {
        background: #39167c;
        font-size: 1rem;
    }

.page-content .pager{
    font-weight: 600;
    margin-bottom: 5px;
}

.page-title {
    text-transform: uppercase;
    font-weight: 700;
    color: #eee;
    margin: 15px 0;
    display: block;
    border-bottom: 1px solid #0a5b98;
    padding: 8px 10px;
    background: rgb(1 69 141 / 0.9);
}

.action{
    margin-bottom: 10px;
}

    .action #btBack {
        background: #dcdada;
        color: #000;
        padding: 5px 10px;
        margin-right: 10px;
        text-decoration: none;
        border-radius: 3px;
        border: none;
        margin-top: -5px;
    }

    .action a.bt-add {
        background: #088906;
        color: #fff;
        padding: 5px 10px;
        margin-right: 10px;
        text-decoration: none;
        border-radius: 3px;
    }

    .action a.bt-back {
        background: #dcdada;
        color: #000;
        padding: 5px 10px;
        margin-right: 10px;
        text-decoration: none;
        border-radius: 3px;
    }

    .action a.bt-expand {
        background: #00338f;
        color: #fff;
        padding: 5px 10px;
        margin-right: 10px;
        text-decoration: none;
        border-radius: 3px;
    }

.page-filter {
    text-align: center;
    padding: 5px;
    margin: 10px;
}

    .page-filter input[type=text] {
        padding: 4px 14px;
        margin-right: 20px;
    }

    .page-filter input[type=submit] {
        padding: 4px 14px;
        min-width: 80px;
    }

    .page-filter select {
        padding: 7.5px 14px 5px 14px;
        margin-bottom: 8px;
        margin-right: 20px;
    }

.page-search {
    text-align: center;
    padding: 5px;
    margin: 10px;
}

.page-search input[type=text]{
    padding: 4px 14px;
    margin-right: 0;
    width: 40%;
    min-width: 400px;
    max-width: 600px;
}

    .page-search input[type=submit] {
        padding: 4px 14px;
        margin-left: -5px;
        min-width: 80px;
    }

    .page-search select {
        padding: 7.5px 14px 5px 14px;
        margin-bottom: 8px;
    }

input[type=submit].bt-add {
    background: #088906;
    color: #fff;
}

input[type=submit].bt-save {
    background: #cc5e00;
    color: #fff;
}

input[type=submit].bt-delete {
    background: #a80101;
    color: #fff;
}

input[type=submit].bt-cancel {
    background: #d9d9d9;
    color: #000;
}

.flex{
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
}

    .flex .row {
        padding-right: 10px;
    }

.row{
    margin: 10px 0;
    box-sizing: border-box;    
}

.row label:first-child{
    display: block;
    margin-bottom: 3px;
}

.row input[type=text]{
    min-width: 100px;
    width: 50%;
    max-width: 100%;
    padding: 5px 10px;
}

    .row input[type=email] {
        width: 300px;
        padding: 5px 10px;
    }

    .row input[type=number] {
        width: 100px;
        padding: 5px 10px;
    }

    .row input[type=password] {
        width: 300px;
        padding: 5px 10px;
    }

    .row textarea{
        height: 150px;
        width: calc(100% - 20px);
        padding: 5px 10px;
    }

.row select{
    padding: 6px 10px;
    min-width: 300px;
}

.check-list td{
    border: none;
}

.buttons{
    border-top: 1px solid #cacaca;
    padding-top: 10px;
}

.inline-button {
    border: none;
    padding: 6px 16px;
    margin-right: 5px;
    margin-top: 8px;
    border-radius: 3px;
    min-width: 100px;
}

.buttons input[type=submit] {
    border: none;
    padding: 6px 16px;
    margin-left: 5px;
    border-radius: 3px;  
    min-width: 100px;
}

.hs-icon-list{
    display: flex;
    flex-wrap: wrap;
}

.hs-icon {
    margin: 5px;
    background: #00789f;
    color: #fff;
    display: block;
    width: 100px;
    text-align: center;
    border-radius: 3px;
    padding: 10px;
    border-top: 5px #ffdb00 solid;
    min-height: 40px;
}

    .hs-icon:hover {
        background: #ffdb00;
        color: #000;
    }

.hs-icon-list a{
    text-decoration: none;
}

.hs-icon-list-group {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
}

    .hs-icon-list-group a {
        text-decoration: none;
    }

    .hs-icon-list-group label{
        display: block;
        width: 100%;
        border-bottom: 1px solid #555;
        padding-bottom: 5px;
        margin-bottom: 10px;
        margin-top: 20px;
        font-weight: 500;
    }

.sidenav {
    width: 300px;
    margin: 0;
    padding: 10px;
    background-color: #fff;
    display: inline-block;
}

    .sidenav a {
        padding: 8px 8px 8px 32px;
        text-decoration: none;
        font-size: 25px;
        display: block;
        transition: 0.3s;
    }

        .sidenav a:hover {
            color: #f1f1f1;
        }

    .sidenav .closebtn {
        display: none;
    }

.sidenav-icon{
    display: none;
}

img.cam-view{
    object-fit: contain;
    width: 100%;
    height: 100%;
}



@media (max-width: 600px) {
    .map-show{
        width: 100%;
    }
    .sidenav-icon {
        display: inline-block;
        position: absolute;
        top: -33px;
        left: 0px;
        z-index: 1;
        background: #ccc;
        padding: 0px 5px;
    }
    .sidenav {
        height: 100%;
        width: 0px;
        position: fixed;
        z-index: 1;
        top: 0;
        left: 0;
        background-color: #fff;
        overflow-x: hidden;
        transition: 0.5s;
        padding: 0px;
    }

        .sidenav .closebtn {
            position: absolute;
            top: -10px;
            right: 5px;
            font-size: 36px;
            margin-left: 50px;
            display: block;
        }

        .sidenav a {
            font-size: 18px;
        }

    .banner {
        font-size: 1.5rem;
    }

    .map-filter{
        width: 0px;
    }

    .page-title {
        padding: 3px 10px;
    }

    .page-search input[type=text] {
        padding: 4px 14px;
        width: calc(100% - 150px);
        min-width: 200px;
    }

    .x{
        display: none;
    }

    a.ThaoTacSua, a.ThaoTacXoa{
        display: block;
        margin-bottom: 5px;
    }

    .row input[type=text], input[type=email], input[type=password]{
        width: 100% !important;
        box-sizing: border-box;
    }

    .row select {
        padding: 6px 10px;
        min-width: 100%;
    }

    .ChinhSua {
        background: #ff5500;
        color: #fff;
        padding: 1px 8px 2px 8px;
        margin-left: 0px;
        display: block;
        border-radius: 10px;
        font-size: 0.6rem;
        text-align: center;
    }

    .BoSung {
        background: #0656d4;
        color: #fff;
        padding: 1px 8px 2px 8px;
        margin-left: 0px;
        display: block;
        border-radius: 10px;
        font-size: 0.6rem;
        text-align: center;
    }

    .hs-icon {
        width: calc(30% - 18px);
    }

    .hide-mobile {
        display: none;
    }
}
