﻿/*
 *  * 擴充CSS From Rachel
 */
/*--------------------------------*/

.displayNone {
    display: none !important;
}

/* #region search inputbox add X 清除icon */

input[type="search"]::-webkit-search-cancel-button {
    position: relative;
    -webkit-appearance: none;
    height: 1.1em;
    width: 1.1em;
    border-radius: 50em;
    background: url('images/circle-xmark-solid.svg') no-repeat 50% 50%;
    background-size: contain;
    opacity: 0;
    pointer-events: none;
}

input[type="search"]:focus::-webkit-search-cancel-button {
    opacity: .3;
    pointer-events: all;
}

input[type="search"]::-webkit-search-cancel-button:hover {
    cursor: pointer;
}

/* #endregion */

/* #region coreBox 查無資料 noData CSS */

.coreBox .coreTable .noData {
    height: auto !important;
}

    .coreBox .coreTable .noData i {
        font-size: 3.5rem !important;
    }

    .coreBox .coreTable .noData span {
        font-size: 4rem !important;
        line-height: 50px !important;
    }

/* #endregion */

/* #region Modal設定 */

/* 自定義Modal */
.cus-modal.modal {
    font-size: 1.2rem;
}

.cus-modal h5 {
    font-size: 2rem;
    font-weight: bold;
}

.cus-modal .modal-body div.col-sm-12 {
    margin-bottom: 10px;
}

/* modal置中 */
.cus-modal.cus-modal-centered {
    text-align: center;
}

    .cus-modal.cus-modal-centered .modal-dialog {
        display: inline-block;
        text-align: left;
        vertical-align: middle;
    }

@media screen and (min-width: 768px) {
    .cus-modal.cus-modal-centered:before {
        display: inline-block;
        vertical-align: middle;
        content: " ";
        height: 100%;
    }
}

/* #endregion */

/* #region 給 div.form-control 最小高度值 */

.form-control.mh {
    height: auto !important;
    min-height: 36px;
    word-wrap: break-word;
}

    .form-control.mh.bg {
        background-color: #eee;
    }

    .form-control.mh.border-o {
        border: 1px solid #E6E6E6;
    }

/* #endregion */

/* #region 調整 div.form-group */
@media (max-width: 767px) {
    /* 將原始 margin-left、right的設定為0px */
    .form-horizontal.mlr-0 .form-group {
        margin-left: 0px;
        margin-right: 0px;
    }

    /* 將原始 margin-left、right的設定為5px */
    .form-horizontal.mlr-5 .form-group {
        margin-left: 5px;
        margin-right: 5px;
    }
}

/* #endregion */

/* #region autocomplete */

.ui-autocomplete {
    max-height: 250px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
}

.ui-menu-item-wrapper {
    /*font-size: 1.4rem;*/
}

/* #endregion */

/* #region autocomplete combobox */

.div-core-box {
    display: inline-flex;
    margin-right: 40px;
}

    .div-core-box .form-control {
        padding: 0px;
        border-style: none;
    }

    .div-core-box .custom-combobox {
        position: relative;
        display: inline-block;
    }

    .div-core-box .custom-combobox-toggle {
        position: absolute;
        top: 0;
        bottom: 0;
        margin-left: -1px;
        padding: 0;
    }

    .div-core-box .custom-combobox-input {
        margin: 0;
        padding: 5px 10px;
        background: #ffffff;
        width: 400px;
    }

    .div-core-box .ui-button {
        background: white;
        height: 32px !important;
        width: 32px !important;
        margin-top: 2px;
    }

@media (max-width: 768px) {
    .div-core-box {
        display: inherit;
    }

        .div-core-box .custom-combobox-input {
            width: 100%;
        }
}

/* #endregion */

/* #region 調整 必填* 顏色 */

span.h3.c-red,
text.h3.c-red {
    color: red;
}

/* #endregion */

/* #region 調整 提示字 顏色 */

span.help-block.c-red {
    color: red;
}

/* #endregion */
