/* Main form */

.cTable {
    display: block;
    padding: 0 0 2em 0;
}

.cTable table {
    border-collapse: collapse;
}

.cTable table th,
.cTable table td {
    padding: .5em 1em;
    text-align: left;
}

.cTable table th {
    vertical-align: middle;
}

.cTable table td {
    vertical-align: top;
}

.cTable .cTb_title {
    font-size: 1.4em;
}

/* Table header */

.cTable table thead th {
    border-bottom: 3px solid #555555;
}

.cTable table thead th,
.cTable table thead th a {
    color: #555555;
    font-weight: normal;
}

.cTable table thead .cTb_sortable a {
    background-image: url(../images/Sortable.png);
    background-position: center right;
    background-repeat: no-repeat;
    display: block;
    float: left;
    padding: 0 13px 0 0;
}

.cTable table thead .cTb_currentSort a {
    background-image: url(../images/Sorted.png);
    background-position: center right;
    background-repeat: no-repeat;
    display: block;
    float: left;
    padding: 0 13px 0 0;
}

.cTable table thead .cTb_currentSortRev a {
    background-image: url(../images/SortedRev.png);
    background-position: center right;
    background-repeat: no-repeat;
    display: block;
    float: left;
    padding: 0 13px 0 0;
}

/* Table body */

.cTable table tbody tr td {
    border-bottom: 1px solid #DDDDDD;
}

.cTable table tbody .cTb_noData {
    color: #888888;
    text-align: center;
}

/* Sortable body */

.cTb_draggable {
    width: 16px;
}

tbody .cTb_draggable {
    background-image: url(../images/Draggable.png);
    background-position: center center;
    background-repeat: no-repeat;
    cursor: move;
}

.cTb_dragging {
    background-color: #328AB2;
}

/* Table footer */

.cTable table tfoot td {
    text-align: right;
}

.cTable table tfoot td a {
    padding: 0 0 0 1em;
}

/* pagers */

.cTb_pager {
    display: inline-block;
    height: 2.5em;
    list-style: none;
    padding-right: 1em;
    text-align: center;
    vertical-align: top;
}

.cTb_pager .cTb_page {
    display: block;
    float: left;
    line-height: 1.5em;
    margin: .5em .5em .5em 0;
    min-height: 1.5em;
    min-width: 2em;
    white-space: nowrap;
}

.cTb_pager .cTb_prev,
.cTb_pager .cTb_next {
    min-width: 2.5em;
}

.cTb_pager .cTb_showAll {
    display: block;
    float: right;
    margin: .5em .5em .5em 0;
}

.cTb_pager li {
    color: #AAAAAA;
}

.cTb_pager a {
    color: #328AB2;
    display: block;
    text-decoration: none;
}

.cTb_pager .cTb_current {
    background-color: #E4F2FD;
    color: #555555;
    display: block;
    text-decoration: none;
}

/* goto page */

.cTb_goTo {
    display: inline-block;
    padding-right: 1em;
    vertical-align: top;
}

.cTb_goTo .cTb_goToText {
    border: .1em solid #3F4043;
    border-bottom-left-radius: 5px;
    border-top-left-radius: 5px;
    height: 1.5em;
    padding: .2em;
    vertical-align: middle;
    width: 3em;
}

.cTb_goTo button {
    border: .1em solid #3F4043;
    border-bottom-right-radius: 5px;
    border-left: none;
    border-top-right-radius: 5px;
    height: 1.9em;
    padding: 0 0.5em;
    vertical-align: middle;
}

.cTb_goTo button .ui-button-text {
    padding-top: 0.25em;
}

/* filter page */

.cTb_filter {
    display: inline-block;
    padding-right: 1em;
    vertical-align: top;
}

.cTb_filter .cTb_filterText {
    border: .1em solid #3F4043;
    border-bottom-left-radius: 5px;
    border-top-left-radius: 5px;
    height: 1.5em;
    padding: .2em;
    vertical-align: middle;
    width: 6em;
}

.cTb_filter button {
    border: .1em solid #3F4043;
    border-bottom-right-radius: 5px;
    border-left: none;
    border-top-right-radius: 5px;
    height: 1.9em;
    padding: 0 0.5em;
    vertical-align: middle;
}

.cTb_filter button .ui-button-text {
    padding-top: 0.25em;
}

/* cDisplay formating */

.cTb_compactColumn {
    width: 1px;
}

.cTb_listData {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5em;
    list-style: none;
}

.cTb_listData>li:not(:last-child)::after {
    content: ',';
}

.cTb_listData>li>* {
    display: inline-block;
    min-width: inherit;
}

/* cDisplay styles */

.cDsp_link,
.cDsp_popupLink {
    white-space: nowrap;
}

.cDsp_disabledLink {
    color: #888888;
    text-decoration: underline;
    white-space: nowrap;
}

.cDsp_state {
    background-position: center center;
    background-repeat: no-repeat;
    display: inline-block;
    height: 16px;
    overflow: hidden;
    text-indent: 99999px;
    width: 16px;
}

.cDsp_state_check {
    background-image: url(../images/State_On.png);
}

.cDsp_state_uncheck {
    background-image: url(../images/State_Off.png);
}

.cDsp_state_unknown {
    background-image: url(../images/State_Unknown.png);
}

.cDsp_image {
    width: 10rem;
}

/* display warning */
.cDsp_warning {
    min-width: 100px;
    padding: 5px;
}

.cDsp_text {
    min-width: 100px;
}

/* textMask display */

.cDsp_textMask {
    white-space: nowrap;
}

.cDsp_textMask_toggle {
    font-size: 0.9em;
    margin-left: 0.5em;
}

/* drawing display */

.cDsp_drawing {
    max-height: 10rem;
    max-width: 10rem;
}

.cDsp_drawingLink {
    white-space: nowrap;
}

/* signature display */

.cDsp_signature {
    display: none;
}

/* image display */

.cDsp_imagePreview {
    max-height: 10rem;
    max-width: 10rem;
}

.cDsp_imageLink {
    white-space: nowrap;

    & img {
        max-height: 10rem;
        max-width: 10rem;
    }
}

.cDsp_popupImageLink {
    white-space: nowrap;

    & img {
        max-height: 10rem;
        max-width: 10rem;
    }
}

/* button display */

.cDsp_button,
.cDsp_linkButton {
    min-height: 2em;
    padding: 0.2em 0.5em;
}

/* ajax display */

.cDsp_ajaxLink {
    white-space: nowrap;
}

.cDsp_ajaxDropdown select {
    border: .1em solid #3F4043;
    min-height: 1.5em;
    padding: .2em;
}