html {
    overflow-y: auto;
    overscroll-behavior: none;
}
pre{
    margin-bottom: 0;
}

.v-application ul {
    padding-left: 15px;
}

.container {
    max-width: 100%;
}

.v-breadcrumbs li {
    font-size: 15px;
}

/* 구분선 */
.v-divider {
 border-color: #1882c2!important;
}


/* 탭 */
.theme--light.v-tabs>.v-tabs-bar .v-tab:not(.v-tab--active) {
    background-color: initial;
    color: initial;
}
.v-tabs:not(.v-tabs--vertical) .v-tab {
    background:#507b68;
    color: white;
    border-radius: 10% 10% 0 0;
}


/* 숫자입력칸 텍스트 우측정렬 */
.text-align-right  input {
    text-align: right !important;
}
.text-align-center input,
.text-align-center textarea,
.text-align-center select {
    text-align: center !important;
}

hr {
    margin-top: 0px;
    margin-bottom: 0px;
}


/* 숫자입력 화살표버튼 제거 */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* 테이블 */
.table-bordered td, .table-bordered th {
  border-left: 1px solid #ddd;
}

.table-primary {
  background-color: rgb(105, 170, 228) !important;
  color: white !important;
}

.table-secondary {
  background-color: rgb(2, 87, 163) !important;
  color: white !important;
}

.v-data-table.w-auto > .v-data-table__wrapper > table {
  width: auto !important;
}

