body {
	background: #fff;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

code, pre, kbd {
	font-family: 'JetBrains Mono', 'Source Code Pro', Menlo, Consolas, monospace;
}

.center {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.brand-text {
	font-family: 'Inter', system-ui, sans-serif;
	font-weight: 700;
	letter-spacing: -0.01em;
}

/* WebCore */
.form-panel {
	max-width: 300px;
	margin: 0 auto;
}

.form-static-text {
	padding-top: 7px;
	height: 34px;
}

.message-panel {
	max-width: 600px;
	margin: 0 auto;
}

.error-page {
	height: 100vh;
}

.help-panel {
	padding: 15px;
	max-width: 900px;
	margin: 0 auto;
	font-size: 1.5em;
}

.linebreak {
	background: #E2E8F0;
	height: 1px;
	width: 100%;
	margin-bottom: 15px;
}

/* pill color. Overridden for the sidebar by brand.css, which is the only place
   nav-pills is used; the active-pill rule that used to sit here selected
   li.active, which is AdminLTE 2 markup and never matched. */
.nav-pills>li>a {
	color: var(--pg-primary, #5B9BD5);
}

/* hover pill color */
.nav-pills>li>a:hover {
	background-color: #eee;
}

.nav-header {
	font-size: 1em !important;
}

.navlink {
	width: 150px;
	background-color: #eee;
}

li.active {
	background: #777;
	color: #fff;
}

/* Configuration values are technical text: monospace, per the brand kit's code rule */
input {
	font-family: 'JetBrains Mono', 'Source Code Pro', Menlo, Consolas, monospace;
}

textarea {
	font-family: 'JetBrains Mono', 'Source Code Pro', Menlo, Consolas, monospace;
	resize: both;
	tab-size : 3;
}

.nowrap {
	white-space: nowrap;
}

.nopad {
	padding: 0px;
}

.noleftpad {
	padding-left: 0px;
}

.norightpad {
	padding-right: 0px;
}

.padcenter {
	padding-right: 10px;
	padding-left: 10px;
}

.html-control {
	display: block;
	width: 100%;
	height: 34px;
	padding: 6px 0px;
	font-size: 14px;
	line-height: 1.42857143;
}

.big-checkbox {
	width: 18px; 
	height: 18px;
}

.indent {
	margin-left: 30px;
}

.clickable:hover {
	cursor: pointer;
}

.pointer {
  cursor: pointer;
}

.sort {
	padding-left: 5px;
}

.nodisplay {
	display:none;
}

.modal-dialog {
	margin: 2.5vh auto;
}

.modal-scroll {
	max-height: 95vh;
	overflow-y: scroll;
}

.modal-body img {
	max-height: 69vh;
}

.modal-xxl {
	min-width: 90%;
}

.modal-delete {
	position: absolute;
	right: 35px;
	top: 25px;
	color: #777;
	font-size: 20px;
	transition: all 0.1s ease;
}

.modal-delete:hover {
	color: #111;
}

.modal-fullscreen {
    max-width: 100%;
    margin: 0;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100vh;
    display: flex;
}

.editor-modal {
	height: 250px; 
	width: 100%;
}

.editor-fullscreen {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 9999;
}

.editor-control-dark {
	background: #333;
	color: #fff;
	height: 35px;
}

.editor-control-light {
	background: #ddd;
	height: 35px;
}

.editor-select {
	min-width: 10ch;
	max-width: 20ch;
	border: 0px;
	font-size: 1rem;
	cursor: pointer;
	background-color: #fff;
	background-image: linear-gradient(to top, #f9f9f9, #fff 33%);
	outline: none;
}

.modal-square {
	border-radius: 0px;
}

.feedback-post {
	background: #fff;
	padding-left: 20px;
	padding-right: 20px;
	border-radius: 7px;
	border: 1px solid #ccc;
}

.feedback-timestamp {
	font-size: x-small;
	font-weight: bolder;
}

.btn-feedback {
	margin-right: 5px;
}

/* PGUI */

/*
 * Component conventions (all pages, Bootstrap 4 / AdminLTE 3).
 *
 * Buttons
 *   Page, form and modal actions: full size. Primary action .btn-primary; cancel,
 *   close and neutral actions .btn-default. Modal footers list the primary first.
 *   Row actions in lists and card tools: .btn-sm. Neutral .btn-default, destructive
 *   .btn-danger, running state .btn-success. Icon-only buttons carry a title.
 *   Filter chips: .btn-sm, active .btn-primary, inactive .btn-default.
 *   Editable table rows keep full-size controls; their .btn-sm actions sit in a
 *   .col-actions.align-middle cell so they centre on the input row.
 *   Lists whose rows carry a muted second line (an id, a provider) use
 *   .table-valign-middle so single-line cells centre on the two lines.
 *   Start/stop: .btn-default with a .text-primary play or .text-danger stop icon.
 * Forms
 *   .form-group.row with .col-sm-2.col-form-label and .col-sm-10; errors as
 *   .is-invalid plus .invalid-feedback; hints as .form-text.text-muted.
 *   Checkboxes and radios: div.icheck-primary > input + label.font-weight-normal
 *   (full size). Not Bootstrap's .form-check-input, which is smaller; a smaller
 *   control only where a dense table row needs it.
 * Page shell
 *   .content > .container-fluid.pb-1.pt-3, no empty .content-header.
 *   List pages: .card > .card-header (.card-title + .card-tools) > .card-body.p-0 >
 *   .table.table-striped. Empty state: .p-4.text-muted.text-center.
 * Colors come from AdminLTE and the brand tokens (brand.css); no page-level CSS.
 */

table {
	width: 100%;
}

/* Badges: Bootstrap's .25em .4em leaves the text touching the edge; give every
   badge (status, counts, tags) the same roomier box and a matching radius. */
.badge {
	padding: 0.4em 0.65em;
	font-weight: 600;
	border-radius: 0.35rem;
}

/*
 * Semantic cue palette. Bootstrap's success/warning/danger/info are saturated
 * and warm; the brand kit lives in Tailwind's slate family, so the cues are that
 * family's green, amber and red, plus a dusty steel for info. Solid surfaces
 * take Deep Navy text except primary, success and danger, which take white.
 * Product-wide and fixed: partners theme the primary through brand.css, cues
 * stay the same in every deployment.
 */
:root {
	--pg-success: #22C55E;
	--pg-success-hover: #16A34A;
	--pg-warning: #F59E0B;
	--pg-warning-hover: #D97706;
	--pg-danger: #DC2626;
	--pg-danger-hover: #B91C1C;
	--pg-info: #6A8CAF;
	--pg-info-hover: #587A9D;
	--pg-neutral: #64748B;
	--pg-neutral-hover: #475569;
	--pg-cue-text: #0B0F1A;
	/* Green and red read better with light text than dark */
	--pg-success-text: #FFFFFF;
	--pg-danger-text: #FFFFFF;
}

/* Solid buttons */
.btn-success { background-color: var(--pg-success); border-color: var(--pg-success); color: var(--pg-success-text); }
.btn-success:hover, .btn-success:focus, .btn-success:not(:disabled):not(.disabled):active { background-color: var(--pg-success-hover); border-color: var(--pg-success-hover); color: var(--pg-success-text); }
.btn-warning { background-color: var(--pg-warning); border-color: var(--pg-warning); color: var(--pg-cue-text); }
.btn-warning:hover, .btn-warning:focus, .btn-warning:not(:disabled):not(.disabled):active { background-color: var(--pg-warning-hover); border-color: var(--pg-warning-hover); color: var(--pg-cue-text); }
.btn-danger { background-color: var(--pg-danger); border-color: var(--pg-danger); color: var(--pg-danger-text); }
.btn-danger:hover, .btn-danger:focus, .btn-danger:not(:disabled):not(.disabled):active { background-color: var(--pg-danger-hover); border-color: var(--pg-danger-hover); color: var(--pg-danger-text); }
.btn-info { background-color: var(--pg-info); border-color: var(--pg-info); color: var(--pg-cue-text); }
.btn-info:hover, .btn-info:focus, .btn-info:not(:disabled):not(.disabled):active { background-color: var(--pg-info-hover); border-color: var(--pg-info-hover); color: var(--pg-cue-text); }
.btn-secondary { background-color: var(--pg-neutral); border-color: var(--pg-neutral); color: #fff; }
.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:not(:disabled):not(.disabled):active { background-color: var(--pg-neutral-hover); border-color: var(--pg-neutral-hover); color: #fff; }

/* Badges */
.badge-success { background-color: var(--pg-success); color: var(--pg-success-text); }
.badge-warning { background-color: var(--pg-warning); color: var(--pg-cue-text); }
.badge-danger { background-color: var(--pg-danger); color: var(--pg-danger-text); }
.badge-info { background-color: var(--pg-info); color: var(--pg-cue-text); }
.badge-secondary { background-color: var(--pg-neutral); color: #fff; }
.badge-light { background-color: #E2E8F0; color: #334155; }

/* Alerts: tinted surface, deep text, soft border (each from the same hue) */
.alert-success { background-color: #F0FDF4; border-color: #BBF7D0; color: #15803D; }
.alert-warning { background-color: #FFFBEB; border-color: #FDE68A; color: #B45309; }
.alert-danger { background-color: #FEF2F2; border-color: #FECACA; color: #B91C1C; }
.alert-info { background-color: #F1F5F9; border-color: #CBD5E1; color: #334155; }

/* Application state: running takes the brand primary, stopped a light grey.
   status-* colors an icon; bg-status-* fills an info-box icon tile. On/off
   buttons follow the same rule with .btn-primary (running) and .btn-default. */
.status-on {
	color: var(--pg-primary, #5B9BD5);
}

.status-off {
	color: #CBD5E1;
}

.bg-status-on, .bg-status-on a {
	background-color: var(--pg-primary, #5B9BD5) !important;
	color: #FFFFFF !important;
}

.bg-status-off, .bg-status-off a {
	background-color: #E2E8F0 !important;
	color: #94A3B8 !important;
}

/* Text and background utilities (Bootstrap declares these !important) */
.text-success { color: var(--pg-success-hover) !important; }
.text-warning { color: var(--pg-warning-hover) !important; }
.text-danger { color: var(--pg-danger) !important; }
.text-info { color: var(--pg-info-hover) !important; }
.text-secondary, .text-muted { color: var(--pg-neutral) !important; }
.bg-success { background-color: var(--pg-success) !important; color: var(--pg-success-text) !important; }
.bg-warning { background-color: var(--pg-warning) !important; color: var(--pg-cue-text) !important; }
.bg-danger { background-color: var(--pg-danger) !important; color: var(--pg-danger-text) !important; }
.bg-info { background-color: var(--pg-info) !important; color: var(--pg-cue-text) !important; }
.bg-secondary { background-color: var(--pg-neutral) !important; color: #fff !important; }
.bg-light { background-color: #F1F5F9 !important; }

/*
 * Flat surfaces. AdminLTE 3 ships drop shadows on cards and info boxes, a glow on
 * focused controls and contrasting borders on neutral buttons. Here every surface
 * is flat: no shadows, borders removed where the page background already separates
 * the element (cards, modals, buttons) or reduced to a hairline in the brand border
 * token where structure needs it (inputs, table rows, section dividers). Focus is
 * shown by a border color change, plus a keyboard-only outline on buttons.
 */
.card,
.info-box,
.small-box,
.main-header,
.main-sidebar,
.main-footer,
.modal-content,
.dropdown-menu,
.btn,
.btn:focus,
.btn:active,
.btn.active,
.btn:not(:disabled):not(.disabled):active,
.form-control,
.form-control:focus,
.custom-select,
.custom-select:focus,
.ai-panel,
.speech-bubble,
.page-link,
.nav-tabs .nav-link {
	box-shadow: none !important;
}

.card,
.info-box,
.modal-content,
.dropdown-menu {
	border: 0;
}

.card-header,
.card-footer {
	background-color: transparent;
	border-color: var(--pg-border-color, #E2E8F0);
}

.card-header {
	border-bottom: 1px solid var(--pg-border-color, #E2E8F0);
}

.card-footer {
	border-top: 1px solid var(--pg-border-color, #E2E8F0);
}

.modal-header,
.modal-footer {
	border-color: var(--pg-border-color, #E2E8F0);
}

.table td,
.table th,
.table thead th,
.table-bordered,
.table-bordered td,
.table-bordered th {
	border-color: var(--pg-border-color, #E2E8F0);
}

.table thead th {
	border-bottom-width: 1px;
}

/* Neutral buttons: filled, no contrasting outline */
.btn-default,
.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.btn-default.active,
.btn-default:not(:disabled):not(.disabled):active {
	background-color: #E2E8F0;
	border-color: #E2E8F0;
	color: #334155;
}

.btn-default:hover,
.btn-default:focus,
.btn-default:not(:disabled):not(.disabled):active {
	background-color: #CBD5E1;
	border-color: #CBD5E1;
}

.btn-default:disabled,
.btn-default.disabled,
.btn-default[disabled] {
	background-color: #F1F5F9;
	border-color: #F1F5F9;
	color: #94A3B8;
}

/* Colored buttons: border always matches the fill */
.btn {
	border-color: transparent;
}

.btn:focus-visible {
	outline: 2px solid var(--pg-primary, #5B9BD5);
	outline-offset: 2px;
}

/* Inputs: hairline border, primary border on focus, no glow */
.form-control,
.custom-select {
	border: 1px solid var(--pg-border-color, #E2E8F0);
}

.form-control:focus,
.custom-select:focus {
	border-color: var(--pg-primary, #5B9BD5);
}

.form-control.is-invalid,
.form-control.is-invalid:focus {
	border-color: var(--pg-danger);
}

/* Table stripe in the same slate family as the page and borders (Bootstrap's is a
   neutral rgba black, which clashes with the tinted greys) */
.table-striped tbody tr:nth-of-type(odd) {
	background-color: #F1F5F9;
}

/* Table column helpers. Apply .col-actions to the th AND the td: nowrap on the
   header alone lets the body cell wrap once the column shrinks to fit. */
.col-actions {
	width: 1%;
	white-space: nowrap;
}

.col-name {
	width: 30%;
}

.col-storage {
	width: 150px;
}

/* Access page: inline rate limit editor in the keys table */
.rate-limit-input {
	width: 90px;
}

/* Gear editor tag picker (Select2, bootstrap4 theme): the wrapper anchors the dropdown to the
   field; tags are solid primary with white text, like the primary badges and buttons. */
.tagpicker {
	position: relative;
}
.tagpicker .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
	background-color: var(--pg-primary);
	border-color: var(--pg-primary);
	color: var(--pg-primary-text);
	font-weight: 600;
	border-radius: 0.35rem;
}
.tagpicker .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove {
	color: var(--pg-primary-text);
	opacity: 0.8;
}
.tagpicker .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove:hover {
	color: var(--pg-primary-text);
	opacity: 1;
}
.tagpicker .select2-container--bootstrap4 .select2-results__option--highlighted,
.tagpicker .select2-container--bootstrap4 .select2-results__option--highlighted.select2-results__option[aria-selected=true] {
	background-color: var(--pg-primary);
	color: var(--pg-primary-text);
}

/* Template library card header: a fixed icon box so glyphs of different widths
   line up, and a two-line title block outside AdminLTE's floated .card-title. */
.template-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.template-icon {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	font-size: 1.3rem;
	color: var(--pg-primary, #5B9BD5);
	background: color-mix(in srgb, var(--pg-primary, #5B9BD5) 12%, transparent);
}

.template-meta {
	min-width: 0;
}

.template-title {
	float: none;
	margin: 0 0 2px 0;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.template-category {
	font-size: 0.8rem;
	line-height: 1.3;
	color: #64748B;
}

.card-text-sm {
	font-size: 0.9em;
}

.preview-icon {
	font-size: 3em;
}

.pre-line {
	white-space: pre-line;
}

/* Dashboard chart canvas box */
.chart-box {
	height: 250px;
	min-height: 250px;
	max-height: 250px;
	max-width: 100%;
}

/* Log viewer cells */
.log-cell {
	background: #F1F5F9;
}

.log-prop {
	margin: 0;
	padding: 1px;
}

td { 
    padding-top: 2px;
    padding-bottom: 2px;
}

.header {
	background: #F1F5F9;
	color: #555;
	text-transform: uppercase;
	padding: 10px 10px 10px 20px;
}

.footer {
	font-size: small;
	margin-top: 15px;
}

.auto-width {
	width: auto;
}

.full-width {
	width: 100%;
}

.inline {
	width: auto;
	display: inline;
}

.minwidth {
	min-width: 100px;
	background: #369;
}

.panel-item {
	padding: 10px 5px 5px 5px;
}

.editable:hover {
	margin-top: 5px;
	padding-top: 5px;
	background: hsla(0, 0%, 0%, 0.05);
	transition: all 0.1s ease;
	cursor: pointer;
}

.panel-group {
	background: #fff;
	margin-bottom: 5px;
}

.divrow {
	margin-left: 0px;
	margin-right: 0px;
}

.status-label {
	color: #fff;
	font-size: xx-small;
	padding: 5px;
	border-radius: 3px;
	min-width: 58px;
}

.process-value {
	padding-left: 5px;
}

.btn-group {
	padding: 1px;
}

.btn-row {
	min-width: 90px;
}

.btn-mini {
	width: 90px;
	height: 90px;
	padding: 2px;
}

.btn-mini:hover {
	background: hsla(0, 0%, 0%, 0.15);
	cursor: pointer;
}

.color-success {
	color: var(--pg-success-hover);
}

.row-break {
	height: 1px;
	background: #E2E8F0;
	margin-left: 15px;
	margin-right: 15px;
}

.help-image {
	width: 75%;
	height: auto;
	margin-top: 20px;
	margin-bottom: 20px;
	border-radius: 5px;
}

.help-image-md {
	width: 50%;
	height: auto;
	margin-top: 20px;
	margin-bottom: 20px;
}

.help-image-sm {
	width: 25%;
	height: auto;
	margin-top: 20px;
	margin-bottom: 20px;
}

.index {
	margin: 25px;
}

.index-nested-1 {
	padding-left: 15px;
}

#layout {
	margin-right: 15px;
	margin-bottom: 10px;
	padding-right: 5px;
	padding-bottom: 5px;
	overflow: auto;
	background-size: 20px 20px;
	position: relative;
}

.col-nopad {
	padding-left: 0px;
	padding-right: 0px;
}

.libicon {
	padding-top: 2px;
	font-size: 1.2em;
}

.libiconwrap {
	width: 25px;
	float: left;
}

/* Gear library section headers (group names and the description panel): neutral,
   the colored tiles below them carry enough color already */
.libgroup {
	height: 34px;
	padding: 5px 10px;
	margin-top: 5px;
	margin-bottom: 5px;
	width: 100%;
	border-radius: 4px;
	font-weight: 600;
	background: #E2E8F0;
	color: #334155;
}

.gear-provider-tile:hover {
	cursor: move;
}

/* Gear tile: controls row on top, icon centred in the remaining space, name bar
   pinned to the bottom edge (absolute, so it can grow past the tile on hover). */
.gear-layout-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100px;
	height: 100px;
	padding-bottom: 20px;
	border-radius: 5px;
}

.moveable:hover {
	cursor: move;
}

.selectable:hover {
	cursor: pointer;
}

/* Footer anchored where the name bar sits; the name and the optional route link
   stack inside it, so the link moves down as far as the name grows on hover. */
.gear-tile-footer {
	position: absolute;
	left: 0;
	right: 0;
	top: 80px;
	z-index: 5;
}

.gear-layout-tile:hover .gear-tile-footer {
	z-index: 20;
}

/* Route link under a WebService/Webhook tile: left-aligned to the tile edge and
   free to run past the right edge, so the full route stays readable. */
.gear-tile-label {
	margin-top: 5px;
	height: 20px;
	background: transparent;
	text-align: left;
	font-size: .75em;
	white-space: nowrap;
	overflow: visible;
}

.gear-tile-icon-box {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

.gear-tile-icon {	
	max-width: 80px;
	max-height: 40px !important;
	font-size:36px;
	color: rgb(255,255,255,1);
}

.gear-tile-icon-overlay {
	position: absolute;
	height: 32px;
	font-size: 38px;
	color: rgb(50,50,50,0.5);
}

.gear-tile-icon-overlay:hover {
	cursor: pointer;
	color: rgb(50,50,50,0.75);
}

.gear-tile-name {
	display: block;
	height: 20px;
	line-height: 20px;
	padding: 0 4px;
	font-size: .75em;
	color: #222;
	background: rgb(232,232,232,0.75);
	border-radius: 0px 0px 5px 5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Long names: truncated at rest, the bar grows downward over the canvas on hover
   so the whole name is readable without moving the tile. */
.gear-layout-tile:hover .gear-tile-name {
	height: auto;
	min-height: 20px;
	line-height: 1.25;
	padding: 3px 4px;
	white-space: normal;
	overflow: visible;
	overflow-wrap: anywhere;
	background: rgb(232,232,232,0.95);
}

.bg-dark {
	background: var(--pg-sidebar-bg, #0B0F1A) !important;
	color: var(--pg-sidebar-text, #ccc);
}

.bg-brand-1 {
	background: var(--pg-login-bg, #0B0F1A);
}

.color1 { 
	background: #27ae60;
	border-color: #27ae60 !important;
}

.color4 {
	background: #3498db;
	border-color: #3498db !important;
}

.color3 {
	background: #9b59b6;
	border-color: #9b59b6 !important;
}

.color2 {
	background: #6693a3;
	border-color: #6693a3 !important;
}

.color5 {
	background: #f39c12;
	border-color: #f39c12 !important;
}

.color6 {
	background: #34495e;
	border-color: #34495e !important;
}

.placeholder {
	background: #777;
}

.gear-tile-text {
	padding-top: 2px;
}

.source-endpoint {
	background: #fff;
	border-style: solid;
	border-width: 2px;
	border-radius: 2px;
	border-color: var(--pg-primary, #5B9BD5);
}

.source-endpoint:hover {
	cursor: move;
	background: var(--pg-primary-hover, #4A89C4);
}

.target-endpoint {
	background: #fff;
	border-style: solid;
	border-width: 2px;
	border-radius: 2px;
	border-color: #fff;
}

.target-endpoint:hover {
	cursor: move;
	background: var(--pg-primary-hover, #4A89C4);
}

.connectorLabel {
	font-size: 10px;
	font-weight: bolder;
	color: var(--pg-text-color, #111827);
	opacity: 0.7;
}

.gear-tile-configure {
	color: rgb(255,255,255,0.90);
	z-index: 10;
	font-size: 20px;
	transition: all 0.1s ease;	
}

.gear-tile-configure:hover {
	cursor: pointer;
	opacity: 0.5;
}

/* Selected help icon on a library tile. Tiles come in six colors including a
   blue, so no single fill contrasts with all of them; a white ring around a dark
   glyph does, because every tile color is saturated or dark. */
.gearinfo-selected {
	color: #0B0F1A;
	border-radius: 50%;
	box-shadow: 0 0 0 2px #FFFFFF;
}

.gear-tile-control {
	color: rgb(255,255,255,0.90);
	z-index: 10;
	font-size: 20px;
	transition: all 0.1s ease;
}

.gear-tile-control:hover {
	cursor: pointer;
	color: var(--pg-primary, #5B9BD5);
}

.gear-tile-action {	
	position: absolute;
	left: 30px;
	top: 25px;
	color: rgb(0,45,61,0.50);
	z-index: 10;
	font-size: 30px;
	transition: all 0.1s ease;
	z-index: 10;
}

.gear-tile-action:hover {
	cursor: pointer;
	color: rgb(0,45,61,0.90);
}

.gear-tile-action-console {	
	color: rgb(255,255,255,0.90);
	z-index: 10;
	font-size: 17px;
	transition: all 0.1s ease;
}

.gear-tile-action-console:hover {
	cursor: pointer;
	color: var(--pg-primary, #5B9BD5);
}

.gear-tile-action-url {
	min-width: 40px;
	right: 2px;
	font-size: 12px;
}

.alert-center {
	width: 33%;
	position: fixed;
	top: 50%;
	left: 33%;
	z-index: 999;
}

.websocket-console {
	width: 100%;	
	background: var(--pg-sidebar-bg, #0B0F1A);
	color: #eee;
}

.banner {
	width: 100%;
	height: 80px;
	background: var(--pg-primary, #5B9BD5);
}

.spacer {
	height: 55px;
	width: 100%;
}

.banner-break {
	width: 100%;
	height: 3px;
	background: #eee;
	margin-bottom: 5px;
}

.logo {
	height: 80px;
	padding: 10px;
	float: left;
}

/* Fallback only; brand.css sets the themed values from the --pg-primary tokens */
.btn-primary {
	background-color: #5B9BD5;
	border-color: #4A89C4;
}

.btn-primary:hover {
	background-color: #4A89C4;
	border-color: #4A89C4;
}

[v-cloak] {
	display: none;
}

/* Nav menu */
.topnavbar {
	background-color: var(--pg-sidebar-bg, #0B0F1A);
	width: 100%;
	height: 100%;
	position: relative;
	float: left;
	margin-left: 0px;
}

.topnavmenu {
	list-style-type: none;
	padding-left: 0px;
	float: right;
}

.topnavmenu-item {
	width: 120px;
	position: relative;
	float: left;
}

.topnavmenu a {
	background-color: var(--pg-sidebar-bg, #0B0F1A);
	text-decoration: none;
	display: block;
	width: 100%;
	height: 100%;
	line-height: 35px;
	text-align: center;
	color: #fff;
	font-size: 1.1em;
	transition: 0.1s;
}

.topnavmenu-left {
	text-align: left !important;
	padding-left: 20px;
}

.topnavblank {
	background-color: var(--pg-sidebar-bg, #0B0F1A);
	width: 100%;
	height: 34px;
	margin-bottom: 50px;
}

.accentbar {
	width: 100%;
	height: 34px;
}

.navalign {
	margin-top: 0px;
	margin-bottom: 0px;
	-webkit-margin-before: 0em;
	-webkit-margin-after: 0m;
	-webkit-margin-start: 0px;
	-webkit-margin-end: 0px;
	-webkit-padding-start: 0px;
}

.nopad {
	padding-right: 0px;
	padding-left: 0px;
}

@media only screen and (max-width: 499px) {
	.topnavmenu li {
		width: 100%;
	}
}

.topnavmenu-item a:hover {
	background-color: var(--pg-sidebar-active-bg, #1A2235);
}

.jumbotron {
	background: rgba(200, 54, 54, 0.0);
}

/* jsPlumb */

.jtk-endpoint {
	z-index: 6;
}

.jtk-overlay {
	z-index: 8;
}

.dragicon {
	width: 100px;
	height: 100px;
}

#dropicon {
	position: relative;
	background: #ccc;
	opacity: 0.5;
	width: 100px;
	height: 100px;
	border-radius: 5px;
	border-style: dotted;
	border-width: 0px;
	z-index: 20;
}

.textcomplete-dropdown {
	overflow-y: auto;
	height: 200px;
	width: 250px;
}

.textcomplete-item {
	padding: 0px 8px 3px 8px;
}

.control-bar {
	background: #fff;
}

.brand-link {
	padding-bottom: 12px;
}

/* Icons */
.icon {
	opacity : 0.5;
	background-size: cover;                     
   background-repeat: no-repeat;
   background-position: center center;
}


.icon-zoho {
	background-image:url('/resources/icons/zoho.svg');
	background-size:100% ;
}

.icon-json {
	background-image:url('/resources/icons/brackets.svg');
	background-size:100% ;
}

.icon-lambda {
	background-image:url('/resources/icons/lambda.svg');
	background-size:100% ;
}

.icon-mongodb {
	background-image:url('/resources/icons/mongodb.svg');
	background-size:100% ;
}

.icon-regex {
	background-image:url('/resources/icons/regex.svg');
	background-size:100% ;
}

.icon-websocket {
	background-image:url('/resources/icons/websocket.svg');
	background-size:100% ;
}

.icon-sql {
	background-image:url('/resources/icons/sql.svg');
	background-size:100% ;
}

/* Onboarding hint bubbles (empty canvas, empty application list): warning amber
   so they read as "do this next". The arrow overlaps the box by 1px; placed edge
   to edge, anti-aliasing leaves a visible seam between the two shapes. */
.speech-bubble {
	position: relative;
	border-radius: 5px;
	padding: 10px;
	background: var(--pg-warning);
	color: var(--pg-cue-text);
	max-width: 300px;
}

.speech-bubble:after {
	content: '';
	position: absolute;
	top: 1px;
	width: 0;
	height: 0;
	border: 15px solid transparent;
	border-bottom-color: var(--pg-warning);
	border-top: 0;
	margin-left: -15px;
	margin-top: -15px;
}

.speech-bubble-left:after {
	left: 10%;
}

.speech-bubble-right:after {
	right: 5%;
}

.width-50 {
	width: 50%;
}

.height-100 {
	height: 100%;
}

.vheight-100 {
	height: 100vh;
}

.vheight-95 {
	height: 95vh;
}

.sidebar {
	padding-left: 5px;
	padding-right: 5px;
	padding-top: 5px;
	padding-bottom: 5px;
}

/*
 * Sidebar layout: fixed to the window like AdminLTE's layout-fixed (the page scrolls under it; only the menu scrolls
 * inside it, never sideways), and a little wider on desktop. One width setting drives the sidebar, the content, the
 * header and the footer. The collapsed sidebar keeps AdminLTE's icon width and widens on hover.
 */
:root {
	--pg-sidebar-width: 280px;
}

.main-sidebar {
	position: fixed !important;
	top: 0;
	bottom: 0;
	left: 0;
	height: 100vh !important;
	min-height: 0 !important;
	overflow: hidden !important;
}

.sidebar {
	overflow-x: hidden !important;
	overflow-y: auto !important;
}

/* Long names (an application, an organization) wrap within the menu rather than widening it */
.sidebar .nav-sidebar .nav-link p {
	white-space: normal;
}

@media (min-width: 992px) {
	body:not(.sidebar-collapse) .main-sidebar,
	body:not(.sidebar-collapse) .main-sidebar::before,
	.sidebar-mini.sidebar-collapse .main-sidebar:hover,
	.sidebar-mini.sidebar-collapse .main-sidebar.sidebar-focused {
		width: var(--pg-sidebar-width);
	}

	/* The menu items fill the wider sidebar (AdminLTE fixes them at 250px less padding) */
	body:not(.sidebar-collapse) .main-sidebar .nav-sidebar .nav-link,
	.sidebar-mini.sidebar-collapse .main-sidebar:hover .nav-sidebar .nav-link {
		width: auto !important;
		margin-right: 3px; /* mirrors the left inset */
	}

	/* AdminLTE sets 250px through a long :not() chain; this one setting replaces it */
	body:not(.sidebar-collapse) .content-wrapper,
	body:not(.sidebar-collapse) .main-footer,
	body:not(.sidebar-collapse) .main-header {
		margin-left: var(--pg-sidebar-width) !important;
	}
}

/* All sidebar pills, links and the static context label alike, share one box:
   same left inset and bottom gap, so their edges line up top to bottom. */
.sidebar .nav-link {
	margin-bottom: 5px !important;
	margin-left: 3px;
	margin-right: 0;
}

.sidebar-wrapper {
	height: 100vh;
}

/*
 * Hairline between the global menu and a context treeview (selected application or
 * template). Derived from the sidebar text token so it shows on dark and light themes.
 */
.sidebar-divider {
	margin: 10px 8px 4px 8px;
	border-top: 1px solid color-mix(in srgb, var(--pg-sidebar-text, #ccc) 25%, transparent);
}

/* Organization switcher at the top of the sidebar (O1) */
.org-switcher {
	padding: 12px 3px 14px 3px; /* same left inset and width as the nav pills (.sidebar .nav-link) */
}

/*
 * The searchable switcher (Select2, past ten entries) takes exactly the box of the small select it replaces after the
 * page loads (form-control-sm), so nothing below it moves when it appears. The bootstrap4 theme draws it at the
 * regular size, 7px taller.
 */
.org-switcher .select2-container--bootstrap4 .select2-selection--single {
	height: calc(1.5em + .5rem + 2px) !important;
	font-size: .875rem;
}

.org-switcher .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
	padding-left: .5rem;
	line-height: calc(1.5em + .5rem);
}

/* A second select (Workspace) sits closer to the first (Organization) */
.org-switcher + .org-switcher {
	padding-top: 0;
}

.org-switcher-label {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	font-weight: 500;
	color: color-mix(in srgb, var(--pg-sidebar-text, #ccc) 70%, transparent);
}

.sidebar-collapse .main-sidebar:not(:hover) .org-switcher {
	display: none;
}

/* Visiting an organization through a provider role (O1): primary bar, white text, above the content */
.visit-banner {
	display: flex;
	align-items: center;
	padding: 8px 16px;
	background-color: var(--pg-primary, #5B9BD5);
	color: var(--pg-primary-text, #fff);
}

.visit-banner-back {
	margin-left: auto;
	color: var(--pg-primary-text, #fff);
	font-weight: 600;
	text-decoration: underline;
}

.visit-banner-back:hover {
	color: var(--pg-primary-text, #fff);
}

/* Context tree parent (the selected application or template): a label, not a link,
   with one extra pixel before its first child */
.nav-link-static {
	cursor: default;
	pointer-events: none;
	margin-bottom: 6px !important;
}

.color-change {
	transition: color 0.2s ease;
}

.color-change:active {
	color: #aaa;
}

/* AI Chat Panel */
.ai-panel {
	position: fixed;
	top: 0;
	right: 0;
	width: 400px;
	height: 100vh;
	background: #fff;
	border-left: 1px solid var(--pg-border-color, #E2E8F0);
	display: flex;
	flex-direction: column;
	z-index: 1040;
	transition: transform 0.2s ease;
}

.ai-panel-hidden {
	transform: translateX(100%);
}

.ai-panel-header {
	padding: 12px 16px;
	background: var(--pg-sidebar-bg, #0B0F1A);
	color: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-shrink: 0;
}

.ai-panel-header h5 {
	margin: 0;
	font-size: 14px;
}

.ai-messages {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
}

.ai-msg {
	margin-bottom: 12px;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.5;
	word-wrap: break-word;
	white-space: pre-line;
	text-align: left;
}

.ai-msg-user {
	background: #E8EEF5;
}

.ai-msg-assistant {
	background: #F1F5F9;
}

.ai-msg-system {
	background: #FFFBEB;
	font-size: 12px;
	text-align: left;
	font-style: italic;
}

.ai-input-area {
	padding: 8px 12px;
	border-top: 1px solid var(--pg-border-color, #E2E8F0);
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.ai-input-area textarea {
	flex: 1;
	resize: none;
	border: 1px solid var(--pg-border-color, #E2E8F0);
	border-radius: 4px;
	padding: 8px;
	font-size: 13px;
	font-family: inherit;
	min-height: 60px;
	max-height: 120px;
}

.ai-input-area button {
	align-self: flex-end;
}

.ai-loading {
	text-align: center;
	padding: 12px;
	color: #888;
	font-style: italic;
	font-size: 13px;
}

.btn-ai {
	background: #6c5ce7;
	color: #fff;
	border: none;
}

.btn-ai:hover {
	background: #5a4bd1;
	color: #fff;
}

/* Dashboard welcome flow (inline SVG): brand colors, so a white-label console shows its own. */
.pg-welcome-flow {
	max-width: 100%;
	height: auto;
}
.pg-welcome-flow .pg-wf-gear {
	fill: var(--pg-primary);
}
.pg-welcome-flow .pg-wf-step {
	fill-opacity: .78;
}
.pg-welcome-flow .pg-wf-port {
	fill: #fff;
	stroke: var(--pg-primary);
	stroke-width: 2;
}
.pg-welcome-flow .pg-wf-icon {
	fill: #fff;
}
.pg-welcome-flow .pg-wf-icon-line {
	fill: none;
	stroke: var(--pg-primary);
	stroke-width: 2;
	stroke-opacity: .6;
}
.pg-welcome-flow .pg-wf-icon-text {
	fill: #fff;
	font: 700 26px "JetBrains Mono", monospace;
	text-anchor: middle;
}
.pg-welcome-flow .pg-wf-label,
.pg-welcome-flow .pg-wf-client-label {
	fill: var(--pg-text-color);
	font-size: 12px;
	font-weight: 500;
	text-anchor: middle;
}
.pg-welcome-flow .pg-wf-client {
	fill: var(--pg-surface-bg);
	stroke: var(--pg-border-color);
	stroke-width: 2;
}
.pg-welcome-flow .pg-wf-bubble {
	fill: none;
	stroke: var(--pg-primary);
	stroke-width: 2.5;
	stroke-linejoin: round;
}
.pg-welcome-flow .pg-wf-typing {
	fill: var(--pg-primary);
}
.pg-welcome-flow .pg-wf-wire {
	stroke: #c3ccd5;
	stroke-width: 6;
	stroke-linecap: round;
	fill: none;
}
.pg-welcome-flow .pg-wf-return {
	stroke: #c3ccd5;
	stroke-width: 2.5;
	stroke-dasharray: 6 6;
	fill: none;
}
.pg-welcome-flow .pg-wf-arrow {
	fill: #c3ccd5;
}
.pg-welcome-flow .pg-wf-dot {
	fill: var(--pg-primary);
	stroke: #fff;
	stroke-width: 2;
	opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
	.pg-welcome-flow .pg-wf-motion {
		display: none;
	}
}
.pg-welcome-flow .pg-wf-glow {
	fill: none;
	stroke: var(--pg-primary);
	stroke-width: 3;
	stroke-opacity: .45;
	opacity: 0;
}

/* Applications page: the 30-day events line per row (APPLICATIONS_LIST_PLAN.md), in the brand color. */
.pg-spark polyline {
	fill: none;
	stroke: var(--pg-primary);
	stroke-width: 1.5;
	stroke-linejoin: round;
}
.pg-spark .pg-spark-hit {
	fill: transparent;
}
/* The application name: a fixed share of the row on wide screens (the rest spreads over the other columns), the space
   the other columns leave on narrow ones; truncated within it (max-width: 0 lets a table cell shrink below its text). */
.pg-app-name {
	width: 35%;
	max-width: 0;
}
@media (max-width: 1199.98px) {
	.pg-app-name {
		width: 100%;
	}
}
