/*
Template Name: Velzon - Admin & Dashboard Template
Author: Themesbrand
Website: https://themesbrand.com/
Contact: support@themesbrand.com
File: Custom Css File
*/

body,
.navbar-menu .navbar-nav .nav-link {
    font-size: 0.7rem !important;
}

.card-header,
.card-footer {
    padding: 0.6rem !important;
}

label {
    margin-bottom: 0.2rem !important;
}

/* .btn {
    padding: 0.3rem 0.5rem !important;
    font-size: 0.75rem !important;
} */

input[type="checkbox"] {
    font-size: 0.7rem;
}

.page-title-box h4,
.card-title {
    font-size: 12px !important;
}

.page-title-box i {
    font-size: 16px !important;
}

/* .form-control {
    padding: 0.3rem 0.5rem !important;
    font-size: .7rem !important;
} */

.table> :not(caption)>*>* {
    padding: 0.5rem !important;
}

/* Select 2 custom start */
.select2-container .select2-selection--single {
    height: calc(1em + 0.9rem + calc(var(--vz-border-width) * 2));
}

.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 26px !important;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 26px !important;
}

/* Select 2 custom end */

/* Datatable custom start */

table.dataTable>thead .sorting:before,
table.dataTable>thead .sorting_asc:before,
table.dataTable>thead .sorting_asc_disabled:before,
table.dataTable>thead .sorting_desc:before,
table.dataTable>thead .sorting_desc_disabled:before {
    top: 3px !important;
    right: 0em !important;
}

table.dataTable>thead .sorting:after,
table.dataTable>thead .sorting_asc:after,
table.dataTable>thead .sorting_asc_disabled:after,
table.dataTable>thead .sorting_desc:after,
table.dataTable>thead .sorting_desc_disabled:after {
    top: 9px !important;
    right: 0em !important;
}

.table {
    width: 100% !important;
}

/* Context menu start */

.erp-context-menu {
    position: absolute;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    min-width: 200px;
    /* background: #fff; */
    padding: 2px;

    /*below code for set context menu in modal */
    z-index: 2000 !important;
    opacity: 1 !important;
}

.erp-context-menu-option {
    cursor: pointer;
    padding: 6px;
}

.erp-context-menu-option:hover {
    /* background-color: #0ab39c !important; */
    background-color: #405189 !important;
    color: #ffffff !important;
}

/* Context menu End */

.accordion-button {
    padding: 0.6rem;
    font-size: 0.7rem;
}

.required::after {
    content: " *";
    color: red;
    font-size: 12px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    padding-left: 24px !important;
    padding-right: 2px !important;
}

.select2-selection__choice__display {
    font-size: xx-small !important;
}

.handclick {
    cursor: pointer !important;
}

.Erp-ReadOnly {
    pointer-events: none !important;
    opacity: 0.5 !important;
}

/* time picker css */
.flatpickr-time input.flatpickr-hour {
    font-weight: 400 !important;
}

.flatpickr-time {
    line-height: 30px !important;
    max-height: 30px !important;
    font-size: 12px !important;
}

.flatpickr-time .numInputWrapper {
    height: 25px !important;
}

.flatpickr-time input {
    font-size: 12px !important;
}

/* time picker css */

.disabled-textbox {
    pointer-events: none;
}

.custom-swal-title {
    padding: 24px 24px 0;
    font-size: 15px !important;
    font-weight: 10;
}

.custom-swal-container {
    font-size: unset !important;
}

/* div:where(.custom-swal-container) div:where(.custom-swal-containe) {

} */

div:where(.custom-swal-container) div:where(.custom-swal-popup) {
    /* display: none;
    position: relative;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 100%);
    width: 32em;
    max-width: 100%;
    padding: 0 0 1.25em;
    border: none;
    border-radius: 5px;
    background: #fff;
    color: #545454;
    font-family: inherit; */
    font-size: unset !important;
}

.input-group-text {
    padding: 0.2rem 0.4rem !important;
}

