.avatar-sm {
    height: 3rem;
    width: 3rem;
}

.avatar-title {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: #4b38b3;
    color: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-weight: 500;
    height: 100%;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
}

.avatar-sm i {
    font-size: 20px;
}

.card {
    margin-bottom: 1.5rem;
    -webkit-box-shadow: 0 3px 3px rgba(56, 65, 74, .1);
    box-shadow: 0 3px 3px rgba(56, 65, 74, .1);
    border: none;
}


/* Start css author by ibrahim */
.hs-bg-primary {
    background-color: #018ED2;
}

.hs-bg-secondary {
    background-color: #3CB44A;
}

/* end css author by ibrahim */

/* .bg-success {
    background: #09ad95 !important;
} */

.img-card:before {
    content: '';
    position: absolute;
    background: url(../image/circle.svg);
    background-position: right;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    opacity: .5;
}

.icon-home-sm {
    font-size: 25px;
}

.blackberry-gradient,
.btn.blackberry-gradient.active,
.btn.blackberry-gradient:active {
    background-image: linear-gradient(45deg, #843cf7, #38b8f2);
    background-repeat: repeat-x;
}

.btn.green-tea-gradient.active,
.btn.green-tea-gradient:active,
.green-tea-gradient {
    background-image: linear-gradient(45deg, #004b91, #78cc37);
    background-repeat: repeat-x;
}

.btn.celestial-gradient.active,
.btn.celestial-gradient:active,
.celestial-gradient {
    background-image: linear-gradient(45deg, #c33764, #1d2671);
    background-repeat: repeat-x;
}

.btn.deep-orange-orange-gradient.active,
.btn.deep-orange-orange-gradient:active,
.deep-orange-orange-gradient {
    background-image: linear-gradient(45deg, #bf360c, #f57c00);
    background-repeat: repeat-x;
}

.btn.red-pink-gradient.active,
.btn.red-pink-gradient:active,
.red-pink-gradient {
    background-image: linear-gradient(45deg, #ff5252, #f48fb1);
    background-repeat: repeat-x;
}

.btn.politics-gradient.active,
.btn.politics-gradient:active,
.politics-gradient {
    background-image: linear-gradient(45deg, #2196f3, #f44336);
    background-repeat: repeat-x;
}

.btn.purple-amber-gradient.active,
.btn.purple-amber-gradient:active,
.purple-amber-gradient {
    background-image: linear-gradient(45deg, #d500f9, #ffa000);
    background-repeat: repeat-x;
}

.btn.green-teal-gradient.active,
.btn.green-teal-gradient:active,
.green-teal-gradient {
    background-image: linear-gradient(45deg, #43a047, #1de9b6);
    background-repeat: repeat-x;
}

.btn.cosmic-fusion-gradient.active,
.btn.cosmic-fusion-gradient:active,
.cosmic-fusion-gradient {
    background-image: linear-gradient(45deg, #f0c, #339);
    background-repeat: repeat-x;
}

.btn.purple-deep-purple-gradient.active,
.btn.purple-deep-purple-gradient:active,
.purple-deep-purple-gradient {
    background-image: linear-gradient(45deg, #7b1fa2, #7c4dff);
    background-repeat: repeat-x;
}

.grid-title {
    font-family: Montserrat, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.5em;
}

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

.number-font {
    font-size: 20px;
    font-weight: bold;
}

.card-body-new-pd {
    padding: 22px 20px !important;
}


.table-hs {
    background-color: #004769;
}


th,
td {
    white-space: nowrap;
}

div.dataTables_wrapper {
    /* width: 800px; */
    margin: 0 auto;
}

td.z-index-3 {
    z-index: 3 !important;
}

.paginate_button.page-item.active {
    z-index: 1;
}

/* .input-group-text {
    border: 1px solid #e6e6e6   !important;
}


.form-select {
    border: 1px solid #e6e6e6   !important;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #e6e6e6   !important;
} */

.app-search .form-control {
    height: 0px;
    border-radius: 0;
    padding-left: 5px;
    max-width: 100%;
}

/* 
  td.dtfc-fixed-right {
    z-index: 3!important;
  } */

.filter-form {
    color: #172b4d;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Noto Sans', 'Ubuntu', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    font-display: swap;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 8px;
    outline: 0;
    background-color: var(#ffffff);
    box-shadow: var(#FFFFFF, 0px 8px 12px #091e4226, 0px 0px 1px #091e424f);
   
}

.filter-header {
    display: grid;
    position: relative;
    grid-template-columns: 32px 1fr 32px;
    align-items: center;
    padding: 0px 8px;
    text-align: center;
}

.filter-title {
    display: block;
    position: relative;
    grid-column: 1 / span 3;
    grid-row: 1;
    height: 40px;
    margin: 0;
    padding: 0 32px;
    overflow: hidden;
    color: #44546f;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.003em;
    line-height: 40px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-close {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #626f86;
}

.filter-body {
    -webkit-overflow-scrolling: touch;
    -webkit-transform: translate3d(0, 0, 0);
    padding: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 200px;

}

.filter-key {
    color: #44546f;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    margin-top: 0px;
    margin-bottom: 1px;
}

.filter-keyword {
    box-sizing: border-box;
    border: none;
    outline: none;
    color: #172b4d;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Noto Sans', 'Ubuntu', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    font-display: swap;
    transition-property: background-color, border-color, box-shadow;
    transition-duration: 85ms;
    transition-timing-function: ease;
    padding: 8px 12px;
    border-radius: 3px;
    background-color: #ffffff;
    box-shadow: inset 0 0 0 1px #091e4224;
    width: 100%;
    margin-bottom: 0;
}

.puTG_Ca0g13YD9 {
    margin-top: 8px;
    margin-bottom: 4px;
    color: #44546f;
    font-size: 11px;
    line-height: 14px;
}

.filter-keyword:hover {
    background-color: #f7f8f9;
    box-shadow: inset 0 0 0 1px #091e4224;
}

table td {
    vertical-align: middle!important;
}

.table>thead {
    vertical-align: middle!important;
}

.ajax-data-table thead th {
    background-color: #007bff!important; /* Set your desired background color */
    color: white; /* Set text color if needed */
}

::-webkit-scrollbar {
    width: 13px;
}

/* Author Ibrahim Bin Karim Start Toggle Switch */

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.switch .slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

.switch input:checked+.slider {
    background-color: #2196F3;
}

.switch input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

.switch input:checked+.slider:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}

/* Rounded sliders */
.switch .slider.round {
    border-radius: 10px;
}

.switch .slider.round:before {
    border-radius: 30%;
}

/* Author Ibrahim Bin Karim End Toggle Switch */

.notification-content .heading{
    text-wrap: balance;
}

.text-wrap{
    text-wrap: balance!important;
}

.offcanvas-active .navbar-brand-box {
    position: fixed;
    padding: 0;
    width: 60px;
    z-index: 1;
    top: 0;
  }
  .logo {
    line-height: 70px;
  }
  .offcanvas-active .logo .logo-sm {
    display: block;
  }
  .logo .logo-sm {
    display: none;
  }
  .offcanvas-active .logo .logo-lg {
    display: none;
  }
  .logo .logo-sm {
    display: none;
  }

  .bg-green-gradient {
    background: linear-gradient(90deg, rgba(0, 110, 10, 1) 10%, rgba(70, 355, 160, 4) 100%);
}

.bg-navy-gradient {
    background: linear-gradient(90deg, rgba(0, 117, 157, 1) 10%, rgba(139, 226, 255, 1) 100%);
}

.bg-pink-gradient {
    background: linear-gradient(90deg, rgba(217, 122, 126, 1) 43%, rgba(250, 240, 207, 1) 100%);
}
.card{
    box-shadow: 0 3px 9px 0 rgba(169,184,200,0.15)!important;
}

.action-button {
    padding: 6px 10px;
    background: #eaeaea;
    border: none;
    color: rgb(58, 58, 58);
    font-size: 14px;
    letter-spacing: 1px;
    border-radius: 5px;
    /* height: 50px; */
}

.blue-heading {
    color: rgba(58, 160, 255, 1);
}

.number-font-purchase {
    font-size: 13px;
    font-weight: bold;
}

.grid-title-purchase {
    font-family: Montserrat, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.5em;
}

.icon-home-sm-purchase {
    
    font-size: 15px;
    line-height: 1.5em;
}

.card-body-new-pd-purchase {
    padding: 16px 20px !important;
}

ul.custom-nav-pills{
    border-bottom: 1px solid #ccc;
}
/* Custom active tab styling */
.custom-nav-pills .nav-link.active {
    background-color: transparent; /* Remove default background */
    border-bottom: 2px solid #008ed2; /* Add custom bottom border */
    color: #008ed2; /* Change text color to match */
    font-weight: 700;
    border-radius: 0px;
}

/* Optional: Style inactive links */
.custom-nav-pills .nav-link {
    color: #000; /* Default text color */
    font-size: 13px;
}

ul.custom-nav-pills .nav-pills .nav-link{
    border-radius: 0px!important;
}

.custom-nav-pills .nav-link:hover {
    color: #008ed2; /* Text color on hover */
}


.filter-buttons {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-buttons button {
    padding: 10px 20px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.filter-buttons button:hover {
    background-color: #0056b3;
}

.filter-buttons input {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.border-danger{
    border-color: rgba(220, 53, 69, 1) !important;
}


/* Custom classes mimicking Tailwind */
@media (min-width: 576px) {
    .sm-pl-3 {
        padding-left: 1rem; /* pl-3 in Tailwind = 1rem */
    }
    .sm-bg-black {
        background-color: #000; /* sm:bg-[#000] */
    }
}

@media (min-width: 992px) {
    .lg-ml-2 {
        margin-left: 0.5rem; /* pl-2 in Tailwind = 0.5rem */
    }
}

.po_item_table th,
.po_item_table td {
    transition: all 0.3s ease;
}


@media (min-width: 1200px) {
    .modal-xl {
        --bs-modal-width: 1200px;
    }
}

.btn-custom{
    background-color: #b8c731;
    color: #fff;
}

.btn-custom:hover{
    background-color: #a0b02b;
    color: #fff;
}

table.dataTable tbody th, table.dataTable tbody td {
    font-size: 12px!important;
}

tbody, td, tfoot, th, thead, tr {
    font-size: 12px!important;
}

.sidebar_scrollbar {
    max-height: calc(100vh - 100px); /* Adjust height dynamically */
    overflow-y: auto; /* Show scrollbar only when needed */
    scrollbar-width: thin; /* Firefox: thin scrollbar */
    scrollbar-color: #ccc transparent; /* Custom scrollbar */
}

/* For Webkit browsers (Chrome, Safari) */
.sidebar_scrollbar::-webkit-scrollbar {
    width: 5px;
}

.sidebar_scrollbar::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}

.form-control:focus {
    background-color: #fff;
    border-color: rgba(140, 152, 164, .25);
    box-shadow: 0 0 1rem 0 rgba(140, 152, 164, .25);
    color: #1e2022;
    outline: 0;
}

.invoice-editor .invoice-footer .expandingText, .invoice-editor .invoice-footer textarea {
    min-height: 60px;
    resize: none;
}

.btn-outline-secondary, .form-check-input, .form-control, .form-select, .input-group-text, .invoice-editor .input-label:focus {
    border-color: rgba(196, 205, 213, .7)!important;
}

.form-control-sm {
    border-radius: .3125rem;
    font-size: .8125rem;
    min-height: calc(1.5em + 1.125rem);
    padding: .5rem 1rem;
}

.form-select-sm {
    border-radius: .3125rem;
    font-size: .8125rem;
    min-height: calc(1.5em + 1.125rem);
    padding: .5rem 1rem;
}

.logo-upload {
    width: 150px;
    height: 150px;
    border: 2px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: #f9f9f9;
    border-radius: 8px;
}
.logo-upload input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.logo-preview {
    max-width: 100%;
    max-height: 100%;
    display: none;
}

.invoice-title {
    font-size: 2.75em;
    font-weight: 200;
    height: auto;
    margin: 0 0 5px;
    padding: 0 15px;
    text-align: right;
}

.control-label{
    font-size: 14px;
    font-weight: 400;
    color: #040404;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 5px!important;
}

.select2-container--default .select2-selection--single {

    border: 1px solid rgba(196, 205, 213, .7)!important;
    height: 35px!important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {

    line-height: 36px!important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    height: 36px!important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #676666!important;
}

.input-group.addon-input .delete {
    position: absolute;
    right: 0;
    top: 0;
    visibility: hidden;
}

.input-group.addon-input:hover .delete {
    visibility: visible;
}

.input-group.addon-input .delete .btn {
    height: 38px;
    line-height: 38px;
    padding: 0;
    width: 38px;
}

.btn:hover {
    border-color: transparent;
}
.btn-link:hover {
    color: #007a5a;
}