/*******************************************************
# General
*******************************************************/
:root {
  scroll-behavior: smooth;
  /* declare standard colors */
  /* Fonts */
  --font-default: 'Open Sans', sans-serif;
  --font-primary: 'Nunito', sans-serif;
  --font-secondary: 'Poppins', sans-serif;

  /* Colors */
  --default: #444444;  /*dark gray*/
  --primary: #756244;  /*bronze*/
  --secondary: #6c757d; /*light gray*/
  --tertiary: #2c384e; /*bluegray*/

  /* General Colors */
  --red: #dc3545;
  --green: #28a745;
  --blue: #0063A8;
  --bluegray: #2c384e;
  --bronze: #756244;	 
  --lightbronze: #9A783E;	 
  --lightblue: #a5c5fe;
  --darkblue: #012970;
  --royalblue: #012970;
  --yellow: #ffc107;
  --orange: #fd7e14;
  --brown: #7b4f2c;
  --purple: #6f42c1;
  --pink: #e83e8c;
  --white: #f6f9ff;
  --gray: #6c757d;
  --lightgray: #aab7cf;
  --darkgray: #444444;
  --black: #343a40;
  --teal: #20c997;
  --cyan: #17a2b8;
}

body {
  font-family: "Open Sans", sans-serif;
  background: var(--white);
  color: var(--primary); 
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--lightblue);
  text-decoration: none;
}

i:hover {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Nunito", sans-serif;
}

li {
  cursor: pointer !important;  
  color: var(--tertiary) !important;
}

input::placeholder {
  font-size: 12px;   /* adjust size as needed */
  /*color: #999;  optional: change placeholder color */
}

/* Smaller font size specifically for inline edit inputs */
#tblQuoteLines input.form-control.except {
  font-size: 0.8rem;      /* smaller font */
  padding: 0.15rem 0.25rem;
  height: auto;
  text-align: right;      /* right-align numbers */
}

/* Inline edit inputs in suggested lines */
#tblQuoteSuggested input.form-control.except {
  font-size: 0.8rem;
  padding: 0.15rem 0.25rem;
  height: auto;
  text-align: right;
}

#tblQuoteLines tbody td, 
#tblQuoteLines tfoot th {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* style the badge; keep id the same so existing JS still works */
.status-quote-badge {
  font-size: .9rem;
  padding: .35rem .6rem;
}

/* OPTIONAL: keep it visible when scrolling */
.pagetitle.sticky {
  position: sticky;
  top: 0;
  z-index: 1020;           /* above cards/toolbars */
  background: #fff;        /* or var(--bs-body-bg) */
  padding-top: .5rem;
  padding-bottom: .5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(0,0,0,.05);
}


/*******************************************************
# Main
*******************************************************/
#main {
  margin-top: 25px;
  padding: 10px 30px;
  transition: all 0.2s;
}

@media (max-width: 1199px) {
  #main {
    padding: 20px;
  }
}

/*******************************************************
# modal - white out background (legacy custom modals)
*******************************************************/

/* Kept commented legacy .modal override for reference
.modal {
  display: none;
  position: fixed; 
  z-index: 950; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto;
  background-color: rgb(255, 255, 255,.75); 
  background-color: rgba(255,255,255,.75); 
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto; 
  padding: 20px;
  border: 1px solid var(--primary);
  width: 400px; 
  height: 350px;  
}

.modal-content img {
  margin-left: auto;
  margin-right: auto;
  width: 300px; 
  max-width: 65%;
  height: auto;	
}
*/

/*******************************************************
# Page Title
*******************************************************/
.pagetitle {
  margin-bottom: 10px;
}

.pagetitle h1 {
  font-size: 20px;
  margin-bottom: 0;
  font-weight: 600;
  color: var(--secondary);
}

/*******************************************************
# Help
*******************************************************/
.help p {
  font-size: 16px;
  font-style: italic;
  margin-bottom: 5;
  font-weight: 100;
  color: var(--primary);
}

.helpicon {
  font-size: 16px;
  font-weight: 100;	
  color: var(--primary);
}



/*******************************************************
# Back to top button
*******************************************************/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 940;
  background: var(--blue);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: var(--white);
  line-height: 0;
}

.back-to-top:hover {
  background: var(--primary);
  color: var(--white);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}


/*******************************************************
# Override some default Bootstrap stylings
*******************************************************/
/* buttons */
.btn.btn-rounded { 
  border-radius: 25px; 
  text-transform: uppercase;
  font-size: 14px;
  padding: 0px 0px 0px 0px;
  text-decoration: none;
  width: 100px;
}

.btn.btn-rounded150 {  /* Same as above but 150 wide */
  border-radius: 25px; 
  text-transform: uppercase;
  font-size: 14px;
  padding: 0px 0px 0px 0px;
  text-decoration: none;
  width: 150px;
}

