* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh !important;
  max-height: 100vh !important;
  overflow-y: hidden;
}

body::-webkit-scrollbar {
  width: 7px;
}

body::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2);
}

body::-webkit-scrollbar-thumb {
  background-color: darkgrey;
}
.new_quotes_form::-webkit-scrollbar {
  width: 6px;
}

.new_quotes_form::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2);
}

.new_quotes_form::-webkit-scrollbar-thumb {
  background-color: darkgrey;
}
@media (max-width:768px){
  .new_quotes_form{
    width: 90vw !important;
  }
}

a {
  text-decoration: none !important;
}

header,
footer {
  background-color: #d1334e;
}

/* header section*/
header {
  min-height: 14vh;
  max-height: 14vh;
}

nav {
  min-height: 14vh;
  max-height: 14vh;
}

.nav-link {
  color: #fff;
  padding: 5px 8px;
  display: flex;
  flex-direction: column !important;
  margin-right: 40px !important;
  text-decoration: none;
  font-weight: 400;
}

.header-nav-link:hover {
  color: #000 !important;
}

/* main section*/
main {
  min-height: 80vh !important;
  max-height: 80vh !important;
  margin-top: 14vh;
}

.sidebar {
  background-color: #f5f5f5 !important;
}

.new_quotes_form {
  height: 75vh !important;
  overflow-y: scroll;
  overflow-x: hidden;
}

.sub-navbar {
  background-color: #f0f0f0 !important;
  display: none;
}

.sub-navbar-container {
  min-height: 5vh;
  max-height: 5vh;
  /* margin-bottom: 5px !important; */
  background-color: #686d76 !important;
  display: flex !important;
  align-items: center !important;
}

.sub-navbar-container ul li a {
  color: #fff !important;
}

.sidebar-btn button {
  font-size: 12px !important;
  color: #fff;
  font-weight: 600;
}

/* footer section */
footer {
  min-height: 8vh !important;
  max-height: 8vh !important;
  display: flex;
  align-items: center;
}

footer .container-fluid {
  min-height: 8vh;
  max-height: 8vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg-danger {
  background-color: #d1334e;
  padding: 4px 8px !important;
  color: #fff;
  margin-bottom: 15px !important;
  width: 100%;
  border-radius: 3px !important;
}

.hero-bg {
  background-color: #d1334e;
  color: #fff !important;
  margin: 5px 0;
  height: 70px;
  width: 80px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding: 0 3px !important;
}

.hero-bg a {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-weight: 600;
}

.hero-btn {
  background-color: #d1334e !important;
  color: #fff !important;
  font-weight: 600;
  border: 0 !important;
}

.hero-bg:hover {
  background-color: #e32a49;
  cursor: pointer;
}

.hero-text {
  color: #d1334e !important;
}

.bg-box {
  background-color: #d1334e !important;
  color: #fff !important;
  width: 200px;
  margin-right: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 10px;
  border-radius: 9px;
  height: 170px;
  text-align: center;
  border: 0;
  row-gap: 20px !important;
}

.bg-box:hover {
  background-color: #e32a49 !important;
  cursor: pointer !important;
}

.bg-box a {
  color: #fff;
  font-weight: 600;
}

/* form */
label {
  font-size: 13px !important;
  font-weight: 500 !important;
}
.form-label{
  margin-bottom: 0 !important;
}
.form-control {
  height: 30px !important;
  border-radius: 8px;
  border: 1px solid #ced4da;
  padding: 8px 12px;
}
.form-select {
  height: 30px !important;
  padding: 3px 10px;
  border-radius: 8px;
  border: 1px solid #ced4da;
}

.w-25 {
  width: 47% !important;
  font-size: 14px;
  display: flex;
  margin-right: 8%;
  margin-bottom: 0 !important;
}

/* Custom Modal Styling */
.modal-content {
  border-radius: 12px;
  border: none;
}
.modal-title {
  font-weight: bold;
  font-size: 1.25rem;
}

.modal-body {
  color: #495057;
  font-size: 1rem;
}

.modal-footer {
  background-color: #f1f1f1;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}
@media (max-width:700px){
  .modal-form .row{
    display: flex;
    flex-direction: column !important;
  }
  .modal-body{
    height: 75vh !important;
    overflow-y: scroll;
  }
}


/* Buttons styling */
.btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
  border-radius: 8px;
}

.btn-secondary:hover {
  background-color: #5a6268;
  border-color: #4e555b;
}

.hero-btn {
  background-color: #28a745;
  border-color: #28a745;
  border-radius: 8px;
}
@media (max-width:768px){
  h5{
    font-size: .80rem  !important;
  }
  .hero-btn{
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 3px;
  }
}

.hero-btn:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

/* Close button custom style */
.btn-close {
  background-color: #f44336;
  border-radius: 50%;
  color: white;
  opacity: 0.8;
}

.btn-close:hover {
  opacity: 1;
}

.nav-pills .nav-link.active {
  background-color: #e7eaf6;
  color: black !important;
  /* height: 5vh; */
}

.nav-tabs .nav-link.active {
  background-color: #007bff;
  /* Change to your preferred color */
  color: white;
  /* Adjust text color if needed */
}



/* Increase margin for rows to separate form fields */
.mb-4 {
  margin-bottom: 20px;
}

/* Adjust layout on smaller screens */
@media (max-width: 768px) {
  .d-flex label {
    /* width: 100%; */
  }
}

/* toast  */
.toast-container {
  position: fixed;
  top: 10px;
  left: 100px;
  transform: translateX(-50%);
  z-index: 1050;
}

/* table */
table {
  border: 1px solid #36454F !important;
}
thead {
  background-color: #ced4da !important;
  font-size: 10px !important;
  font-weight: 600 !important;
}


@media (max-width:520px){
  td{
    font-size: 6px !important;
    padding: 3px 2px !important;
  }
}
@media (max-width:425px){
  td{
    font-size: 4px !important;
    padding: 3px 2px !important;
  }
}

/* added quotes */
#show_new_qutes_details {
  background-color: #f5f7f8 !important;
  border-radius: 8px !important;
  padding: 10px 8px !important;
  margin-bottom: 4vh !important;
}
#fileInput {
  height: 40px !important;
}
@media (min-width:320px) and (max-width:425px){
  #fileInput {
    height: 20px !important;
  }
}
@media (min-width:426px) and (max-width:768px){
  #fileInput {
    height: 30px !important;
  }
}
#show_new_qutes_details span {
  font-weight: 600 !important;
  color: #424242 !important;
}
#previewQuoteDetails span {
  font-weight: bold !important;
  color: #424242 !important;
}
#roofPenetrationPreview span {
  font-weight: bold !important;
  color: #424242 !important;
}
#shippingPreview span {
  font-weight: bold !important;
  color: #424242 !important;
}

