/* --------------------- Core Skin CSS --------------------- */

/*
Colour Options
#FEFBAF
#026475
#C2A34F
#FBB829
*/

#mainContent {
   background: #fff;
   color: #111;
}

a, a:link {
  color: #007bff;
}

a:hover {
  color: #007bff;
}

.content-container {
  min-height: 85vh;
  background: #f5f5f5;

  padding-top: 1em;
  padding-bottom: 1em;
}

.dashboard-container {
  background-image: url("../images/copper-scrap.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: calc(100vh - 46px);
  overflow: hidden;
}

/* --------------------- Sidebar CSS --------------------- */

#sidebar {
  background: #111111;
}

#sidebar .sidebar-header {
    /*height: 15vh;*/
    max-height: 100%;
    /* background: #fff; */
}

#sidebar .sidebar-header img {
  max-height: 100%;
  display: block;
  /*margin: 0 auto;*/
  padding-bottom: 0.3em;
}

#sidebar .main-list {
  min-height: 60vh; 
  background: #353430;
}

#sidebar ul.main-list li a {
  padding: 0.7em;
  color: #fff;
  border-bottom: 1px solid #fff;
  font-size: .9rem;
}

#sidebar ul.main-list li a:hover {
  text-decoration: none;
  background-color: #007bff;
}

#sidebar ul.main-list li a.client:hover {
    text-decoration: none;
    background-color: #2266af;
  }

#sidebar ul.main-list li a.sale:hover {
    text-decoration: none;
    background-color: #bfdaf3;
  }

#sidebar ul.main-list li a.supplier:hover {
text-decoration: none;
background-color: #0b903e;
}

#sidebar ul.main-list li a.purchase:hover {
    text-decoration: none;
    background-color: #bbdcc4;
  }

#sidebar ul.main-list li a.stock:hover {
text-decoration: none;
background-color: #f4be1d;
}

#sidebar ul.main-list li ul.submenu {
  background-color: #201f1d;
}

#sidebar ul.login-details {
  color: #fff;
}

#sidebar ul.login-details li a.user {
  padding: 0;
  display: inline;
  font-weight: bold;
}

/* --------------------- Navbar CSS --------------------- */

.navbar {
  background: #201f1d;
  padding: 0;
  color: #fff;
}

/* --------------------- Secondary Navbars CSS --------------------- */

.navbar.navbar-secondary {
  background: #353430;
}

.navbar.navbar-secondary a {
  color: #fff;
  padding-top: 0;
  padding-bottom: 0;
  margin-right: 0.5em;
  background: #007bffe6;
}

.navbar.navbar-secondary a.nav-link:last-of-type {
  margin-right: 0;
}

.navbar.navbar-secondary a i {
  padding: 1em;
  background: #11111157;
  top: 0;
  /*border-right: 2px solid #fff;*/
  margin-right: 1em;
}

.navbar.navbar-secondary a:hover {
  background: #007bff;
}

/* --------------------- Titles --------------------- */

h2, h4, h6 {
  color: #111;
}

h1 {
    font-size: 2rem;
}

h4 {
    font-size: 1.3rem;
}

/* --------------------- Tables --------------------- */

table.table {
  color: #201f1d;
  font-size: 0.95em;
}

.table td, .table th, .table tbody td, .table thead th {
  padding: 0.4rem 0.6rem 0.4rem 0.6rem;
  border: none;
}

table.table thead {
  background: #201f1d;
  color: #fff;
}

table.table thead.client {
    background: #2266af;
    color: #fff;
  }

table.table thead.sale {
background: #bfdaf3;
color: #0a0a0a;
}

table.table thead.supplier {
    background: #0b903e;
    color: #fff;
  }
  
  table.table thead.purchase {
      background: #bbdcc4;
      color: #0a0a0a;
    }
  
  table.table thead.stock {
  background: #f4be1d   ;
  color: #0a0a0a;
  }

table.table tbody {
  background: #fff;
}

.table.table-input td {
  padding: 0.15rem 0.1rem 0.15rem 0.1rem;
}

.table.table-input td > input.form-control, .table.table-input td > select.custom-select {
  height: calc(1.4em + 0.15rem + 2px);
}


table.table tfoot {
  background: #201f1d;
  color: #fff;
}

table.table-striped tbody tr:nth-of-type(odd) {
  background-color: #d0d2d3;
}

