:root {
    --body-background: #f1f5f9;
    --text-color: #212529;
    --text-color-secondary: #333333;
    --text-muted-color: #64748b;
    --text-code-color: #334155;
    --text-prompt-color: #94a3b8;
    --link-color: #0278ae;
    --primary-color: #0278ae;
    --primary-tint-color: rgba(2, 120, 174, 0.1);
    --primary-border-color: rgba(2, 120, 174, 0.3);
    --accent-color: #f39523;
    --menu-link-color: #ffffff;
    --menu-tab-bg-color: rgba(255, 255, 255, 0.25);
    --panel-bg-color: #ffffff;
    --alt-panel-bg-color: #f9fbfc;
    --panel-bg-subtle-color: rgba(248, 250, 252, 0.7);
    --panel-footer-bg-color: #f8fafc;
    --table-header-bg-color: #edf6fc;
    --table-row-hover-bg-color: #fefee2;
    --border-color: #e2e8f0;
    --line-color: #cfdbe6;
    --input-border-color: #cccccc;
    --input-text-color: #4c4c4c;
    --input-border-radius: 4px;
    --status-menu-border-color: rgba(29, 112, 147, 0.3);
    --error-color: red;
    --icon-green: #4caf50;
    --button-text-color: #fff;
    --button-disabled-bg-color: #c5bbbb;
    --popup-shadow-color: #777777;
    --notification-success-bg-color: #f0fef0;
    --notification-success-border-color: #4caf50;
    --notification-success-icon-color: #388e3c;
    --notification-warning-bg-color: #fff8ec;
    --notification-warning-border-color: #e3ba3f;
    --notification-warning-icon-color: #fec007;
    --notification-error-bg-color: #fdf1ee;
    --notification-error-border-color: #ec6e6e;
    --notification-error-icon-color: #f44336;
    --spinner-color: #8193b6;
    --spinner-highlight-color: #ff6600;
    --border-radius: 8px;
    --layout-width: 1020px;
    --font-mono: "Liberation Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/*---------------------- MAIN ----------------------*/

*, ::after, ::before {
    box-sizing: border-box;
}
* {
    margin: 0;
}

body {
    background-color: var(--body-background);
    color: var(--text-color);
    padding: 0;
    overflow-y: scroll;
}

body, td, th, input, textarea, select, button {
    font-family: Inter, sans-serif;
    font-size: 14px;
    line-height: 18px;
}

.header, .menuBar, .mainForm {
    width: var(--layout-width);
    margin: 0 auto;
}

a, a:visited {
	color: var(--link-color);
	text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

b, .bold {
	font-weight: 500;
}
.ui-widget b {
    font-weight: bold;
}

hr {
    border: none;
    border-bottom: 1px solid var(--border-color);
    height: 1px;
    width: 100%;
}

.noWrap {
  white-space: nowrap;
}

.mainForm {
    margin: 20px auto;
    padding: 20px 16px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: var(--panel-bg-color);
}

.headerFull {
  background: var(--primary-color);
  color: var(--menu-link-color);
}

.header {
    overflow: auto;
    padding: 8px 0 3px 0;
    position: relative;
}

.headerLogo {
  display: flex;
	margin-top: 12px;
}

.logo {
  height: 36px;
  width: 36px;
  margin-right: 12px;
}
.headerTitle {
  font-size: 20px;
  font-weight: 600;
  flex-grow: 1;
  display: flex;
  align-items: center;
  color: var(--menu-link-color);
}

.statusMenu {
    float: right;
    line-height: 20px;
  	overflow: auto;
  	display: flex;
}

.statusMenuItem {
    padding: 0 4px;
    border-right: 1px solid var(--status-menu-border-color);
}
.statusMenuItem .icon {
	margin-right: 8px;
}

.statusMenuItem, .statusMenuItem a {
    display: flex;
    justify-content: center;
    align-items: center;
	  color: var(--menu-link-color);
	  text-decoration: none;
}
.statusMenuItem a:hover {
	text-decoration: underline;
}
.statusMenuItem-logout {
	border-right: none;
}
.statusMenuItem + .statusMenuItem {
  margin-left: 4px;
  padding-left: 10px;
  border-left: 1px solid var(--menu-link-color);
}

.textBox {
    float: right;
    border-radius: 5px;
    width: 340px;
    margin: 3px 0px 0px 0px;
    font-size: 11.5px;
}

ul {
    margin: 0;
    padding: 4px 16px 0;
}

.informationBox {
    border-radius: var(--border-radius);
    clear: both;
    overflow: auto;
    color: var(--text-color-secondary);
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    background-color: var(--alt-panel-bg-color);
}

.icon {
	height: 100%;
	width: 20px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
}
.icon svg {
	width: 100%;
	height: 100%;
}

.preserveBreaks {
  white-space: pre-wrap;
}

/*---------------------- DIALOGS ----------------------*/
.no-close .ui-dialog-titlebar-close {
	display: none;
}
.ui-dialog-content {
    line-height: 1.5em;
}
.ui-dialog-pre {
    white-space: pre;
}
.ui-button-icon-only .ui-icon {
    margin-left: -9px;
}

/*---------------------- MENU BAR ----------------------*/
.menu {
    float: left;
    font-size: 15px;
  	line-height: 18px;
    margin-top: 4px;
}

.menu:first-child {
    border-left: 0px;
    margin-left: 0px;
}

.menu:hover, .menuActive {
    background-color: var(--menu-tab-bg-color);
    border-radius: 12px 12px 0 0;
}

.menu + .menu {
    margin-left: 5px;
}

.menuLink, .menuLink:hover, .menuLink:visited {
    color: var(--menu-link-color);
    display: flex;
    padding: 0 18px;
    height: 42px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
}

.menu .icon {
	height: 100%;
	width: 18px;
	margin-right: 8px;
}

.menuLinkWithIcon, .menuLinkWithIcon:hover {
    background-repeat: no-repeat;
    background-position: 8px 5px;
    padding-left: 35px;
}

.menuBarFull {
	background: var(--primary-color);
	clear: both;
	overflow: hidden;
	position: sticky;
	top: 0;
	z-index: 9999;
}

/*---------------------- HEADINGS ----------------------*/

.heading {
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    clear: both;
    font-weight: 500;
    font-size: 16px;
    margin: 20px 0 8px;
    padding-bottom: 8px;
    display: flex;
    align-items: flex-end;
}

.headingLite {
    color: var(--primary-color);
    clear: both;
    margin-top: 18px;
    margin-bottom: 5px;
    padding-bottom: 4px;
    font-size: 15px;
}

.mainForm > .headingLite:first-of-type {
	margin-top: 0;
}

.mainHeading {
    margin-top: 0px;
    font-size: 24px;
    font-weight: normal;
    margin: 0px 0 12px;
    padding-bottom: 12px;
}

.subHeading {
    font-size: 20px;
    margin-top: 35px;
}
.section {
    overflow: auto;
}

/*---------------------- HOME PAGE ----------------------*/

.currentReleaseContainer {
    display: flex;
    align-items: flex-start;
    line-height: 1.5em;
    overflow: auto;
    gap: 16px;
}
.currentReleaseContainer .releaseContent {
    flex-grow: 1;
}
.currentReleaseContainer .releaseActions {
    display: flex;
    flex-direction: column;
    padding-top: 8px;
    gap: 10px;
    align-items: flex-end;
    justify-content: flex-end;
}
.currentReleaseContainer .releaseLinks {
    display: flex;
    padding-top: 8px;
    gap: 16px;
}
.currentReleaseContainer .releaseActions .buttonContainer button {
    padding: 12px 30px;
    font-size: 16px;
}

/*---------------------- GUEST HOME PAGE ----------------------*/

/* The guest home renders its own card, so the default mainForm panel is neutralized. */
.mainForm:has(> .home) {
    padding: 0;
    border: none;
    background-color: transparent;
}

.home {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--panel-bg-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    color: var(--text-color);
    font-size: 15px;
    font-weight: 400;
    line-height: 24.38px;
    -webkit-font-smoothing: antialiased;
}

.home a,
.home a:visited {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.home a:hover {
    text-decoration: underline;
}

.home .card-header {
    display: grid;
    gap: 7px;
    padding: 28px 32px 20px;
    border-bottom: 1px solid var(--border-color);
}

.home .card-title {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
}

.home .card-subtitle {
    color: var(--text-muted-color);
}

.home .card-body {
    display: grid;
    gap: 40px;
    padding: 28px 32px 32px;
}

.home .section-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
}

/* Evaluation Section */
.home .eval-section {
    display: grid;
    gap: 7px;
}

.home .eval-metrics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 13px;
}

.home .metric-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 32px;
}

