﻿/* common */
html {
    margin: 0;
    color: darkslategray;
    font-size: 14px;
    font-family: "Microsoft YaHei","Segoe UI",SegoeUI,"Helvetica Neue",Helvetica,Arial,sans-serif;
}

body {
    margin: 0;
    color: darkslategray;
    font-family: "Microsoft YaHei","Segoe UI",SegoeUI,"Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 14px;
    background-color: whitesmoke;
}

div {
    position: relative;
}

/* rj-grid */
.rj-grid-box {
    border-top: 2px solid darkslategray;
    border-left: 1px solid silver;
    border-right: 1px solid silver;
    border-bottom: none;
}

.rj-grid-header {
    border-bottom: 1px solid silver;
    background-color: whitesmoke;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rj-grid-footer {
    border-bottom: 1px solid silver;
    border-top: 1px solid darkslategray;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rj-grid-row {
    border-bottom: 1px solid silver;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .rj-grid-header > div,
    .rj-grid-row > div,
    .rj-grid-footer > div,
    .rj-grid-cell {
        padding: 8px 5px;
    }

input {
    border: none;
    outline: none;
    padding: 5px;
}

    input.rj-datetime {
        border: 1px solid silver;
        width: 90px;
        padding: 5px;
        margin-right: 10px;
        font-size: 16px;
    }

    input.rj-text {
        border-bottom: 1px solid silver;
    }

a {
    color: darkslategray;
    text-decoration: none;
}

    a:hover {
        color: darkslategray;
        text-decoration: none;
    }

/* fontawesome override */
.fa, .fa-solid, .fa-regular, .fa-light {
    font-size: 16px;
    padding-left: 5px;
    padding-right: 5px;
}

/* rj-row */
.rj-row-silver {
    padding: 5px 0px;
    border-bottom: 1px solid silver;
    display: flex;
}

.rj-row-whitesmoke {
    padding: 5px 0px;
    border-bottom: 1px solid whitesmoke;
    display: flex;
}

/* rj-grid */
.rj-grid-box {
    border-top: 2px solid darkslategray;
    border-left: 1px solid silver;
    border-right: 1px solid silver;
    border-bottom: none;
}

.rj-grid-header {
    border-bottom: 1px solid silver;
    background-color:whitesmoke;
    display: flex;
    align-items:center;
    justify-content:space-between;
}

.rj-grid-footer {
    border-bottom: 1px solid silver;
    border-top: 1px solid darkslategray;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rj-grid-row {
    border-bottom: 1px solid silver;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rj-grid-cell {
    padding: 8px 5px;
    display: flex;
    align-items: center;
    justify-content: left;
}

/* rj-input */
input.rj-input-line {
    padding: 0px 0px 2px 0px;
    background-color:transparent;
    text-align: center;
    border: none;
    border-bottom: none;
    width: 100px;
}

    input.rj-input-line:focus {
        padding: 0px 0px 2px 0px;
        border-bottom: 1px solid silver;
    }

/* rj-line */
.rj-line {
    height: 1px;
    background-color: silver;
    padding: 0px;
    width: 100%;
}

/************************************* rj-form */
.rj-form-row {
    display: flex;
    justify-content:left;
    align-items:center;
    text-align:left;
    width: 100%;
    border-bottom: 1px solid whitesmoke;
}

.rj-form-label {
    font-weight: bold;
    padding: 0px 10px 0px 0px;
    display: flex;
    align-items: center;
    justify-content: right;
    text-align: right;
    font-size: 14px;
}

.rj-form-value {
    display: flex;
    align-items: center;
    justify-content: left;
    text-align: left;
    font-size: 14px;
}

.rj-form-value input {
    font-size: 14px;
    border: none;
    width: 90%;
    padding: 10px 5px;
}

    .rj-form-value input:focus {
        outline: none;
        border-bottom: 1px solid silver;
    }

/************************************* rj-button */
.rj-mark-triangle {
    position: absolute;
    display: none;
    width: 0px;
    height: 0px;
    border: 3px solid transparent;
    border-left: 3px solid brown;
    border-top: 3px solid brown;
    left: 0px;
    top: 0px;
}

.rj-flex {
    display:flex;
    justify-content:center;
    align-items:center;
}

.rj-absolute {
    display:none;
    position:absolute;
    left:0px;
    top:0px;
    background-color: white;
    border:1px solid silver;
}

.rj-button {
    background-color: whitesmoke;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid silver;
}

    .rj-button:hover {
        color: white;
        background-color: darkslategray;
        border: 1px solid darkslategray;
    }

/* rj-button-text */
.rj-button-text {
    display: flex;
    align-items: center;
    color: darkslategray;
    cursor: pointer;
    padding: 5px 10px;
}

    .rj-button-text i {
        padding-right: 5px;
    }

    .rj-button-text:hover {
        color: darkslategray;
        font-weight: bold;
        border-bottom: 2px solid darkslategray;
    }

/* rj-button-icon */
.rj-button-icon {
    color: darkslategray;
    background-color:whitesmoke;
    cursor: pointer;
    padding: 10px 15px;
    border: 1px solid #ddd;
}

    .rj-button-icon i {
        padding-right: 5px;
    }

    .rj-button-icon:hover {
        color: white;
        background-color: darkslategray;
        font-weight: bold;
    }

/* rj-button-bar */
.rj-button-bar {
    padding: 12px 14px 12px 12px;
    cursor: pointer;
    color: darkslategray;
    /* font-weight: bold; */
    border-bottom: 2px solid white;
    min-width:80px;
}

    .rj-button-bar i {
        padding-right: 5px;
    }

    .rj-button-bar:hover {
        font-weight: bold;
        color: darkslategray;
        border-bottom: 2px solid darkslategray;
        padding: 10px 14px 14px 12px;
    }

.rj-button-combo {
    padding: 5px 10px;
    cursor: pointer;
    color: darkslategray;
    position: relative;
    font-weight: bold;
    text-align: left;
}

    .rj-button-combo .rj-absolute {
        display: none;
        background-color: white;
        position: absolute;
        left: 0px;
        top: 0px;
        border: 1px solid silver;
        z-index: 99999999;
        width: 100%;
    }

        .rj-button-combo .rj-absolute > div:hover {
            background-color: whitesmoke;
        }

/* rj-button-radius */
.rj-button-radius {
    cursor: pointer;
    padding: 5px 10px;
    border: 1px solid darkslategray;
    border-radius: 15px;
    font-weight:bold;
    margin-left: 10px;
    background-color: whitesmoke;
}

    .rj-button-radius:hover {
        font-weight: bold;
        background-color: darkslategray;
        color: white;
    }

.rj-button-inline {
    cursor: pointer;
    padding: 2px 5px;
    background-color: whitesmoke;
    border: 1px solid silver;
    border-radius: 5px;
    margin-left: 10px;
    margin-right: 10px;
}

    .rj-button-inline:hover {
        font-weight: bold;
        background-color: darkslategray;
        border: 1px solid darkslategray;
        color: white;
    }

.rj-check {
    display:flex;
    justify-content:left;
    align-items:center;
    cursor: pointer;
}

.rj-check i {
    font-size: 16px;
    padding-left: 5px;
    padding-right: 5px;
}

/************************************* rj-money */


.rj-flag {
    border:1px solid orangered;
    color: orangered;
    margin-left:5px;
    margin-right:5px;
    padding:0px 5px;
    border-radius:5px;
    background-color:white;
}

/************************************* rj-mark-red */
div.rj-mark-red {
    position: absolute;
    display: inline-block;
    color: yellow;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 16px;
    background-color: red;
}
div.rj-mark-triangle {
    position: absolute;
    display: inline-block;
    width: 0px;
    height: 0px;
    border: 5px solid transparent;
    display:none;
}

/************************************* rj-pagename */
div.rj-pagename {
    padding:5px;
    text-align:center;
    color:transparent;
    background-color:transparent;
}

div.rj-search {
    display:flex;
    align-items:center;
    padding-left:10px;
    border-radius:15px;
    border:1px solid darkslategray;
}
div.rj-search > i {
    color:silver;
}
div.rj-search > input {
    flex-grow:1;
    padding:5px;
    border:none;
}
div.rj-search > div {
    padding:3px 10px;
    margin:1px;
    border-radius:15px;
    background-color:darkslategray;
    color:white;
}
div.rj-search > span {
    padding:3px 10px;
    margin:1px;
    border-radius:15px;
    background-color:darkslategray;
    color:white;
}

/************************************* rj-number-set */
div.rj-number-set {
    display:inline-block;
    width:150px;
    padding-top:2px;
}
div.rj-number-set > i.fa-minus-square {
    font-size:16px;
    color:darkslategray;
}
    div.rj-number-set > i.fa-plus-square {
        font-size: 16px;
        color: darkslategray;
    }
    div.rj-number-set > input {
        border: none;
        border-bottom: 1px solid darkslategray;
        font-size: 16px;
        width: 25px;
        padding: 2px;
        text-align: center;
        margin: 0px 5px;
    }

/************************************* rj-combo */
div.rj-combo {
    position:relative;
    margin-left:5px;
    margin-top:5px;
}
div.rj-combo > div.title {
    display:flex;
    align-items:center;
    justify-content:space-between;
    background-color: whitesmoke;
    padding:5px;
    border:1px solid silver;
}
div.rj-combo > div.title > div {
    height: 20px;
    overflow-x:hidden;
    overflow-y:hidden;
}
div.rj-combo > div.title > i {
    margin-left:2px;
}
div.rj-combo > div.list {
    display:none;
    width:max-content;
    position:absolute;
    min-width:calc(100% - 2px);
    margin-top:-1px;
    border:1px solid silver;
    background-color:white;
    z-index:999999;
    max-height:60vh;
    overflow-y:scroll;
}
div.rj-combo > div.list > div {
    z-index:99999999;
    padding:5px;
    border-bottom: 1px solid whitesmoke;
}
    div.rj-combo > div.list > div > i {
        margin-right: 2px;
        font-size: 16px;
    }

.rj-datetime {
    border: 1px solid silver;
    width: 90px;
    padding: 5px;
    margin-right:10px;
    font-size: 16px;
}

/************************************* rj-errmsg */
div.rj-errmsg {
    text-align: center;
    padding: 50px 10px;
    border-radius: 5px;
    background-color: white;
    color: red;
    margin: 5px;
}

/************************************* PageMask */
div#__MaskOnly, div#__MaskPop, div#__MaskWait, div#__MaskToast, div#__MaskNotice,
div#__MaskMsg, div#__MaskFull, div#__MaskIframe, div#__MaskBottom {
    display: none;
    z-index: 99999999;
    position: fixed;
    background-color: black;
    opacity: 0.1;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
}

/************************************* MsgBox */
div#__MsgBox {
    display:none;
    position:fixed;
    z-index:99999999;
    border-radius:10px;
    width:100%;
    text-align:center;
    top:30%;
    left:40%;
    padding:0px;
}
div#__MsgBox > div:first-child {
    display:inline-block; 
    max-width:800px;
    background-color:whitesmoke;
    border-radius:10px;
    border:1px solid silver;
}
div#__MsgBoxTitle {
    border-radius:10px; 
    background-color:darkslategray; 
    color:white; 
    font-weight:bold; 
    text-align:center; 
    padding:5px 0px;
}
div#__MsgBoxContent {
    padding:20px;
    background-color:white;
    margin:10px 10px 0px 10px;
    border-radius:10px;
    font-weight:bold;
}
div#__MsgBoxButton {
    text-align:center;
    background-color:transparent;
    padding:20px 30px;
}
div#__MsgBoxButton .rj-button {
    margin: 0px 10px;
}