.v-data-table.theme--light.v-data-table--fixed-header thead th {
  color: black!important;
  background: #f8f8f8!important;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.v-data-table > .v-data-table__wrapper > table > tbody > tr > td,
.v-data-table > .v-data-table__wrapper > table > thead > tr > td,
.v-data-table > .v-data-table__wrapper > table > tfoot > tr > td {
  font-size: 14px;
}

.v-data-table > .v-data-table__wrapper > table > tbody > tr > th,
.v-data-table > .v-data-table__wrapper > table > thead > tr > th,
.v-data-table > .v-data-table__wrapper > table > tfoot > tr > th {
  padding: 0px 5px;
  font-size: 14px ;
  font-weight: bold !important;
  line-height: 32px;
}

tr:last-child td {
border-bottom: 1px solid #ddd;
}
th:last-child,
td:last-child {
  border-right: 1px solid #ddd;
  padding: 0!important;
}

.v-data-table--fixed-header > .v-data-table__wrapper {
    overflow-y: auto;
    padding-bottom: 3px;
}


.v-select.v-text-field--outlined:not(.v-text-field--single-line).v-input--dense .v-select__selections {
  padding: 0px;
}

.v-text-field input {
  padding: 0;
}

.v-autocomplete.v-select.v-input--is-focused input {
  min-width: 0px!important;
}

/* 테이블 width 제한 및 텍스트 ... 처리 */
.ellipsis {
    position: relative;
}

.ellipsis div {
    position: absolute;
    height: 21px;
    top:0;
    left: 3px;
    right: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 입력 폼 */
.input_form {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

/* 입력폼 > 라벨 */
.input_label {
    color:rgba(0,0,0,.9);
    text-align: right;
    padding-right: 15px;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    min-width: 80px;
    width: 20%;
    margin-bottom: 0;
}

/* 폼2 */
.bs_form {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  width:300px;
  margin-bottom: 5px;
}

.bs_content {
  background: white;
  display: flex;
    flex: 1; /* Make it take the remaining space */
  align-items: center;
  margin-right:5px;
  padding: 1px;
  /* border-radius: 5px; */
  width: calc( 100% - 100px );
  border: 1px solid rgb(208 208 208 / 90%);
}
.bs_label {
  display: flex;
  align-items: center; /* Vertically center the text */
  justify-content: center; /* Horizontally center the text */
  color: rgba(0,0,0,.9);
  font-size: 14px;
  border: 1px solid rgb(208 208 208 / 90%);
  font-weight: bolder;
  margin-right: 3px;
  white-space: nowrap;
  background: rgb(221, 235, 247);

  overflow: hidden;
  width: 100px;
}
/* .bs_label {
  color: rgba(0,0,0,.9);
  text-align: center;
  font-size: 14px;
  border: 1px solid rgb(208 208 208 / 90%);
  font-weight: bolder;
  line-height: 30px;
  margin-right:3px;
  padding-top: 2px;
  white-space: nowrap;
  background: #f4faff;
  overflow: hidden;
  width: 100px;
  margin-bottom: 0;
} */
@media (max-width: 599px) {
    .bs_form {
        flex-direction: column; /* Stack children vertically */
    }
    .bs_label,
    .bs_content {
        width: 100%;
    }
    .bs_content {
        margin-bottom: 20px;
    }
}

/* 버튼 */
.v-btn:not(.v-btn--round).v-size--default {
  height: 43px;
  width: 90px;
  margin-left: 5px;
  min-width: 64px;
  padding: 0 16px;
}

.v-btn:not(.v-btn--round).v-size--small {
    /* height: 32px; */
    min-width: 100px;
    padding: 0 11.5555555556px;
}


/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
    appearance: textfield;
}
.form-control-sm {
    font-size: 0.85rem;
}

.v-input__icon {
    height: 20px;
}
.v-input {
    font-size: 0.85rem;
}
.v-application p {
    font-size: 0.85rem;
    margin-bottom: 0;
}
.v-label {
    font-size: 0.85rem;
}
.v-select.v-text-field--outlined:not(.v-text-field--single-line).v-input--dense
    .v-select__selections,
.v-btn:not(.v-btn--round).v-size--x-small {
    padding: 0;
}

.theme--light.v-text-field > .v-input__control > .v-input__slot:before {
    border-color: rgb(215, 215, 215) !important;
}
.v-textarea textarea {
    line-height: 1.3rem;
}

/* vuetify 테이블 조절 */
.v-data-table--dense > .v-data-table__wrapper > table > tbody > tr > td {
    height: 23px;
}
.tbody tr:nth-of-type(odd) {
    background-color: #f3f3f3;
}
.theme--light.v-data-table > .v-data-table__wrapper > table > thead > tr > th {
    background: rgb(124, 124, 124);
    color: white;
}
.table-secondary,
.table-secondary > th,
.table-secondary > td {
    background-color: #04a400;
    color:white;
}

.table-bordered {
    border: 1px solid #c3c3c3 !important;
}
.v-application--is-ltr .v-data-table > .v-data-table__wrapper > table > tbody > tr > th,
.v-application--is-ltr
    .v-data-table
    > .v-data-table__wrapper
    > table
    > thead
    > tr
    > th {
    text-align: center;
}

/* vuetify 첫번째 컬럼(체크박스) 가로길이 고정 */
.v-data-table > .v-data-table__wrapper > table > thead > tr > th:first-child {
    width: 30px;
    padding:0 15px;
}

/* 스크롤바  css  */
/**::-webkit-scrollbar {*/
/*    width: 15px;*/
/*    height: 15px;*/
/*}*/
/**::-webkit-scrollbar-track {*/
/*    border-radius: 10px;*/
/*    background: rgba(0, 0, 0, 0.1);*/
/*}*/
/**::-webkit-scrollbar-thumb {*/
/*    border-radius: 10px;*/
/*    background: rgba(0, 0, 0, 0.2);*/
/*}*/
/**::-webkit-scrollbar-thumb:hover {*/
/*    background: rgba(0, 0, 0, 0.4);*/
/*}*/
/**::-webkit-scrollbar-thumb:active {*/
/*    background: rgba(0, 0, 0, 0.9);*/
/*}*/

/* vuetfiy table 기본 width 100% -> auto(.w-auto) */
.v-data-table.w-auto > .v-data-table__wrapper > table {
    width: auto !important;
}

/* v-dialog 팝업창 커서 */
.v-dialog.v-dialog--active .v-card__title {
    cursor: grab;
}
.v-dialog.v-dialog--active .v-card__title:active {
    cursor: grabbing;
}

/* 팝업 상단 제목영역 여백조절 */
.v-dialog > .v-card > .v-card__title {
    padding: 8px 16px;
}


/* select2 width auto 대응*/
.select2 {
    min-width: 100%;
}

/* 사이드바 메뉴 */
.v-sidebar-menu .vsm--link {
    font-size: 0.875rem;
    padding: 5px;
}
.vsm--scroll-wrapper > .vsm--list:nth-child(1) > .vsm--item:nth-child(1) > a {
    padding-left: 5px;
}
.v-sidebar-menu .vsm--link_level-1 .vsm--icon {
    background: none;
}
.v-sidebar-menu .vsm--scroll-wrapper {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    background-repeat: no-repeat;
    background-image: -webkit-radial-gradient(
            50% 0,
            farthest-side,
            rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0)
        ),
        -webkit-radial-gradient(50% 100%, farthest-side, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
    background-image: -moz-radial-gradient(
            50% 0,
            farthest-side,
            rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0)
        ),
        -moz-radial-gradient(50% 100%, farthest-side, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
    background-image: radial-gradient(
            farthest-side at 50% 0,
            rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0)
        ),
        radial-gradient(
            farthest-side at 50% 100%,
            rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0)
        );
    background-position: 0 0, 0 100%;

    background-size: 100% 14px;
}
.v-sidebar-menu .vsm--scroll-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera*/
}
.v-sidebar-menu .vsm--scroll-wrapper:before,
.v-sidebar-menu .vsm--scroll-wrapper:after {
    content: "";
    position: relative;
    z-index: -1;
    display: block;
    height: 30px;
    margin: 0 0 -30px;
    background: -webkit-linear-gradient(
        top,
        #303c54,
        #303c54 30%,
        rgba(255, 255, 255, 0)
    );
    background: -moz-linear-gradient(
        top,
        #303c54,
        #303c54 30%,
        rgba(255, 255, 255, 0)
    );
    background: linear-gradient(
        to bottom,
        #303c54,
        #303c54 30%,
        rgba(255, 255, 255, 0)
    );
}

