/** +------------------------------------------------+ **/
/** | Overrides and customer specific CSS rules here | **/
/** +------------------------------------------------+ **/

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Helvetica', 'Helvetica-Light', 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', 'Arial', 'Lucida Grande', sans-serif;
    font-size: 14px;
}

:root {
    --list-page-table-height: clamp(28rem, calc(100dvh - 13rem), 39rem);
    --list-page-table-border-color: #dee2e6;
    --list-page-table-row-height: 50px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 2000;
    padding: 0.75rem 1rem;
    background-color: #1b75bb;
    color: #fff;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: top 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 1rem;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.hidden {
    display: none !important;
    opacity: 0 !important;
}

.min-h-0 {
    min-height: 0 !important;
}

.error {
    color: #ff0700 !important;
}

.no-margin {
    margin: 0;
}

.no-padding {
    padding: 0;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.bold {
    font-weight: bold !important;
}

/**
+------------------------------------------------+
| Form Control 								     |
+------------------------------------------------+
**/
.form-control:focus,
.form-select:focus,
.multi-select-trigger:focus,
.multi-select-trigger:focus-visible,
.multi-select-trigger.show,
.multi-select-trigger[aria-expanded='true'],
.dropdown.show .multi-select-trigger,
.dropdown:focus-within .multi-select-trigger,
.ts-wrapper .ts-control {
    border-radius: var(--bs-border-radius, 0.375rem);
    border-color: var(--bs-border-color, #dee2e6);
    font-size: var(--bs-body-font-size, 1rem);
    color: var(--bs-body-color, #212529);
}

.ts-wrapper .ts-control .placeholder {
    color: var(--bs-secondary-color, rgba(33, 37, 41, 0.75));
}

.ts-wrapper.focus .ts-control,
.ts-wrapper:focus-within .ts-control {
    border-color: #cccccc;
    box-shadow: none;
    outline: 2px solid #1b75bb;
    outline-offset: 1px;
}

.was-validated select:valid + .ts-wrapper .ts-control {
    border-color: var(--bs-form-valid-border-color, #198754);
}

.was-validated select:invalid + .ts-wrapper .ts-control {
    border-color: var(--bs-form-invalid-border-color, #dc3545);
}

.ts-dropdown {
    z-index: 10000 !important;
}

.btn:focus-visible,
.form-range:focus-visible,
.dropdown-item:focus-visible,
a:focus-visible,
button:focus-visible,
[role='button']:focus-visible {
    outline: 3px solid #1b75bb;
    outline-offset: 2px;
}

.multi-select-trigger {
    cursor: pointer;
    width: 100%;
    min-width: 0;
}

.tooltip-inner {
    max-width: 16rem;
    font-size: 1.25rem;
    line-height: 1.35;
    padding: 0.5rem;
}

.list-page-page-size .form-select {
    cursor: pointer;
}

.list-page-page-size {
    width: 12rem;
    max-width: 100%;
}

.list-page-filter-dropdown {
    width: 12rem;
    max-width: 100%;
}

.list-page-filter-trigger-label {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-page-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3rem;
}

.list-page-header-main {
    min-width: 0;
}

.list-page-header-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex: 0 0 auto;
    min-height: 38px;
}

.list-page-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
}

.list-page-filter-item {
    min-width: 0;
    max-width: 100%;
}

.list-page-filter-item-grow {
    flex: 1 1 20rem;
}

.list-page-filter-item-auto {
    flex: 0 0 auto;
}

.list-page-split {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-page-split-pane {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
}

.list-page-table-frame {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: var(--list-page-table-height);
    min-height: var(--list-page-table-height);
    overflow: hidden;
}

.list-page-table-region {
    flex: 1 1 auto;
    min-height: 0;
}

.list-page-table-footer {
    flex: 0 0 auto;
}

.list-page-panel {
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background-color: var(--bs-body-bg);
    box-shadow: var(--bs-box-shadow-sm);
    height: var(--list-page-table-height);
    min-height: var(--list-page-table-height);
}

.list-page-detail-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.list-page-detail-card {
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background-color: var(--bs-body-bg);
    padding: 1rem;
}

.list-page-row-button {
    cursor: pointer;
}

.list-page-row-button:focus {
    outline: 2px solid #1b75bb;
    outline-offset: -2px;
}

.list-page-table .table-active {
    --bs-table-bg-state: rgba(27, 117, 187, 0.08);
}

.list-page-chart-empty-state {
    position: absolute;
    inset: 0;
    border: 1px dashed #d0d7de;
    border-radius: 0.5rem;
    background: linear-gradient(180deg, rgba(244, 245, 245, 0.35) 0%, rgba(255, 255, 255, 0.9) 100%);
    z-index: 1;
}

.list-page-chart-empty-state[hidden] {
    display: none !important;
}

.list-page-chart-shell canvas {
    width: 100% !important;
    height: 100% !important;
}

.pagination-footer-center {
    width: 100%;
}

.table-sort-button {
    display: inline-flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    min-height: 100%;
    padding: 0 0.5rem;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        background-color 0.15s ease-in-out,
        color 0.15s ease-in-out,
        box-shadow 0.15s ease-in-out;
}

.table-sort-button:hover,
.table-sort-button:focus-visible {
    background-color: rgba(27, 117, 187, 0.06);
    color: #1b75bb;
}

.table-sort-button.is-active {
    color: #1b75bb;
    background-color: transparent;
    box-shadow: none;
}

.table-sort-button.is-active:hover,
.table-sort-button.is-active:focus-visible {
    background-color: rgba(27, 117, 187, 0.06);
}

.table-sort-label {
    display: inline-flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.5rem 0;
}

.table-sort-icon-slot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    align-self: stretch;
    flex: 0 0 2rem;
    min-height: 2.5rem;
}

.table-sort-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    line-height: 1;
    min-height: 100%;
    font-size: 2.2rem;
    transition:
        transform 0.15s ease-in-out,
        color 0.15s ease-in-out;
}

.table-sort-icon.is-hidden {
    visibility: hidden;
}

.table-sort-icon.is-visible {
    visibility: visible;
}

.table-sort-button.is-active .table-sort-icon.is-visible {
    transform: translateY(-1px);
}

.list-page-table thead th {
    padding: 0 !important;
    vertical-align: middle;
    height: var(--list-page-table-row-height) !important;
    border-bottom: 1px solid var(--list-page-table-border-color) !important;
}

.pipeline-models-table thead tr th {
    padding: 0 !important;
}

.list-page-table thead th,
.list-page-table thead td,
.list-page-table tbody td,
.list-page-table tbody th {
    border-bottom-color: var(--list-page-table-border-color) !important;
}

.table-header-static {
    display: flex;
    align-items: center;
    min-height: 100%;
    padding: 0.5rem;
}

.list-page-table thead tr th:first-child .table-sort-button,
.list-page-table thead tr th:first-child .table-header-static {
    padding-left: 1rem;
}

.list-page-table thead tr th:last-child .table-sort-button,
.list-page-table thead tr th:last-child .table-header-static {
    padding-right: 1rem;
}

.list-page-table tbody tr > :first-child {
    padding-left: 1rem;
}

.list-page-table tbody tr > :last-child {
    padding-right: 1rem;
}

.list-page-table tbody tr {
    height: var(--list-page-table-row-height);
}

.list-page-table tbody td,
.list-page-table tbody th {
    height: var(--list-page-table-row-height) !important;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    vertical-align: middle;
}

.list-page-table tbody tr:last-child > * {
    border-bottom: 1px solid var(--list-page-table-border-color) !important;
}

.fluid-manager-list {
    min-height: 100%;
}

.fluid-manager-list > .list-page-table {
    height: 100%;
}

@media (min-width: 768px) {
    .pagination-footer-center {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: auto;
    }
}

@media (min-width: 1200px) {
    .list-page-header {
        flex-direction: row;
        align-items: flex-start;
    }

    .list-page-header-main {
        flex: 1 1 auto;
    }

    .list-page-header-actions {
        justify-content: flex-end;
        min-width: 12rem;
    }

    .list-page-split {
        flex-direction: row;
    }
}

.form-horizontal .form-group {
    margin: 0;
}

/**
+------------------------------------------------+
| Layout Positioning 							|
+------------------------------------------------+
**/
.left-0 {
    left: 0 !important;
}

/**
+------------------------------------------------+
| Modal Dialogue								 |
+------------------------------------------------+
**/

.modal.fade {
    opacity: 100 !important;
}

.modal-content {
    overflow: hidden;
}

.modal-content {
    background-color: #fff;
    color: #000;
}

.modal-body input {
    color: #000;
}

/**
+------------------------------------------------+
| Select2							 			 |
+------------------------------------------------+
**/
.select2-container {
    width: 100% !important;
    padding: 0;
}

/**
+------------------------------------------------+
| Navigation bars  			 					 |
+------------------------------------------------+
**/

.navbar-default {
    background-color: #2c2c2c;
}

.navbar-static-side {
    width: 220px !important;
    height: 100%;
    position: fixed;
}

.logo {
    height: inherit;
}

.logo a {
    margin: 0 auto;
}

.profile-element {
    height: 100%;
}

.signout {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.signout li {
    text-align: center;
}

.signout-button .nav {
    border-top: 2px solid #252525;
}

.signout-button {
    color: #fff;
    padding: 1em;
    text-align: center;
    position: absolute;
    bottom: 0;
    width: 100%;
}

/**
+------------------------------------------------+
| Input  										 |
+------------------------------------------------+
**/
.invalid-feedback {
    font-size: 0.875em;
}

.badge {
    font-size: 0.875rem;
}

/**
+------------------------------------------------+
| Buttons  										 |
+------------------------------------------------+
**/
.btn-primary {
    background-color: #1b75bb;
    border: 1px solid #1b75bb;
}

.btn-info {
    background-color: #29aae1;
    border: 0;
    color: #fff;
}

.btn-info:hover {
    background-color: #29aae1;
    border: 0;
}

/**
+------------------------------------------------+
| Content  										 |
+------------------------------------------------+
**/

.content .nav-pills {
    padding-right: 3px;
}

.content .nav-pills > li {
    width: 50%;
}

.content .nav-pills > li > a,
.content .nav-pills > li.active > a {
    margin: 2px 0 0 2px;
    background-color: #2c2c2c;
    text-align: center;
}

.content .nav-pills > li + li {
    margin-left: 0 !important;
}

.content {
    position: absolute;
    bottom: 0;
    top: 54px;
    left: 221px;
    right: 0;
    color: #fff;
    font-weight: normal;
}

/**
+------------------------------------------------+
| Dashboard  									 |
+------------------------------------------------+
**/

.dashboard {
    margin: 2em;
}

.dashboard .row button {
    width: 100%;
}

.search-bar {
    background-color: white !important;
}

i.form-control-feedback.glyphicon.glyphicon-search {
    color: #c3c3c3;
    line-height: 30px !important;
    height: 30px;
}

/**
+------------------------------------------------+
| Features  									 |
+------------------------------------------------+
**/
.search {
    margin: 2em 0 2em 0;
    padding: 0 2em 0 2em;
    width: 50%;
}

.features table > thead th:first-of-type {
    border-top-left-radius: 50px !important;
}

.features .table > thead,
.features .table > thead th:last-of-type {
    background-color: transparent !important;
}

.features .table > thead > tr > th {
    font-weight: normal;
    background-color: transparent !important;
}

#checked-features-tab > a {
    opacity: 0.5;
}

/**
+------------------------------------------------+
| Password  									 |
+------------------------------------------------+
**/
.password {
    width: 50%;
    margin: 2em;
}

/**
+------------------------------------------------+
| Chapters Page									 |
+------------------------------------------------+
**/

#chapter-control table td {
    vertical-align: middle;
}

/**
+------------------------------------------------+
| Document										 |
+------------------------------------------------+
**/
.document .content {
    top: 0;
    left: 0;
}

/*.document .content .link-tools {
	display: none;
}

.document.content .tool-remove {
	display: block;
}*/

/**
+------------------------------------------------+
| Panels  										 |
+------------------------------------------------+
**/

/**
+------------------------------------------------+
| Chart CSS								 		 |
+------------------------------------------------+
**/

.chart {
    color: #fff;
}

.chart .container {
    width: auto !important;
    margin-left: initial;
}

.chart .options-container {
    margin-top: 30px;
    font-size: 20px;
}

.chart .table-container {
    padding-top: 30px;
    float: left;
}

.chart .chart-container {
    float: left;
    margin-bottom: 16px;
}

.chart select,
input[type='color' i][list] {
    background-color: transparent !important;
    min-width: 200px;
}

.chart .time-arrow,
.chart .animate {
    background-color: transparent !important;
    border: 1px solid rgba(128, 128, 128, 1);
    display: inline-block;
}

.chart .time-arrow-left {
    margin-right: 16px;
}

.chart .time-arrow-left:hover,
.chart .time-arrow-left:focus,
.chart .time-arrow-right:hover,
.chart .time-arrow-right:focus,
.chart .animate:hover,
.chart .animate:focus {
    color: #fff;
}

.chart .time-arrow-right {
    margin-left: 16px;
}

.bg-color-grey {
    background-color: #2c2c2c;
}

.bg-color-darkgrey {
    background-color: #1e1e1e;
}