/************************************* MsgToast */
div#__MsgToast {
    display: none;
    align-items: center;
    justify-content:center;
}

div#__MsgToastBox {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: fixed;
    z-index: 99999999;
    text-align: center;
    background-color: darkslategray;
    color: yellow;
    top: 300px;
    padding: 50px;
    border-radius:10px;
}

    div#__MsgToastBox > i {
        padding: 0px 10px;
        font-size: 28px;
    }
    div#__MsgToastBox > div {
        color:yellow;
        font-weight: bold;
        font-size: 16px;
        max-width: 1000px;
    }

/************************************* MsgWait */
div#__MsgWait {
    display: none;
    position: fixed;
    z-index: 99999999;
    width: 100%;
    justify-content: center;
    align-items: center;
    top: 40%;
}

div#__MsgWaitBox {
    font-size: 16px;
    padding: 20px 30px;
    border-radius:5px;
    border: 1px solid whitesmoke;
    background-color:white;
    color: silver;
    font-weight: bold;
    display: flex;
    justify-content:center;
    align-items:center;
}
    div#__MsgWaitBox > i {
        color: darkslategray;
        font-size: 26px;
        font-weight:bold;
        margin-right: 20px;
    }

/************************************* RjCombo */
span#__COMBO_CANCEL {
    border-radius: 20px;
    background-color: indianred;
}
span#__COMBO_SELECT {
    background-color:darkslategray;
    border-radius:20px;
}
span#__COMBO_SEARCH {
    display:none;
    background-color:darkslategray;
    border-radius:20px;
}
div#__COMBO_NODATA {
    border:1px solid whitesmoke; 
    padding:50px 0px;
    text-align:center;
    font-weight:bold;
    color:darkslategray;
    background-color:whitesmoke;
}
div.__COMBO_ROW {
    display:flex;
    border:1px solid whitesmoke;
    border-top:1px solid white;
}
div.__COMBO_ROW_SELECT {
    width:60px;
    display:flex;
    align-items:center;
    text-align:center;
}
div.__COMBO_ROW_SELECT > span {
    border:1px solid darkslategray;
    background-color:whitesmoke;
    flex-grow:1;
    border-radius:5px;
    padding:5px 0px;
}
input#__COMBO_KEYWORD {
    flex-grow:1;
    width:0px;
    border-radius:15px; 
    padding:0px 10px; 
    border:1px solid silver;
}
div#__COMBO_TOP_SEARCH {
    display:flex;
    background-color:white;
    padding:5px 10px;
    margin-bottom:5px;
}
div#__COMBO_TOP_TITLE {
    color:darkslategray;
    font-weight:bold;
    padding-right:10px;
    align-self:center;
}
div#__COMBO_TOP_BTN {
    align-self:center;
    width:50px;
    padding:5px;
    background-color:white;
}
div.__COMBO_HEAD {
    display:flex;
    padding:5px 0px;
    font-weight:bold;
    background-color:whitesmoke;
    border-bottom:1px solid darkslategray;
}
div.__COMBO_CELL_HEAD {
    padding:5px 2px;
    width:0px;
    text-align:center;
}
div.__COMBO_CELL_CHECK {
    width:60px;
    padding:5px 2px;
    text-align:center;
}
div.__COMBO_ROW_CELL {
    padding:8px 5px;
    width:0px;
    text-align:left;
}

