
.rp-gen {
    max-width: 100%;
    max-height: 100%;
    position: relative;
    overflow: hidden;
}

    .rp-gen table {
        position: relative;
        /*border-collapse: separate;*/
        table-layout: fixed;
        white-space: nowrap;
        width: 0px;
        empty-cells: show;
    }

        .rp-gen table th,
        .rp-gen table td {
            position: relative;
            border: 1px solid #ddd;
            font-weight: 300;
            padding: 0;
            margin: 0;
            overflow: hidden;
            white-space: nowrap;
            unicode-bidi: plaintext;
        }

        .rp-gen table th {
            background-color: #f2f2f2;
            text-align: center;
            /*padding: 3px;*/
            padding-left: 3px;
            padding-right: 3px;
        }


        .rp-gen table tbody th {
            min-width: 40px;
        }


        .rp-gen table td {
            background: #fff;
            direction: rtl;
            text-align: right;
            color : black;
        }

            .rp-gen table td.hot {
                background: #ddd;
            }

            .rp-gen table td.hd {
                background-color: #e1e1e1;
            }

            .rp-gen table td > input {
                position: absolute;
                top: 0;
                width: 100%;
                height: 100%;
                padding: 2px;
                outline: none;
                font-weight: 200;
                unicode-bidi: plaintext;
            }

            .rp-gen table td.active span {
                display: none;
            }


    .rp-gen .warning-cell {
        position: absolute;
        z-index: 20;
        right: 2px;
        top: 2px;
        padding: 1px;
        margin: 0;
    }

    .rp-gen table td > ul.cell-infos {
        position: absolute;
        z-index: 20;
        left: 2px;
        top: 2px;
        padding: 1px;
        margin: 0;
        z-index: 100000;
    }

        .rp-gen table td > ul.cell-infos li {
            list-style: none;
            float: right;
            margin-left: 3px;
        }

    .rp-gen .cell-input {
        border: 0 none;
        background-color: transparent;
        caret-color: transparent;
    }


select::-ms-expand {
    display: none;
}

.font-select {
    width: 78px;
    border: none;
    font-size: 11px;
    color: #303030;
    font-weight: 400;
    outline: none;
}

    .font-select:after {
        content: "\f107";
        position: absolute;
        right: 15px;
        top: 5px;
        display: inline-block;
        font: normal normal normal 14px/1 FontAwesome;
        font-size: 21px;
        text-rendering: auto;
        -webkit-font-smoothing: antialiased;
    }

.triangle-datatype {
    width: 0;
    height: 0;
    border-bottom: 5px solid green;
    border-right: 5px solid transparent;
    position: absolute;
    left: 0;
    bottom: 0px;
}

.triangle-format {
    width: 0;
    height: 0;
    border-bottom: 5px solid red;
    border-left: 5px solid transparent;
    position: absolute;
    right: 0;
    bottom: 0px;
}

.triangle-xbrl {
    width: 0;
    height: 0;
    border-top: 5px solid #52c5f4;
    border-left: 5px solid transparent;
    position: absolute;
    right: 0;
    top: 0px;
}

.triangle-desc {
    width: 0;
    height: 0;
    border-top: 5px solid #52c5f4;
    border-right: 5px solid transparent;
    position: absolute;
    left: 0;
    top: 0px;
}

.rp-gen .cross-cell {
    resize: none;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
}

.rp-gen-col {
    /*width: auto !important;*/
}


/*.tcs::selection {
    background-color: transparent;
}*/

.tcs td:not(.tcs-selection-enabled) > *,
.tcs td:not(.tcs-selection-enabled) {
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

.first-cell,
.rp-gen-col {
    -webkit-user-select: all !important;
    -moz-user-select: all !important;
    -ms-user-select: all !important;
    user-select: all !important;
}

    .first-cell::selection,
    .first-cell > *::selection,
    .rp-gen-col::selection,
    .rp-gen-col > *::selection {
        background-color: transparent !important;
    }

/*.tcs tr::selection,
.tcs td:not(.tcs-selection-enabled) > *::selection,
.tcs th:not(.tcs-selection-enabled) > *::selection,
.tcs td:not(.tcs-selection-enabledd)::selection,
.tcs th:not(.tcs-selection-enabled)::selection,
.tcs br::selection {
    background-color: transparent;
}

.tcs tr::-moz-selection, .tcs td:not(.tcs-selection-enabled)::-moz-selection, .tcs th:not(.tcs-selection-enabled)::-moz-selection {
    background-color: transparent;
}*/

.tcs .tcs-selected:not(.sel-from) {
    border: 1px double #4887C7;
    background-color: rgba(51, 122, 183, 0.2) !important;
}

.rp-toolbar .selectize-control {
    display: inline-block !important;
}

.tcs-selected:not(.sel-from) {
    border: 1px double #4887C7;
    background-color: rgba(51, 122, 183, 0.2) !important;
}

.selected-tools {
    border: 1px double #4887C7;
    background-color: rgba(51, 122, 183, 0.2)
}

.tool-seprator {
    display: inline-block;
    height: 22px;
    width: 1px;
    background: black;
    margin-right: 5px;
    margin-left: 5px;
    vertical-align: middle;
}


.ruler-a4-port {
    position: absolute;
    width: 210mm;
    height: 297mm;
    top: 48px;
    right: 60px;
    border: 1px solid red;
}

.ruler-a4-land {
    position: absolute;
    width: 297mm;
    height: 210mm;
    top: 48px;
    right: 60px;
    border: 1px solid red;
}

.ruler-a3-port {
    position: absolute;
    width: 297mm;
    height: 420mm;
    top: 48px;
    right: 60px;
    border: 1px solid red;
}

.ruler-a3-land {
    position: absolute;
    width: 420mm;
    height: 297mm;
    top: 48px;
    right: 60px;
    border: 1px solid red;
}

.toolbar-btn {
    padding: 2px;
}

.toolbar-ns-btn {
    padding: 2px;
}

.cell-input {
    font-family: "Nazanin";
    font-size: 12px;
}


.border-palette {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    margin-right: 6%;
}


.border-palette li {
    font-size: 1px;
    border: solid 1px #c0c0c0;
    padding: 7px;
    cursor: pointer;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


.warning-sign {
    position: absolute;
    top: 4px;
    right: 5px;
}