/*common item/subitem  table css*/
.erpSrNo,
.erpItemNameTd,
.erpItemRemarkTd,
.erpItemUnitTd,
.erpItemMeasureTd,
.erpItemQtyTd,
.erpRequireQtyTd,
.erpGrossWeightTd,
.erpNetWeightTd,
.erpScrapTd,
.erpItemQtyWeightTd,
.erpItemRateTd,
.erpItemAmountTd,
.erpItemDiscountTypeTd,
.erpItemDiscountValueTd,
.erpItemTotalAmountTd,
.erpItemGstPerTd,
.erpItemGstValueTd,
.erpItemGstPLusValueTd,
.erpItemRemoveTd,
.erpItemCodeTd,
.erpTypeWiseItemCodeTd,
.erpItemSalesPriceTd,
.erpItemPurchasePriceTd,
.erpItemStockTd .erpModuleWiseItemCodeTd,
.erpItemDispatchTd,
.otherChargesSrNoTd,
.otherChargesNameTd,
.otherChargesTypeTd,
.otherChargesTypeValTd,
.otherChargesGstTypeTd,
.otherChargesGstTypeValTd,
.otherChargesGstAmountTd .erpBomSelectTd {
    vertical-align: top !important;
}

.erpBomSelectTd {
    width: 15% !important;
}

.erpSrNo {
    width: 4% !important;
}

.erpItemCostTd {
    width: 8% !important;
}

.erpItemCost {
    width: 8% !important;
}

.erpItemRateTd {
    width: 8% !important;
}

.erpItemRemarkTd {
    width: 10% !important;
}

.erpItemMeasureTd {
    width: 7% !important;
}

.erpItemQtyTd,
.erpRequireQtyTd {
    width: 5% !important;
}

.erpGrossWeightTd,
.erpNetWeightTd,
.erpScrapTd {
    width: 8% !important;
}

.erpItemQtyWeightTd {
    width: 5% !important;
}

.erpItemAmountTd {
    width: 8% !important;
}

.erpItemDiscountValueTd {
    width: 8% !important;
}

.erpItemTotalAmountTd {
    width: 8% !important;
}

.erpItemGstPerTd {
    width: 8% !important;
}

.erpItemGstValueTd {
    width: 8% !important;
}

.erpItemGstPLusValueTd {
    width: 8% !important;
}

.erpItemUnitTd {
    width: 8% !important;
}

.erpItemStockTd {
    width: 10% !important;
}

.salesReceiptItemTable {
    width: 100%;
    table-layout: inherit;
}

.erpItemListTable,
.salesReceiptItemTable {
    width: 100%;
    table-layout: inherit;
}

.erpItemListTable .salesReceiptItemTable td {
    white-space: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
}

.erpItemDispatchTd {
    width: 10% !important;
}

#erpCompanyDiscountType {
    width: 85% !important;
}

.erpItemSalesPriceTd {
    width: 10%;
}

.erpItemPurchasePriceTd {
    width: 10%;
}

.erpItemCodeTd {
    width: 15%;
}

.erpTypeWiseItemCodeTd {
    width: 15%;
}

.erpModuleWiseItemCodeTd {
    width: 5% !important;
}

.otherChargesGstAmountTd {
    width: 10% !important;
}

.erpItemRemoveTd {
    width: 2% !important;
}

.preQtyDivStyle {
    width: 100% !important;
    cursor: pointer !important;
}

.preQtyHeadFontSize {
    font-size: 8px !important;
    display: flex;
    justify-content: flex-start;
}

.preQtyFontSize {
    font-size: 8px !important;
    display: flex;
    justify-content: flex-start;
}

.erpItemQty {
    min-width: 60px !important;
}

.erpItemRateDiv,
.erpItemAmountDiv,
.erpItemDiscountValueDiv,
.erpItemTotalAmountDiv,
.erpItemGstvalueDiv,
.erpItemGstPlusAmountDiv {
    width: 95px !important;
}

.erpItemDiscountTypeTd {
    width: 5% !important;
}

.erpItemSalesPriceDiv,
.erpItemPurchasePriceDiv {
    width: 100% !important;
}


.erpItemGstPerDiv {
    width: 75px !important;
}