table.table-bordered td, .table-bordered th {
  border: 2px solid #fff;
}

table.table-hover tbody tr:hover {
  color: #fff;
  background-color: #007bff;
}

table.table-sm {
  font-size: 0.85em;
}

.table-sm td, .table-sm th {
    padding: .2rem;
}

.table::-webkit-scrollbar {
    width: 1em;
}
 
.table::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}
 
.table::-webkit-scrollbar-thumb {
  background-color: darkgrey;
  outline: 1px solid slategrey;
}

.empty-row td,
.empty-row th {
  height: 2.5em;
}

.clickable-row {
  cursor: pointer;
}

/* --------------------- Data Tables --------------------- */

table.table.dataTable,
div.dataTables_scrollHead table.dataTable {
    min-width: 100%;
}

table.table.dataTable {
    clear: both;
    margin-top: 0.5em !important;
    margin-bottom: 0.5em !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
}

table.table.raw-dataTable {
    margin-top: 0em !important;
    margin-bottom: 0em !important;
}

.page-item.active .page-link {
    background-color: #007bffe6; 
    border-color: #007bffe6;
}

.pagination > .active > a, 
.pagination > .active > span, 
.pagination > .active > a:hover,
.pagination > .active > span:hover, 
.pagination > .active > a:focus, 
.pagination > .active > span:focus {
    background-color: #007bff; 
    border-color: #007bff;
}

table.table-sm.dataTable thead .sorting:after, 
table.table-sm.dataTable thead .sorting_asc:after,
table.table-sm.dataTable thead .sorting_desc:after, 
table.table-sm.dataTable thead .sorting_asc_disabled:after, 
table.table-sm.dataTable thead .sorting_desc_disabled:after {
    bottom: 4px;
}

.top {
  display: flex;
}

div#sales-items-table_length {
  text-align: right;
  width: 100%;
}

div.dataTables_wrapper div.dataTables_filter {
  text-align: left;
  width: 100%;
}

/* --------------------- dataTables Scrolling Fix --------------------- */
.dataTables_scrollHeadInner {
    width: 100% !important;
}

/* --------------------- Forms --------------------- */

fieldset.disabled {
    opacity: 0.9;
}

.taxpoint, .input-group {
  margin-bottom: 1em;
}

.input-group-text.input-group-text-vertical {
  border-radius: 0.25rem 0.25rem 0 0;
  width: 100%;
}

.form-control.form-control-vertical {
  border-top: 0;
  border-radius: 0 0 0.25rem 0.25rem;
}

.form-control-file {
  padding: 0.375rem 0.75rem 2.25rem 0.7rem;
}

.form-group {
  width: 100%;
  margin-bottom: 0em;
}

.input-group .input-group-text {
  background: #ccc;
}

.datepicker-container {
  z-index: 9999;
}

.form-control::placeholder {
    color: #aaaaaa !important;
}

/* --------------------- Form Disabled --------------------- */

.form-control:disabled,
.custom-select:disabled,
.form-control[readonly],
.custom-select[readonly] {
  background-color: #afafaf96;
}

/* --------------------- Modal --------------------- */

.modal-dialog-lg {
  max-width: 90%;
}

.modal-header, .modal-footer {
    background-color: #ccc;
}

.modal-header {
  border-bottom: 0;
  border-radius: 0.25em 0.25em 0 0;
  color: #fff;
}

.modal-footer {
  border-top: 0;
  border-radius: 0 0 0.25em 0.25em;
}

/* --------------------- Tabs --------------------- */

.nav-tabs, .nav-tabs .nav-link {
  border-top-left-radius: 0.3rem;
  border-top-right-radius: 0.3rem;
}

.nav-tabs {
  background-color: #ccc;
  border-bottom: 1px solid #dee2e6;
}

.nav-tabs .nav-link {
  border: 1px solid transparent;
}

.nav-tabs .nav-item.show .nav-link, 
.nav-tabs .nav-link.active,
.nav-tabs .nav-link.active:focus, 
.nav-tabs .nav-link.active:hover {
  color: inherit;
  background-color: #fff;
  border-color: #dee2e6 #dee2e6 #fff #dee2e6;
}