.btn.btn-rounded:hover,
.btn.btn-rounded:focus,
.btn.btn-rounded150:hover,
.btn.btn-rounded150:focus {
  background-color: var(--btn-hover-bg);
  color: var(--btn-hover-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn.btn-rounded:active,
.btn.btn-rounded150:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-top:-8px !important;
  margin-bottom:-8px !important;	
  padding-top:-8px !important;
  padding-bottom:-8px !important;		
} 

/*******************************************************
  # Modern Button
*******************************************************/
.btn-modern {
  --btn-bg: #007bff;
  --btn-hover-bg: #0056b3;
  --btn-color: #fff;
  --btn-hover-color: #fff;

  background-color: var(--btn-bg);
  color: var(--btn-color);
  border: none;
  border-radius: 0.375rem;
  padding: 0.6rem 1.2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s ease, background-color 0.2s, box-shadow 0.2s;
}

.btn-modern:hover,
.btn-modern:focus {
  background-color: var(--btn-hover-bg);
  color: var(--btn-hover-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-modern:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/*******************************************************
# Dropdown menus
*******************************************************/
.dropdown-menu {
  border-radius: 4px;
  padding: 10px 0;
  animation-name: dropdown-animate;
  animation-duration: .2s;
  animation-fill-mode: both;
  border: 0;
  box-shadow: 0 5px 30px 0 rgba(82, 63, 105, 0.2);
}

.dropdown-menu .dropdown-header,
.dropdown-menu .dropdown-footer {
  text-align: left;
  font-size: 15px;
  padding: 10px 25px;
}

.dropdown-menu .dropdown-footer a {
  color: var(--primary); 
  text-decoration: underline;
}

.dropdown-menu .dropdown-footer a:hover {
  text-decoration: none;
}

.dropdown-menu .dropdown-divider {
  color: var(--lightblue);
  margin: 0;
}

.dropdown-menu .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.dropdown-menu .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.dropdown-menu .dropdown-item:hover {
  background-color: var(--white);
}

@media (min-width: 768px) {
  .dropdown-menu-arrow::before {
    content: "";
    width: 13px;
    height: 13px;
    background: var(--white);
    position: absolute;
    top: -7px;
    right: 20px;
    transform: rotate(45deg);
    border-top: 1px solid var(--white);
    border-left: 1px solid var(--white);
  }
}

@keyframes dropdown-animate {
  0% { opacity: 0; }
  100% { opacity: 1; }
  0% { opacity: 0; }
}

.tooltip-inner {
  background-color: var(--primary);
  box-shadow: 0px 0px 4px black;
  opacity: 1 !important;
}

.tooltip.bs-tooltip-right .tooltip-arrow::before {
  border-right-color: var(--default)!important;
}
.tooltip.bs-tooltip-left .tooltip-arrow::before {
  border-left-color: var(--default) !important;
}
.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: var(--default) !important;
}
.tooltip.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: var(--default) !important;
}

.tooltip.bs-tooltip-right .tooltip-arrow {
  border-right-color: var(--default)!important;
}

/* Light Backgrounds */
.bg-primary-light,
.bg-secondary-light,
.bg-success-light,
.bg-danger-light,
.bg-warning-light,
.bg-info-light,
.bg-dark-light {
  background-color: var(--white);
  border-color: var(--white);
}

/* Card */
.card {
  margin-bottom: 30px;
  border: none;
  border-radius: 5px;
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
}

.card-header,
.card-footer {
  border-color: var(--white);
  background-color: var(--white);
  color: var(--primary);
  padding: 5px;
}

.card-title {
  padding: 0px 0 0px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--secondary);
  font-family: "Poppins", sans-serif;
}

.card-title span {
  color: var(--lightblue);
  font-size: 14px;
  font-weight: 400;
}

.card-body {
  padding: 20px 20px 20px 20px;
}

