/*==============================
=>  Base Styles
================================*/

:root {
  --primary: #7952b3;
  --secondary: #ffe484;
  --gray: #e0e0e0;
  --light: #fff;
  --dark: rgb(35, 35, 35);
  --text-primary: #0d0d0d;
  --text-secondary: #5d5d5d;
  --text-primary: #0d0d0d;
  --text-secondary: #5d5d5d;
}

.z-100 {
  z-index: 100;
}

.t-primary {
  color: var(--primary) !important;
}

.b-primary {
  background-color: var(--primary) !important;
}

.f-12 {
  font-size: 12px !important;
}

* {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
}

body {
  font-size: 0.875rem;
}

.copyright {
  font-size: 12px;
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

@media only screen and (min-width) {
  .copyright {
    display: none;
  }
}
.alert-box {
  box-shadow: 10px 10px 30px #00000005;
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
}

.auto-suggestion {
  position: absolute;
  z-index: 9999;
  width: 100%;
  max-height: 300px;
  overflow: auto;
  font-size: 12px;
  margin-top: 2px;
}

.auto-suggestion .list-group-item:hover {
  cursor: pointer;
  background-color: #f4f5f6;
}
.auto-suggestion .list-group-item {
  width: 100%;
  padding: 6px;
}

.pagination {
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.pagination li {
  text-align: center;
}

.pagination .disabled {
  opacity: 0.4  
}
.pagination .active {
  color: var(--secondary);
}
/*==============================
=>  Override Bootstrap
================================*/
.btn-primary,
.btn-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn:hover {
  opacity: 0.95;
}

.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled):active:focus {
  background-color: var(--primary);
  box-shadow: 0 0 0 0.2rem #6a60a990;
}

.btn-secondary,
.btn-secondary:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.btn-secondary:focus,
.btn-secondary:not(:disabled):not(.disabled):active,
.btn-secondary:not(:disabled):not(.disabled):active:focus {
  border-color: var(--secondary);
  background-color: var(--secondary);
  box-shadow: 0 0 0 0.2rem #ffbc4290;
}

/*==============================
=>  NavBar
================================*/

.navbar-brand {
  position: relative;
  display: flex;
  justify-content: flex-start;
  min-width: 50px;
  justify-content: flex-start;
  min-width: 50px;
}

.navbar-brand__logo {
  height: 40px;
}

.navbar-brand__name {
  font-size: 22px;
  bottom: 12px;
  padding-left: 2px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--primary);
  position: absolute;
}

/*==============================
=>  Sidebar
================================*/

.sidebar {
  position: relative;
  z-index: 100;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.1);
  margin-top: 54px;
  height: calc(100vh - 100px);
  height: calc(100vh - 100px);
  padding-top: 10px;
  overflow-x: hidden;
  overflow-y: hidden;
}

.sidebar ul {
  width: 100%;
}

.sidebar .nav-item {
  margin: 5px 0;
  width: 100%;
  padding: 0 15px;
  backface-visibility: hidden;
  transition: all 0.3s;
}

.sidebar .nav-link {
  padding: 8px;
  font-weight: 500;
  color: #333;
  backface-visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.sidebar .nav-link i {
  display: inline-block;
  margin-right: 10px;
  font-size: 16px;
  backface-visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
  background-color: #dee2e6;
  border-radius: 5px;
  opacity: 0.95;
  padding-left: 20px;
}

.sidebar .nav-link.active i,
.sidebar .nav-link:hover i {
  font-size: 15px;
}

.sidebar-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
}

/*==============================
=>  Content Area
================================*/