/*common item/subitem  table css*/

/*============ Start:Left Side Fix Sticky Shortcuts==============*/
.erp-sidebar-sticky-toolbar {
    width: 46px;
    position: fixed;
    top: 30%;
    right: 0;
    list-style: none;
    padding: 5px 0;
    margin: 0;
    z-index: 50;
    background: #fff;
    box-shadow: 0px 0px 50px 0px rgba(82, 63, 105, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 3px 0 0 3px;
}

.erp-sidebar-wrapper ul {
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 0px;
}

.erp-sidebar-sticky-toolbar .erp-sidebar-sticky-toolbar__item {
    margin: 0;
    padding: 5px;
    text-align: center;
}

erp-sidebar-wrapper li {
    display: list-item;
}

.erp-sidebar-sticky-toolbar .erp-sidebar-sticky-toolbar__item>a {
    background: #f4f4f8;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 3px;
    transition: background 0.3s ease;
}

/*============ End:Left Side Fix Sticky Shortcuts==============*/

.erp-tag-div {
    position: relative;
    box-sizing: inherit;
    min-width: 0;
    display: block;
    width: 100%;
}

.erp-tag-input {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 7px 33px 7px 6px;
    height: auto;
    border-radius: 7px;
}

.span-tag-details {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    width: 100%;
}

/* .erp-tag-input:hover {
    background-color: rgb(202, 207, 218);
    opacity: 1;
}

.erp-tag-input-open {
    background-color: rgb(202, 207, 218);
} */

.tag-badge {
    display: inline-flex !important;
    align-items: center !important;
    position: relative;
    padding: 1px 6px !important;
    color: #fff;
    border-radius: 10px !important;
    margin-top: 0 !important;
    margin-right: 4px !important;
    margin-bottom: 4px !important;
    font-size: 9px !important;
    font-weight: 500 !important;
    gap: 3px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.2s ease-in-out !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.tag-badge:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15) !important;
    filter: brightness(1.05) !important;
}

.delete-badge {
    visibility: hidden;
    opacity: 0;
    cursor: pointer;
    text-align: center;
    border-radius: 2px;
    align-items: center;
    line-height: inherit;
    transition: opacity 0.1s ease;
}

.edit-badge {
    visibility: hidden;
    opacity: 0;
    cursor: pointer;
    text-align: center;
    border-radius: 2px;
    align-items: center;
    line-height: inherit;
    transition: opacity 0.1s ease;
}

.tag-badge:hover .edit-badge {
    visibility: visible !important;
    opacity: 1 !important;
    display: inline-flex !important;
}

.tag-badge:hover .delete-badge {
    visibility: visible !important;
    opacity: 1 !important;
    display: inline-flex !important;
}

.tag-ids-show {
    max-width: 100%;
    padding: 8px 8px;
    padding: 6px 10px !important;
    margin-bottom: 5px;
    border-radius: 6px !important;
    transition: filter 0.2s ease;
}

.tag-ids-show:hover {
    filter: brightness(0.95) !important;
}

#erpTagModal {
    z-index: 2000 !important;
    opacity: 1 !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
}

#erpTagModal .tagDetails {
    height: 140px !important;
    width: 280px !important;
    overflow-y: auto;
    padding: 10px;
}

.erpItemSubItemCard {
    margin-bottom: 0.75rem !important;
    margin-top: -0.75rem !important;
}

/*============ Start:PopOver Style==============*/
.erpPopOver_tableMain {
    display: table;
    width: 100%;
}

.erpPopOver_tableRow {
    display: table-row;
    color: var(--vz-heading-color);
}

.erpPopOver_tableCell,
.erpPopOver_tableHead {
    /* border: 1px solid var(--vz-border-color); */
    border: 1px solid transparent;
    display: table-cell;
    padding: 0 11px;
    border-bottom: 1px dashed var(--vz-border-color);
}

.erpPopOver_tableHeading {
    display: table-header-group;
    font-weight: bold;
}

.erpPopOver_tableBody {
    display: table-row-group;
}

.popover {
    max-width: 100% !important;
}

