﻿/* common start
                                                                                                 */
.control_back > span,
.control_button > span {
    user-select: none;
}

/* common end
                                                                                                 */


/* radiobuttonlist control start
                                                                                                 */

.control_checkboxlist > .control_checkbox,
.control_radiobuttonlist > .control_radiobutton {
    padding-bottom: 5px;
}

/* radiobuttonlist control end
                                                                                                 */


/* signature control start
                                                                                                 */

.control_signature_pannel {
    height: 210px;
    width: 100%;
}

.control_signature_reset,
.control_signature_save,
.control_signature_status {
    padding-right: 5px;
}

/* signature control end
                                                                                                 */

/*  quick search start
                                                                                                 */

.div_quicksearch_loading {
    position: absolute;
    margin-top: 15px;
    transform: translateY(-50%);
    font-size: 0.875rem;
    display: none;
}

.div_quicksearch_results {
    position: absolute;
    left: 0;
    right: 0;
    background: white;
    z-index: 50;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
}

.div_quicksearch_results.visible {
    max-height: 18.75rem;
    opacity: 1;
    visibility: visible;
}

.div_quicksearch_results_list {
    padding: 0.25rem;
    max-height: 17.5rem;
    overflow-y: auto;
}

.div_quicksearch_results_item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

.div_quicksearch_results_item:hover,
.div_quicksearch_results_item.active {
    background: rgba(37, 99, 235, 0.1);
}

.quicksearch_itemicon {
    margin-right: 0.75rem;
}

.quicksearch_noresult {
    padding: 0.75rem 1rem;
    text-align: center;
}

.quicksearch_errormessage {
    padding: 0.75rem 1rem;
    color: #ef4444;
    text-align: center;
}

.quicksearch_highlight {
    font-weight: 600;
}

.div_quicksearch_results_list::-webkit-scrollbar {
    width: 0.375rem;
}

.div_quicksearch_results_list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0.625rem;
}

.div_quicksearch_results_list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 0.625rem;
}

.div_quicksearch_results_list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/*  quick search end
                                                                                                 */


/*  progress control start
                                                                                                 */

.page_dialog_progress .progressbar {
    margin: 30px 20px 5px 20px;
    height: 18px;
    width: 90%;
    background-color: var(--var-bgcolor);
    border: 1px solid var(--var-border-color);
}

.page_dialog_progress .progressbar_percent {
    height: 100%;
    width: 0%;
    background-color: var(--var-percentbar-color);
}

.page_dialog_progress .progressbar_text {
    height: 100%;
    width: 100%;
    text-align: center;
    line-height: 18px;
    color: white;
}

.page_dialog_progress .text {
    padding-top: 0px;
}


/*  progress control end                                                                         */

.control_fileuploader {
    display: inline-block;
}

.control_fileuploader .div_attachments {
    display: flex;
    flex-wrap: wrap;
}

.control_fileuploader .div_attachments div {
    line-height: 30px;
    padding-right: 10px;
}

.control_fileuploader i.icon {
    padding: 0px 5px 0px 5px;
    line-height: 30px;
    cursor: pointer;
}


/* control attachmentlist start
                                                                                                 */

.page_dialog_fileupload .upload {
    margin: 20px auto 0px auto;
    padding: 10px 10px 10px 10px;
    height: 100%;
    width: 90%;
}

.page_dialog_fileupload .upload input[type="file"] {
    margin-bottom: 20px;
    width: 100%;
    border: 1px solid var(--var-button-bgcolor);
}

.control_attachmentlist {
    display: inline-block;
    width: 90%;
}

.control_attachmentlist > .div_attachments {
    display: grid;
    grid-template-columns: repeat(auto-fill, 150px);
    grid-auto-rows: 160px;
    justify-content: space-around;
    justify-items: center;
    align-items: normal;
}

.control_attachmentlist .div_bean_icon > img {
    width: 100px;
    max-height: 100px;
    cursor: pointer;
}

.control_attachmentlist .div_bean_icon > a {
    display: block;
    width: 100px;
    height: 100px;
    background-size: 110px;
    background-position: center;
    background-repeat: no-repeat;
}

.control_attachmentlist .div_bean {
    margin: 5px 5px 5px 5px;
    width: 100px;
}

.control_attachmentlist .div_bean_title {
    display: initial;
    width: 100%;
    height: 40px;
    font-size: var(--var-fontsize-tiny);
}

.control_attachmentlist .div_bean_cornermark {
    position: absolute;
    top: -9px;
    right: -9px;
    background-color: var(--var-header-bgcolor);
}

.control_attachmentlist div.div_uploadicon {
    width: 100px;
    height: 100px;
    text-align: center;
    line-height: 100px;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.control_attachmentlist div.div_uploadicon i {
    font-size: var(--var-fontsize-jumbo);
}

#div_attachments_bigpicture {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 920;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
}

