.gridjs-wrapper {
    border-radius: 0;
    border: 0;
    border-top: 1px solid var(--la-line-color);
    box-shadow: 0 0 0 0 var(--color-grid-outside-border);
}

#main .gridjs-wrapper {
    /*    min-height: calc(100vh - 330px);*/
    min-height: calc(100vh - 328px);
    /*    min-height: 582px;*/
    max-height: calc(100vh - 328px);
}

#sideSection .gridjs-wrapper {
    min-height: initial;
    /*    min-height: 582px;*/
    max-height: initial;
}



@media (max-width: 768px) {

    #main .gridjs-wrapper {
        min-height: initial;
        max-height: 582px;
        /*            #main .gridjs-wrapper {*/
    }

    #sideSection .gridjs-wrapper {
        min-height: initial;
        /*    min-height: 582px;*/
        max-height: initial;
    }
}



.gridjs-table {
}

.modal .gridjs-wrapper {
    max-height: 574px;
}


@media (max-width: 768px) {
    .modal .gridjs-wrapper {
        max-height: 580px;
    }
}

.popup-wrapper .gridjs-wrapper {
    max-height: 580px;
    min-height: 580px;
}

.order-wrapper .gridjs-wrapper {
    max-height: 340px;
    min-height: 340px;
    height: 340px;
}

.stock-item-wrapper .gridjs-wrapper {
    max-height: 520px;
    min-height: 520px;
    height: 520px;
}

.stock-warehouse-wrapper .gridjs-wrapper {
    max-height: 220px;
    min-height: 220px;
    height: 220px;
}

.stock-barcode-wrapper .gridjs-wrapper {
    max-height: 850px;
    /*    min-height: 350px;*/
    /*    height: 350px;*/
}


.gridjs-wrapper table {
    position: relative;
}

.gridjs-container {
    padding: 0;
}

.grid-body {
    -webkit-box-flex: 1;
    -ms-flex: 10 1 0;
    flex: 10 1 0;
    color: var(--bs-card-color);
    position: relative;
    min-width: 0;
}

.grid-control {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    min-height: 46px;
    align-items: center;
    padding-left: 10px;
    flex-wrap: wrap;
    column-gap: 8px;
    row-gap: 8px;
    background-color: #343a40;
    padding: 4px;
}

    .grid-control > p {
        font-style: italic;
        font-size: 15px;
        flex-shrink: 0;
        margin-right: 12px;
        padding-left: 8px;
        color: white;
    }


.gridjs-wrapper:nth-last-of-type(2) {
    border-radius: 0;
}


input.gridjs-input {
    padding: .5rem .5rem;
    line-height: 1.5;
    width: 140px;
}

    input.gridjs-input:focus {
        border-color: var(--bs-input-focus-border-color);
        box-shadow: none;
    }

/*search  아보이기*/
.gridjs-head {
    display: none;
}

.client-mode-grid .gridjs-head {
    display: block;
}

.gridjs-thead {
    font-size: 14px;
}

    .gridjs-thead > tr {
        font-size: 14px;
    }

    .gridjs-thead th {
        z-index: 98;
    }


.gridjs-tbody {
    font-size: 13px;
}


/*헤더의 패딩*/
th.gridjs-th {
    background-color: #f3f3f3;
    border: initial;
    border-bottom: 1px solid var(--la-line-color);
    padding: 10px 8px 8px;
}


/*해더의 Name*/
.gridjs-th-content {
    color: var(--bs-body-color);
}


/*헤더의 텍스트들*/
.gridjs-th div:first-child {
    display: inline-block;
    width: unset;
    float: unset;
}
/*헤더의 상하 버튼들*/
.gridjs-th button:nth-child(2) {
    height: 21px;
    float: unset;
    margin-left: 12px;
}

.gridjs-tbody .gridjs-tr {
    border-top: 1px var(--color-grid-outside-border) solid;
    border-bottom: 1px var(--color-grid-outside-border) solid;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
}