.v-sidebar-menu .vsm--scroll-wrapper:after {
    margin: -30px 0 0;
    background: -webkit-linear-gradient(
        top,
        rgba(255, 255, 255, 0),
        #303c54 70%,
        #303c54
    );
    background: -moz-linear-gradient(
        top,
        rgba(255, 255, 255, 0),
        #303c54 70%,
        #303c54
    );
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        #303c54 70%,
        #303c54
    );
}

.v-sidebar-menu .vsm--link_exact-active,
.v-sidebar-menu .vsm--link_active {
    background-color: #507b68;
}
.v-sidebar-menu .vsm--link_hover,
.v-sidebar-menu .vsm--link:hover {
    background-color: rgba(165, 171, 185, 0.5);
}

/* 폰트 변경 */

/* ? */
/* .c-height-column {
    height: 32px;
} */

/* toast 알림창  */
.v-toast {
    padding: 20%;
}

/* bom 트리 css */

.tree {
    width: 100%;
}

.tree-content {
    padding: 0px;
}
.node-container {
    width: 100%;
    background: rgba(128, 128, 128, 0.25);
    padding: 0px 10px;
    border-radius: 0;
}
.tree .v-text-field {
    margin-top: 0px !important;
}

.tree .tree-content,
.tree .tree-anchor {
    padding: 0 !important;
}
.tree .tree-arrow {
    margin-left: 20px;
}

.tree .tree-arrow.has-child:after {
    top: 12px !important;
    left: 12px !important;
}
.tree .node {
    padding: 0;
    width: 100%;
    display: initial;
    background: rgba(128, 128, 128, 0);
    border-radius: 5px;
}

.tree .tree-arrow {
    height: 20px;
}
.tree .tree-arrow.has-child {
    width: 20px;
}
.tree .tree-arrow.has-child:after {
    left: 5px;
    top: 7px;
    height: 5px;
    width: 5px;
}
.tree .tree-anchor {
    padding: 0 !important;
}

.tree .node .row {
    flex-wrap: nowrap;
    margin: 0px;
    border-bottom: 1px solid #afa5a5;
}

.tree .node .node-text {
    display: inline-block;
}

.tree .node .node-controls {
    display: inline-block;
}
.tree .material_node {
    background: #f7a5057a !important;
}
.tree .product_node {
    background: #b5afa57a !important;
}
.tree .process_node {
    background: #6dd1d178 !important;
}

/* sort_th css */

.v-application .black--text .v-icon {
    color: #a1c9ad !important;
}


.d-none .tree .tree-arrow {
    height: 0px;
}



/* 모바일 테이블 css */
@media only screen and (max-width: 600px) {
.v-data-table__mobile-table-row{
    margin-bottom: 10px;
}

.v-data-table>.v-data-table__wrapper>table>tbody>tr>td,
.v-data-table>.v-data-table__wrapper>table>tbody>tr>th,
.v-data-table>.v-data-table__wrapper>table>tfoot>tr>td,
.v-data-table>.v-data-table__wrapper>table>tfoot>tr>th,
.v-data-table>.v-data-table__wrapper>table>thead>tr>td,
.v-data-table>.v-data-table__wrapper>table>thead>tr>th {
    font-size: 1rem !important;
    font-weight: bold;
}

/* each row block css in mobile*/
.v-data-table>.v-data-table__wrapper .v-data-table__mobile-table-row {
    /* margin: 10px; */
    border: 1px solid #ededed;
    display: block;
}

.v-data-table > .v-data-table__wrapper > table > tbody > tr > td
{
    padding: 0;
}
/* each cell border in mobile */
.v-data-table>.v-data-table__wrapper .v-data-table__mobile-row {
    border-bottom: 1px solid #ededed;
    min-height: 32px;
}

    .v-data-table-header.v-data-table-header-mobile {
        display: none;
    }
    .v-data-table__mobile-row__header {
        width:150px;
        background: #a1a1a1;
        color:white;
        height: 32px;
        line-height: 32px;
        text-align: right;
        border-right:1px solid #a1a1a1;
    }
    .v-data-table__mobile-row__cell {
        width:calc(100% - 150px);
        padding-left: 10px;
        text-align: left;
    }

}


.mobile_show{
    display: none;
}
@media (max-width: 768px) {
    .mobile_hide {
        display: none;
    }
    .mobile_show{
        display: block;
    }
}
