:root {
    --table-height-offset: 17rem;
}

h2 {
    font-size: 1.3rem;
}

select.stateSelect,
div.ui.dropdown.stateSelect {
    width: 5rem;
    max-width: 5rem;
    min-width: auto;
}

fieldset {
    height: auto;
    border-radius: 0.5rem;
}

.ui.grid .column:not(.row) {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}


.ui.grid div.auto.column {
    padding: 0rem;
}

.ui.grid > div.row {
    padding-bottom: 0rem;
}

fieldset legend {
    font-weight: bold;
    color: #5b5b5b;
}

td input[type=text],
td select {
    width: 100%;
}


div.equal.width.grid div.spacer.one.wide.column {
    padding-left: 0rem;
    padding-right: 0rem;
    width: 0.8rem !important;
}

i.icon {
    margin-right: 0.5rem;
}


fieldset table {
    width: 100%;
}

table tr td {
    padding: 5px;
}

#content label {
    display: block;
    padding-top: 0.7rem;
}

#content .dataTables_filter label {
    padding-top: 0rem;
}

input[type=text],
select,
textarea {
    width: 100%;
    border: 1px solid #CCC;
    padding-left: 0.25rem;
    border-radius: 0.25rem;
}

fieldset table tr td:first-child {
    padding-left: 0px;
}

fieldset table tr td:last-child {
    padding-right: 0px;
}

table > label {
    display: block;
    color: #5b5b5b;
    color: gray;
    white-space: nowrap;
}

ul {
    margin-left: 1.5rem;
    list-style: inherit;
    list-style-type: circle;
}

.dataTables_scrollHead {
    border-bottom: 1px solid #C0C0C0 !important;
}

table.dataTable thead th, table.dataTable thead td {
    border-bottom: none;
}

.dataTables_scroll th {
    text-align: left;
}

table.dataTable thead th,
table.dataTable thead td {
    padding: 0px 10px;
    border-bottom-color: #C0C0C0;
}


table.dataTable tr td {
    padding: 2px 10px;
    white-space: nowrap;
    overflow: hidden; /* this is what fixes the expansion */
    text-overflow: ellipsis;
}

table.dataTable tr.selected td.select-checkbox:after, table.dataTable tr.selected th.select-checkbox:after {
    margin-top: -16px;
    margin-left: -5px;
}

table.dataTable tbody td.select-checkbox:before, table.dataTable tbody th.select-checkbox:before {
    margin-top: -12px;
}

table.dataTable.stripe tbody tr.odd, table.dataTable.display tbody tr.odd {
    background-color: #f5f5f5;
}

table.dataTable.stripe tbody > tr.even.selected, table.dataTable.stripe tbody > tr.even > .selected, table.dataTable.display tbody > tr.even.selected, table.dataTable.display tbody > tr.even > .selectedtable.dataTable.stripe tbody > tr.even.selected, table.dataTable.stripe tbody > tr.odd > .selected, table.dataTable.display tbody > tr.odd.selected, table.dataTable.display tbody > tr.odd > .selected {
    background-color: #1292cd;
    color: white;
}

table.dataTable.display tbody tr.odd > .sorting_1,
table.dataTable.display tbody tr.even > .sorting_1,
table.dataTable.display tbody > tr.odd.selected > .sorting_1,
table.dataTable.order-column.stripe tbody > tr.odd.selected > .sorting_1,
table.dataTable.display tbody > tr.odd.selected > .sorting_2,
table.dataTable.order-column.stripe tbody > tr.odd.selected > .sorting_2,
table.dataTable.display tbody tr.odd > .sorting_2,
table.dataTable.display tbody tr.even > .sorting_2,
table.dataTable.display tbody > tr.even.selected > .sorting_1,
table.dataTable.order-column.stripe tbody > tr.even.selected > .sorting_1,
table.dataTable.display tbody > tr.even.selected > .sorting_2,
table.dataTable.order-column.stripe tbody > tr.even.selected > .sorting_2 {
    background-color: inherit;
}

.dataTable.clickable tr:hover,
.dataTable.clickable tr.selected:hover {
    cursor: pointer;
    background-color: hsl(199deg 84% 88%) !important;
    color: black !important;
}

.fileuploader.has-advanced-upload {
    background-color: white;
    outline: 2px dashed black;
    outline-offset: -10px;
}

.fileuploader.has-advanced-upload .fileuploader_dragndrop {
    display: inline;
}