td.gridjs-td {
    border: unset;
    box-sizing: border-box;
    padding: 4px 8px;
    height: 52px;
    max-height: 80px;
    color: var(--bs-body-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}


.gridjs-footer {
    background-color: #fff;
    border: initial;
    font-size: 14px;
    /*        border-top: 1px solid #e5e7eb;*/
    box-shadow: initial;
    display: block;
    padding: 12px 12px 0px 12px;
    position: relative;
    width: 100%;
    z-index: 5;
}


/*헤더에 마우스올리거나 포커스있을때 bgcolor없애기*/
th.gridjs-th-sort:focus, th.gridjs-th-sort:hover {
    background: #f3f3f3;
}


/*체크박스관련*/
/*체크박스는 가운데정렬*/
.gridjs-wrapper [data-column-id="RowChecker"] {
    text-align: center;
}



th.gridjs-th[data-summary] {
    background-color: #f4cc32;
    font-size: 14px;
    font-weight: bold;
}


.gridjs-tr:has(.gridjs-td.warning.selected:hover) > .gridjs-td {
    background-color: #ff2d00cc;
}

/*마우스 올렸을때 색상*/
.gridjs-tr:has(.gridjs-td:hover) > .gridjs-td {
    background-color: #ececec;
}

.gridjs-tr:has(.gridjs-td.checked:hover) > .gridjs-td {
    background-color: #C5D6F3;
}

.gridjs-tr:has(.gridjs-td.selected:hover) > .gridjs-td {
    background-color: #99baf0;
}

.gridjs-tr:has(.gridjs-td.scaned:hover) > .gridjs-td {
    background-color: #b5e1cb;
}

.gridjs-tr:has(.gridjs-td.inbound:hover) > .gridjs-td {
    background-color: #d7f0d7;
}

.gridjs-tr:has(.gridjs-td.outbound:hover) > .gridjs-td {
    background-color: #f7ddd7;
}

.gridjs-tr:has(.gridjs-td.warning:hover) > .gridjs-td {
    background-color: #ff2c0075;
}

.gridjs-tr:has(.gridjs-td.errors:hover) > .gridjs-td {
    background-color: #ffffff00;
}



.gridjs-tbody, td.gridjs-td.warning.selected {
    background-color: #ff2d00ad;
}




.gridjs-tbody, td.gridjs-td.checked {
    background-color: #D4E4FF;
}

.gridjs-tbody, td.gridjs-td.selected {
    background-color: #a9c9ff;
}

.gridjs-tbody, td.gridjs-td.scaned {
    background-color: #cbf3df;
}

.gridjs-tbody, td.gridjs-td.inbound {
    background-color: #e0f1e0;
}

.gridjs-tbody, td.gridjs-td.outbound {
    background-color: #f7e1dc;
}

.gridjs-tbody, td.gridjs-td.warning {
    background-color: #ff2c0047;
}

.gridjs-tbody, td.gridjs-td.errors {
    background-color: #ffffff00;
}






















/* 오른쪽 왼쪽 스티키*/


.gridjs-thead th[data-sticky-left] {
    position: sticky;
    left: 0;
    z-index: 99;
    text-align: center;
}

.gridjs-tbody td[data-sticky-left] {
    position: sticky;
    left: 0;
    text-align: center;
    overflow: hidden;
    text-overflow: initial;
    z-index: 97;
}

.gridjs-thead th[data-sticky-right] {
    position: sticky;
    right: 0;
    z-index: 99;
    text-align: center;
}

.gridjs-tbody td[data-sticky-right] {
    position: sticky;
    right: 0;
    text-align: center;
    overflow: hidden;
    text-overflow: initial;
    z-index: 97;
}


.gridjs-thead th[data-sticky-right='46'] {
    right: 46px;
}

.gridjs-tbody td[data-sticky-right='46'] {
    right: 46px;
}

.gridjs-thead th[data-sticky-right='92'] {
    right: 92px;
}

.gridjs-tbody td[data-sticky-right='92'] {
    right: 92px;
}


.gridjs-thead th[data-sticky-right='138'] {
    right: 138px;
}

.gridjs-tbody td[data-sticky-right='138'] {
    right: 138px;
}




.gridjs-thead th[data-checkbox] {
    text-align: center;
}

.gridjs-tbody td[data-checkbox] {
    text-align: center;
}


/*페이지네이션*/
.gridjs-pagination {
    font-size: 14px;
    display: flex;
    /* justify-content: space-between; */
    flex-wrap: wrap;
    row-gap: 8px;
    align-items: center;
}


    .gridjs-pagination .gridjs-summary {
        margin-top: 0;
        float: none;
    }

    .gridjs-pagination .gridjs-pages {
        float: none;
        margin-left: auto;
    }


        .gridjs-pagination .gridjs-pages button {
            padding: 6px 12px;
        }

            .gridjs-pagination .gridjs-pages button:first-child {
                padding: 6px 10px;
            }

            .gridjs-pagination .gridjs-pages button:last-child {
                padding: 6px 10px;
            }


            .gridjs-pagination .gridjs-pages button:focus {
                box-shadow: initial;
                /*border-right: 1px solid #d2d6dc;*/
                /* box-shadow: 0 0 0 2px rgba(149,189,243,.5); */
                /*margin-right: -1px;
            position: relative;*/
            }

.gridjs-summary-after {
    /*    margin-left:48px;*/
    flex: 1;
    justify-content: center;
    min-width: 250px;
}

.btn-outline-success-grid {
    font-size: 18px;
    --bs-btn-color: #26aa16;
    --bs-btn-border-color: none;
    --bs-btn-hover-color: #61c54d;
    --bs-btn-hover-bg: #d5d5d5;
    --bs-btn-hover-border-color: #eeeeee;
    --bs-btn-focus-shadow-rgb: 246,246,246;
    --bs-btn-active-color: #d5d5d5;
    --bs-btn-active-bg: #eeeeee;
    --bs-btn-active-border-color: #eeeeee;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #f6f6f6;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #f6f6f6;
    --bs-gradient: none;
    padding: 0.47rem 10px;
}



.btn-outline-primary-grid {
    font-size: 18px;
    --bs-btn-color: #1A6DFF;
    --bs-btn-border-color: none;
    --bs-btn-hover-color: #4d62c5;
    --bs-btn-hover-bg: #d5d5d5;
    --bs-btn-hover-border-color: #eeeeee;
    --bs-btn-focus-shadow-rgb: 246,246,246;
    --bs-btn-active-color: #4d62c5;
    --bs-btn-active-bg: #eeeeee;
    --bs-btn-active-border-color: #eeeeee;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #f6f6f6;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #f6f6f6;
    --bs-gradient: none;
    padding: 0.47rem 10px;
}


.btn-outline-warning-grid {
    font-size: 18px;
    --bs-btn-color: #f1ae1d;
    --bs-btn-border-color: none;
    --bs-btn-hover-color: #c98317;
    --bs-btn-hover-bg: #d5d5d5;
    --bs-btn-hover-border-color: #eeeeee;
    --bs-btn-focus-shadow-rgb: 246,246,246;
    --bs-btn-active-color: #c98317;
    --bs-btn-active-bg: #eeeeee;
    --bs-btn-active-border-color: #eeeeee;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #f6f6f6;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #f6f6f6;
    --bs-gradient: none;
    padding: 0.47rem 10px;
}

.btn-outline-danger-grid {
    font-size: 18px;
    --bs-btn-color: #f46a6a;
    --bs-btn-border-color: none;
    --bs-btn-hover-color: #cf5a5a;
    --bs-btn-hover-bg: #d5d5d5;
    --bs-btn-hover-border-color: #eeeeee;
    --bs-btn-focus-shadow-rgb: 246,246,246;
    --bs-btn-active-color: #cf5a5a;
    --bs-btn-active-bg: #eeeeee;
    --bs-btn-active-border-color: #eeeeee;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #f6f6f6;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #f6f6f6;
    --bs-gradient: none;
    padding: 0.47rem 10px;
}

.btn-outline-menu-grid {
    font-size: 18px;
    --bs-btn-color: #495057;
    --bs-btn-border-color: none;
    --bs-btn-hover-color: #495057;
    --bs-btn-hover-bg: #d5d5d5;
    --bs-btn-hover-border-color: #eeeeee;
    --bs-btn-focus-shadow-rgb: 246,246,246;
    /*    --bs-btn-active-color: #495057;
    --bs-btn-active-bg: #eeeeee;
    --bs-btn-active-border-color: #eeeeee;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);*/
    --bs-btn-disabled-color: #f6f6f6;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #f6f6f6;
    --bs-gradient: none;
    padding: 0.47rem 10px;
}


/*그리드 text align*/



.gridjs-wrapper td[data-text-align='right'] {
    text-align: right;
    padding-right: 16px;
    font-size: 15px;
}

.gridjs-wrapper th[data-text-align='center'] {
    text-align: center;
}

.gridjs-wrapper td[data-text-align='center'] {
    text-align: center;
}

.gridjs-wrapper td[data-white-space='normal'] {
    white-space: normal;
    word-break: keep-all;
}


.gridjs-wrapper th[data-text-align='all-right'] {
    text-align: right;
}

.gridjs-wrapper td[data-text-align='all-right'] {
    text-align: right;
    font-size: 15px;
    padding-right:8px;
}



.gridjs-wrapper .grid-price {
    display: flex;
}

    .gridjs-wrapper .grid-price span:nth-child(2) {
        flex: 1;
        padding-right: 8px;
        text-align: right;
    }



.grid-split-horizental {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.split-item-flex-1 {
    flex: 1;
    width: 100%;
}


.split-item-flex-2 {
    flex: 2;
    width: 100%;
}

@media (min-width: 1280px) {
    .split-item-flex-2 {
        width: 100%;
    }
}

.split-item-flex-3 {
    flex: 3;
    width: 100%;
}

@media (min-width: 1280px) {
    .split-item-flex-3 {
        width: 100%;
    }
}

.split-item-flex-4 {
    flex: 4;
    width: 100%;
}


.grid-custom-circle {
    border-radius: 12px;
    width: 12px;
    height: 12px;
    display: inline-block;
    margin-right: 6px;
}


.grid-dropdown-menu li {
    min-width :90px;
}
/*.bg-success {
    background-color: #34c38f;
}

.bg-warning {
    background-color: #f46a6a;
}

.bg-secondary {
    background-color: #74788d;
}*/
/*패키지*/
.bg-item-1, bg-purple {
    background-color: #5E1987;
    color: white;
}
/*완제품*/
.bg-item-2 {
    background-color: #529D4B;
    color: white;
}
/*반제품*/
.bg-item-3 {
    background-color: #38987A;
    color: white;
}
/*상품*/
.bg-item-4 {
    background-color: #ffffff;
    box-shadow: inset 0 0 0 1px #dfdfdf;
    color: #495057;
    /*    background-color: #FFC107;
    color: black;
*/
}
/*원자재*/
.bg-item-5 {
    background-color: #ffffff;
    box-shadow: inset 0 0 0 1px #dfdfdf;
    color: #495057;
    /*    background-color: #444EB8;
    color: white;*/
}
/*부자재*/
.bg-item-6 {
    background-color: #ffffff;
    box-shadow: inset 0 0 0 1px #dfdfdf;
    color: #495057;
    /*    background-color: #4AA6BA;
    color: white;*/
}
/*기타*/
.bg-item-7 {
    background-color: #ffffff;
    box-shadow: inset 0 0 0 1px #dfdfdf;
    color: #495057;
    /*    background-color: #E66363;
    color: white;*/
}


.bg-warning {
    color:black;
}


.gm-float-menu .dropdown-item,
.grid-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px; /* 아이콘과 텍스트 간격 */
}

.gm-menu-icon {
    font-size: 18px;
    width: 20px; /* 아이콘 영역 고정 (정렬용) */
    text-align: center;
    color: #0eb07d;
    margin-top: -1px;
}

    .gm-menu-icon.uil-edit {
        color: #1d6ef7; /* 파란색 */
    }
    .gm-menu-icon.uil-bug {
        color: #1d6ef7; /* 파란색 */
    }

    .gm-menu-icon.uil-trash-alt,
    .gm-menu-icon.uil-ban {
        color: #e53935; /* 빨간색 */
    }

/*
.grid-donut {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}*/


.gridjs-expand-row td {
    background-color: #f9dede;
    border-top: 1px solid #e5e7eb;
    padding: 4px;
}

