:root {
    --black: hsl(230, 25%, 4%);
    --black-bis: hsl(230, 25%, 8%);
    --black-ter: hsl(230, 25%, 15%);
    --grey-darker: hsl(230, 25%, 20%);
    --grey-dark: hsl(230, 25%, 26%);
    --grey: hsl(220, 25%, 48%);
    --grey-light: hsl(220, 25%, 72%);
    --grey-lighter: hsl(220, 25%, 88%);
    --grey-lightest: hsl(220, 25%, 92%);
    --white-ter: hsl(220, 25%, 96%);
    --white-bis: hsl(220, 23%, 98%);
    --white: hsl(0, 0%, 100%);
    --orange: hsl(14, 100%, 53%);
    --yellow: hsl(46, 98%, 62%);
    --green: hsl(150, 42%, 53%);
    --turquoise: hsl(171, 100%, 41%);
    --cyan: hsl(196, 86%, 58%);
    --blue: hsl(235, 94%, 63%);
    --purple: hsl(260, 60%, 57%);
    --red: hsl(348, 86%, 61%);
    /*  */
    --primary-dark: #6d28d9;
    --primary: #8b5cf6;
    --primary-light: #ddd6fe;
    --primary-lighter: #f5f3ff;
    --danger: var(--red);
    --danger-light: hsl(14, 100%, 63%);
    /*  */
    --text-color: var(--black);
    --border-light-color: var(--grey-lighter);
    --border-color: var(--grey-light);
    --border-dark-color: var(--grey);
    --border-darker-color: var(--grey-darker);
    --thead-bg-color: var(--white-bis);
    --thead-border-bottom-color: var(--grey-lightest);
    --tr-hover-bg-color: #f0f9ff;
    --td-hover-bg-color: #e0f2fe;
    --tr-edit-border-color: var(--border-color);
    --tr-edit-bg-color: var(--white-ter);
    --tr-edit-tb-hover-bg-color: var(--grey-lightest);
    --tr-edit-selected-bg-color: var(--primary-lighter);
    --tr-edit-selected-tb-hover-bg-color: var(--primary-light);
    --tr-selected-border-color: var(--primary);
    --tr-selected-bg-color: var(--primary-lighter);
    --tr-selected-tb-hover-bg-color: var(--primary-light);
    /*  */
    --control-color: var(--grey);
}

/* Grid */
.grid {
    position: relative;
    clear: both;
    width: 100%;
}

    .grid * {
        box-sizing: border-box;
    }

.grid-body {
    position: relative;
    border: 1px solid hsl(0, 0%, 86%);
}

.grid-right {
    width: 100%;
}

.grid-header-right {
    overflow-x: hidden;
}

    .grid-header-right::-webkit-scrollbar {
        width: 8px;
    }

    .grid-header-right::-webkit-scrollbar-track {
        background: linear-gradient(hsl(220, 2%, 98%), hsl(220, 4%, 92%)) 0% 0% no-repeat padding-box;
    }

    .grid-header-right::-webkit-scrollbar-button {
        display: none;
    }

.grid-item-right {
    position: absolute;
    top: 0px;
    left: 0px;
}

.grid-width-auto .grid-item-right {
    overflow-x: scroll;
}

/* 스크롤바 */
.grid-header-right::-webkit-scrollbar, .grid-item-right::-webkit-scrollbar {
    width: 8px !important;
}

.grid-width-auto .grid-item-right::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.grid-width-auto .grid-item-right::-webkit-scrollbar-thumb {
    background: hsl(220, 10%, 80%); /* 스크롤바 색상 */
    border-radius: 4px; /* 스크롤바 둥근 테두리 */
}

    .grid-width-auto .grid-item-right::-webkit-scrollbar-thumb:hover {
        background: hsl(220, 13%, 77%);
    }

    .grid-width-auto .grid-item-right::-webkit-scrollbar-thumb:active {
        background: hsl(220, 13%, 75%);
    }

.grid-header-right::-webkit-scrollbar, .grid-width-auto .grid-item-right::-webkit-scrollbar-track {
    background: hsl(220, 25%, 96%); /*스크롤바 뒷 배경 색상*/
}

.grid-item::after {
    position: absolute;
    bottom: 0;
    right: 0;
    content: '';
    width: 8px;
    height: 8px;
    background: hsl(220, 25%, 92%); /*스크롤바 코너 색상*/
}

.grid-width-auto table {
    width: 100%;
}

.grid-height-auto .grid-header-right, .grid-height-auto .grid-item-right {
    overflow-y: scroll;
}