/************************************* PopBottom */
div#__PopBottom, div#__PopCombo {
    display: none;
    position: absolute;
    flex-direction: column;
    max-height: 95%;
    height:auto;
    z-index: 99999999;
    background-color: white;
    border-radius: 15px;
    text-align: center;
    border: 2px solid darkslategray;
    padding: 2px;
    bottom: 0px;
    right: 0px;
    left: 0px;
}
div#__PopBottomTitle {
    /* __PopBottomTitle */
    border-radius:15px;
    text-align:center;
    display:none;
    padding:8px;
    margin-bottom:5px;
    background-color:darkslategray;
    color:white;
    font-weight:bold;
}
i#__PopBottomClose, i#__PopComboClose {
    position: absolute;
    font-size: 16px;
}
i#__PopComboClose {
    color: darkslategray;
    right: 15px;
    top: 12px;
}

div#__PopBottomContent, div#__PopComboContent {
    flex: 1;
    text-align: left;
    padding: 5px 10px 10px 5px;
    overflow-y: auto;
    height: auto !important;
}

div#__KeyPad {
    display:none;
    width:100%;
    height:100%;
    padding-left:10%;
    padding-top:35%;
    text-align:center;
    position:absolute;
    top:0px;
    left:0px;
    z-index:99999999;
}
div.__KeyPad_Value {
    flex-grow: 1;
    padding: 8px 0px;
    margin: 2px;
    background-color: lightyellow;
    font-weight: bold;
    font-size: 16px;
    border: 1px solid silver;
}
i.__KeyPad_Check, i.__KeyPad_Clear, i.__KeyPad_Close {
    margin-left: 2px;
    padding: 10px;
    margin: 2px;
    text-align: center;
    background-color: white;
    font-size: 16px !important;
    border: 1px solid silver;
}
i.__KeyPad_Check
{
    width:40px;
    color:darkslategray;
}
i.__KeyPad_Clear
{
    width:30px;
    color:darkslategrey;
}
i.__KeyPad_Close
{
    width:30px;
    color:indianred;
}