.card-img-overlay {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Upfit Cards */
.upfit-card-mfg {
  color: var(--darkgray);
  font-size: 11px;
  font-weight: 500;
}

.upfit-card-part-desc {
  color: var(--darkgray);
  font-size: 12px;
  font-weight: 100;
}

.upfit-card-part {
  color: var(--primary);
  font-size: 12px;
  font-weight: 100;
}

.upfit-card-partno {
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
}

.upfit-card-image {
  max-width: 250px; 
  max-height: 180px; 
  height:auto; 
  width:auto; 
  vertical-align:middle;
}

/* Alerts */
.alert-heading {
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
}

/* Close Button */
.btn-close {
  background-size: 25%;
}

.btn-close:focus {
  outline: 0;
  box-shadow: none;
}

/* Accordion */
.accordion-item {
  border: 1px solid var(--white);
}

.accordion-button:focus {
  outline: 0;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: var(--secondary);
  background-color: var(--white);
}

.accordion-flush .accordion-button {
  padding: 15px 0;
  background: none;
  border: 0;
}

.accordion-flush .accordion-button:not(.collapsed) {
  box-shadow: none;
  color: var(--blue);
}

.accordion-flush .accordion-body {
  padding: 0 0 15px 0;
  color: #3e4f6f;
  font-size: 15px;
}

/* Breadcrumbs */
.breadcrumb {
  font-size: 14px;
  font-family: "Nunito", sans-serif;
  color: #899bbd;
  font-weight: 600;
}

.breadcrumb .breadcrumb-item::before {
  color: var(--lightblue);
}

.breadcrumb .active {
  color: var(--darkblue);
  font-weight: 600;
}

/* Bordered Tabs */
.nav-tabs-bordered {
  border-bottom: 2px solid var(--white);
}

.nav-tabs-bordered .nav-link {
  margin-bottom: -2px;
  border: none;
  color: var(--darkblue);
}

.nav-tabs-bordered .nav-link:hover,
.nav-tabs-bordered .nav-link:focus {
  color: var(--blue);
}

.nav-tabs-bordered .nav-link.active {
  background-color: var(--white);
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}

/*******************************************************
# Override DataTables default css
*******************************************************/
/* ===== Base font + compact spacing for ALL DT UI + cells ===== */
.dt-container,
.dt-container label,
.dt-container .dt-input,
.dt-container .dt-length select,
.dt-container .dt-search input,
.dt-container .dt-info,
.dt-container .dt-paging .dt-paging-button,
.dt-container table.dataTable th,
.dt-container table.dataTable td {
  font-size: 0.75rem !important;
}

.datatable-table > tbody > tr > td,
.datatable-table > tbody > tr > th,
.datatable-table > tfoot > tr > td,
.datatable-table > tfoot > tr > th,
.datatable-table > thead > tr > td,
.datatable-table > thead > tr > th {
  vertical-align: top;
  padding: 0px 0px;
}

th { font-size: 14px; }
td { font-size: 14px; }

table.dataTable tfoot th {
  text-align: right;
}

table.dataTable tbody {
  cursor: pointer;
}

.page-item.active .page-link {
  color: var(--white) !important;
  background-color: var(--primary) !important;
  border-color: #000 !important; 
}

.page-link {
  color: var(--secondary) !important;
  background-color: #fff !important;
  border: 1px solid #dee2e6 !important; 
}

.page-link:hover {
  color: var(--white) !important;
  background-color: var(--primary) !important;
  border-color: #000 !important; 
}

table.dataTable thead th {
  background: transparent !important;
  white-space: nowrap;
}

/*******************************************************
# Header
*******************************************************/
.header .company {
  line-height: 1;
}

@media (min-width: 1200px) {
  .header .company {
    width: 300px;
    padding-left: 15px;
  }
  .logo {
    width: 250px;
    padding-left: 0px;
    pointer-events: none;
  }
}

.header .company {
  font-size: 20px;
  color: var(--secondary);
  font-family: "Nunito", sans-serif;
}

.logo {
  line-height: 1;
}

.logo img {
  max-height: 26px;
  margin-top: -3px;
  margin-right: 0px;
  padding-left: 20px;
}

.logo span {
  font-size: 26px;
  font-weight: 700;
  color: var(--secondary);
  font-family: "Nunito", sans-serif;
}

.header {
  transition: all 0.3s;
  z-index: 897;
  height: 60px;
  box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
  background-color: var(--white);
  padding-left: 5px;
}

.header .toggle-sidebar-btn {
  font-size: 36px;
  padding-left: 10px;
  cursor: pointer;
  color: var(--secondary);
}

.header .search-bar {
  min-width: 360px;
  padding: 0 20px;
}

@media (max-width: 1199px) {
  .header .search-bar {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    padding: 20px;
    box-shadow: 0px 0px 15px 0px rgba(1, 41, 112, 0.1);
    background: white;
    z-index: 899;
    transition: 0.3s;
    visibility: hidden;
    opacity: 0;
  }

  .header .search-bar-show {
    top: 60px;
    visibility: visible;
    opacity: 1;
  }
}

.header .search-form {
  width: 100%;
}

.header .search-form input {
  border: 0;
  font-size: 14px;
  color: var(--secondary);
  border: 1px solid rgba(1, 41, 112, 0.2);
  padding: 7px 38px 7px 8px;
  border-radius: 3px;
  transition: 0.3s;
  width: 100%;
}

.header .search-form input:focus,
.header .search-form input:hover {
  outline: none;
  box-shadow: 0 0 10px 0 rgba(1, 41, 112, 0.15);
  border: 1px solid rgba(1, 41, 112, 0.3);
}

.header .search-form button {
  border: 0;
  padding: 0;
  margin-left: -30px;
  background: none;
}

.header .search-form button i {
  color: var(--secondary);
}

/*******************************************************
# Header Nav
*******************************************************/
.header-nav ul {
  list-style: none;
}

.header-nav>ul {
  margin: 0;
  padding: 0;
}

.header-nav .nav-icon {
  font-size: 22px;
  color: var(--secondary);
  margin-right: 25px;
  position: relative;
}

.header-nav .nav-profile {
  color: var(--secondary);
}

.header-nav .nav-profile img {
  max-height: 36px;
}

.header-nav .nav-profile span {
  font-size: 14px;
  font-weight: 600;
}

.header-nav .badge-number {
  position: absolute;
  inset: -2px -5px auto auto;
  font-weight: normal;
  font-size: 12px;
  padding: 3px 6px;
}

.header-nav .notifications {
  inset: 8px -15px auto auto !important;
}

.header-nav .notifications .notification-item {
  display: flex;
  align-items: center;
  padding: 15px 10px;
  transition: 0.3s;
}

.header-nav .notifications .notification-item i {
  margin: 0 20px 0 10px;
  font-size: 24px;
}

.header-nav .notifications .notification-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.header-nav .notifications .notification-item p {
  font-size: 13px;
  margin-bottom: 3px;
  color: var(--lightgray);
}

.header-nav .notifications .notification-item:hover {
  background-color: var(--white);
}

.header-nav .messages {
  inset: 8px -15px auto auto !important;
}

.header-nav .messages .message-item {
  padding: 15px 10px;
  transition: 0.3s;
}

.header-nav .messages .message-item a {
  display: flex;
}

.header-nav .messages .message-item img {
  margin: 0 20px 0 10px;
  max-height: 40px;
}

.header-nav .messages .message-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--primary); 
}

.header-nav .messages .message-item p {
  font-size: 13px;
  margin-bottom: 3px;
  color: var(--lightgray);
}