.grid-header-right::-webkit-scrollbar {
    width: auto;
}

.grid-header-right::-webkit-scrollbar-track {
    background: linear-gradient(hsl(220, 2%, 98%), hsl(220, 4%, 92%)) 0% 0% no-repeat padding-box;
}

.grid-header-right::-webkit-scrollbar-button {
    display: none;
}

.grid-body table, table.grid-body {
    table-layout: fixed;
    border-collapse: collapse;
    background-color: hsl(0, 0%, 100%);
    empty-cells: show;
}

.grid-body thead {
    font-size: 13px;
    letter-spacing: 0;
    color: hsl(0, 0%, 14%);
}

.grid-body tbody {
    font-size: 13px;
    letter-spacing: 0;
    color: hsl(0, 0%, 14%);
}

.grid-body .item.scroll {
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    height: 400px;
}

.grid-body .template {
    display: none;
}

    .grid-body .template.develop {
        display: table-row-group;
    }

.grid-body tbody .checkbox {
    display: contents;
}

    .grid-body tbody .checkbox input[type=checkbox] {
        margin-top: 2px;
    }

.grid-body input {
    margin: 0;
}

.grid-body tbody tr.show {
    display: inherit;
}

.grid-body tbody.item tr td:first-child {
    text-align: center;
}

.grid-body th {
    height: 24px;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: middle;
}

    .grid-body th .header-wrap {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        height: 100%;
    }

        .grid-body th .header-wrap .item {
            text-align: center !important;
        }

        .grid-body th .header-wrap .checkbox {
            justify-content: center;
            width: 100%;
            margin-top: 1px;
        }

    .grid-body th .item span.grid-sort {
        cursor: pointer;
    }

.grid-body td {
    position: relative;
    padding: 2px;
    height: 24px;
    overflow: hidden;
    border-top: 1px solid hsl(0, 0%, 86%);
    border-right: 1px solid hsl(0, 0%, 86%);
    text-align: center;
    vertical-align: middle;
    word-break: break-all;
    white-space: nowrap;
    line-height: 1.25;
}

    .grid-body td .tooltip {
        display: none;
        position: absolute;
        top: 22px;
        left: -1px;
        z-index: 1;
        max-width: 480px;
        padding: 0 8px 2px;
        border: 1px solid hsl(0, 0%, 48%);
        border-radius: 4px;
        background-color: hsl(0, 0%, 100%);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        transition: opacity 0.5s;
        animation: tooltip 1s;
    }

    .grid-body td:hover .tooltip {
        display: -webkit-box;
    }

    .grid-body td:hover {
        background-color: hsl(0, 0%, 93%) !important;
    }

