/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : Nov 28, 2020, 9:41:20 PM
    Author     : Chathura D Abesinghe
*/

/*theam update*/
:not(.layout-fixed) .main-sidebar {
    background-color: #151b26;
}

.nav-sidebar>.nav-item .nav-icon.fa, .nav-sidebar>.nav-item .nav-icon.fab, .nav-sidebar>.nav-item .nav-icon.far, .nav-sidebar>.nav-item .nav-icon.fas, .nav-sidebar>.nav-item .nav-icon.glyphicon, .nav-sidebar>.nav-item .nav-icon.ion {
    font-size: 14px;
}

.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active, .sidebar-light-primary .nav-sidebar>.nav-item>.nav-link.active {
    background-color: #ffffff29;
}

[class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link.active, [class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link.active:focus, [class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link.active:hover {
    background-color: #ffffff13;
    color: #c2c7d0;
}

.nav-sidebar>.nav-item .nav-icon {
    font-size: 1rem; 
    margin-right: .6rem;
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    color: #151b26;
    background-color: #fff;
}

.nav-pills .nav-link:not(.active):hover {
    color: #151b26;
}

.border-bottom-dark{
    border-bottom: 1px solid #151b26b3!important;
}


.content-wrapper {
    background: #ffffff;
}

.fa-angle-left:before {
    font-size: 0.7rem;
}

.sidebar {
    padding-right: 0; 
    height: 85vh!important;
}

.sidebar::-webkit-scrollbar{
    width: 10px;
    height: 10px;
    background-color: #151b26;
}

.sidebar::-webkit-scrollbar-thumb{
    background-color: rgba(255,255,255,.03);
}

.sidebar::-webkit-scrollbar-thumb:hover{
    background-color: rgba(255,255,255,.2);
}

/*--------footer override-----*/
.main-footer {
    padding: .4rem!important;
    font-size: .7rem!important;
}

nav{
    overflow-y: auto;
}

.nav-pills .nav-link {
    border-radius: 0;
    border-bottom-left-radius: 1.5rem;
    border-top-left-radius: 1.5rem;
}


.pace-running > *:not(.pace) {
    opacity: .05;
}

.table-container{
    overflow: scroll;
    max-height: 80vh;
}

table.table-sm thead tr th {
    font-size: 13px;
    color: #444444;
    font-weight: 500;
}

td .far{
    font-size: 13px;
}

.content-wrapper-scroll{
    max-height: calc(100vh - calc(3.5rem + 1px) - calc(2rem + 1px));
    min-height: calc(100vh - calc(3.5rem + 1px) - calc(2rem + 1px));

    overflow-y: auto;
    overflow-x: auto;
}

.tbl_master_data.dataTables_scrollBody{
    max-height:calc(100vh - 12.5rem) !important;
}

.tbltoolbar,.tbl2toolbar {
    float: left;
}

.scrollbar::-webkit-scrollbar{
    width: 10px;
    height: 10px;
    background-color: rgba(255,255,255,.5);
}

.scrollbar::-webkit-scrollbar-thumb{
    background-color: rgba(0,0,0,.04);
}

.scrollbar::-webkit-scrollbar-thumb:hover{
    background-color: rgba(21, 27, 38,.09);;
}

.navbar-user-avatar{
    font-size: 1rem!important;
    font-weight: 400!important;
}

.navbar-user-text{
    display: inline-block;
    padding-top: .5rem;
    padding-bottom: .5rem;
    margin-right: .5rem;
    line-height: inherit;
    white-space: nowrap;
}

/*Sweet Alert*/
.swal2-title {
    color: inherit !important;
    font-size: 1.350em !important;
    font-weight: 600 !important;
}

.swal2-content {
    color: #545454 !important;
    font-size: 1em !important;
    font-weight: 400 !important;
}

/*-----------*/

div.dataTables_wrapper div.dataTables_filter input {
    border-radius: 1rem;
    width:45%;
    min-width:200px;
}

div.dataTables_wrapper div.dataTables_filter input:placeholder-shown {
    font-style: italic;
}

.dataTable td,.dataTable th {
    min-width: 60px;
    overflow: hidden; /* this is what fixes the expansion */
    text-overflow: ellipsis; /* not supported in all browsers, but I accepted the tradeoff */
    white-space: nowrap;
}

span.select2-container--default .select2-selection--single{
    border: 1px solid #ced4da;
    background-clip: padding-box;
    border-radius: .25rem;
    box-shadow: inset 0 0 0 transparent;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

span.select2-container--default .select2-selection--single:focus-visible {
    outline: #80bdff auto 0px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0px;
}


.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 35px;
}

/*sales*/
.sales_full_height{
    max-height: calc(100vh - calc(3.5rem + 1px) - calc(4.5rem + 5px));
    min-height: calc(100vh - calc(3.5rem + 1px) - calc(4.5rem + 5px));
}

.sales_full_height .card{
    height:  calc(100vh - 9rem) !important;
}

#sales_item_table_wrapper .dataTables_scrollBody{
    max-height:calc(100vh - 25.5rem) !important;
}

.sales_full_height #balance_summary_table{
    position: absolute;
    bottom: 0;
}
.sales_full_height #add_invoice_form{
    position: absolute;
    bottom: 60px;
    width: 100%;

}