#div_attachments_bigpicture img {
    position: fixed;
    top: 50%;
    left: 50%;
    max-width: 100%;
    max-height: 100%;
    transform: translate(-50%, -50%);
}

.attachment_default {
    background-image: url("../../../../../Resource/Image/FileIcon/default.png");
}

.attachment_txt {
    background-image: url("../../../../../Resource/Image/FileIcon/txt.png");
}

.attachment_doc,
.attachment_docx,
.attachment_dotx,
.attachment_docm {
    background-image: url("../../../../../Resource/Image/FileIcon/docx.png");
}

.attachment_xls,
.attachment_xlsx,
.attachment_xlsm,
.attachment_csv {
    background-image: url("../../../../../Resource/Image/FileIcon/xlsx.png");
}

.attachment_ppt,
.attachment_pptx,
.attachment_pptm,
.attachment_potx {
    background-image: url("../../../../../Resource/Image/FileIcon/pptx.png");
}

.attachment_avi,
.attachment_mp4,
.attachment_wmv,
.attachment_mpeg,
.attachment_mov,
.attachment_asf,
.attachment_rmvb,
.attachment_vob,
.attachment_3gp {
    background-image: url("../../../../../Resource/Image/FileIcon/wmv.png");
}

.attachment_mp3,
.attachment_wav,
.attachment_wma,
.attachment_midi,
.attachment_ape,
.attachment_flac,
.attachment_acc,
.attachment_au {
    background-image: url("../../../../../Resource/Image/FileIcon/mp3.png");
}

.attachment_zip,
.attachment_rar,
.attachment_7z {
    background-image: url("../../../../../Resource/Image/FileIcon/rar.png");
}

.attachment_pdf {
    background-image: url("../../../../../Resource/Image/FileIcon/pdf.png");
}

.attachment_tif,
.attachment_tiff,
.attachment_heic {
    background-image: url("../../../../../Resource/Image/FileIcon/tiff.png");
}

.attachment_folder {
    background-image: url("../../../../../Resource/Image/FileIcon/folder.png");
}


/*  attachmentlist control end
                                                                                                 */


/* gridview control start
                                                                                                 */

.control_gridview > .gridview_table .gridview_actioncolumn_small {
    width: 80px;
    min-width: initial !important;
    text-align: center !important;
}

/* gridview actioncolumn end
                                                                                                 */


/* image gridview start
                                                                                                 */

.image_gridview > table > thead {
    display: none;
}

.image_gridview > table > tbody {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-top: 10px;
}

