/* tooltip */

.tooltip-icon {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Tooltip text */
.tooltip-icon .tooltiptext {
    visibility: hidden;
    min-width: 300px;
    background-color: #e8ecf0;
    color: #888;
    text-align: center;
    padding: 10px 16px;
    border-radius: 6px;
    text-align: justify;
    /* Position the tooltip text */
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    font-size: 14px;
    /* Fade in tooltip */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.editor_tip .tooltiptext {
    margin-left: -150px !important;
}

.editor_tip span {
    font-size: 0.85rem;
}

.editor_tip span.editor-qa {
    font-size: 0.7rem;
}

.form-group .tooltiptext {
    margin-left: -66px !important;
    margin-bottom: 6px;
}

.form-group .tooltiptext::after {
    left: 22% !important;
}

/* Tooltip arrow */
.tooltip-icon .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #e8ecf0 transparent transparent transparent;
}

.tooltip-icon:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.tooltiptext p {
    font-weight: 400;
    margin: 6px 0px;
    letter-spacing: 1px;
    line-height: 1.4;
}

.tooltiptext span {
    font-weight: bold;
}

.tooltiptext-suggestion {
    color: tomato;
}

.form-control {
    position: relative;
}

.mark {
    opacity: 0;
    position: absolute;
    right: 10px;
    background: transparent;
    transition: 0.3s ease-in-out;
    color: rgb(248, 181, 81);
    cursor: pointer;
}

.famous-tip {
    list-style: none;
    padding: 0;
}

.famous-tip li {
    display: inline-block;
    padding: 5px;
    background: #9c9c9c;
    color: #fff;
    border-radius: 5px;
    margin: 3px 5px;
}

.tooltiptext.mark-tip {
    margin-left: -200px !important;
    bottom: 95% !important;
    min-width: 250px;
}

.tooltiptext.mark-tip::after {
    left: 80% !important;
}

/* editor style */

.title-input,
.summary-input {
    position: relative;
}

.title-input-num,
.summary-input-num {
    position: absolute;
    right: 20px;
    top: 0px;
    transform: translateY(40%);
    font-size: 14px;
}

.form-control {
    padding-right: 50px;
}

.editor-wrap {
    position: relative;
}

.charCount {
    position: absolute;
    right: 40px;
    bottom: 5px;
    font-size: 11px;
    font-weight: bold;
    color: #484848;
}

.warning-msg {
    display: flex;
    align-items: center;
}

.warning-msg i {
    color: palevioletred;
    margin-right: 10px;
}

.editor-fb-warning {
    position: absolute !important;
    bottom: 9px;
    right: 140px;
    color: #8c8c8c !important;
    font-size: 14px !important;
    z-index: 2;
}

.editor-qa {
    cursor: pointer !important;
    display: inline-block;
    margin-left: 5px;
}

.editor-qa:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.taggle_list .taggle {
    padding: 2px 10px 1px !important;
    font-size: 0.9rem;
}

.taggle_list .taggle:hover {
    padding: 2px 22px 1px 10px !important;
}

.taggle_list .taggle .close {
    top: 8px !important;
    right: 7px !important;
    font-size: 1.2rem !important;
    color: #888 !important;
}

.taggle_list .taggle .close:hover {
    color: rgb(170, 0, 0) !important;
}

#celebrites-refers .tooltiptext::before {
    content: "";
    display: block;
    width: 100%;
    height: 20px;
    background-color: rgb(255, 255, 255, 0);
    bottom: -20px;
    left: 0;
    position: absolute;
}

.views-wrap {
    display: inline-block;
    position: absolute;
    top: 22px;
    font-size: 14px;
    color: #999;
    right: 120px;
    display: flex;
    align-items: center;
}

.views-wrap div:first-child {
    margin-right: 15px;
}

.taggle_input {
    width: 100px !important;
}

.image-input img {
    width: 114%;
    margin-left: -7%;
}

span.r18 {
    background: url(/assets/img/admin_r18.svg) no-repeat center;
    background-size: contain;
    width: 17px;
    height: 17px;
    display: inline-block;
    top: 0.2rem;
    left: 0.3rem;
    position: relative;
}

span.r18:hover::before {
    content: "敏感話題/18禁";
    display: block;
    background: #000;
    color: #fff;
    padding: 4px 10px;
    font-size: 0.6rem;
    white-space: nowrap;
    top: -32px;
    left: -10px;
    position: absolute;
    background-repeat: no-repeat;
    border-radius: 3px;
    pointer-events: none;
}

span.r18:hover::after {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 6px 0 6px;
    border-color: #000 transparent transparent transparent;
    position: absolute;
    top: -12px;
    left: 2px;
    display: block;
    pointer-events: none;
}

span.wait {
    color: #d2d2d2;
    font-size: 5px;
    font-weight: 900;
    font-family: "Font Awesome 5 Free";
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    position: relative;
}

span.wait:before {
    content: "\f251";
    position: absolute;
    right: -15px;
    top: -11px;
}

#ckf-modal {
    z-index: 11000 !important;
}

.special-btn img {
    cursor: pointer;
}
.special-btn img:focus {
    border: 1px solid #4c4c4c !important;
}
#custom-target,#custom-target2,#custom-target3,#custom-target4 {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}


/* toast css */

.toast {
    background-color: #ff6962;
    position: relative;
}
.toast button.close{
    position: absolute;
    top: 2px;
    right: 8px;
    opacity: 1;
}
.toast button.close:focus {
    outline: none;
}
.toast button.close span{
    color: #fff;
    pointer-events: auto;
    
}
.toast .toast-body{
    color: #fff;
    padding-right: 30px;
    display: flex;
    align-items: center;
}

.article-list-wrap .table th {
    white-space: nowrap;
}
#ckf-modal{
    z-index: 10010 !important;
}

.list_edit{
    display: none;
}
.article_list_tr:hover .list_edit{
    display: inline;
    margin-left: 15px;
    color: #787878;
}

th.list_title a, th.header_title a {
    white-space: normal;
}

th.header_title, th.list_title {
    white-space: normal!important;
    min-width: 500px;
}

th.header_time, th.list_time {
    white-space: normal!important;
    min-width: 130px;
    width: 210px;
}

.pagination {
    margin-top: 1.5rem;
}

.card-body ::-webkit-scrollbar {
    width: 18px;
    height: 12px;
}

.card-body ::-webkit-scrollbar-track {
    background: #EDECE9;
    border-radius: 10px;
}

.card-body ::-webkit-scrollbar-thumb {
    background: #D3D1CB; 
    border-radius: 10px;
}

.card-body ::-webkit-scrollbar-thumb:hover {
    background: #c2c0ba; 
}

@media (min-width: 576px) {
    .title-input {
        max-width: 610px;
    }

    .title-input input,
    .summary-input textarea {
        padding-right: 60px;
    }

    .form-control {
        padding-right: 30px;
    }

    .title-input-num,
    .summary-input-num {
        right: 24px;
    }
}

.bg-gradient-primary {
    background-color: #d54a75;
    background-image: linear-gradient(180deg, #d54a75 10%, #d54a75 100%);
}

.btn-primary {
    background-color: #d54a75;
    border-color: #d54a75;
}

.page-item.active .page-link {
    background-color: #d54a75;
    border-color: #d54a75;
}

.page-link {
    color: #d54a75;
}

.ui-autocomplete {
    overflow-y: scroll;
    overflow-x: hidden;
    height: 300px;
    position: absolute;
}
