// Font Awesome
$fa-font-path: "@fortawesome/fontawesome-free/webfonts";
@import '@fortawesome/fontawesome-free/scss/fontawesome';
@import '@fortawesome/fontawesome-free/scss/regular';
@import '@fortawesome/fontawesome-free/scss/solid';
@import '@fortawesome/fontawesome-free/scss/brands';

html {
    scrollbar-width: auto;
    scrollbar-color: hsla(0, 0%, 53%, .5) #585858;
    -ms-overflow-style: scrollbar;
    -webkit-overflow-scrolling: auto;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

label {
    cursor: pointer;
}

a {
    text-decoration: none;

    &:hover,
    &:focus {
        text-decoration: underline;
    }
}

/* 기본 버튼 */
.btn-default {
    display: inline-block;
    color: #565656 !important;
    background-color: #f5f5f5 !important;
    border-color: #b5b5b5 !important;

    &:hover,
    &:focus,
    &:active,
    &.active {
        text-decoration: none !important;
        background: #d9d9d9 !important;
        color: #0f0f0f !important;
        border-color: #b5b5b5 !important;
        
    }
}

/* 색상 추가 */
.txt-red {color: red;}
.txt-green {color: green;}
.txt-blue {color: blue;}

/* 목록 가로선 */
.divider {width: 1px;height: 14px;border-left: 1px solid #979797;display: inline-block;margin-left: 16px;margin-right: 16px;}
.ellip {display: -webkit-box;overflow: hidden;word-break: break-all;text-overflow: ellipsis;-webkit-line-clamp: 1;-webkit-box-orient: vertical;}

/* 레이어 팝업 */
#layerPops {
    .layer-pops {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 9999;
        background: rgb(255, 255, 255);
        width: 300px;
        height: 400px;
        border: 1px solid #646464;
        display: none;
        outline: none;

        article {
            &:nth-of-type(2) {
                position: absolute;
                width: 100%;
                bottom: 0;
                border-top: 1px solid #000;

                &::after {
                    content: "";
                    display: block;
                    clear: both;
                }

                button {
                    width: 50%;
                    float: left;
                    border: 0;
                    padding: 5px;
                    background: transparent;
                    border-left: 1px solid #646464;

                    &:hover,
                    &:focus {
                        background-color: #eee;
                    }

                    &:first-child {
                        border-left: none;
                    }
                }
            }
        }
    }
}

/* 처리중 */
#loading {
    display: none;
    background: #000;
    opacity: 40%;
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    z-index: 9999;

    figure {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);

        img {
            width: 50%;
        }

        figcaption {
            position: relative;
            top: -50px;
            font-size: 17px;
            color: #bbb;
        }
    }
}

/* date-picker */
.ui-datepicker-calendar {
    min-width: inherit;
}

.navigate {
    .nav {
        .nav-item {
            .nav-link.active {
                font-weight: bold;
                text-decoration: underline;
            }
        }
    }
}

.pagination {
    justify-content: center;
    padding: 10px 0 20px 0;

    ul {
        margin: 0;
        padding: 0;

        li {
            a {
                &:hover,
                &:focus,
                &:active {
                    text-decoration: none;
                }
            }
        }
    }
}
