/* 
    Created on : 30 Jan, 2015, 3:14:36 PM
    Author     : girish
*/

:root {
    --info-color: teal;
    --info-bg: aliceblue;
}



/* Basic html layout */
html, body {
    height: 100%;
    font-size: .9rem;
}

.flex-grow {
    flex: 1;
}

.headerlogo {
    background-image: url("coreerp-compact-logo.png");
    height: 30px;
    width: 153px;
    background-repeat: no-repeat;
}

.nav-bar-style {
    background-color: var(--bs-gray-200);
    border-bottom: 1px solid silver;
}

/* Workspace styles: Used for sidemenu and primary container */
#ws-root {
    background: white;
}

#ws-sidebar {
    width: 18rem;
    min-width: 15rem;
    background-color: var(--bs-gray-200);
    border-right: 1px solid silver;
    overflow: auto;
    max-height: calc(100vh - 53px);
    color: var(--bs-dark);
    z-index: 100;
    /*overflow-y: scroll;*/
}

#ws-sidebar.active {
    /*Hides the sidebar. using active for toggle */
    /*margin-left: -20rem;*/
}

.ws-sidebar-overlay {
    width: 15rem !important;
    min-width: 0 !important;
    position: absolute;
}

#sidebar {
    width: 14rem;
    color: brown;
    transition: all 0.3s;
}

#sidebar ul {
    padding: 0 .5rem 0 .5rem;
    font-size: 1rem;
}

#sidebar ul li {
    padding: .15rem 0 .15rem 0;
    display: block
}

#sidebar ul li a {
    text-decoration: none;
    color: var(--bs-gray-900);;
    display: block;
}

#sidebar ul li a:hover {
    color: brown;
    
/*    background: whitesmoke;*/
}

#sidebar ul li.active > a, a[aria-expanded="true"] {
    color: #008080 !important;
/*    background: #008080;*/
}

#sidebar> a[data-toggle="collapse"] {
    position: relative;
}

#sidebar> ul li .dropdown-toggle::after {
    margin-top: .5rem;
    margin-right: .2rem;
}

/* Highlight selected menu */
#sidebar ul li.active > a[class*="menu-leaf"] {
    background-color: cadetblue;
    border-radius: 3pt;
    padding-left: 2pt;
    padding-right: 2pt;
    color: floralwhite !important;
}

/* Fix nav-z-index for datepicker */
nav.sticky-top {
    z-index: 9;
}

/* form head/body styles */
#bo-form #form-body {
    overflow-y: scroll;
}

/* form-group styles: Used in form controls */
.form-group {
    margin-bottom: .5rem;
    padding-right: 0px;
}
.form-group>.control-label {
    font-size: .9rem;
    margin-bottom: .1rem; 
    color: lightslategray;
}
.form-group.form-inline .control-label {
    padding-left: 0px;
    justify-content: flex-end;
}
.form-group.required .control-label:after {
  content:" *";
  color:red;
}
.form-group>.form-control, form .datepicker-input, form .form-control {
    height: 1.8rem;
    padding: .2rem .3rem .15rem .3rem;
    font-size: .9rem;
}
.form-group>textArea.form-control {
    height: auto;
}
form.was-validated .form-control:valid {
    padding-right: .3rem;
    background-image: none;
}

.form-check .form-check-label {
    font-size: .9rem;
    color: slategray;
}

form a.dropdown-menu {
    text-decoration: none;
}
/* Required for checkbox */
form .custom-control.custom-switch {
    padding-left: 3.4rem;
}
form ul li div.form-group, .modal-form ul li div.form-group {
    margin-bottom: .2rem;
}
form .tran-btn-op {
    width: 2.8rem;
}
form .tran-head {
    font-size: .8rem;
    font-weight: 700;
}
.form-inline .form-control {
    width: 100%;
}
form .is-invalid  {
    border-color: red !important;
}

form .form-group .fg-total {
    background-color: transparent !important;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid lightgray;
    box-shadow: none;
}

form .form-group .doc-total {
    background-color: aliceblue;
    font-weight: bold;
    font-size: 1.08rem;
    text-align: right;
    color: darkolivegreen;
}