@keyframes tooltip {
    0% {
        opacity: 0;
    }

    80% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.grid-body td input[type=text], .grid-body td select, .grid-body td textarea {
    padding: 0 4px;
    width: 100%;
    border: 1px solid hsl(0, 0%, 48%);
    border-radius: 2px;
    background-color: hsl(0, 0%, 100%);
}

    .grid-body td input:focus, .grid-body td input:active, .grid-body td select:focus, .grid-body td select:active, .grid-body td textarea:focus, .grid-body td textarea:active {
        border-color: hsl(222, 19%, 18%);
        outline: none;
    }

.grid-body td textarea {
    padding: 4px;
}

.grid-body tbody.item tr td:first-child, .grid-body tbody.item tr td:first-child[style="display:none;"] + td, .grid-body tbody.item tr td:first-child[style="text-align:left; display:none;"] + td, .grid-body tbody.item tr td:first-child[style="text-align:center; display:none;"] + td, .grid-body tbody.item tr td:first-child[style="text-align:right; display:none;"] + td {
    border-left: 1px solid transparent;
}

.grid-body tbody.item tr td:last-child {
    border-right: 1px solid transparent;
}

.grid-body tbody.item tr:last-child td, .grid-body tbody.item tr.last td {
    border-bottom: 1px solid hsl(0, 0%, 86%);
}

.grid-body tbody.item tr:hover td, .grid-body tbody.item tr.hover td {
    background-color: hsl(0, 0%, 98%);
}

    .grid-body tbody.item tr:hover td:first-child, .grid-body tbody.item tr:hover td:first-child[style="display:none;"] + td, .grid-body tbody.item tr:hover td:first-child[style="text-align:left; display:none;"] + td, .grid-body tbody.item tr:hover td:first-child[style="text-align:center; display:none;"] + td, .grid-body tbody.item tr:hover td:first-child[style="text-align:right; display:none;"] + td, .grid-body tbody.item tr.hover td:first-child, .grid-body tbody.item tr.hover td:first-child[style="display:none;"] + td, .grid-body tbody.item tr.hover td:first-child[style="text-align:left; display:none;"] + td, .grid-body tbody.item tr.hover td:first-child[style="text-align:center; display:none;"] + td, .grid-body tbody.item tr.hover td:first-child[style="text-align:right; display:none;"] + td {
        border-left-color: hsl(0, 0%, 98%);
    }

    .grid-body tbody.item tr:hover td:last-child, .grid-body tbody.item tr.hover td:last-child {
        border-right-color: hsl(0, 0%, 98%);
    }

.grid-body tbody.item tr:hover .edit, .grid-body tbody.item tr.hover .edit {
    color: hsl(196, 86%, 58%);
}

.grid-body tbody.item tr:hover .delete, .grid-body tbody.item tr.hover .delete {
    color: hsl(348, 86%, 61%);
}

.grid-body tbody.item tr.selected td {
/*    border-top: 1px solid hsl(224, 67%, 58%);
    border-bottom: 1px solid hsl(224, 67%, 58%);*/
    background-color: #eef2fc;
}

/*    .grid-body tbody.item tr.selected td:first-child, .grid-body tbody.item tr.selected td:first-child[style="display:none;"] + td, .grid-body tbody.item tr.selected td:first-child[style="text-align:left; display:none;"] + td, .grid-body tbody.item tr.selected td:first-child[style="text-align:center; display:none;"] + td, .grid-body tbody.item tr.selected td:first-child[style="text-align:right; display:none;"] + td {
        border-left-color: hsl(224, 67%, 58%);
    }

    .grid-body tbody.item tr.selected td:last-child {
        border-right-color: hsl(224, 67%, 58%);
    }*/

    .grid-body tbody.item tr.selected td:hover, .grid-body tbody.item tr.selected td:focus, .grid-body tbody.item tr.selected td:focus-visible, .grid-body tbody.item tr.selected td.selected {
        background-color: #d4def7;
    }

.grid-body tbody.item tr.selected .edit {
    color: hsl(196, 86%, 58%);
}

.grid-body tbody.item tr.selected .delete {
    color: hsl(348, 86%, 61%);
}

.grid-body tbody.item tr.edit {
    outline: none;
}

    .grid-body tbody.item tr.edit td {
        background-color: hsl(0, 0%, 96%);
    }

.grid-body tbody.item tr.delete {
    outline: none;
}

    .grid-body tbody.item tr.delete td {
        background-color: #feecf0;
    }

    .grid-body tbody.item tr.delete .cancel {
        color: hsl(348, 86%, 61%);
    }

.grid-body .grid-left thead tr th:last-child {
    border-right: 3px solid hsl(0, 0%, 86%);
}

.grid-body .grid-left tbody.item tr td:last-child {
    border-right: 3px solid hsl(0, 0%, 86%);
}

.grid-column {
    border-right: 1px solid hsl(0, 0%, 86%);
    border-bottom: 3px solid hsl(0, 0%, 86%);
    background: linear-gradient(hsl(0, 0%, 98%), hsl(0, 0%, 93%)) 0% 0% no-repeat padding-box;
}

    .grid-column.hover {
        border-bottom-color: hsl(224, 67%, 58%);
        transition-duration: 0.3s;
        transition-timing-function: ease-out;
    }

    .grid-column .left, .grid-column .right {
        display: block;
        position: absolute;
        z-index: 1;
        width: 6px;
        height: 100%;
        cursor: w-resize;
    }

    .grid-column .left {
        top: 0px;
        left: 0px;
    }

    .grid-column .right {
        top: 0px;
        right: 0px;
    }

    .grid-column .item {
        width: 100%;
        height: 100%;
        padding: 0 4px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: flex;
        cursor: pointer;
        justify-content: center;
        align-items: center;
    }

    .grid-column .icon {
        display: flex;
        align-items: center;
        position: absolute;
        right: 0;
        z-index: 1;
        height: 100%;
        white-space: normal;
        color: var(--control-color);
        background: linear-gradient(hsl(0, 0%, 98%), hsl(0, 0%, 93%)) 0% 0% no-repeat padding-box;
    }

        .grid-column .icon .grid-filter .material-symbols-outlined {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 16px;
            height: 16px;
/*            margin-top: 4px;*/
            font-size: 11px;
            cursor: pointer;
        }

            .grid-column .icon .grid-filter .material-symbols-outlined:hover {
                color: var(--text-color);
            }

        .grid-column .icon .grid-sort-direction .material-symbols-outlined {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 12px;
            height: 16px;
            font-size: 20px;
        }

div.grid-column {
    display: inline-block;
    height: 20px;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
}

.grid-column-band {
    border-right: 1px solid hsl(0, 0%, 86%);
    border-bottom: 1px solid hsl(0, 0%, 86%);
    background: linear-gradient(hsl(0, 0%, 98%), hsl(0, 0%, 93%)) 0% 0% no-repeat padding-box;
}

.grid-row-command .material-symbols-outlined {
    padding: 0 6px;
    margin-bottom: 2px;
    font-size: 13px;
    vertical-align: middle;
}

.grid-group-zone {
    width: 100%;
    height: 36px;
    padding: 6px;
    border: 1px solid hsl(0, 0%, 93%);
    border-bottom: 0;
}

.grid-group-zone-help {
    font-size: 13px;
    color: hsl(0, 0%, 48%);
}

.grid-group-row {
    cursor: pointer;
    text-align: center;
}

.grid-body .grid-group-row-blank {
    border-top-width: 0px;
    border-bottom-width: 0px;
}

.grid-tree-toggle {
    display: inline-block;
    vertical-align: middle;
}

.bullet.is-arrow {
    display: flex;
    color: hsl(0, 0%, 48%);
}

    .bullet.is-arrow.is-selected .icon {
        transform: rotateZ(90deg);
    }

.bullet.is-2 {
    padding-left: 16px;
}

.bullet.is-3 {
    padding-left: 32px;
}

.bullet.is-4 {
    padding-left: 48px;
}

/* Pagination */
.pagination {
    justify-content: center !important;
    align-items: center;
    margin-top: 8px;
    margin-bottom: 0;
    width: 100%;
}

.grid-navi-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    min-width: 20px;
    height: 20px;
    border: 0;
    cursor: pointer;
}

    .grid-navi-page span {
        font-size: 20px;
    }