.home .metric-item + .metric-item {
    padding: 0 0 0 32px;
    border-left: 1px solid var(--border-color);
}

.home .icon-badge {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-tint-color);
    color: var(--primary-color);
}

.home .icon-badge--outline {
    border: 1px solid var(--border-color);
    background: var(--panel-bg-color);
}

.home .metric-label {
    color: var(--text-muted-color);
    font-size: 12px;
    line-height: 16px;
}

.home .metric-value {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

/* Quick Start Section */
.home .quickstart-section {
    display: grid;
    gap: 16px;
}

.home .install-card {
    display: grid;
    gap: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--panel-bg-subtle-color);
}

.home .install-card--spacious {
    gap: 20px;
    padding-top: 28px;
}

.home .install-card--manual {
    padding-top: 28px;
}

.home .install-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.home .install-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 600;
    line-height: 22.5px;
}

.home .install-title svg {
    flex-shrink: 0;
    color: var(--primary-color);
}

.home .install-subtitle {
    color: var(--text-muted-color);
    font-size: 14px;
    line-height: 20px;
}

.home .pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    background: var(--primary-tint-color);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    white-space: nowrap;
}

/* Stepper List */
.home .step-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.home .step-item {
    position: relative;
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    column-gap: 16px;
    row-gap: 8px;
    padding: 10px 0;
}

