:root {
    --primary-color: #fbb414;
    --primary-hover-color: #e1a214;
    --secondary-color: #02487f;
    --secondary-hover-color: #6610f2;
    --background-color: #6f42c1;
    --text-color: #777777;
    --label-color: #666666;
    --text-dark-color: #e83e8c;
    --text-light-color: #e83e8c;
    --heading-color: #dc3545;
    --text-font-family: 'Poppins', sans-serif;
    --heading-font-family: 'Poppins', sans-serif;
    --required-label-color: #FF0000;
}


.side-drawer{
    position: fixed;
    right: 0;
    width: 630px;
    bottom: 0;
    height: calc(100vh);
    display: flex ;
    flex-direction: column;
    z-index: 9999;
    box-shadow: none;
    border-radius: 0;
    border-radius: 10px 0 0 10px;
    transition: transform .3s ease-in-out;
  }
  .side-drawer.show{
    transform: none;
  }

  .body-fixed{
    overflow: hidden;
  }
  
  body.body-fixed:after {
    content: '';
    position: fixed;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.61);
    z-index: 999;
    left: 0;
    top: 0;
  }
  .close-button{
    cursor: pointer;
  }

.drawer-btn {
    width: auto !important;
    height:auto !important;
}

.table-text-left .cart-header tr th, .table-text-left td {
    text-align:left !important;
}

.grid-filter-box {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.grid-filter-box input.form-control{
    max-width: 300px;
}
  .side-drawer{
    transform: translateX(100%);
  }
  .side-drawer .drawer-body{
    height: calc(100vh - 158px);
      overflow-y: auto;
  }

.side-drawer{
  border: 1px solid rgba(166, 195, 224, 0.51) ;
  border-radius: 5px;
  background: #FFFFFF;
  width: 100%;
  max-width: 50%;
  height: 100%;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.drawer-header{
  display: flex;
  padding: 20px;
  justify-content: end;
  padding-bottom: 0;
}
.drawer-body{
  padding: 20px;
}
.close-button{
  padding: 5px;
  width: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 35px;
  background-color: rgba(145, 146, 149, 0.15);
  border-radius: 50%;
}
.close-button:hover{
  background-color: #ddd;
}
.close-button:hover img {
  filter: brightness(0) invert(1);
}

.drawer-title{
  margin-bottom: 0;
}
.tab-drawer{
  border-bottom: 0 ;
  padding: 6px ;
  background-color: #f5f5f5;
  border-radius: 8px;
}
.tab-drawer .nav-item{
  margin: 0;
}
.tab-drawer .nav-item .nav-link{
 border: 0;
 background-color: transparent;
}
.tab-drawer .nav-item .nav-link{
  border: 0;
  background-color: transparent;
  border-radius: 4px;
  color: #4a4a4a;
 }
 .tab-drawer .nav-item .nav-link.active{
background-color: var(--secondary-color);
color: #fff;
 }
.drawer-footer {
    padding: 20px;
    gap: 16px;
    display: flex;
    justify-content: end;
    border-top: 1px solid rgba(166, 195, 224, 0.51);
    margin-top: auto;
}
.tab-drawer{
    flex-wrap: inherit !important;
}
.tab-drawer .nav-item{
width: 100%;
}
.tab-drawer .nav-item .nav-link{
    text-align: center;
}
@media (max-width:500px){
  .drawer-body {
    max-height: calc(100vh - 168px);
    overflow: auto;
}
.side-drawer {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}
.parent-group-hierarchies {
  flex-direction: column-reverse;
  justify-content: space-between;
  width: 100%;
}
.list-parent{
  margin-top: 20px;
}
}

.modal-backdrop.hide {
    display: none;
}

.document-item{
padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    border: 1px solid #eaeaea;
    align-items: center;
    margin-bottom: 16px;
    box-shadow: 0px 0px 10px 0px #cccccc17;
}

.document-content {
    flex: 1;
    padding-right:16px;
}

.document-title {
    font-size: 18px;
    font-weight: 500;
}
p.document-text {
    font-size: 14px;
    margin-bottom: 0;
}

.drawer-footer input.btn{
height:auto !important;
}
.drawer-footer input.btn-outline-danger{
border-color: #dc3545 !important;
}
.drawer-footer input.btn-primary{
border-color: #007bff !important;
}

@media (max-width: 500px){
.side-drawer {
    max-width: 100%;
z-index: 99999;
}
.drawer-header{
padding: 16px;
}
.drawer-title {
   max-width: 80%;
    font-size: 16px;
    font-weight: 500;
}
.side-drawer .drawer-body,
.drawer-footer{
padding: 16px;
}
.tab-drawer .nav-item .nav-link {
    font-size: 12px;
    padding: 6px 8px;
}
.side-drawer h5{
font-size: 18px;
}
.document-item {
    flex-direction: column;
    align-items: start;
    gap: 12px;
}
.grid-filter-box{
flex-direction: column;
    gap: 12px;
}
.grid-filter-box h2{
font-size: 22px;
    font-weight: 500;
}
.side-drawer {
    transform: translateX(100%);
}
.drawer-body {
    max-height: calc(100vh - 142px);
    overflow: auto;
}
}


.cart-wrapper {
    position: relative;
    display: inline-block;
}

.cart-icon {
    width: 32px;
    height: 32px;
}

.countItems {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: var(--primary-color);
    color: white;
    font-size: 13px;
    padding: 4px 6px;
    border-radius: 50%;
    font-weight: bold;
    line-height: 1;
    min-width: 22px;
    text-align: center;
}

.selected-session-btn {
    position: fixed;
    background: var(--secondary-color);
    z-index: 99;
    padding: 8px 12px;
    border-radius: 12px 21px 0 0;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0px 0px 8px 0px var(--secondary-color);
    transform: rotate(-90deg);
    top: calc(50% - 50px);
    right: -61px;
    width: fit-content;
    height: fit-content;
}

    .selected-session-btn .countItems {
        position: absolute;
        top: -6px;
        right: -6px;
        background-color: var(--primary-color);
        color: white;
        font-size: 13px;
        padding: 4px 6px;
        border-radius: 50%;
        font-weight: bold;
        line-height: 1;
        min-width: 22px;
        text-align: center;
        min-height: 22px;
        display: flex;
        justify-content: center;
        align-items:  center;
    }

.cart-section .table-outer {
    border-radius: 8px;
    overflow-x: auto;
}

.cart-section .cart-table .cart-header {
    background: var(--secondary-color) !important;
    border-bottom: 1px solid #e7e7e7;
}

.cart-section .cart-table thead tr th {
    color: #ffffff;
}

.drawer-body:has(.cart-table) .row {
    width: auto !important;
}