div.__KeyPad_Num {
    width: 0px;
    flex-grow: 1;
    font-size: 16px;
    padding: 10px;
    border: 1px solid silver;
    border-radius: 5px;
    background-color: white;
    margin: 2px;
}

/************************************* PopFull */
div#__PopFull {
    display:none;
    position:absolute;
    background-color:white;
    z-index:99999999;
    top:0px;
    bottom:0px;
    right:0px;
    left:0px;
}
div#__PopFullTitle {
    display: flex;
    font-size: 16px;
    text-align: center;
    background-color: darkslategray;
    color: white;
    font-weight: bold;
    height: 50px;
    line-height: 50px;
}
    div#__PopFullTitle > i.fa-arrow-left {
        width: 30px;
        color: white;
        font-size: 16px;
        margin: 10px 0px 0px 5px;
    }
    div#__PopFullTitle > i.fa-times {
        width: 30px;
        color: white;
        text-align: left;
        font-size: 16px;
        margin: 10px 5px 0px 0px;
    }
    div#__PopFullTitle > div {
        flex-grow: 1;
        text-align: center;
        font-size: 16px;
        color: white;
    }
div#__PopFullContent {
    height:calc(100vh - 60px);
    text-align:left;
    padding:10px;
    overflow-y:auto;
    background-color:white;
}