.pagination-list {
    flex-grow: initial !important;
    order: 3 !important;
}

    .pagination-list .pagination-link {
        width: 20px;
        border: 1px solid hsl(0, 0%, 86%);
        font-size: 12px;
    }

    .pagination-list .is-current {
        background-color: hsl(224, 67%, 58%);
        color: hsl(0, 0%, 100%);
        cursor: pointer;
    }

        .pagination-list .is-current:hover {
            background-color: #3f68d9;
        }

        .pagination-list .is-current:active {
            background-color: #3762d7;
        }

.pagination-first {
    order: 1 !important;
}

.pagination-previous {
    order: 2 !important;
}

.pagination-next {
    order: 4 !important;
}

.pagination-end {
    order: 5 !important;
}

.first-enabled {
    background-position: -42px 0px;
    width: 23px;
    height: 23px;
}

.first-disabled {
    background-position: -42px -25px;
    width: 23px;
    height: 23px;
}

.prev-enabled {
    background-position: -92px 0px;
    width: 23px;
    height: 23px;
}

.prev-disabled {
    background-position: -92px -25px;
    width: 23px;
    height: 23px;
}

.next-enabled {
    background-position: -117px 0px;
    width: 23px;
    height: 23px;
}

.next-disabled {
    background-position: -117px -25px;
    width: 23px;
    height: 23px;
}

.last-enabled {
    background-position: -67px 0px;
    width: 23px;
    height: 23px;
}

.last-disabled {
    background-position: -67px -25px;
    width: 23px;
    height: 23px;
}

/* main.css */
.grid .delete::before, .grid .delete::after {
    display: none;
}

.grid .modal-close, .grid .delete {
    -webkit-touch-callout: inherit;
    -webkit-user-select: inherit;
    -moz-user-select: inherit;
    -ms-user-select: inherit;
    user-select: inherit;
    -moz-appearance: inherit;
    -webkit-appearance: inherit;
    background-color: inherit;
    border: inherit;
    border-radius: inherit;
    cursor: pointer;
    pointer-events: inherit;
    display: table-row;
    flex-grow: inherit;
    flex-shrink: inherit;
    font-size: inherit;
    height: inherit;
    max-height: inherit;
    max-width: inherit;
    min-height: inherit;
    min-width: inherit;
    outline: inherit;
    position: inherit;
    vertical-align: inherit;
    width: inherit;
}