.header-nav .messages .message-item:hover {
  background-color: var(--white);
}

.header-nav .company {
  min-width: 240px;
  padding-bottom: 0;
  top: 8px !important;
}

.header-nav .company .dropdown-header h6 {
  font-size: 18px;
  margin-bottom: 0;
  font-weight: 600;
  color: var(--primary); 
}

.header-nav .company .dropdown-header span {
  font-size: 14px;
}

.header-nav .company .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.header-nav .company .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.header-nav .company .dropdown-item:hover {
  background-color: var(--white);
}

.header-nav .profile {
  min-width: 240px;
  padding-bottom: 0;
  top: 8px !important;
}

.header-nav .profile .dropdown-header h6 {
  font-size: 18px;
  margin-bottom: 0;
  font-weight: 600;
  color: var(--primary); 
}

.header-nav .profile .dropdown-header span {
  font-size: 14px;
}

.header-nav .profile .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.header-nav .profile .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.header-nav .profile .dropdown-item:hover {
  background-color: var(--white);
}

/*******************************************************
# Sidebar Left
*******************************************************/
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  width: 55px;
  z-index: 895;
  transition: all 0.2s;
  padding: 10px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--lightgray) transparent;
  box-shadow: 2px 0 4px rgba(0,0,0,0.15);
  background-color: var(--white);
}

@media (max-width: 1199px) {
  .sidebar {
    left: -210px;
  }
  .toggle-sidebar .sidebar {
    left: 0;
  }
}

.sidebar::-webkit-scrollbar {
  width: 5px;
  height: 8px;
  background-color: var(--white);
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: var(--lightgray);
}

@media (min-width: 1200px) {
  #main,
  #footer {
    margin-left: 90px;
  }
  
  .toggle-sidebar #main,
  .toggle-sidebar #footer {	
    margin-left: 0;
  }

  .toggle-sidebar .sidebar {
    left: -210px;
  }
}

.sidebar-nav {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav li {
  padding: 0;
  margin: 0;
  list-style: none;
  cursor: pointer;
}

.sidebar-nav .nav-item {
  margin-bottom: 5px;
}

.sidebar-nav .nav-heading {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--tertiary);
  font-weight: 400;
  margin: 10px 0px 0px 15px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 400;
  color: var(--primary);
  transition: 0.2s;
  background: var(--white);
  padding: 10px 8px;
  border-radius: 4px;
}

.sidebar-nav .nav-link i {
  font-size: 20px;
  color: var(--secondary);
}

.sidebar-nav .nav-link.collapsed {
  color: var(--secondary);
  background: var(--white);
}

.sidebar-nav .nav-link.collapsed i {
  color: var(--secondary);
}

.sidebar-nav .nav-link:hover {
  color: var(--light);
  background: var(--primary);
}

.sidebar-nav .nav-link:hover i {
  color: var(--white);
}

.sidebar-nav .nav-link .bi-chevron-down {
  margin-right: 0;
  transition: transform 0.2s ease-in-out;
}

.sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
  transform: rotate(180deg);
}

.sidebar-nav .nav-content {
  padding: 5px 0 0 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-content a {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  color: var(--secondary);
  transition: 0.2s;
  padding: 10px 0 10px 10px;
}

.sidebar-nav .nav-content a i {
  font-size: 6px;
  margin-right: 8px;
  line-height: 0;
  border-radius: 50%;
}

.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active {
  color: var(--primary);
}

.sidebar-nav .nav-content a.active i {
  background-color: var(--blue);
}

/* === Sidebar icon: ACTIVE ring + color === */
#sidebardiv .sidebar .sidebar-nav li > a.nav-link.active,
#sidebardiv .sidebar .sidebar-nav li > a.nav-link.active:hover {
  background: #eef2ff;                 /* soft indigo chip */
  border-radius: 8px;
  color: var(--primary);
  background-color: var(--light);
}

#sidebardiv .sidebar .sidebar-nav li > a.nav-link.active i,
#sidebardiv .sidebar .sidebar-nav li > a.nav-link.active:hover i {
  color: var(--primary);
  transform: scale(1.25);               /* slight emphasis on icon */
  text-shadow: 0 0 1px var(--primary);  
}

/* Smooth hover/active transitions for nicer feel */
#sidebardiv .sidebar .sidebar-nav li > a.nav-link {
  transition: background .12s ease, box-shadow .12s ease, transform .12s ease;
}

/*******************************************************
# SidebarB (Secondary Menu left)
*******************************************************/
.sidebarb {
  position: fixed;
  top: 60px;
  left: 55px;
  bottom: 0;
  width: 155px;
  z-index: 894;
  transition: all 0.2s;
  padding: 10px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--lightgray) transparent;
  box-shadow: 2px 0 4px rgba(0,0,0,0.15);
  background-color: var(--white);
}

.sidebarb::-webkit-scrollbar {
  width: 5px;
  height: 8px;
  background-color: var(--white);
}

.sidebarb::-webkit-scrollbar-thumb {
  background-color: var(--lightgray);
}

@media (min-width: 1200px) {
  .toggle-sidebarb .sidebarb {
    left: -180px;
  }  
}

@media (max-width: 1199px) {
  .sidebarb {
    left: -210px;
  }
  .toggle-sidebarb .sidebarb {
    left: 55px;
  }
}