.content-area {
  padding-top: 54px;
}
.content-action {
  display: flex;
  gap: 8px
}
.content-header {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6  {
  margin: 0px;
}

@media only screen and (max-width: 768px) {
  .navbar {
    padding-top: 8px !important;
  }
  h1.h4 {
    font-size: 20px !important;
  }
  .sidebar {
    margin-top: 40px;
  }
  .navbar-brand {
    padding-left: 0px;
  }

  .navbar-brand__logo {
    height: 30px;
  }

  .navbar-brand__name {
  }
  .navbar-toggler {
    line-height: 0.75;
  }
  .navbar-nav{
    padding: 0px !important;
    justify-content: space-between !important;
  }
  .content-area {
    padding-top: 86px;
  }
  .content-action{
  }
  .search-area {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0px !important;
    font-size: 14px;
  }
  .search-area .form-group {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 8px !important;
  }
  .search-area .form-group label {
    margin-bottom: 4px !important;
  }
  .searchFormForSale {
    display: flex;
    flex-direction: column;
  }
  .search-area .btn {
    align-self: flex-start;
  }
  .btn-text {
    display: none;
  }
  .table-responsive {
    width: 100%;
    overflow-x: auto;
  }
  .table {
    min-width: 700px; /* Force horizontal scroll */
    font-size: 14px;
  }
  .table__actions-btn i {
    font-size: 14px;
  }
  .nav-tabs a{
    padding: 4px 8px !important;
  }
  .content-action{
    /* margin-top: 12px; */
  }
  .search-area {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0px !important;
    font-size: 14px;
  }
  .search-area .form-group {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 8px !important;
  }
  .search-area .form-group label {
    margin-bottom: 4px !important;
  }
  .searchFormForSale {
    display: flex;
    flex-direction: column;
  }
  .search-area .btn {
    align-self: flex-start;
  }
  .btn-text {
    display: none;
  }
  .table-responsive {
    width: 100%;
    overflow-x: auto;
  }
  .table {
    min-width: 700px; /* Force horizontal scroll */
    font-size: 14px;
  }
  .table__actions-btn i {
    font-size: 14px;
  }
  .nav-tabs a{
    padding: 4px 8px !important;
  }
  ul.nav li a.nav-link {
    font-size: 18px;
  }
  .collapsing {
    transition: none !important;
    height: auto !important;
    display: block !important;
  }
  .collapse:not(.show) {
    display: none !important;
  }
  #sideBar {
    transition: none !important;
  }
}

/* Content-box */
.table td {
  vertical-align: middle;
}

.table__header {
  background-color: var(--primary);
  color: var(--secondary);
}

.table__header th {
  /* padding: 15px; */
  text-align: center;
}

.table__body td {
  /* padding: 10px 15px; */
}

.table__actions a:not(:last-child) {
  display: inline-block;
  margin-right: 15px;
}

.table__actions-btn,
.table__actions-btn:hover {
  display: inline-block;
  font-size: 14px;
  line-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

.table__actions-btn:not(:last-of-type) {
  /* margin-bottom: 5px; */
}

.table__actions-btn:hover {
  color: var(--secondary);
}

tr .details-box,
tr .address-box {
  max-width: 220px;
}

tr td,
.table thead th {
  /* border: 2px solid #6a60a920; */
  /* text-align: center; */
}

.table tr .name {
  text-align: left;
}

.expense-box {
  width: 525px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  text-align: left;
}

.expense-box span {
  display: flex;
  justify-content: space-between;
  padding-left: 12px;
  background-color: #6a60a910;
  border-radius: 10px;
  align-items: flex-start;
}

.expense-box strong {
  display: block;
  border-radius: 10px;
  letter-spacing: 0.5px;
  color: var(--dark);
  background-color: var(--secondary);
  padding: 0 12px;
}
.expense-box strong small {
  font-size: 11px;
  font-weight: bolder;
}

/*==============================
=>  Dashboard
================================*/

.dashboard-intro {
  background-color: var(--primary);
  color: #fff;
  opacity: 0.95;
  margin-top: 28px;
  border-radius: 3px;
}

.dashboard-intro p {
  line-height: 0;
}

.bg-brown {
  background-color: #bd673b !important;
}
.border-brown {
  border-color: #bd673b !important;
}
.text-brown {
  color: #bd673b !important;
}

.search-area{
  gap: 14px
}
.form-group{
  padding: 0px !important;
}
.modal-body{
  margin: 14px;
  padding: 0px;
}

.modal-body .auto-suggestion {
}

label {
  margin-bottom: 4px !important;
}

.bg-white {
  background-color: #fff !important;
}

.text-muted {
  font-weight: 100;
}

.nav-tabs {
  border-bottom: none;
}

.modal-dialog {
  margin: 0 auto;
}

.card-body {
  padding: 1rem;
}
.modal-title {
  color: var(--text-secondary);
}
.shadow-sm {
  box-shadow: 0 0px 4px rgba(0, 0, 0, 0.15) !important;
}
/*  CSS for  SALE FORM */
.sale-table {
  min-width: 100px !important;
}

.form-control:focus {
  box-shadow: none !important;
  border-color: hsl(210, 100%, 42%) !important ;
}