.home .step-item:not(:first-child)::before,
.home .step-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 14px;
    width: 1px;
    background: var(--line-color);
}

.home .step-item:not(:first-child)::before {
    top: 0;
    height: 24px;
}

.home .step-item:not(:last-child)::after {
    top: 24px;
    bottom: 0;
}

.home .step-number {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
}

.home .step-item strong {
    font-weight: 600;
}

.home .code-block {
    grid-column: 2;
    justify-self: start;
    max-width: 872px;
    margin-bottom: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--panel-bg-color);
    color: var(--text-code-color);
    font: 400 13px/19.5px var(--font-mono);
}

.home .code-prompt {
    margin-right: 6px;
    color: var(--text-prompt-color);
    user-select: none;
}

.home .inline-code {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 7px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--panel-bg-color);
    color: var(--text-code-color);
    font: 400 13px/21.13px var(--font-mono);
}

.home .inline-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.home .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--primary-border-color);
    border-radius: 6px;
    background: var(--panel-bg-color);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.home .btn-outline:hover {
    background: var(--primary-tint-color);
    text-decoration: none;
}

/* Card Footer */
.home .card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 32px;
    border-top: 1px solid var(--border-color);
    background: var(--panel-footer-bg-color);
}

@media (max-width: 760px) {
    .mainForm:has(> .home) {
        margin: 24px auto 40px;
    }

    .home .card-header {
        padding: 24px 20px 18px;
    }

    .home .card-body {
        gap: 32px;
        padding: 24px 20px;
    }

    .home .card-footer {
        align-items: flex-start;
        padding: 16px 20px;
    }

    .home .eval-metrics {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .home .metric-item,
    .home .metric-item + .metric-item {
        padding: 0;
        border-left: none;
    }

    .home .install-card {
        padding: 20px;
    }

    .home .install-header {
        flex-wrap: wrap;
    }

    .home .code-block {
        max-width: 100%;
        overflow-x: auto;
    }
}

/*---------------------- DATA TABLES ----------------------*/
.dataTable {
	margin: 0px;
	padding: 0px;
	width: 100%;
  border: 1px solid var(--border-color);
}
.previousReleases {
    margin-top: 15px;
}

.dataTable table {
    border-collapse: collapse;
    border-spacing: 0px;
	width: 100%;
	height: 100%;
	margin: 0px;
	padding: 0px;
}
.dataTable tr:not(:last-of-type) {
    border-bottom: 1px solid var(--border-color);
}
.dataTable tr:hover td {
	cursor: pointer;
}
.noRowClick tr:hover td {
    cursor: default;
}

.dataTable tr:nth-child(odd) {
	background-color: var(--alt-panel-bg-color);
}

.dataTable tr:nth-child(even) {
	background-color: var(--panel-bg-color);
}
.dataTable tr:hover {
    background-color: var(--table-row-hover-bg-color);
}

.dataTable td {
	vertical-align: middle;
    line-height: 18px;
    height: 42px;
    padding: 6px 12px;
}

.dataTable tr:first-child td {
	background-color: var(--table-header-bg-color);
	font-weight: 500;
	cursor: auto;
}
.dataTable .icon {
	display: flex;
	margin: auto;
	color: var(--text-color-secondary);
	height: 100%;
	width: 20px;
}
.dataTable .icon-green {
	color: var(--icon-green);
}

/*---------------------- FORM ----------------------*/

.searchFilters {
    overflow: auto;
    margin-bottom: 20px;
}

.formBox {
    width: 100%;
    display: table;
}

.formRow {
    display: table-row;
}

.fieldName, .fieldNameCentered {
    width: 20%;
    white-space: nowrap;
    padding-right: 25px;
}
.fieldName, .fieldNameCentered, .fieldText {
    display: table-cell;
    vertical-align: top;
	padding-top: 15px;
	padding-bottom: 10px;
}
.fieldNameCentered {
    padding-top: 0;
    padding-bottom: 0;
    vertical-align: middle;
}

.formRowError .fieldName, .error {
	color: var(--error-color);
}

.fieldInput {
    width: 340px;
    display: table-cell;
	line-height: 34px;
	vertical-align: bottom;
}

.actionBar {
    margin: 22px 0;
    overflow: auto;
    clear: both;
}
.actionBar-bottom {
    margin-bottom: 0;
}
.actionBar > .leftActions {
    float: left;
    overflow: auto;
}
.actionBar > .leftActions > * {
    margin-right: 10px;
 }
.actionBar > .rightActions {
    float: right;
    overflow: auto;
}
.actionBar > .rightActions > * {
    margin-left: 10px;
 }

/*---------------------- INPUT FIELDS ----------------------*/
.textInput, .dateInput, select, textarea {
    border-radius: var(--input-border-radius);
    border: 1px solid var(--input-border-color);
    color: var(--input-text-color);
    background-color: var(--panel-bg-color);
    padding: 8px;
    margin: 8px 0px;
    height: 32px;
}

textarea, textarea.textInput {
  height: auto;
}

.textInput:focus, .dateInput:focus, select:focus, textarea:focus {
    border: 1px solid var(--primary-color);
    outline: none;
}

.textInput, select, textarea {
    width: 100%;
}

.textInput.withInfo, select.withInfo, textarea.withInfo {
    width: 95%;
}

textarea {
    height: 10em;
}

.dateInput, input[type=password], input[type=number], .smallInput {
    width: 200px;
}

.formRowError .textInput, .formRowError .dateInput, .formRowError select, .formRowError .checkInput {
	border-color: var(--error-color);
}

.textInputsmall {
    width: 160px;
    float: right;
}

.fieldURL {
    font-size: 12px;
    font-style: italic;
    margin-right: 10px;
    float: left;
    line-height: 24px;
}

input[type="radio"] {
    margin: 0px;
}

input[type="radio"],
input[type="checkbox"] {
	margin-right: 3px;
}
.required {
	color: var(--error-color);
	font-size: 14px;
}

select {
    padding: 6px 4px;
}

.checkInput {
    margin: 2px 6px 0px 0px;
}

.fieldText span,
.fieldInput span {
    margin-left: 10px;
}

.fieldInput .info-icon {
    transform: translateY(5px);
    cursor: pointer;
    color: var(--primary-color);
}

.fieldInput span:first-child {
    margin-left: 0px;
}

.fieldText > label,
.fieldInput > label {
	margin: 0px 10px 0px 0px;
}

.rangeSeparator {
	margin: 0 4px !important;
}

.checkboxes > span {
	display: block;
	margin-left: 0px;
	margin-top: 5px;
}
.checkboxes > span:first-child {
	margin-top: 0px;
}

.fieldInput > span > input {
    margin-left: 0px;
}

/*---------------------- BUTTONS ----------------------*/

button {
    cursor: pointer;
    white-space: nowrap;
    border: none;
    border-radius: var(--input-border-radius);
    color: var(--button-text-color);
    line-height: 14px;
    background-color: var(--accent-color);
    height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 4px 24px;
    font-weight: 500;
    outline: none;
}

button:hover {
	background-color: var(--primary-color);
	outline: none;
}

button:disabled {
	background: var(--button-disabled-bg-color) !important;
	border: none;
	cursor: default;
}

.buttonTermsOfService {
    float: right;
    padding: 3px 4px;
    font-size: 14px;
}

/*---------------------- POPUP ----------------------*/

.termsOfServicePopup {
    position: absolute;
    top: 10%; /* maybe better to center with javascript */
    left: 25%;
    width: 50%;
    background-color: var(--panel-bg-color);
    border: 1px solid var(--input-border-color);
    border-radius: var(--border-radius);
    box-shadow: 0px 3px 8px 0 var(--popup-shadow-color);
    padding: 25px;
    display: block;
}

.termsOfServiceText {
    width: 100%;
    margin-bottom: 10px;
}

.glassOverlay {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: var(--panel-bg-color);
    opacity: 0.8;
}

/*---------------------- NOTIFICATIONS ----------------------*/
.notification {
    display: flex;
    border-radius: var(--border-radius);
    clear: both;
    overflow: auto;
    color: var(--text-color-secondary);
    margin-bottom: 20px;
}
.notification .notificationIcon {
    margin: 15px 0 12px 12px;
    display: flex;
    justify-content: center;
    align-items: start;
}
.notification .notificationIcon .icon {
    width: 32px;
    height: 32px;
}
.notification .notificationText {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.notification .notificationText ul {
    margin: 0px;
    padding-left: 18px;
}
.notification .notificationButton {
    margin: 12px;
    margin-left: 0;
}

.notification-success {
	background-color: var(--notification-success-bg-color);
    border: 1px solid var(--notification-success-border-color);
}
.notification-success .icon {
	color: var(--notification-success-icon-color);
}

.notification-warning {
	background-color: var(--notification-warning-bg-color);
    border: 1px solid var(--notification-warning-border-color);
}
.notification-warning .icon {
	color: var(--notification-warning-icon-color);
}

.notification-error {
	background-color: var(--notification-error-bg-color);
    border: 1px solid var(--notification-error-border-color);
}
.notification-error .icon {
	color: var(--notification-error-icon-color);
}

/*---------------------- SPINNER ----------------------*/

.confirmSpinner {
    margin-top: 60px;
    text-align: center;
}

.spinnerBoxes {
    display: inline-block;
    white-space: nowrap;
    text-align: center;
}
.spinnerBox {
    float: left;
    height: 5px;
    margin-right: 2px;
    width: 18px;
    background-color: var(--spinner-color);
}
.spinnerBox-highlight {
    background-color: var(--spinner-highlight-color);
}

/*-------------------- PAGINATION --------------------------*/

.pagination {
    display: flex;
    margin-top: 10px;
}
.paginationControl, .paginationText {
	display: flex;
	margin: 0 4px;
}
.paginationControl .icon {
	display: flex;
}
.paginationControl-disabled {
    opacity: 0.4;
    cursor: default;
}
.paginationText {
	margin: 0 10px;
}
.paginationControl:last-of-type {
	margin-right: 0;
}
.paginationResults, .paginationNavigation {
    display: flex;
    flex-grow: 1;
    align-items: center;
    white-space: nowrap;
}
.paginationResults {
    justify-content: flex-start;
}
.paginationNavigation {
    justify-content: flex-end;
}
.paginationNavigationControls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}
.paginationNavigationControls .pageInput {
    width: 60px;
}

/*---------------------- LOGIN/USER FORM ----------------------*/

.loginTitle {
    font-weight: 500;
    margin-bottom: 1em;
    font-size: 15px;
}

.loginForm > .fieldName {
    padding-top: 0px;
    padding-bottom: 0px;
}

.loginForm > .fieldInput {
    display: block;
    margin-top: 3px;
    margin-bottom: 7px;
    max-width: 140px;
}

.loginForm #username {
    width: 200px;
}

/*---------------------- TOTP ----------------------*/

.totp-text {
	margin: 20px;
	text-align: center;
}

.totp-input {
    max-width: 300px;
    margin: 20px auto 0 auto;
    display: block;
}

#qrcode {
	margin: auto;
	display: block;
	width: 256px;
}

/*---------------------- MISCELANEOUS ----------------------*/

.noBottomMargin {
    margin-bottom: 0 !important;
}
.noBottomBorder {
	border-bottom: none !important;
}
.withBottomMargin {
    margin-bottom: 40px !important;
}
.center {
    text-align: center;
}

.bottomMessage {
	display: block;
	margin-top: 15px;
}
.none {
	display: none;
}
.lineThrough {
	text-decoration: line-through
}