.fileuploader_dragndrop,
.fileuploader_uploading,
.fileuploader_success,
.fileuploader_error {
    display: none;
}

.fileuploader.is-dragover {
    background-color: grey;
}

.fileuploader.is-uploading .fileuploader_input {
    visibility: none;
}

.fileuploader.is-uploading .fileuploader_uploading {
    display: block;
}

div.tablebuttons,
div.tablefilters {
    display: none;
}

.dataTables_wrapper div.tablebuttons.visible {
    float: left;
    display: inline;
    margin-right: 2rem;
    margin-top: 0.3rem;
}

.dataTables_wrapper div.tablefilters {
    float: right;
    display: inline;
}

.dataTables_wrapper .dataTables_info {
    padding-top: 0rem;
    float: right;
    clear: inherit;
}

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper div.tablefilters {
    margin-bottom: 0.5rem;
    float: right;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .tablefilters input {
    height: 1.8rem;
}

table.dataTable thead th.select-checkbox {
    padding: 0px 6px;
    position: relative;
}

div.dataTables_scrollHead table.dataTable thead th.select-checkbox:before {
    content: ' ';
    margin-top: -6px;
    margin-left: -6px;
    border: 2px solid #1292cd;
    border-radius: 3px;
    color: blue;
}

div.dataTables_scrollHead table.dataTable thead th.select-checkbox:before,
div.dataTables_scrollHead table.dataTable thead th.select-checkbox:after {
    display: block;
    position: absolute;
    top: 0.75em;
    left: 50%;
    width: 12px;
    height: 12px;
    box-sizing: border-box;
}

div.dataTables_scrollHead table.dataTable th.selected.select-checkbox:after {
    margin-top: -16px;
    margin-left: -5px;
}

div.dataTables_scrollHead table.dataTable th.selected.select-checkbox:after {
    content: '\2714';
    margin-top: -11px;
    margin-left: -4px;
    text-align: center;
    text-shadow: 1px 1px #b0bed9, -1px -1px #b0bed9, 1px -1px #b0bed9, -1px 1px #b0bed9;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom-color: #C0C0C0;
}

body.mobile .dataTables_wrapper .dataTables_filter input {
    width: 8rem;
}

table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_both,
table.dataTable thead .sorting {
    white-space: nowrap;
    padding-right: 1.4rem;
}

div.dt-buttons {
    display: inline;
}

div.dt-buttons a.dt-button {
    margin-left: 0.6rem;
    margin-right: 0.6rem;
}

.ui.button.mini,
div.dt-buttons .dt-button {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    font-size: 0.85rem;
}

.ui.nogroup.icon.button span {
    margin-left: 0.25rem;
}

body.mobile .ui.nogroup.icon.button {
    margin-top: 0.25rem;
}

#content div.ui.checkbox label {
    padding-top: 0rem;
    display: inline;
}

#content .ui.toggle.checkbox box:before,
#content .ui.toggle.checkbox label:before,
#content .ui.toggle.checkbox box:after,
#content .ui.toggle.checkbox label:after {
    border: 1px solid lightgray !important;
}


div.content .ui.toggle.checkbox input:checked ~ .box:before,
div.content .ui.toggle.checkbox input:checked ~ label:before {
    background-color: #1292cd !important;
}

.ui.toggle.checkbox {
    padding-top: 0.5rem;
}

fieldset li {
    padding-top: 0.5rem;
}


.ui.attached.tabular.menu {
    min-height: var(--tabHeight);
    height: var(--tabHeight);
    overflow-x: auto;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

.ui.attached.tabular.menu .item.active {
    border-bottom: 1px solid white;
    z-index: 100;
}

.ui.tabular.menu::-webkit-scrollbar {
    display: none;
}

.ui.tab.active {
    height: calc(100% - var(--tabHeight));
    overflow: auto;
}

.ui.tab > fieldset {
    display: inline;
    vertical-align: top;
    min-height: 15rem;
}

.ui.mini.button,
div.dt-buttons .dt-button {
    margin-bottom: 0.4em;
    padding: .3em 1em;
    margin-left: 0em;
    margin-right: 0.1em;
}

.ui.selection.dropdown {
    padding: 3px;
    border-width: 2px;
    min-height: 1.8rem;
}

.ui.selection.dropdown {
    color: #5b5b5b;
}

.ui.selection.dropdown i.dropdown.icon {
    top: .35rem;
    right: .35rem;

}

.ui.dropdown .menu {
    max-height: 12rem !important;
}

.ui.search.selection.dropdown > input.search {
    padding: 3px;
}

.ui.card > .content {
    padding: 1rem;
}

.ui.card > .content > .header:not(.ui) {
    font-size: small;
}

.ui.card > .content > .header:not(.ui) > .content {
    padding: 0.5rem;
}

.ui.tabular.menu .item {
    color: #5b5b5b;
    text-transform: uppercase;
    font-size: smaller;
}

.ui.tabular.menu .item.disabled {
    color: rgba(40, 40, 40, .3);
}

#content .ui.bottom.tab {
    border-radius: 0rem 0rem 0.5rem 0.5rem;
    padding-top: 0.5rem;
    margin: 0;
    width: 100%;
    max-width: 100%;
    margin-top: -2px;
    border-top: 1px solid #D4D4D5;
}