.tab-content>.tab-pane.active {
  background-color: #fff;
  padding: 0.2rem 0.5rem;
  border: 1px solid transparent;
  border-color: #fff #dee2e6 #dee2e6 #dee2e6;
  border-bottom-left-radius: 0.3rem;
  border-bottom-right-radius: 0.3rem;
}

.nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover {
  color: #fff;
  border-color: #007bff;
  background-color: #007bff;
}

/* --------------------- Buttons / btn --------------------- */

.btn {

}

a.btn {
  color: #fff;
}

.btn-primary {}
.btn-secondary {}
.btn-success {}
.btn-danger {}
.btn-warning {}
.btn-info {}
.btn-light {}
.btn-dark {}
.btn-link {}

/* --------------------- Buttons / btn Hover --------------------- */

.btn-primary:hover {}
.btn-secondary:hover {}
.btn-success:hover {}
.btn-danger:hover {}
.btn-warning:hover {}
.btn-info:hover {}
.btn-light:hover {}
.btn-dark:hover {}
.btn-link:hover {}

/* --------------------- Alerts --------------------- */

.alert {
  position: absolute;
  width: 100%;
  margin: 0rem;
}

.alert-info {
  color: #ffffff;
  background-color: #d75629e0;
  border-color: #d75629e0;
}

.alert p {
  margin: 0;
  font-weight: bold;
  font-size: 1.2em;
}

/* --------------------- Images --------------------- */

img.client-photo,
img.supplier-photo,
iframe.google-map {
  max-height: 30vh;
  margin: 0 auto;
  display: block;
}

iframe.google-map {
  height: 30vh;
}

/* --------------------- Tinymce / MCE --------------------- */

.mce-container-body .mce-branding {
  display: none;
}

.input-group .mce-tinymce {
  margin: 0;
  max-width: -webkit-fill-available;
  border-top: 0;
}

/* --------------------- Footer Content --------------------- */

  .footer-content {
    background: #fff;
    padding-bottom: 1rem;
  }

  .footer-content h5 {
    margin-bottom: 1rem;
  }

  .footer-content p{
    margin-bottom: 0px;
  }

  #Dashboard-page-footer {
    padding-bottom: 0;
  }

/* --------------------- Debugging --------------------- */

 .debugging {

  } 

 .debugging-menu-close {
    display: block;
 }

/* --------------------- iFrames --------------------- */

iframe {
  width: 100%;
  border: none;
}

/* --------------------- Misc --------------------- */

hr {
  margin-top: 1rem; 
  border-top: 1px solid #000;
}

.pull-right {
  float: right;
}

.pull-left {
  float: left;
}

.no-margin {
  margin-left: 0px;
  margin-right: 0px;
}

.currency {
  text-align: right;
}

.center {
  text-align: center;
}

.hidden {
  display: none;
}

/* ---------------------- Reports ---------------------- */
.logo-reports {
  width: 30% !important;
  background: #111111;
  margin: 2rem 0 !important;
}

.table-reports {
  margin: 2rem 0 !important;
}

.table-reports tbody {
  background-color: #f5f5f5 !important;
  color: #201f1d !important;
}

/* ---------------------- Invoice ---------------------- */
.logo {
    font-size: 3rem;
}

.logo-invoice {
  background: #111111;
  padding: .2em 0;
  width: 30%;
  font-size: 2.1rem;
}

.invoice-title {
  line-height: 0.7;
  font-size: 2.1rem;
}

.centered {
    display: grid;
    justify-items: center;
    gap: .2em;
}

.supplier-info, .our-info {
    margin-bottom: 1em;
}

.invoice-info {
    border-top: 4px black double !important;
    margin-left: 0;
    margin-right: 0;
}

.client-input, .supplier-input, .invoice-details, .invoice-text {
  margin-bottom: 0;
  font-size: .9rem;
}

.invoice-table-fields {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-size: .9rem !important;
}

.table-invoice tbody td {
    padding: 0 0.6rem 0 0.6rem !important;
    border: none !important;
}

.table-invoice th:empty::before,
.table-invoice td:empty::before {
  content: '\00a0';
  visibility: hidden;
}

.invoice-total {
  margin: 2em 0;
}

.invoice-total, .statements {
    font-size: .9rem;
}

.statements {
  margin-bottom: 1.1em;
}

.payment-info {
  font-size: .9rem;
}

.payment-info:not(.payment-info:last-of-type) {
  height: 2em;
}

button#datefilter {
    width: 100%;
}