/*============ End:PopOver Style==============*/

/*========== Start Pdf Attachment Style =============*/

/* Base styles for images */
.images {
    max-width: 400px !important;
    max-height: 350px !important;
}

@media (min-width: 320px) and (max-width: 600px) {
    .images {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        max-width: 250px !important;
        max-height: 250px !important;
    }

    .popover-body {
        overflow-x: hidden;
        overflow-y: hidden;
    }

    .bs-popover-auto {
        width: 273px !important;
        margin-left: 2px !important;
    }
}

/* .popover {
position: relative;
}

.popover-content {
    display: contents;
    flex-wrap: wrap;
    justify-content: center;
}

.images {
    max-width: 400px;
    max-height: 350px;
    width: 100%;
    height: auto;
    margin: 10px;
} */

/*========== End Pdf Attachment Style =============*/

/*============ Start: Select2 Dropdown ==============*/
.erpSelect2Item {
    background-color: #405189 !important;
    color: white !important;
}

.select2-results li:not(.erpSelect2Item).erpSelected2Item {
    background-color: var(--vz-tertiary-bg) !important;
    color: var(--vz-dropdown-link-active-color) !important;
}

/*============ END:Left Side Fix Sticky Shortcuts==============*/
/*============ Start: Sidebar collapse Then automatically Hight Increse Issue : Resloved ==============*/
@media (min-width: 768px) {

    [data-layout="vertical"],
    [data-layout="semibox"],
    [data-sidebar-size="sm"] {
        min-height: 100% !important;
    }
}

/*============ END:Start: Sidebar collapse Then automatically Hight Increse Issue==============*/

.itemQcStatusChange {
    background: #20c997;
}

/* begin erp custom dropdown */
.ECDSelectedItem {
    padding: 1px;
}

.ECDItem {
    transition: 0.2s;
}

.ECDItem:hover {
    background: rgba(0, 0, 0, 0.05);
}

.ECDItemFocus {
    background: rgba(0, 0, 0, 0.05);
}

.btnRemoveECDItem:hover {
    color: #ff0000;
}

.ECDDropdownItemDiv::-webkit-scrollbar {
    width: 4px;
}

/* Track */
.ECDDropdownItemDiv::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

/* Handle */
.ECDDropdownItemDiv::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

/* Handle on hover */
.ECDDropdownItemDiv::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* end erp custom dropdown */

.removeWeightMachineImage {
    font-size: 20px;
    top: -14px;
    right: 10px;
    cursor: pointer;
    transition: 0.1s;
}

.removeWeightMachineImage:hover {
    color: #f06548;
}

.removeWeightMachineImage:active {
    color: rgba(248, 67, 54, 0.7);
}

textarea.form-control {
    resize: both;
    max-width: 150%;
    max-height: 400px;
}

.ui-state-active {
    background-color: #405189 !important;
    color: #fff !important;
}

#erpGeneratePdfModal {
    z-index: 1060;
}

.maxWidthTextarea {
    max-width: fit-content !important;
}

.avatar-img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.nav-item-border-top .nav-link {
    border-top: 3px solid transparent;
}

.nav-item-border-top .nav-link.active {
    border-top-color: #405189;
}

.nav-item-border-top-success .nav-link.active {
    color: #0ab39c;
    border-top-color: #0ab39c;
}

.nav-item-border-top-warning .nav-link.active {
    color: #f7b84b;
    border-top-color: #f7b84b;
}

.cls-Logo {
    max-width: 100px;
    max-height: 100px;
    padding: 2px;
    outline: 1px;
}

.erp-search-flex-wrapper {
    position: relative;
}
.erp-search-flex-wrapper input.select2-search__field {
    padding-right: 50px; /* leave space for button */
}

.custom-scroll-wrapper {
    height: calc(100vh - 260px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

.custom-scroll-wrapper::-webkit-scrollbar {
    width: 4px;
}

.custom-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
}

.select2-container--default .select2-selection--multiple {
    min-height: 38px;
    max-height: 120px;
    overflow-y: auto;
    overflow-x: hidden;
}