p {
  margin-bottom: 4px !important;
}

/* #quotes_subnav_container {
      width: 800px !important;
      margin: 0 auto;
    } */

main {
  overflow-y: scroll;
  overflow-x: hidden;
}

row {
  cursor: pointer !important;
}

/* sidebar products */

.fs-s {
  font-size: 10px !important;
}
.products-container {
  width: 85px !important;
  height: 75px !important;
  box-shadow: rgba(0, 0, 0, 0.1) 2.4px 2.4px 3.2px;
}
@media (min-width:768px) and (max-width:1262px){
  .products-container {
    width: 70px !important;
    height: 65px !important;
    box-shadow: rgba(0, 0, 0, 0.1) 2.4px 2.4px 3.2px;
  }
  .products-container img{
    width: 40px;
    height: 40px;
  }
  .fs-s {
    font-size: 6px !important;
  }
}
.products-container {
  transition: transform 0.3s ease-in-out;
}

.products-container:hover {
  transform: scale(1.1); /* Increases size by 10% */
}

.modal {
  background-color: transparent !important;
}

.modal-content {
  width: 90vw !important;
  margin: auto;
  position: fixed;  /* Ensure it stays fixed on the page */
  top: 50%;         /* Center vertically */
  left: 50%;        /* Center horizontally */
  transform: translate(-50%, -50%); /* Adjust for exact centering */
  transition: transform 0.3s ease, top 0.3s ease; /* Smooth transition for transform and top */
}
@media (min-width: 760px) {
  .modal-content {
    top: 40%;  /* Adjust vertical position on larger screens */
  }
}

.modal-header {
  height: 7vh !important;
  background-color: #d1334e !important;
  color: #fff !important;
  display:flex;
  align-items:center;
  padding:5px 20px !important;
}
.modal-btn-close{	
    width:.7em !important;
  height:.7em !important;
  padding:4px !important;
  background-color: transparent !important;
}
.modal-footer {
  background-color: #fff !important;
  border: 0 !important;
  padding-top: 0 !important;
}
.modal-body {
  background-color: #fff !important;
  padding-bottom: 0 !important;
}

@media print {
h5{
  color:#fff !important;
}
} 

/* media query */

