@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap");
@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/materialicons/v140/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
}
  
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root{
    --font-family: "Montserrat", sans-serif;
    --primary-color: #333;
    --transition: .2s ease-in-out;
    --box-shadow: 0px 1px 5px 1px rgba(0, 0, 0, 0.12);
}

html,body{
  touch-action: none !important;
}

body {
  background: #f5f5fa;
  color: #333;
  font-size: 1rem;
  font-weight: 400;
  font-family: var(--font-family);
  padding: 0;
  margin: 0;
}

input, select{
    height: 35px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
}

.btn{
    width: fit-content;
    height: 35px;
    padding: 0 16px;
    border: none;
    border-radius: 5px;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-family);
}

.dataTables_wrapper .dataTables_length{
    margin-bottom: 16px;
}

.table-container{
    position: relative;
    padding: 32px;
    background: #fff;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
}

.table-pagination{
    margin-top: 16px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.pagination ul, .pagination li {
    list-style: none;
    display: inline;
    padding-left: 0px;
    transition: var(--transition);
}
  
.pagination li {
    counter-increment: pagination;
    margin-left: 10px;
}

.pagination li:hover a {
    color: #fdfdfd;
    background-color: #1d1f20;
    border: solid 1px #1d1f20;
}

.pagination li.active a {
    color: #fdfdfd;
    background-color: #1d1f20;
    border: solid 1px #1d1f20;
}

.pagination li:first-child {
    float: left;
}

.pagination li:first-child a:after {
    font-family: "Material Icons";
    content: "\e5cb";
    position: relative;
    top: 1px;
    font-size: 14px;
}

.pagination li:nth-child(2) {
    counter-reset: pagination;
}

.pagination li:last-child {
    float: right;
}

.pagination li:last-child a:after {
    font-family: "Material Icons";
    content: "\e5cc";
    position: relative;
    top: 1px;
    font-size: 14px;
}

.pagination li a {
    border: solid 1px #d7d7d7;
    border-radius: 0.2rem;
    color: #7d7d7d;
    text-decoration: none;
    text-align: center;
    padding: 8px 16px;
    transition: var(--transition);
}

.pagination li a:after {
    content: " " counter(pagination) " ";
}

/** Login **/
.login-wrapper{
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../img/login-bg.png');
    background-size: 100%;
    background-position: center;
}

.login-container{
    position: relative;
    padding: 32px;
    width: 350px;
    background: #fff;
    box-shadow: var(--box-shadow);
}

.login-avatar{
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    text-align: center;
    margin-bottom: 16px;
}

.login-avatar img{
    height: 100%;
    vertical-align: middle;
}

.login-header{
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 32px;
}

.login-field{
    margin-top: 16px;
}

.login-field span{
    font-weight: 500;
    font-size: 13px;
}

.login-field input{
    width: 100%;
    margin-top: 6px;
    background: #fafafa;
    padding: 0px 6px;
}

.submit-login--btn{
    width: 100%;
    height: 40px;
    margin-top: 32px;
    background: #4b7b97;
    color: #fff;
    font-weight: bold;
    transition: var(--transition);
}

.submit-login--btn:hover{
    background: #336480;
}

/** Sidebar **/
.sidebar{
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background: #fff;
    border-right: 1px solid #ddd;
    transition: var(--transition);
    z-index: 2;
}

.company-logo{
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo img{
    vertical-align: middle;
}

.menu{
    padding: 16px;
    margin: 16px;
    display: flex;
    align-items: center;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.menu span{
    position: relative;
    margin-right: 8px;
}

.menu.active{
    background: var(--primary-color);
    color: #fff;
}

.menu.active span{
    color: #fff;
}

.menu:hover{
    background: var(--primary-color);
    color: #fff;
}

/** Navbar **/
.mobile-menu--btn, .mobile-logout{
    display: none;
}

.navbar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    z-index: 1;
}

.navbar-right{
    position: absolute;
    top: 10px;
    right: 16px;
    width: fit-content;
    height: 50px;
    display: flex;
    align-items: center;
}

.navbar-user{
    border-left: 1px solid #ddd;
    display: flex;
    align-items: center;
    padding: 0 16px;
    margin-left: 16px;
}

.navbar-notification{
    position: relative;
    background: #F1F5F9;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #868686;
    cursor: pointer;
    transition: var(--transition);
}

.navbar-notification:hover{
    color: #333;
    background: #dce1e6;
}

.user-photo{
    width: 45px;
    height: 45px;
    background: #eee;
    border-radius: 50%;
    margin-right: 16px;
}

.user-detail{
    line-height: 1.4;
}

.navbar-user--expand{
    margin-left: 16px;
    line-height: 0;
    cursor: pointer;
}

.user-profile{
    position: fixed;
    top: 40px;
    right: 32px;
    width: 250px;
    background: #fff;
    box-shadow: var(--box-shadow);
    z-index: -1;
    opacity: 0;
    border-radius: 5px;
    transition: var(--transition);
    visibility: hidden;
}

.user-profile.active{
    top: 60px;
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.user-profile--menu{
    width: 100%;
    padding: 24px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.user-profile--menu:hover{
    font-weight: 500;
}

.user-profile--menu span{
    margin-right: 10px;
}

.user-profile--btn{
    padding: 16px;
    padding-top: 0;
}

.user-profile--btn button{
    width: 100%;
    padding: 16px;
    background: #333;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}

.notification-number{
    position: absolute;
    right: -5px;
    top: -5px;
    width: fit-content;
    width: 25px;
    height: 15px;
    text-align: center;
    font-size: 11px;
    background: red;
    color: #fff;
    border-radius: 25px;
}

.notification-box{
    position: fixed;
    top: 40px;
    right: 270px;
    width: 300px;
    background: #fff;
    box-shadow: var(--box-shadow);
    border-radius: 5px;
    transition: var(--transition);
    z-index: -1;
    opacity: 0;
    visibility: hidden;
}

.notification-box.active{
    top: 60px;
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.notification-header{
    padding: 16px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
}

.notification-item{
    background: #fff;
    padding: 16px;
    border-top: 1px solid #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.notification-item:hover{
    background: #fbfbff;
}

.notification-item span{
    font-style: italic;
}

.notification-title{
    color: #333;
    font-weight: bold;
    font-size: 14px;
}

.notification-content{
    line-height: 1.5;
    font-size: 13px;
    margin: 6px 0;
}

.notification-date{
    font-weight: 500;
    font-size: 12px;
    color: #aeaeae;
}

/** Wrapper **/
.wrapper{
    padding-left: 250px;
    padding-top: 70px;
}

.container{
    position: relative;
    height: 100%;
    padding: 36px;
}

.header{
    font-weight: bold;
    font-size: 24px;
}

.grid{
    display: flex;
    gap: 32px;
}

.col{
    width: 100%;
}

.col.two{
    width: 50%;
}

.col.four{
    width: 25%;
}

.col-80{
    width: 80%;
}

.col-60{
    width: 60%;
}

.col-50{
    width: 50%;
}

.col-40{
    width: 40%;
}

.col-30{
    width: 30%;
}

.col-20{
    width: 20%;
}

.widget{
    position: relative;
    background: #fff;
    padding: 16px;
    box-shadow: var(--box-shadow);
    border-radius: 5px;
}

.dash-widget{
    border-radius: 5px;
}

.dash-widget--header{
    position: relative;
    font-size: 14px;
    font-weight: 500;
}

.dash-widget--header span{
    position: absolute;
    right: 0;
}

.positive{
    color: green;
}

.negative{
    color: red;
}

.neutral{
    color: grey;
}

.dash-analytics{
    margin-top: 36px;
    padding: 24px;
}

.dash-analytics .dash-widget--header{
    font-weight: bold;
    font-size: 18px;
}

.dash-widget--body{
    font-size: 28px;
    font-weight: 600;
    margin: 8px 0 20px;
}

.dash-widget--footer{
    font-size: 13px;
    color: #858585;
}

.widget-icon{
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 36px;
    height: 36px;
    background: #EBF1FC;
    color: #6565c9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.widget-icon span{
    font-size: 20px;
}

.dash-widget--sorting{
    position: absolute;
    right: 0;
    top: -9px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 12px;
}

.dash-widget--sorting select{
    padding: 0 16px;
    width: fit-content;
    margin-left: 16px;
}

/** Ticket **/
.ticket-widget{
    text-align: center;
}

.ticket-widget:not(:first-of-type){
    margin-top: 28px;
}

.ticket-widget .dash-widget--body{
    margin: 14px;
}

.chart-container{
    height: 408px;
}

.ticket-history{
    position: relative;
    margin-bottom: 16px;
    height: 40px;
    display: flex;
    align-items: center;
}

.ticket-history label{
    font-weight: bold;
    font-size: 16px;
}

.client-ticket--wrap{
    height: 440px;
}

.client-ticket--box{
    position: relative;
}

.client-ticket--header{
    font-weight: bold;
    height: 35px;
    display: flex;
    align-items: center;
    font-size: 13px;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
}

.client-ticket--header small{
    font-weight: 500;
    color: #272424;
}

.client-ticket--header select{
    position: absolute;
    right: 0;
    font-size: 14px;
    color: #333;
    font-weight: normal;
    font-size: 12px;
}

.client-ticket--content{
    position: relative;
    overflow: auto;
    height: 360px;
    margin-right: -10px;
    padding-right: 16px;
    margin-top: 10px;
}

.client-ticket--content::-webkit-scrollbar{
    width: 3px;
}

.client-ticket--content::-webkit-scrollbar-thumb {
    width: 3px;
    background: #ddd;
}

.client-ticket--list{
    position: relative;
    margin-top: 10px;
    font-size: 14px;
    padding: 0 30px;
}

.client-ticket--list:first-of-type{
    margin-top: 0;
}

.client-ticket--list label{
    position: absolute;
    left: 0;
}

.client-ticket--list span{
    position: absolute;
    right: 0;
    top: 0;
}

.support-table {
    border-collapse: collapse;
    width: 100%;
}

.support-table td, .support-table th {
    border: 1px solid #ddd;
    padding: 16px;
    font-size: 12px;
}

.support-table tr{
    background-color: #fff;
    cursor: pointer;
}

.support-table th {
    text-align: center;
    background: var(--primary-color);
    color: #fff;
}

.support-table tr{
    text-align: center;
}

.support-table tr td:nth-child(2){
    text-align: left;
}

.search-ticket{
    position: absolute;
    top: 0;
    right: 215px;
    width: 250px;
    height: 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding-left: 16px;
}

.search-ticket i{
    position: absolute;
    top: 9px;
    left: 8px;
    font-size: 14px;
    color: #aaa;
}

.search-ticket input{
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
}

.search-ticket input:focus{
    outline: none;
}

.filter-ticket{
    position: absolute;
    top: 0;
    right: 0;
    font-size: 12px;
}

.filter-ticket select{
    width: fit-content;
    height: 40px;
    margin-left: 6px;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
}

.severity-status{
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
}

.severity-status.new{
    background: #b869cb;
    color: #fff;
}

.severity-status.critical{
    background: #C30101;
    color: #fff;
}

.severity-status.medium{
    background: #FF9C40;
    color: #fff;
}

.severity-status.minor{
    background: #2DB3FF;
    color: #fff;
}

.severity-status.closed{
    background: #C0C0C0;
    color: #fff;
}

.ticket-history--grid{
    margin-top: 32px;
}

.ticket-history--details{
    margin-top: 8px;
}

.ticket-history--item{
    position: relative;
    margin-top: 10px;
    padding-left: 150px;
    height: 16px;
    font-size: 13px;
    color: #767676;
}

.ticket-history--item label{
    font-weight: bold;
    position: absolute;
    top: 0;
    left: 0;
}

.ticket-status.open{
    color: #01B428;
    font-weight: 500;
}

.ticket-history--chat{
    position: relative;
    padding: 32px;
    background: #fff;
    height: 100%;
    padding-bottom: 166px;
    overflow: auto;
}

.chatbox-send{
    position: relative;
    display: flex;
    justify-content: right;
}

.chatbox-send--content{
    position: relative;
    width: 80%;
    padding: 16px;
    margin-bottom: 16px;
    background: #eaf2ff;
}

.chatbox-receive{
    position: relative;
}

.chatbox-receive--content{
    position: relative;
    width: 80%;
    padding: 16px;
    margin-bottom: 16px;
    background: #eee;
}

.chatbox-receive--content label{
    position: absolute;
    right: 16px;
    top: 16px;
    font-weight: bold;
    font-size: 12px;
}

.chatbox-date{
    font-size: 12px;
    font-weight: 500;
    color: #989898;
}

.chatbox-message{
    margin-top: 16px;
    line-height: 1.5;
}

.ticket-detail--container{
    position: relative;
    height: 100%;
    padding-top: 205px;
}

.ticket-detail--header{
    position: absolute;
    top: 27px;
}

.ticket-detail--number{
    font-size: 20px;
    font-weight: bold;
}

.chat-area{
    position: relative;
    background: #fff;
    box-shadow: var(--box-shadow);
    height: 100%;
}

.ticket-chat--textarea{
    position: absolute;
    height: 150px;
    width: 100%;
    bottom: 0;
    left: 0;
    padding: 16px;
    background: #fff;
    border-top: 1px solid #ddd;
}

.ticket-chat--textarea textarea{
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 100%;
    border: 1px solid #ddd;
    padding: 8px 10px;
    font-family: var(--font-family);
}

.ticket-chat--textarea textarea:focus{
    outline: none;
}

.ticket-chat--btn{
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 60px;
    padding: 16px;
    text-align: right;
}

.ticket-chat--btn button{
    position: relative;
    margin-top: -4px;
    margin-left: 6px;
}

.cancel-chat{
    background: #e6e6e6;
    color: #333;
}

.submit-chat{
    background: #447c44;
    color: #fff;
    font-weight: 500;
}

.markasdone-btn{
    position: absolute !important;
    left: 10px;
    background: #4b7b97;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}



@media(max-width: 550px){
    .grid{
        flex-wrap: wrap;
        gap: 16px;
    }

    .col.four{
        width: 100%;
    }

    .col-20, .col-30, .col-40, .col-50, .col-60, .col-80{
        width: 100%;
    }

    .login-wrapper{
        background-size: cover;
        background-repeat: no-repeat;
    }

    .mobile-menu--btn{
        position: absolute;
        top: 0;
        left: 0;
        width: 59px;
        height: 59px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #8b8b8b;
        color: #fff;
    }

    .mobile-menu--btn span{
        font-size: 26px;
    }

    .mobile-logout{
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 16px;
        display: block;
    }

    .mobile-logout button{
        width: 100%;
        height: 40px;
        background: #666;
        color: #fff;
    }

    .menu-container{
        position: absolute;
        top: 0;
        width: 100%;
        height: 100%;
        padding: 70px 0;
    }

    .menu{
        padding: 8px 16px;
        font-size: 14px;
    }

    .sidebar-mobile--bg{
        position: fixed;
        left: -100%;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0, .5);
        z-index: 2;
        backdrop-filter: blur(5px);
        transition: .1s ease-in-out;
    }

    .sidebar-mobile--bg.active{
        left: 0;
    }

    .sidebar{
        left: -250px;
    }

    .sidebar.active{
        left: 0;
    }

    .navbar{
        height: 60px;
    }

    .navbar-right{
        top: 6px;
        right: 12px;
    }

    .navbar-user{
        padding-right: 0;
    }

    .navbar-user .user-photo{
        margin: 0;
        width: 40px;
        height: 40px;
    }

    .navbar-user .user-detail{
        display: none;
    }

    .navbar-user .navbar-user--expand{
        margin-left: 8px;
    }

    .notification-box, .user-profile{
        right: 16px;
    }
    
    .user-profile--btn{
        display: none;
    }

    .wrapper{
        padding: 0;
        padding-top: 60px;
    }

    .container{
        padding: 16px;
    }

    .dash-analytics{
        margin-top: 16px;
    }

    .chart-container{
        height: 150px;
    }

    .client-ticket--wrap{
        height: 205px;
    }

    .client-ticket--content{
        height: 130px;
    }

    .ticket-widget--wrap{
        display: flex;
        gap: 16px;
    }

    .ticket-widget{
        width: 33.33%;
    }

    .ticket-widget:not(:first-of-type){
        margin-top: 0;
    }

    .ticket-widget .dash-widget{
        padding: 16px 8px;
    }

    .ticket-widget .dash-widget--header{
        font-size: 10px;
    }

    .ticket-widget .dash-widget--body{
        margin: 12px 6px;
        font-size: 22px;
    }

    .ticket-widget .dash-widget--footer{
        font-size: 10px;
    }

    .ticket-history--grid{
        margin-top: 16px;
    }
}