.sales_full_height #sales_summary_table{
    position: absolute;
    bottom: 96px;
}

/*End theam update*/


/*post image related*/
.post-img-thumb{
    display: flex;
    align-items: center;
    text-align: center;
    width: 100px;
    height: 100px;
    margin: 5px;
    background-color: #f5f5f5;
    background-size: cover;
    border-radius: 2px; 
}


.spinner-grow-itm-image{
    width: 6rem;
    height: 6rem;
}

.post-img-thumb-icon{
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    color: #0000002e;
    cursor: pointer;
    transition: color 0.5s ease;
    -webkit-transition: color 0.5s ease;
    -moz-transition: color 0.5s ease;
    -o-transition: color 0.5s ease;

}

.post-img-thumb-icon:hover {
    color: #007bff!important;
}

/*end post image related*/

.select2-selection__choice{
    color: #000 !important;
    max-width: calc(100% - 40px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important; /*use this if you want to shorten*/
}

.select2-selection {
    height: 38px !important;
}

.ovamee_input{
    /*    border: solid black 1px;*/
    outline: 0; 
    background-color: white;
    border-radius: 4px;
    border: 1px solid #aaa;
    cursor: text;
    min-height: 38px;
    box-sizing: border-box;
    display: inline-block;
    /*    margin: 5px;*/
    position: relative;
    vertical-align: middle;
    text-align: center;
}

.ovamee_input:focus{
    border: solid black 1px;
}

.ovamee_closable_label{
    display: inline-block;
    position: relative;
    padding: .26rem 1rem;
    margin: .1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    color: #1f2d3d;
    background: #f8f9fa;
    border-color: #aaaaaa;
    border-radius: 5px;
}

.ovamee_closable_label .close{
    padding: 1px 6px;
}

.modal-dialog .overlay {
    border-radius: .25rem !important;
}

.btn-pos{
    margin-left: 2px;
    margin-right: 2px;
    /*width: 130px !important;*/
}

/*.nav-treeview>.nav-item{
    font-weight: 300;
}*/

.animated-lable{
    margin-top: -10px!important;
    margin-bottom: 0px!important;
    height: 4.4em;
}


.animated-lable>label {
    top: 38px;
    left: 15px;
    position: relative;
    color: #8e8e8e;
    background-color: transparent;
    padding: 0px 5px 0px 5px;
    transition: 0.2s;
    font-weight: 400!important;
    pointer-events:none;
}

.animated-lable.label-animate>label {
    top: 8px !important;
    left: 2px !important;
    font-weight: 200;
    font-size: 0.7em;
    color: #8e8e8e;
}

#label-profile-pic{
    display: block;
    cursor: pointer;
    width:max-content;
    text-align: center;
    text-decoration: underline;
    color: #adb5bd;
    margin-left: auto;
    margin-right: auto;
}

#label-profile-pic:hover{
    color: #0087E1;
}


/*Spin icons*/
.ov-spin {
  -webkit-animation: fa-spin 2s infinite linear;
          animation: fa-spin 2s infinite linear; }

.ov-pulse {
  -webkit-animation: fa-spin 1s infinite steps(8);
          animation: fa-spin 1s infinite steps(8); }

@-webkit-keyframes fa-spin {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg); }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg); } }

@keyframes fa-spin {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg); }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg); } }