body.mobile #content .ui.bottom.tab {
    padding: 0rem;
}

.removebutton img {
    height: 0.8rem;
    margin-top: 0.2rem;
}

div.DTS div.dataTables_scrollBody {
    background: inherit;
}

fieldset div.DTS div.top,
div.ui.tab div.DTS div.top {
    margin-top: 0.75rem;
}

fieldset div.DTS div.top.noButtonBar.noFilters.noOutputButtons,
div.ui.tab div.DTS div.top.noButtonBar.noFilters.noOutputButtons {
    margin-top: 0rem;
}

body.mobile fieldset div.DTS div.top,
body.mobile div.ui.tab div.DTS div.top {
    margin-top: 0.25rem;
    margin-left: 0.25rem;
    margin-right: 0.25rem;
}

#content fieldset.outline {
    margin: 0rem;
}

#content .ui.segment.outline {
    height: 100%;
}

body.mobile #content fieldset.outline,
body.mobile #content .ui.outline.segment {
    border: none;
    padding: 0.25rem;
}

fieldset div.DTS div.top.noFilters.noButtons.noOutputButtons {
    margin-top: -1rem;
}

div.rule .conditionGroup {
    margin-left: 1rem;
}

div.rule .ruleConditions {
    margin-left: 0.5rem;
}

textarea:focus, input:focus {
    outline: none;
}

.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}

/* Tooltip text */
.tooltip .tooltiptext {
    visibility: hidden;
    display: none;
    width: 120px;
    background-color: lightgray;
    color: black;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;

    /* Position the tooltip text - see examples below! */
    position: absolute;
    z-index: 1;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
    visibility: visible;
    display: block;
}


.ui.message.showmessage {
    position: absolute;
    box-shadow: 0 0 0 1px gray inset, 5px 10px 5px 5px rgba(0, 0, 0, .10) !important;
    font-size: small;
    z-index: 2000;
}

.ui.message.showmessage.info {
    background-color: white;
    color: #132137;
}

.ui.message.showmessage.info .header,
.ui.message.showmessage.info .content {
    color: black;
}

.ui.message.showmessage.info i.icon {
    color: #33a7de;
}

.ui.message.showmessage.top {
    top: 2em;
}

.ui.message.showmessage.bottom {
    bottom: 2em;
}

.ui.message.showmessage.left {
    left: 2em;
}

.ui.message.showmessage.right {
    right: 2em;
}

.ui.steps .step.active .title {
    color: var(--primaryColor);
}

button.nogroup.ui.button {
    vertical-align: middle;
    height: 1.8rem;
    border-radius: 1rem;
    line-height: 0.4rem;
    background-color: white;
    color: gray;
    border-color: lightgray;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    border: 1px solid lightgray;
}

button.ui.basic.button.disabled {
    box-shadow: 0 0 0 1px rgba(34, 36, 38, .15) inset !important;
}


button.nogroup.ui.button:focus {
    background-color: inherit;
    border-color: inherit;
}


.ui.modal > .header:not(.ui) {
    font-size: 1.1rem;
    line-height: 1rem;
    background-color: #132137;
    color: white;
}

.ui.modal {
    display: flex;
    flex-direction: column;
    z-index: -1;
}

.ui.active.modal {
    z-index: 100;
}

.ui.active.modal {
    display: flex !important;
    flex-direction: column;
}

.ui.modal .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
}

.ui.modal div.actions {
    width: 100%;
}

.ui.modal div.actions button.left {
    float: left;
}

@media only screen and (max-width: 767px) {
    .ui.modal .actions>.button {
        margin-bottom: 0;
    }

    .ui.modal .actions {
        margin-bottom: 1rem;
    }
}