div#__Iframe {
    display:none;
    position:absolute;
    background-color:white;
    z-index:99999999;
    top:0px;
    bottom:0px;
    right:0px;
    left:0px;
}
div#__IframeTitle {
    text-align:center;
    background-color:darkslategray;
    color:white;
    font-weight:bold;
    padding:10px;
}
iframe#__IframeWin {
    border:none;
    width:100%;
    height:100%;
}

/* rj-align */
.rj-align-right {
    text-align: right;
    justify-content: right;
}

.rj-align-left {
    text-align: left;
    justify-content: left;
}

.rj-align-center {
    text-align: center;
    justify-content: center;
}

/* rj-color */
.rj-color-qty {
    font-weight:bold;
    color: dodgerblue;
}

.rj-color-amt {
    font-weight:bold;
    color: orangered;
}

.rj-color-stock {
    color: orange;
    font-weight:bold;
    padding-left: 5px;
}

.rj-color-error {
    color: red;
    font-weight:bold;
    padding: 0px 5px;
}

/* rj-back */
.rj-back-white {
    background-color: white;
}

.rj-back-whitesmoke {
    background-color: whitesmoke;
}

.rj-back-silver {
    background-color: silver;
}

.rj-back-black {
    background-color: darkslategray;
}

.rj-back-mintcream {
    background-color: mintcream;
}