.image_gridview > table > tbody > tr {
    display: flex;
    flex-direction: column;
    height: auto !important;
    max-width: 290px;
    margin: 0 10px 10px 10px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.image_gridview > table > tbody > tr.gridview_table_row_aggregation {
    display: none;
}

.image_gridview > table > tbody > tr {
    padding: 5px;
}

.image_gridview > table > tbody > tr > td {
    margin-bottom: 5px;
    padding: 0px !important;
    height: inherit !important;
}

.image_gridview > table > tbody > tr > td img {
    width: 280px;
    height: 168px;
}

.image_gridview2 > table > tbody > tr > td img {
    width: 280px;
    height: 168px;
}

.image_gridview2 > table > tbody > tr {
    position: relative;
    padding-left: 280px;
}

.image_gridview2 > table > tbody > tr > td:first-of-type {
    position: absolute;
    left: 0px;
}

/* image gridview end
                                                                                                 */


/* percentbar start
                                                                                                 */

.percentbar_cover {
    display: inline-block;
}

.percentbar {
    display: inline-block;
    height: 12px;
    font-size: var(--var-fontsize-tiny);
    line-height: var(--var-fontsize-tiny);
    text-align: left;
    background: inherit;
    background-color: rgba(233, 233, 233, 1);
    border: none;
    border-width: 0px;
    border-radius: 8px;
    box-shadow: none;
}

.percentbar_bar {
    display: inline-block;
    height: 10px;
    width: 75px;
    font-size: var(--var-fontsize-tiny);
    line-height: var(--var-fontsize-tiny);
    text-align: center;
    color: var(--var-percentbar-color);
    background: inherit;
    background-color: var(--var-percentbar-color);
    border: none;
    border-width: 0px;
    border-radius: 8px;
    user-select: none;
}

.percentbar_value {
    font-size: var(--var-fontsize-normal);
    line-height: var(--var-fontsize-normal);
}

.percentbar_value:after {
    content: "%";
}

/* percentbar end
                                                                                                 */


/* percentcircle start
                                                                                                 */

.percentcircle_cover {
    margin: auto auto;
    width: 80px;
}

.percentcircle {
    position: relative;
    width: 80px;
    height: 80px;
}

.percentcircle_value {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
    left: 10px;
    top: 10px;
    line-height: 60px;
    text-align: center;
    user-select: none;
}

.percentcircle_text {
    margin-top: 5px;
    text-align: center;
}

.percentcircle_value:after {
    content: "%";
}

.percentcircle_left,
.percentcircle_right {
    position: absolute;
    top: 0px;
    overflow: hidden;
    width: 50%;
    height: 100%;
}

.percentcircle_left {
    left: 0px;
}

.percentcircle_right {
    right: 0px;
}

.percentcircle_left_bar,
.percentcircle_right_bar {
    position: absolute;
    top: 0px;
    transform: rotate(-135deg);
    width: 160%;
    height: 80%;
    border: 8px solid rgba(233, 233, 233, 1);
    border-radius: 50%;
}

.percentcircle_left_bar {
    left: 0px;
    border-bottom: 8px solid green;
    border-left: 8px solid green;
    transform: rotate(-90deg);
}

.percentcircle_right_bar {
    right: 0px;
    border-top: 8px solid green;
    border-right: 8px solid green;
    transform: rotate(-90deg);
}

/* percentcircle end
                                                                                                 */


/* showpicture start
                                                                                                 */

.showpicture_box {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 920;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-color: #333;
    background-color: rgba(0, 0, 0, .85);
    -webkit-box-shadow: 0 0 3px 1px rgba(0, 0, 0, .3);
    -moz-box-shadow: 0 0 3px 1px rgba(0, 0, 0, .3);
    box-shadow: 0 0 3px 1px rgba(0, 0, 0, .3);
    cursor: default;
}

.showpicture_box a {
    text-decoration: none;
}

.showpicture_header {
    position: relative;
    z-index: 9;
    height: 40px;
}

.showpicture_title {
    font-size: var(--var-fontsize-normal);
    white-space: nowrap;
    text-overflow: ellipsis;
    user-select: none;
    overflow: hidden;
    color: var(--var-color);
    padding: 0 40px 0 15px;
    line-height: 40px;
}

.showpicture_btn_windowrestore,
.showpicture_btn_windowmax,
.showpicture_btn_windowclose {
    position: absolute;
    top: 0px;
    margin: 0px;
    width: 40px;
    height: 40px;
    color: #999;
    line-height: 40px;
    font-size: var(--var-fontsize-normal);
    text-align: center;
}

.showpicture_btn_windowclose {
    right: 0px;
}

.showpicture_btn_windowrestore,
.showpicture_btn_windowmax {
    right: 40px;
}

.showpicture_toolbar .showpicture_btn,
.showpicture_btn_windowclose,
.showpicture_btn_windowmax,
.showpicture_btn_windowrestore,
.showpicture_loader {
    font-size: var(--var-fontsize-jumbo);
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.showpicture_stage {
    position: absolute;
    overflow: hidden;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    border: none;
}

.showpicture_image {
    position: relative;
    display: inline-block;
    transform-origin: 50% 50% 0px;
    cursor: move;
}

.showpicture_footer {
    position: absolute;
    bottom: 0px;
    z-index: 9;
    width: 100%;
    height: 50px;
    text-align: center;
    color: var(--var-color);
}

.showpicture_toolbar {
    display: inline-block;
    height: 50px;
    background-color: rgba(0, 0, 0, .5);
    -webkit-border-radius: 5px 5px 0 0;
    -moz-border-radius: 5px 5px 0 0;
    border-radius: 5px 5px 0 0;
}

.showpicture_toolbar .showpicture_btn {
    display: inline-block;
    width: 50px;
    margin: 0px;
    line-height: 50px;
}

.showpicture_hidepictures {
    display: none;
}

.showpicture_messagebox {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 921;
    transform: translate(-50%, -50%);
    padding: 0 20px 0 20px;
    color: var(--var-color2);
    background-color: rgba(0, 0, 0, 1);
    line-height: 30px;
    display: inline-block;
    border-radius: 5px;
}


/* showpicture end
                                                                                                 */


/* ratestar start
                                                                                                 */

.control_ratestar {
    display: inline-block;
    vertical-align: middle;
}

.ratestar_normal {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-block;
    background: url("../../../../../Resource/Image/Control/RateStar.png") no-repeat scroll right center;
    border: 0;
    cursor: pointer;
}

.ratestar_active {
    background-position: left center;
}

.control_ratestar > .scorecount {
    min-width: 0px;
    margin: 0px;
    padding: 0;
    border: 0;
    font-size: var(--var-fontsize-big);
    background: none;
    color: rgb(253, 125, 40);
}


/* ratestar end
                                                                                                 */


/* messagereply start
                                                                                                 */

.div_messagereply_new,
.div_messagereply_item {
    display: flex;
    margin-bottom: 10px;
    min-height: 80px;
    border-bottom: 1px solid #f2f2f2;
}

.div_messagereply_item:hover {
    background-color: #f2f2f2;
}

.div_messagereply_avatar {
    width: 60px;
    text-align: center;
}

.div_messagereply_avatar img {
    width: 32px;
    height: 32px;
}

.div_messagereply_content {
    width: 85%;
}

.messagereply_content_header {
    margin-bottom: 10px;
}

.messagereply_content_header span {
    margin-right: 10px;
    font-size: var(--var-fontsize-tiny);
    color: gray;
}

.div_messagereply_new .div_messagereply_content {
    display: flex;
    width: calc(100% - 80px);
}

.div_messagereply_new .div_messagereply_text {
    width: calc(100% - 100px);
}

.div_messagereply_new #tbxReplyText {
    width: 100%;
    height: 30px;
    border: 1px solid var(--var-input-bordercolor);
}

.div_messagereply_new .div_messagereply_bar {
    padding-left: 5px;
    width: 100px;
}

.div_messagereply_new #btnReplyMessage {
    border: 1px solid var(--var-input-bordercolor);
}