.sidebarb-nav {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebarb-nav li {
  padding: 0;
  margin: 0;
  list-style: none;
  cursor: pointer;
}

.sidebarb-nav .nav-item {
  margin-bottom: 5px;
}

.sidebarb-nav .nav-heading {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--lightgray);
  font-weight: 400;
  margin: 10px 0px 5px 0px;
}

.sidebarb-nav .nav-link {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 400;
  color: var(--secondary);
  transition: 0.2s;
  background: var(--white);
  padding: 0px 0px;
  border-radius: 4px;
}

.sidebarb-nav .nav-link.active {
  font-weight: bold;
  color: var(--primary); /* optional: to match hover style */
}

.sidebarb-nav .nav-link i {
  font-size: 16px;
  margin-right: 10px;
  color: var(--blue);
}

.sidebarb-nav .nav-link.collapsed {
  color: var(--secondary);
  background: var(--white);
}

.sidebarb-nav .nav-link.collapsed i {
  color: var(--lightblue);
}

.sidebarb-nav .nav-link:hover {
  color: var(--white);
  background: var(--primary);
}

.sidebarb-nav .nav-link:hover i {
  color: var(--white);
  background: var(--primary);
}

.sidebarb-nav .nav-link .bi-chevron-down {
  margin-right: 0;
  transition: transform 0.2s ease-in-out;
}

.sidebarb-nav .nav-link:not(.collapsed) .bi-chevron-down {
  transform: rotate(180deg);
}

.sidebarb-nav .nav-content {
  padding: 5px 0 0 0;
  margin: 0;
  list-style: none;
}

.sidebarb-nav .nav-content a {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  color: var(--secondary);
  transition: 0.2s;
  padding: 5px 0 10px 30px;
}

.sidebarb-nav .nav-content a i {
  font-size: 5px;
  margin-right: 8px;
  line-height: 0;
  border-radius: 50%;
}

.sidebarb-nav .nav-content a.active i {
  color: var(--light);
  background-color: var(--primary);
}

/* === Sidebar icon: ACTIVE ring + color === */
#sidebarbdiv .sidebarb .sidebarb-nav li > a.nav-link.active,
#sidebarbdiv .sidebarb .sidebarb-nav li > a.nav-link.active:hover {
  background: #eef2ff;                 /* soft indigo chip */
  border-radius: 8px;
  color: var(--primary);
  background-color: var(--light);
}

#sidebarbdiv .sidebarb .sidebarb-nav li > a.nav-link.active i,
#sidebarbdiv .sidebarb .sidebarb-nav li > a.nav-link.active:hover i {
  color: var(--primary);
  transform: scale(1.25);               /* slight emphasis on icon */
}

/* Smooth hover/active transitions for nicer feel */
#sidebarbdiv .sidebarb .sidebarb-nav li > a.nav-link {
  transition: background .12s ease, box-shadow .12s ease, transform .12s ease;
}

/* ===== Filter nav (scoped to #filtermenu only) ===== */
#sidebarbdiv #filtermenu .nav-content {
  padding-left: 0 !important;
  margin-left: 0 !important;
  list-style: none;
}

#sidebarbdiv #filtermenu .nav-content > li {
  padding-left: 0 !important;
  margin-left: 0 !important;
}

#sidebarbdiv #filtermenu .nav-content > li > a {
  /* override the SidebarB indent (was 30px) */
  padding: 6px 0 6px 0 !important;
}

/* optional: keep label and count/check nicely spaced */
#sidebarbdiv #filtermenu .nav-content > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#sidebarbdiv #filtermenu .nav-content {
  padding-left: 0 !important;
  margin-left: 0 !important;
  list-style: none;
}

#sidebarbdiv #filtermenu .nav-content > li > a {
  display: block;
  padding: 6px 0 !important;  /* remove “indented” feel */
}

#sidebarbdiv #filtermenu .nav-link {
  padding-left: 0 !important;  /* keeps section headers aligned too */
}

/*******************************************************
# Sidebar Right
*******************************************************/
.sidebarR {
  top: 60px;
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 896;
  right: 0;
  background-color: var(--white);
  overflow-x: scroll;
  transition: 0.5s;
  padding-top: 60px;
  box-shadow: 0px 0px 20px rgba(1, 41, 112, 0.1);
}

.sidebarR a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 14px;
  color: var(--blue);
  display: block;
  transition: 0.3s;
}

.sidebarR-hdr {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 20px;
  font-weight: 600;
  color: var(--secondary);
  margin: 0px 0px 0px 0px;  
}

.sidebarR-msg {
  font-size: 12px;
  color: var(--tertiary);
  font-weight: 400;
  margin: 10px 15px 0px 15px;  
}

.sidebarR-input {
  font-size: 11px;
  color: var(--tertiary);
  font-weight: 400;
  margin: 10px 15px 0px 15px;  
}

.sidebarR a:hover {
  color: var(--lightblue);
}

.sidebarR button {
  margin: 10px 15px 0px 15px;  
}

.sidebarR .closebtn {
  position: absolute;
  top: 0;
  right: 15px;
  font-size: 36px;
  margin: 0px 0px 0px 0px;  
}

.option-title {
  left: 15px;
  font-size: 18px;
  font-weight: 550;
  color: var(--secondary);
  margin: 0px 0px 0px 15px;  
}

.option-body {
  font-size: 12px;
  color: var(--tertiary);
  font-weight: 400;
  margin: 10px 15px 0px 15px;  
}