.rj-back-lightcyan {
    background-color: lightcyan;
}

.rj-back-lavenderblush {
    background-color: lavenderblush;
}

/* rj-font */
.rj-font-weight {
    font-weight: bold;
}

.rj-font-solid {
    font-weight: normal;
}

.rj-font-bigger {
    font-weight: bold;
    font-size: 16px;
}

.rj-cursor {
    cursor: pointer;
}

div.no-items {
    border-top: 1px solid silver;
    border-bottom: 1px solid silver;
    padding: 30px 0px;
    text-align: center;
}

.rj-icon-search, .rj-icon-add, .rj-icon-save, .rj-icon-delete,
.rj-icon-top, .rj-icon-down, .rj-icon-left, .rj-icon-right,
.rj-icon-download, .rj-icon-upload, .rj-icon-check, .rj-icon-user,
.rj-icon {
    padding: 5px;
    font-size: 16px;
}

div.rj_form {
    display: inline-block;
    width: auto;
    background-color: whitesmoke;
    color: #333;
}

    div.rj_form .form_row {
        display: table;
        width: auto;
        border-collapse: collapse;
        border: none;
    }

    div.rj_form .form_label {
        display: table-cell;
        font-weight: bold;
        padding: 5px;
        text-align: right;
        border: none;
    }

    div.rj_form .form_value {
        display: table-cell;
        padding: 5px;
        text-align: left;
        border: none;
    }

        div.rj_form .form_value input {
            width: 100%;
        }

.rj_button {
    display: inline-block;
    cursor: pointer;
    height: auto;
    width: auto;
    text-align: center;
    padding: 6px 15px;
    border: 1px solid darkcyan;
    color: black;
    border-radius: 25px;
    background-color: white;
    text-decoration: none;
}

div.rj_drag {
    z-index: 999999;
    position: absolute;
    width: auto;
    height: auto;
    left: 50%;
    top: 50vh;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid steelblue;
}

div.rj_drag_title {
    background-color: steelblue;
    color: white;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 0px;
    min-width: 200px;
    max-width: 1200px;
}

div.rj_drag_content {
    padding: 10px;
    background-color: whitesmoke;
}

div.rj_drag_button {
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: aliceblue;
    border-top: 1px solid silver;
    text-align: center;
}

/* rj_table */
div.rj_table {
    display: table;
    border-collapse: collapse;
    border: 1px solid silver;
    border-top: 2px solid darkslategray;
}

div.rj_header {
    display: table-header-group;
    font-weight: bold;
    border-collapse: collapse;
    background-color: whitesmoke;
}

div.rj_footer {
    display: table-footer-group;
    font-weight: bold;
    border-collapse: collapse;
    background-color: whitesmoke;
}

div.rj_row {
    display: table-row;
    background-color: white;
    border-collapse: collapse;
    border: 1px solid silver;
}

div.rj_cell {
    display: table-cell;
    padding: 5px;
    text-align: left;
    vertical-align: middle;
    border-collapse: collapse;
    border: 1px solid silver;
}

    div.rj_cell.cell_title {
        background-color: whitesmoke !important;
    }

div.rj_form {
    display: inline-block;
    width: auto;
    background-color: whitesmoke;
    color: #333;
}

    div.rj_form .form_row {
        display: table;
        width: auto;
        border-collapse: collapse;
        border: none;
    }

    div.rj_form .form_label {
        display: table-cell;
        font-weight: bold;
        padding: 5px;
        text-align: right;
        border: none;
    }

    div.rj_form .form_value {
        display: table-cell;
        padding: 5px;
        text-align: left;
        border: none;
    }

        div.rj_form .form_value input {
            width: 100%;
        }