.div_messagereply_pagging {
    margin-bottom: 10px;
    text-align: center;
}

.div_messagereply_container {
    text-align: center;
}

.div_messagereply_container .paggingitem {
    margin: 5px 0px 5px 0px;
    padding: 5px 15px 5px 15px;
}

.div_messagereply_container .paggingitem:hover {
    background-color: #e2e2e2;
}

/* messagereply end
                                                                                                 */


/* switch start 
可选框类型的控件启用mo-switch风格：将其扩展属性设置为class="mo-switch"。额外可选颜色为：red, blue，如：class="mo-switch red"。
*/

.mo-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-top: -10px;
    vertical-align: middle;
    height: 20px;
    font-size: var(--var-fontsize-normal);
    line-height: 20px;
}

.mo-switch > input:first-child,
.mo-switch > span:last-child {
    display: none !important;
}

.mo-switch_core {
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    margin: 0px;
    width: 40px;
    height: 20px;
    border: 1px solid #dcdfe6;
    outline: none;
    border-radius: 10px;
    background: #dcdfe6;
    cursor: pointer;
    transition: border-color .3s, background-color .3s;
    vertical-align: middle;
}

.mo-switch_core:after {
    position: absolute;
    top: 1px;
    left: 1px;
    transition: all .3s;
    width: 16px;
    height: 16px;
    content: "";
    border-radius: 100%;
    background-color: white;
}

.mo-switch.checked .mo-switch_core:after {
    left: 100%;
    margin-left: -17px;
}

.mo-switch.checked .mo-switch_core {
    border-color: var(--var-link-color-active);
    background-color: var(--var-link-color-active);
}

.mo-switch.red .mo-switch_core {
    border-color: rgb(255, 73, 73);
    background-color: rgb(255, 73, 73);
}

.mo-switch.checked.red .mo-switch_core {
    border-color: rgb(19, 206, 102);
    background-color: rgb(19, 206, 102);
}

.mo-switch.checked.blue .mo-switch_core {
    border-color: #409eff;
    background-color: #409eff;
}


/* switch end */


/* mo-radiobox-group start 
只需将扩展属性设置为class="mo-radiobox-group" 
 mo-checkbox-group start 
只需将扩展属性设置为class="mo-checkbox-group" 
*/

.mo-radiobox-group,
.mo-checkbox-group {
    display: inline-flex;
}

.mo-radiobox-group > div > input,
.mo-checkbox-group > div > input {
    display: none !important;
}

.mo-radiobox-group > div > label,
.mo-checkbox-group > div > label {
    margin: 0px;
    padding: 6px 12px !important;
    box-sizing: border-box;
    outline: none;
    line-height: 1;
    font-weight: 500;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    text-align: center;
    color: #606266;
    background: white;
    border: 1px solid #dcdfe6;
    border-radius: 0;
    -webkit-appearance: none;
    transition: all .3s cubic-bezier(.645, .045, .355, 1);
}

.mo-radiobox-group > div:first-child label,
.mo-checkbox-group > div:first-child label {
    border-left: 1px solid #dcdfe6;
    border-radius: 4px 0 0 4px;
    box-shadow: none !important;
}

.mo-radiobox-group > div:last-child label,
.mo-checkbox-group > div:last-child label {
    border-radius: 0 4px 4px 0;
}

.mo-radiobox-group > div.checked > label,
.mo-checkbox-group > div.checked > label {
    color: white;
    background-color: var(--var-link-color-active);
    border-color: var(--var-link-color-active);
    box-shadow: -1px 0 0 0 #8cc5ff;
}


/*mo-radiobox-group,mo-checkbox-group end */