@media screen and (max-height: 450px) {
  .sidebarR {padding-top: 15px;}
  .sidebarR a {font-size: 18px;}
}

/*******************************************************
# Dashboard
*******************************************************/
/* Filter dropdown */
.dashboard .filter {
  position: absolute;
  right: 0px;
  top: 15px;
}

.dashboard .filter .icon {
  color: var(--lightgray);
  padding-right: 20px;
  padding-bottom: 5px;
  transition: 0.2s;
  font-size: 16px;
}

.dashboard .filter .icon:hover,
.dashboard .filter .icon:focus {
  color: var(--blue);
}

.dashboard .filter .dropdown-header {
  padding: 8px 15px;
}

.dashboard .filter .dropdown-header h6 {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--lightgray);
  margin-bottom: 0;
  padding: 0;
}

.dashboard .filter .dropdown-item {
  padding: 8px 15px;
}

/* Info Cards */
/* Small screens: keep icon + value on one line */
@media (max-width: 576px) {
  .info-card .card-body .d-flex.align-items-center {
    flex-wrap: nowrap;
  }

  .info-card .card-body .card-icon {
    margin-bottom: 0;
  }
}

/* Always keep row inline for icon + value */
.info-card .card-body .d-flex.align-items-center {
  flex-wrap: nowrap;
}

.dashboard .info-card {
  min-height: 100px;
  height: auto;
}

.info-card .card-body {
  padding: 10px 20px 10px 20px;
}

.dashboard .info-card .card-title {
  padding: 0px 0px 0px 0px;
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary);
  font-family: "Poppins", sans-serif;
}

.dashboard .card-icon {
  font-size: 24px;
  line-height: 0;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  flex-grow: 0;
}

/* Truncation for card values */
#salescrd,
#woncrd,
#lostcrd {
  min-width: 0;              /* critical with flex */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard .sales-card .card-icon {
  color: var(--blue);
  background: #D5EEFF;
}

.dashboard .revenue-card .card-icon {
  color: #2eca6a;
  background: #E5F6EC;
}

.dashboard .customers-card .card-icon {
  color: #ff771d;
  background: #FFF2E9;
}

/* Activity */
.dashboard .activity {
  font-size: 14px;
}

.dashboard .activity .activity-item .activite-label {
  color: var(--gray);
  position: relative;
  flex-shrink: 0;
  flex-grow: 0;
  min-width: 64px;
}

.dashboard .activity .activity-item .activite-label::before {
  content: "";
  position: absolute;
  right: -11px;
  width: 4px;
  top: 0;
  bottom: 0;
  background-color: #eceefe;
}

.dashboard .activity .activity-item .activity-badge {
  margin-top: 3px;
  z-index: 1;
  font-size: 11px;
  line-height: 0;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid var(--white);
  flex-grow: 0;
}

.dashboard .activity .activity-item .activity-content {
  padding-left: 10px;
  padding-bottom: 20px;
}

.dashboard .activity .activity-item:first-child .activite-label::before {
  top: 5px;
}

.dashboard .activity .activity-item:last-child .activity-content {
  padding-bottom: 0;
}

/* News & Updates */
.dashboard .news .post-item+.post-item {
  margin-top: 15px;
}

.dashboard .news img {
  width: 80px;
  float: left;
  border-radius: 5px;
}

.dashboard .news h4 {
  font-size: 15px;
  margin-left: 95px;
  font-weight: bold;
  margin-bottom: 5px;
}

.dashboard .news h4 a {
  color: var(--royalblue);
  transition: 0.2s;
}

.dashboard .news h4 a:hover {
  color: var(--blue);
}

.dashboard .news p {
  font-size: 14px;
  color: var(--darkgray);
  margin-left: 95px;
}

/* Recent Sales */
.dashboard .recent-sales {
  font-size: 14px;
}

.dashboard .recent-sales .table thead {
  background: var(--white);
}

.dashboard .recent-sales .table thead th {
  border: 0;
}

.dashboard .recent-sales .dataTable-top {
  padding: 0 0 10px 0;
}

.dashboard .recent-sales .dataTable-bottom {
  padding: 10px 0 0 0;
}

/* Top Selling */
.dashboard .top-selling {
  font-size: 14px;
}

.dashboard .top-selling .table thead {
  background: var(--white);
}

.dashboard .top-selling .table thead th {
  border: 0;
}

.dashboard .top-selling .table tbody td {
  vertical-align: middle;
}

.dashboard .top-selling img {
  border-radius: 5px;
  max-width: 60px;
}

/*******************************************************
# Table Icons
*******************************************************/
.primaryicon {
  font-size: 16px;
  font-weight: 200;
  color: var(--primary);
}

/*******************************************************
# Icons list page
*******************************************************/
.iconslist {
  display: grid;
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  padding-top: 15px;
}

.iconslist .icon {
  background-color: var(--white);
  border-radius: 0.25rem;
  text-align: center;
  color: var(--royalblue);
  padding: 15px 0;
}

.iconslist i {
  margin: 0.25rem;
  font-size: 2.5rem;
}

.iconslist .label {
  font-family: var(--bs-font-monospace);
  display: inline-block;
  width: 100%;
  overflow: hidden;
  padding: 0.25rem;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #666;
}

/*******************************************************
# Profie Page
*******************************************************/
.profile .profile-card img {
  max-width: 120px;
}

.profile .profile-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--darkblue);
  margin: 10px 0 0 0;
}