form .form-group .voucher-no {
    background-color: aliceblue;
    font-size: 1.08rem;
    color: darkolivegreen;
}

form .form-group .control-label sup, form .tran-head sup {
    margin-left: 2pt;
}

.nav.nav-tabs {
    border-bottom: solid 1px var(--info-color);
}

.nav.nav-tabs li a {
    color: var(--info-color);
}

.nav.nav-tabs li a:active, .nav.nav-tabs li a.active {
    color: var(--info-color);
    background:  var(--info-bg);
    border-bottom: solid 1px lightgrey;
}

.btn-outline-info {
    color: var(--info-color);
    border-color: var(--info-color);
}

.btn-outline-info:not(:disabled):not(.disabled):active, .btn-outline-info:not(:disabled):not(.disabled).active, .show > .btn-outline-info.dropdown-toggle {
    color: #fff;
    background-color: var(--info-color);
    border-color: var(--info-color);
}

.btn-outline-info:hover {
    color: #fff;
    background-color: var(--info-color);
    border-color: var(--info-color);
}

.text-info {
    color: var(--info-color) !important;
}


/* Bootstrap-Modal Overrides */
.modal-header {
    padding: .25rem;
    padding-left: .75rem;
    padding-right: .75rem;
}
.modal-header button.close:focus {
    outline-style: none;
}
.modal-footer {
    padding: .25rem;
}

/* Bootstrap-Modal Overrides End Here */


/* Pulse the icon, used for Save/Update click */
@-webkit-keyframes flash {
  0%, 100%, 50% {
    opacity: 1;
  }

  25%, 75% {
    opacity: 0;
  }
}

@keyframes flash {
  0%, 100%, 50% {
    opacity: 1;
  }

  25%, 75% {
    opacity: 0;
  }
}

.faa-flash {
  -webkit-animation: flash 1.5s ease infinite;
  animation: flash 1.5s ease infinite;
}

.btn-clipboard {
    position: absolute;
    top: .65rem;
    right: .65rem;
    z-index: 10;
    display: block;
    padding: .25rem .5rem;
    font-size: 65%;
    color: #007bff;
    background-color: #fff;
    border: 1px solid;
    border-radius: .25rem;
}

/* Scrollbar Styles for thin scroll */
div.dts div.dataTables_scrollBody {
    background: none;
}

div.dataTables_scrollBody {
    border-left: 0px !important;
}

div.scrollbar::-webkit-scrollbar, div.dataTables_scrollBody::-webkit-scrollbar {
	width: 1rem;
        height: 1rem;
	background-color: white;
}

div.scrollbar::-webkit-scrollbar-track, div.dataTables_scrollBody::-webkit-scrollbar-track {
	-webkit-box-shadow: inset 0 0 1px rgba(0,0,0,0.3);
	border-radius: .5rem;
	background-color: white;
}

div.scrollbar::-webkit-scrollbar-thumb, div.dataTables_scrollBody::-webkit-scrollbar-thumb  {
    border: .25rem solid transparent;
    border-radius: .5rem;
    min-height: 3rem;
    -webkit-box-shadow: inset 0 0 4px rgba(0,0,0,.5);
}

.scrollbar-dark::-webkit-scrollbar-thumb {
    background-color: darkgray;
}

/* DataTable Styles */
.dt-right {
    text-align: right;
}
.dt-form-group {
    padding: 1px !important;
}

.dt-filter-dropdown {
    background-color: ghostwhite;
    border: solid 1px darkcyan;
}

/* Background Colors */
.bg-silver {
    background-color: silver;
}

.list-box {
    padding-left: .2rem;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    max-height: 7.8rem;
    overflow-y: auto;
}

/* MScroll Overrides */
.mCSB_inside > .mCSB_container {
    margin-right: 0px;
}

/* Select2 overrides start here */
.select2-container--bootstrap-5 .select2-selection {
    min-height: 1.8rem;
    height: 1.8rem;
    padding: 0.2rem 0.3rem 0.15rem 0.3rem;
    font-size: .9rem;
    border-radius: 0.3rem;
    border: 1px solid #ced4da;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field {
    padding: 0.2rem 0.3rem;
    font-size: .9rem;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option {
    padding: 0.2rem 0.3rem;
    font-size: .9rem;
}