@media only screen and (max-width: 768px) {
  body{
    font-size: 8px !important;
  }
  footer{
    font-size: 13px ;
  }
  .sidebar-btn{
    width: 30px;
  }

  .nav-pills{
    font-size: 13px;
    margin-left: 20px;
  }
  .navbar-brand{
    padding-top: 0;
  }
  .nav-pills .nav-item{
    width: 60px;
  }
  #nav-container .nav-pills{
    font-size: 10px;
    padding: 0 !important;
    margin-left: 0 !important;
    display: flex !important;
    justify-content: space-evenly !important;
  }

  .mainbar_container{
    width: 100%;
  }
  .sub-navbar-container{
    display: none !important;
  }
  .new_quotes_form{
    height: 80vh !important;
  }
  .form-select{
    height: 25px !important;
    padding: 1px 10px;
    border-radius: 8px;
    border: 1px solid #ced4da;
  }
  .form-control{
    height: 25px !important;
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 4px 12px;
  }
  textarea{
    height: 25px !important;
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 4px 12px;
  }
  label{
    font-size: 12px !important;
  }
  .nav-pills .nav-link.active{
    background-color: #e7eaf6;
    color: black !important;
    width: 45px !important;
    /* height: 5vh; */
  }
  .nav-pills .nav-link{
    margin-right: 20px !important;
  }
}
@media (max-width:769px){
  th{
    font-weight: 500 !important;
    font-size: 7px !important ;
    padding: 4px 2px !important;
  }
}
@media only screen and (max-width: 425px) {
  body{
    font-size: 5px !important;
    /* font-weight: 300 !important; */
  }
  th{
    font-weight: 400 !important;
    font-size: 5px !important ;
    padding: 4px 2px !important;
  }

  footer{
    font-size: 10px !important ;
  }
  .sidebar-btn{
    width: 30px;
  }
  .navbar .container-fluid{
    /* justify-content: end !important; */
  }
  .nav-pills{
    font-size: 13px;
    margin-left: 20px;
  }
  .navbar-brand{
    padding-bottom: 0 !important;
    margin-right: auto !important;
  }
  .nav-pills .nav-item{
    width: 60px;
  }
  #nav-container .nav-pills{
    font-size: 6px;
    padding: 0 !important;
    margin-left: 0 !important;
    display: flex !important;
    justify-content: space-evenly !important;
    /* min-height: 5vh; */
  }
/* 
  #sidebar{
    display: none !important;
  } */
  .mainbar_container{
    width: 100%;
  }
  .sub-navbar-container{
    display: none !important;
  }
  .new_quotes_form{
    /* padding: 5px 10px !important; */
  }
  .form-select{
    height: 25px !important;
    padding: 1px 10px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    font-size: 9px;
  }
  .form-control{
    height: 25px !important;
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 4px 12px;
    font-size: 9px ;
  }
  textarea{
    height: 25px !important;
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 4px 12px;
  }
  label{
    font-size: 8px !important;
  }
  .navbar .container-fluid{
    min-height: 10vh !important;
    max-height: 10vh !important;
  }
  .nav-pills .nav-link.active{
    background-color: #e7eaf6;
    color: black !important;
    width: 55px !important;
  }
  #myTab{
    margin-left: 0 !important;
  }
  .nav-pills .nav-link{
    margin-right: 6px !important;
  }
}

#quoteForm .row .col-md-6 .d-flex{
  align-items: center !important;
}
/* mobile sidebar */
.mobile-sidebar{
  width: 10vw;
  display: flex;
  background-color:#343131 !important;
  -webkit-box-shadow: -4px 1px 5px 7px rgba(0,0,0,0.75);
  -moz-box-shadow: -4px 1px 5px 7px rgba(0,0,0,0.75);
  box-shadow: -4px 1px 5px 7px rgba(0,0,0,0.75) 
}
.mobile-sidebar:hover{
  width: 100px;
  transition: all 0.3s ease;
}
.mobile-sidebar .nav .nav-item .nav-link{
  display: flex !important;
  flex-direction: row !important;
}
.mobile-sidebar:hover .nav .nav-item .nav-link .nav-icon{
  margin-right: 6px;
  font-size: 12px;
}
.mobile-sidebar .nav .nav-item .nav-link .nav-icon{
  font-size: 15px;
}
.mobile-sidebar .nav .nav-item .nav-link span {
  display: none;
}
.mobile-sidebar:hover .nav .nav-item .nav-link span{
  display: block;
  font-size: 10px;
}

.mobile-sidebar .nav .nav-item {
  margin-bottom: 10px !important;
}
.mobile-sidebar .nav .nav-item .nav-link:focus{
  background-color: #ced4da !important;
  width: 100px;
}
.activeMenu{
  background-color: #ced4da !important;
  width: 10vw;
}
.activeMenu:hover{
  background-color: #ced4da !important;
  width: 100px !important;
}
.nav-link.disabled{
  color: #fff !important;
}