.profile .profile-card h3 {
  font-size: 18px;
}

.profile .profile-card .social-links a {
  font-size: 20px;
  display: inline-block;
  color: rgba(1, 41, 112, 0.5);
  line-height: 0;
  margin-right: 10px;
  transition: 0.2s;
}

.profile .profile-card .social-links a:hover {
  color: var(--royalblue);
}

.profile .profile-overview .row {
  margin-bottom: 20px;
  font-size: 15px;
}

.profile .profile-overview .card-title {
  color: var(--royalblue);
}

.profile .profile-overview .label {
  font-weight: 400;
  color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit label {
  font-weight: 400;
  color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit img {
  max-width: 120px;
}

/*******************************************************
# F.A.Q Page
*******************************************************/
.faq .basic h6 {
  font-size: 18px;
  font-weight: 400;
  color: var(--blue);
}

.faq .basic p {
  color: #6980aa;
}

/*******************************************************
# Error 404
*******************************************************/
.error-404 {
  padding: 30px;
}

.error-404 h1 {
  font-size: 180px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0;
  line-height: 150px;
}

.error-404 h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--royalblue);
  margin-bottom: 30px;
}

.error-404 .btn {
  background: var(--darkblue);
  color: var(--white);
  padding: 8px 30px;
}

.error-404 .btn:hover {
  background: var(--darkblue);
}

@media (min-width: 992px) {
  .error-404 img {
    max-width: 50%;
  }
}

/*******************************************************
# Footer
*******************************************************/
.footer {
  bottom: 0;
  padding: 20px 0;
  font-size: 14px;
  transition: all 0.2s;
  border-top: 1px solid var(--lightblue);
}

.footer .copyright {
  text-align: center;
  color: var(--royalblue);
}

.footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 13px;
  color: var(--royalblue);
}

/*******************************************************
# Alert
*******************************************************/
.alertButtons {
  position: relative;
  bottom: 0px;
  justify-content: space-between;
}

.alertHeader {
  text-align: left;
  font-size: 20px;
  color: var(--secondary);
  margin-bottom: 10px;
}

.alertMessage {
  text-align: left;
  font-size: 13px;
  color: var(--black);
  height: 200px;
}

/*******************************************************
# Unified modal theming (Bootstrap-based)
*******************************************************/

/* Shared look for all app modals */
.lw-modal .modal-content {
  border-radius: 0.5rem;
  border: 1px solid var(--primary);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
}

/* Small cardy modals: login, alert, input */
.lw-modal-sm .modal-dialog {
  max-width: 420px;
}

/* Medium / wide form modal: email */
.lw-modal-md .modal-dialog {
  max-width: 800px;
}

/* Image modal dialog – limit width and keep centered */
.modal-dialog-image {
  max-width: 600px;       /* adjust as needed */
  width: auto !important; /* prevents Bootstrap from expanding it */
  margin: 1.75rem auto;   /* centers it */
}

/* Specific tweaks to the image modal content */
#imageModal .modal-content {
  background: #fff;
  border-radius: 6px;
  padding: 16px;
}

/* Single source of truth for popup image sizing */
#popupimage {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Close icon styling for modals */
.lw-modal-close {
	font-size: 1.5rem;
  cursor: pointer;
}

/*******************************************************
# Email Modal (custom overlay type)
*******************************************************/
.email-modal {
  display: none;
  position: fixed;
  z-index: 950; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(255,255,255,.75);
}

.email-modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid var(--primary);
  width: 800px;
  height: 670px;
}

/*******************************************************
# Input Modal (custom overlay type)
*******************************************************/
.input-modal {
  display: none;
  position: fixed;
  z-index: 897; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(108,207,247,.5);
}

.input-modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid var(--primary);
  width: 400px;
  height: 350px;
}

.input-modal-content img {
  margin-left: auto;
  margin-right: auto;
  width: 300px;
}

.inputmodalButtons {
  position: relative;
  bottom: 0px;
  justify-content: space-between;
}

.inputHeader {
  text-align: left;
  font-size: 20px;
  color: var(--primary);
}

.inputMessage {
  text-align: left;
  font-size: 13px;
  color: var(--black);
  height: 200px;
}

/*******************************************************
# Image styles
*******************************************************/
.vehimage {  
  object-fit: contain;
}

.left-aligned {
  text-align: left;
}

.right-aligned {
  text-align: right;
}

.center-aligned {
  text-align: center;
}

/* Legacy custom image overlay (not Bootstrap modal) */
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;                 /* set to flex when showing */
  align-items: center;
  justify-content: center;
  background-color: rgba(255,255,255,.5);
  overflow: auto;
}

/* Consistent “card” for image */
.image-modal-content {
  background: #fff;
  border: 1px solid var(--primary);
  border-radius: 6px;
  box-sizing: border-box;
  padding: 20px;

  /* Size + aspect ratio */
  width: 50vw;       
  min-height: 50vw; 	
  max-height: 75vh;              /* cap at 75% of viewport height */
  aspect-ratio: 4 / 3;           /* keep consistent shape */

  /* Center image inside */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image stays inside the box and centers */
.image-modal-content img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  display: block;
}



/*******************************************************
# Floating Labels (compact + aligned + clean chip)
*******************************************************/

