/* 分頁 */
.showPage > #page p {
    margin: 0
}

.showPage > #page {
    height: 60px;
    width: 550px;
    margin: 0 auto;
}

.showPage > #page a {
    display: block;
    float: left;
    margin-right: 10px;
    padding: 2px 12px;
    height: 35px;
    text-decoration: none;
    color: #FFF;
    font-size: 12px;
    line-height: 35px;
}

.showPage > #page a:hover {
    color: #077ee3;
    border: 1px #077ee3 solid;
}

.showPage > #page a.cur {
    border: none;
    background: #7fb808;
    color: #FFF;
    border: 1px solid #555;
}

.showPage > #page p {
    float: left;
    padding: 2px 12px;
    font-size: 12px;
    height: 35px;
    line-height: 35px;
    color: #FFF;
    margin-right: 8px;
}

.showPage > #page p.pageRemark {
    border-style: none;
    background: none;
    margin-right: 0px;
    padding: 4px 0px;
    color: #666;
}

.showPage > #page p.pageRemark b {
    color: red;
}

.showPage > #page p.pageEllipsis {
    border-style: none;
    background: none;
    padding: 4px 0px;
    color: #808080;
}

.showPage_enterprise > #page a {
    background: #FFFFFF;
    color: #555;
    border: 1px solid #CCC;
}

.showPage_enterprise > #page p {
    background: #FFFFFF;
    color: #555;
    border: 1px solid #CCC;
}

/* Hide file input */
.file {
    display: none !important;
}

/* Custom upload button appearance*/
.choose-file {
    cursor: pointer;
    z-index: 1;
    display: block;
    width: 100px;
    height: 100px;
    background: url(../images/add_item.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #CCC;
    border: 1px solid;
    border-style: dashed;
    position: relative;
}

.cancel-file {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 20px;
    height: 20px;
    font-size: 18px;
    text-align: right;
    color: #000;
}

.choose-file-requre {
    border-color: red;
}

.tips {
    color: red;
    font-size: 10px;
}


.table_file_position {
    margin-left: 180px
}

div.btn-group button a {
    color: #333;
}

.hide {
    display: none;
}

/* by 田 */
.img-wrap {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    overflow: hidden;
}

.img-wrap img {
    position: absolute;
    width: 100%;
}

.img-resize {
    width: 5rem;
    height: 5rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

span.required {
    margin-left: 0.25rem;
    color: red;
}

.bg-gradient-liquid {
    background-image: url('../../dist/img/bg/white_bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: 50%;
}

.control-label {
    float: none;
    width: auto;
    padding-top: 0;
    text-align: left;
}

.td-word-break {
    word-break: break-all;
    min-width: 50px;
    max-width: 200px;
}

/* 圖片預覽 */
#file-input::-webkit-file-upload-button {
    visibility: hidden;
    user-select: none;
}

#file-input {
    display: none;
    user-select: none;
}

.image-container {
    width: 200px;
    height: 200px;
    /*margin-top: 100px;*/
    /*border: 0px solid blue;*/
    position: relative;
}

.image-container img {
    width: 200px;
    height: 200px;
    border-radius: 5%;
    object-fit: cover;
    object-position: center;
}

.image-container .button-remove {
    position: absolute;
    top: 0;
    right: 0;
    margin-top: -10px;
    margin-right: -10px;
    color: red;
    width: 40px;
    height: 40px;
    background-color: #d2d6d3;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 20px;
}

.image-container .button-remove:hover {
    background-color: red;
    color: white;
}

.upload_cover {
    position: relative;
    width: 12rem;
    height: 12rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 0;
    /*background: #efefef;*/
    /*border: 1px solid #595656;*/
}

#upload_input {
    display: none;
}

.upload_icon {
    font-weight: bold;
    font-size: 180%;
    position: absolute;
}

.delAvatar {
    position: absolute;
    right: 2px;
    top: 2px;
}

.btn-remove {
    position: absolute;
    top: 0;
    right: 0;
    border: 2px solid black;
    margin-top: -10px;
    margin-right: -10px;
    border-radius: 50%;
}

.btn-preview {
    position: absolute;
    bottom: 0;
    left: 0;
    border: 2px solid black;
    margin-bottom: -2px;
    margin-left: -2px;
}

.title-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.title-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.title-3 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/*模擬對角線*/
table th.crossed {
    background-image: linear-gradient(to bottom left, transparent calc(50% - 1px), #9a9a9a, transparent calc(50% + 1px));
}

[class*=icheck-] > input:first-child:disabled + label {
    opacity: 1;
}

.text-yellowgreen {
    color: #9acd32 !important;
}

a.text-yellowgreen:hover, a.text-yellowgreen:focus {
    color: #95be42 !important;
}

.text-brown {
    color: #663300 !important;
}

a.text-brown:hover, a.text-brown:focus {
    color: #522900 !important;
}

.hidden {
    display: none !important;
}

/* Absolute Center Spinner */
.loading {
    position: fixed;
    z-index: 9999;
    height: 2em;
    width: 2em;
    overflow: show;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

/* Transparent Overlay */
.loading:before {
    content: '';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(rgba(20, 20, 20, .8), rgba(0, 0, 0, .8));

    background: -webkit-radial-gradient(rgba(20, 20, 20, .8), rgba(0, 0, 0, .8));
}

/* :not(:required) hides these rules from IE9 and below */
.loading:not(:required) {
    /* hide "loading..." text */
    font: 0/0 a;
    color: transparent;
    text-shadow: none;
    background-color: transparent;
    border: 0;
}

.loading:not(:required):after {
    content: '';
    display: block;
    font-size: 10px;
    width: 1em;
    height: 1em;
    margin-top: -0.5em;
    -webkit-animation: spinner 150ms infinite linear;
    -moz-animation: spinner 150ms infinite linear;
    -ms-animation: spinner 150ms infinite linear;
    -o-animation: spinner 150ms infinite linear;
    animation: spinner 150ms infinite linear;
    border-radius: 0.5em;
    -webkit-box-shadow: rgba(255, 255, 255, 0.75) 1.5em 0 0 0, rgba(255, 255, 255, 0.75) 1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) 0 1.5em 0 0, rgba(255, 255, 255, 0.75) -1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) -1.5em 0 0 0, rgba(255, 255, 255, 0.75) -1.1em -1.1em 0 0, rgba(255, 255, 255, 0.75) 0 -1.5em 0 0, rgba(255, 255, 255, 0.75) 1.1em -1.1em 0 0;
    box-shadow: rgba(255, 255, 255, 0.75) 1.5em 0 0 0, rgba(255, 255, 255, 0.75) 1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) 0 1.5em 0 0, rgba(255, 255, 255, 0.75) -1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) -1.5em 0 0 0, rgba(255, 255, 255, 0.75) -1.1em -1.1em 0 0, rgba(255, 255, 255, 0.75) 0 -1.5em 0 0, rgba(255, 255, 255, 0.75) 1.1em -1.1em 0 0;
}

/* Animation */

@-webkit-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-moz-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-o-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.onInvalidFeedback.show {
    color: #dc3545 !important;
    font-size: 80%;
    margin-bottom: 0;
}

.onInvalidFeedback:not(.show) {
    display: none;
}