/* === Base control sizing === */
.form-floating.form-floating-sm > .form-control,
.form-floating.form-floating-sm > .form-select,
.form-floating.form-floating-sm > textarea.form-control {
  height: 2.4rem !important;
  min-height: 2.4rem !important;
  padding: 0.35rem 0.65rem !important;
  font-size: 0.875rem !important;
  line-height: 1.2 !important;
}

/* Textarea expands but keeps top alignment */
.form-floating.form-floating-sm > textarea.form-control {
  min-height: 5rem !important;
  height: auto !important;
  padding-top: 0.85rem !important;
}

/* === Base label styling === */
.form-floating.form-floating-sm > label {
  position: absolute;
  left: 0.5rem;
  top: 0.45rem;
  font-size: 0.75rem !important;
  padding: 0.35rem 0.65rem 0 !important;
  margin-bottom: 0 !important;
  background-color: #fff !important;
  transition: all 0.12s ease-in-out;
  pointer-events: none;
  z-index: 5;
}

/* Input + select resting alignment */
.form-floating.form-floating-sm > input.form-control ~ label,
.form-floating.form-floating-sm > .form-select ~ label {
  top: 0.25rem !important;
  padding-top: 0.15rem !important;
  padding-bottom: 0 !important;
  line-height: 1 !important;
}

/* Textarea resting alignment */
.form-floating.form-floating-sm > textarea.form-control ~ label {
  top: 0.3rem !important;
  padding-top: 0.1rem !important;
  line-height: 1.1 !important;
}

/* === Floating label chip (on border) === */
.form-floating.form-floating-sm > .form-control:focus ~ label,
.form-floating.form-floating-sm > .form-control:not(:placeholder-shown) ~ label,
.form-floating.form-floating-sm > textarea.form-control:focus ~ label,
.form-floating.form-floating-sm > textarea.form-control:not(:placeholder-shown) ~ label,
.form-floating.form-floating-sm > .form-select:focus ~ label,
.form-floating.form-floating-sm > .form-select:valid ~ label {
  font-size: 0.7rem !important;
  background-color: #fff !important;
  height: auto !important;
  padding: 0 0.4rem !important;
  margin-bottom: 0 !important;
  line-height: 1.1 !important;
  border-radius: 0.25rem;
  transform: scale(0.95) translateY(-0.6rem) translateX(0.15rem) !important;
  opacity: 0.95;
}

/* === Select alignment tweaks === */
.form-floating.form-floating-sm > .form-select ~ label {
  top: 0.22rem !important;
  padding-top: 0.06rem !important;
  padding-bottom: 0 !important;
  line-height: 1 !important;
}

/* Floated chip — lift higher for select */
.form-floating.form-floating-sm > .form-select:focus ~ label,
.form-floating.form-floating-sm > .form-select:valid ~ label {
  transform: scale(0.95) translateY(-0.72rem) translateX(0.15rem) !important;
  padding: 0 0.4rem !important;
  line-height: 1 !important;
}

/* Extra space for caret */
.form-floating.form-floating-sm > .form-select {
  padding-right: 2rem !important;
}

/* === Label inside field (transparent background, visible when focused) === */
/* Transparent only when empty and NOT focused */
.form-floating.form-floating-sm > .form-control:placeholder-shown:not(:focus) ~ label,
.form-floating.form-floating-sm > textarea.form-control:placeholder-shown:not(:focus) ~ label {
  background: transparent !important;
  padding-bottom: 0 !important;
  height: 1rem !important;
  line-height: 1 !important;
  opacity: 0.9;
}

/* When focused (even if empty), use solid chip for readability */
.form-floating.form-floating-sm > .form-control:focus ~ label,
.form-floating.form-floating-sm > textarea.form-control:focus ~ label,
.form-floating.form-floating-sm > .form-select:focus ~ label {
  background-color: #fff !important;
  padding: 0 0.4rem !important;
  border-radius: 0.25rem;
  opacity: 1 !important;
}

/* Ensure label chip can overlap border cleanly */
.form-floating.form-floating-sm {
  overflow: visible;
}

.custom-floating {
    position: relative;
}

.custom-floating label {
    position: absolute;
    top: -0.6rem;       /* adjust to match your floating labels */
    left: 0.75rem;
    font-size: 0.85rem; /* adjust to match your theme */
    color: #6c757d;     /* Bootstrap muted color */
    background: white;
    padding: 0 4px;
}

/* ============================================================
   Universal LOCKED / READ-ONLY style for Bootstrap floating fields
   Works for input, select, textarea
   ============================================================ */

/* 1. Core look for locked controls */
.form-floating .input-locked,
.input-locked {
  pointer-events: none;               /* cannot edit */
  background-color: #fff !important;  /* clean white background */
  color: #6c757d !important;          /* muted text (Bootstrap "text-muted") */
  border-color: #d0d7dd !important;   /* subtle border */
  cursor: default !important;
}

/* Prevent focus glow if JS or browser forces focus */
.form-floating .input-locked:focus,
.input-locked:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* 2. Keep floating label looking perfect */
.form-floating .input-locked + label {
  background-color: #fff;             /* same background as control */
  opacity: .65;                       /* standard floating label opacity */
  padding: 0 .35rem;                  /* pill-like label */
  transform: scale(.85) translateY(-0.5rem) translateX(.15rem);
}

/* 3. Support TEXTAREA in floating labels */
.form-floating textarea.input-locked {
  resize: none;                       /* prevent resize on locked textareas */
  min-height: calc(3.5rem + 2px);     /* match Bootstrap height */
}
