html {
    position: relative;
    min-height: 100%;
}

body {
    margin: 0 0 25px; /* bottom = footer height */
}

footer {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 25px;
    width: 100%;
    overflow:hidden;
}

textarea {
	resize: none;
}

.hidden {
	display: none;
}

.cursor-pointer {
	cursor: pointer;
}

.info-icon {
	color: #3c8dbc;
	cursor: help;
	margin-left: 5px;
}

.action-icon-resync {
    margin-right: 4px;
	margin-left: 8px;
    color: #5bc0de;
}
.action-icon-move {
    margin-right: 4px;
	margin-left: 8px;
    color: #f0ad4e;
}
.action-icon-finalize {
    margin-right: 4px;
	margin-left: 8px;
    color: #5cb85c;
}

.text-truncate {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.font-size-20 {
	font-size: 20px !important;
}

.text-break {
	overflow-wrap: break-word;
	word-break: break-word;
}

.text-wrap {
	white-space: pre-wrap;
	word-break: break-word;
}

.text-underline {
	text-decoration: underline;
}

.text-ellipsis {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.max-width-250 {
	max-width: 250px;
}

/* Bootstrap's .nav > li display: block outranks the UA [hidden] rule; pwa.js toggles this attribute. */
#pwa-install-item[hidden] {
	display: none !important;
}

/* pwa.js unhides the icon late and it would shift the navbar; on computers the browser offers the install itself.
   Tablets have no mouse and Safari on iPad offers no install, so they keep the icon. */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
	#pwa-install-item {
		display: none !important;
	}
}

/* Header bell and the ONU ticket toast */
/* Bootstrap's .nav > li and .badge display rules outrank the UA [hidden] rule, as for #pwa-install-item above. */
#header-bell[hidden],
#header-bell [hidden],
.onu-tickets-inbox-count[hidden] {
	display: none !important;
}

.header-bell-toggle {
	position: relative;
}

.header-bell-badge {
	position: absolute;
	top: 8px;
	right: 4px;
	min-width: 17px;
	padding: 1px 4px;
	border-radius: 9px;
	background-color: #c9302c;
	color: #fff;
	font-size: 11px;
	line-height: 15px;
	font-weight: 600;
	text-align: center;
}

.header-bell .header-bell-menu {
	width: 320px;
	max-height: 420px;
	overflow-y: auto;
	padding: 0;
}

.header-bell .header-bell-title {
	padding: 8px 14px;
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	color: #777;
}

.header-bell .header-bell-empty {
	padding: 8px 14px;
	font-size: 13px;
	color: #777;
}

.header-bell .header-bell-footer > a {
	display: block;
	padding: 8px 14px;
	font-size: 13px;
}

.header-bell .header-bell-link {
	display: block;
	padding: 8px 14px;
	white-space: normal;
}

.header-bell .header-bell-reference {
	display: block;
	font-size: 13px;
	font-weight: 600;
	word-break: break-word;
}

.header-bell .header-bell-meta {
	display: block;
	font-size: 13px;
	color: #777;
	word-break: break-word;
}

/* Bootstrap paints the hovered link dark, and grey meta text on it is unreadable. */
.header-bell .header-bell-link:hover .header-bell-meta,
.header-bell .header-bell-link:focus .header-bell-meta {
	color: inherit;
}

.header-bell .header-bell-action {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-top: 2px;
}

#toastsBox > .onu-tickets-toast {
	top: 75px;
	display: flex;
	align-items: center;
	gap: 10px;
	text-align: left;
}

#toastsBox > .onu-tickets-toast a {
	color: #fff;
	text-decoration: underline;
	font-weight: 600;
}

#toastsBox > .onu-tickets-toast .onu-tickets-toast-close {
	text-decoration: none;
	font-size: 20px;
	line-height: 1;
	margin-left: auto;
}

@media (max-width: 767px) {
	.header-bell .header-bell-menu {
		max-height: 320px;
	}
}

/* Keep navbar items on single row */
@media (min-width: 1366px) {
	html:not(.smartolt-nav-compact) .navbar.navbar-fixed-top .navbar-collapse .nav.navbar-nav > li > a {
		padding-left: 12px;
		padding-right: 12px;
	}
}

@media (min-width: 1000px) {
	.navbar.navbar-fixed-top > .container {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
	}
	.navbar.navbar-fixed-top .navbar-header {
		float: none;
		flex-shrink: 0;
		min-width: 0;
	}
	.navbar.navbar-fixed-top .navbar-collapse.collapse {
		display: flex !important;
		flex-wrap: nowrap;
		align-items: center;
		float: none;
		flex: 1;
		overflow: visible;
		padding: 0;
	}
	.navbar.navbar-fixed-top .navbar-collapse .nav.navbar-nav {
		float: none;
		display: flex;
		flex-wrap: nowrap;
	}
	.navbar.navbar-fixed-top .navbar-collapse .nav.navbar-nav > li {
		float: none;
		white-space: nowrap;
	}
	.navbar.navbar-fixed-top .navbar-collapse .nav.navbar-nav > li > a {
		display: flex;
		align-items: center;
		gap: 4px;
	}
	.navbar.navbar-fixed-top .navbar-collapse .nav.navbar-nav > li > a > .caret {
		display: inline-block;
		margin-top: 5px;
	}
	.navbar.navbar-fixed-top .navbar-collapse .nav.navbar-nav.navbar-right {
		flex-shrink: 0;
	}
	.navbar.navbar-fixed-top .navbar-brand.text-ellipsis {
		flex-shrink: 1;
		min-width: 0;
	}
}

/* The colours the Map menu shares with the map page are defined once here, and onu_map.css reads them:
   Open map and Area maps take the Layers and Area maps bar tools, Cabinets and Splitter boxes take the map
   element glyphs. Map objects and Fiber types have their own colours. The light shade is for dark rows: a
   hovered row, the night menu, and the inline phone menu. */
:root {
	--map-tool-layers: #2563eb;
	--map-tool-layers-light: #93c5fd;
	--map-tool-area: #16a34a;
	--map-tool-area-light: #86efac;
	--map-element-cabinet: #0891b2;
	--map-element-splitter: #d97706;
}
.map-menu-icon { color: var(--map-menu-ink); }
.map-menu-icon-map { --map-menu-ink: var(--map-tool-layers); --map-menu-light: var(--map-tool-layers-light); }
.map-menu-icon-area { --map-menu-ink: var(--map-tool-area); --map-menu-light: var(--map-tool-area-light); }
.map-menu-icon-cabinet { --map-menu-ink: var(--map-element-cabinet); --map-menu-light: #67e8f9; }
.map-menu-icon-splitter { --map-menu-ink: var(--map-element-splitter); --map-menu-light: #fcd34d; }
.map-menu-icon-object { --map-menu-ink: #e11d48; --map-menu-light: #fda4af; }
.map-menu-icon-pole { --map-menu-ink: #475569; --map-menu-light: #cbd5e1; }
.map-menu-icon-fiber { --map-menu-ink: #4f46e5; --map-menu-light: #a5b4fc; }
.dropdown-menu > li > a:hover .map-menu-icon,
.dropdown-menu > li > a:focus .map-menu-icon,
html.smartolt-night .map-menu-icon { color: var(--map-menu-light); }
@media (max-width: 767px) {
	.map-menu-icon { color: var(--map-menu-light); }
}

.help-block.small {
	margin-bottom: 0px !important;
	font-size: 13px;
}

.btn.btn-link {
	-webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

.not-selectable {
	-webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

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

.panel-heading a {
	text-decoration: none !important;
	color: #2c3e50;
}

.fa-md {
	font-size: 1.4em !important;
	vertical-align: -40%;
}

.sort-link, .sort-link:link, .sort-link:hover {
	color:inherit;
	text-decoration: none !important;
}

.inline-block {
	display:inline-block;
}

.responsive-background {
	background: url(/vendor/bootstrap/img/bg-image-4.jpg) no-repeat center center fixed;
	-webkit-background-size: cover;
       -moz-background-size: cover;
         -o-background-size: cover;
            background-size: cover;
}

.white-label-responsive-background {
	background: url(/vendor/bootstrap/img/bg-image-white-label.jpg) no-repeat center center fixed;
	-webkit-background-size: cover;
       -moz-background-size: cover;
         -o-background-size: cover;
            background-size: cover;
}

.table-fixed-ellipsis {
	table-layout: fixed;
}

.table-fixed-ellipsis .user {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.default-menu {
	background-image: url(/vendor/bootstrap/img/smartolt_bg.jpg);
	box-shadow: 0 2px 5px 0 rgba(0,0,0,.26);
}


.white-label-menu {
	background-image: url(/vendor/bootstrap/img/smartolt_bg_white_label.jpg);
	box-shadow: 0 2px 5px 0 rgba(0,0,0,.26);
}

.label-yellow {
	background-color: rgb(255, 204, 0);
}

.label-green {
	background-color: #1fb325;
}

.label-bridge {
	background-color: #92adc2;
}

/* Mesh backhaul SSID badge (ONU WiFi tab + TR-069 parameter tree) */
.label-mesh-backhaul {
	background-color: #5c748d;
}

.badge-light {
	background-color: #92adc2;
	font-weight: normal;
	margin-top: 2px;
}

.label-grey {
	background-color: #CCCCCC;
}

.text-blue {
	color:#0064C8;	
}

.text-green {
	color: #1fb325;
}

.olt-port-status-up {
	color: #1fb325;
	font-weight: normal;
}

.olt-port-status-down,
.olt-port-status-disabled {
	color: #d9534f;
	font-weight: normal;
}

.text-black {
	color: #2c3e50;
}

.text-grey {
	color: #6e7175;
}

.text-red {
	color: #ff0000;
}

.auth-date {
	font-size: 14px;
}

.btn-success,.btn-primary,
.btn-warning, .btn-yellow, .btn-danger, .btn-default {
	box-shadow: 0 2px 5px 0 rgba(0,0,0,.26);
}

.btn-success:active:not(.disabled):not([disabled]),
.btn-success.active:not(.disabled):not([disabled]),
.btn-primary:active:not(.disabled):not([disabled]),
.btn-primary.active:not(.disabled):not([disabled]),
.btn-warning:active:not(.disabled):not([disabled]),
.btn-warning.active:not(.disabled):not([disabled]),
.btn-yellow:active:not(.disabled):not([disabled]),
.btn-yellow.active:not(.disabled):not([disabled]),
.btn-danger:active:not(.disabled):not([disabled]),
.btn-danger.active:not(.disabled):not([disabled]),
.btn-default:active:not(.disabled):not([disabled]),
.btn-default.active:not(.disabled):not([disabled]) {
	box-shadow: none !important;
}

.btn-warning:focus,
.btn-warning.focus,
.btn-warning:hover {
	border-color: #c87f0a;
}

.btn-warning:active,
.btn-warning.active,
.btn-warning:active:hover,
.btn-warning.active:hover,
.btn-warning:active:focus,
.btn-warning.active:focus,
.btn-warning:active.focus,
.btn-warning.active.focus {
	background-color: #a66908;
	border-color: #a66908;
}

.btn-danger:focus,
.btn-danger.focus,
.btn-danger:hover {
	border-color: #d62c1a;
}

.btn-danger:active,
.btn-danger.active,
.btn-danger:active:hover,
.btn-danger.active:hover,
.btn-danger:active:focus,
.btn-danger.active:focus,
.btn-danger:active.focus,
.btn-danger.active.focus {
	background-color: #b62516;
	border-color: #b62516;
}

.btn-success.selected {
	background-color: #0054a9;
	border-color: #0054a9;
}

.btn {
	padding: 5px 15px !important;
}

.btn-small {
	padding: 5px 10px !important;
}

.btn-yellow {
	background: rgb(255, 204, 0);
	border-color: rgb(255, 204, 0);
	color: white;
}

.btn-yellow:hover, .btn-yellow:focus {
	background: #e6b800;
	border-color: #e6b800;
}

.btn-yellow:active,
.btn-yellow.active,
.btn-yellow:active:hover,
.btn-yellow.active:hover,
.btn-yellow:active:focus,
.btn-yellow.active:focus,
.btn-yellow:active.focus,
.btn-yellow.active.focus {
	background: #cca300;
	border-color: #cca300;
}

.btn-link {
	padding: 0px 10px !important;
}

/* Billing fold title: a btn-link that reads as a heading and keeps its colour after a click */
.btn.btn-link.billing-fold-toggle {
	padding: 0 !important;
	border: 0;
	margin: 0;
	font-weight: 700;
	text-align: left;
	white-space: normal;
}

.btn.btn-link.billing-fold-toggle,
.btn.btn-link.billing-fold-toggle:hover,
.btn.btn-link.billing-fold-toggle:focus,
.btn.btn-link.billing-fold-toggle:active,
.btn.btn-link.billing-fold-toggle:active:focus {
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}

.billing-fold-toggle .fa {
	color: #2f6fb5;
}

/* The glyph is centred in its box: a left-aligned caret turns about the box centre and jumps ~5px up when open */
.billing-fold-toggle .fa,
.caret-disclosure .fa,
.guide-card-caret {
	width: 16px;
	text-align: center;
	transition: transform .15s ease;
}

/* An open fold turns its caret down, so the pages need no script for the icon */
.billing-fold-toggle[aria-expanded="true"] .fa,
.caret-disclosure[aria-expanded="true"] .fa,
.guide-card-toggle[aria-expanded="true"] .guide-card-caret {
	transform: rotate(90deg);
}

@media (prefers-reduced-motion: reduce) {
	.billing-fold-toggle .fa,
	.caret-disclosure .fa,
	.guide-card-caret {
		transition: none;
	}
}

html.smartolt-night .btn.btn-link.billing-fold-toggle,
html.smartolt-night .btn.btn-link.billing-fold-toggle:hover,
html.smartolt-night .btn.btn-link.billing-fold-toggle:focus,
html.smartolt-night .btn.btn-link.billing-fold-toggle:active,
html.smartolt-night .btn.btn-link.billing-fold-toggle:active:focus {
	color: #f1f5f9;
}

html.smartolt-night .billing-fold-toggle .fa {
	color: #69a7ff;
}

/* "How it works" card, backend/partials/guide_card.php */
.guide-card {
	border: 1px solid #cecece;
	border-radius: 4px;
	margin-bottom: 20px;
	overflow: hidden;
	background-color: #fff;
}

.guide-card-title {
	margin: 0;
	font-size: 15px;
}

.guide-card-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 12px 16px;
	border: 0;
	background-color: #ecf0f1;
	color: #2c3e50;
	font-weight: 600;
	text-align: left;
}

.guide-card-title-text {
	flex: 1 1 auto;
	min-width: 0;
}

.guide-card-body {
	border-top: 1px solid #cecece;
}

.guide-card-list {
	margin: 0;
	padding: 14px 20px 14px 40px;
	font-size: 15px;
}

.guide-card-list li + li {
	margin-top: 6px;
}

html.smartolt-night .guide-card {
	background-color: rgba(15, 26, 46, 0.92);
	border-color: rgba(255, 255, 255, 0.12);
}

html.smartolt-night .guide-card-toggle {
	background-color: rgba(255, 255, 255, 0.05);
	color: #e2e8f0;
}

html.smartolt-night .guide-card-toggle:hover,
html.smartolt-night .guide-card-toggle:focus {
	background-color: rgba(29, 139, 255, 0.1);
}

html.smartolt-night .guide-card-body {
	border-top-color: rgba(255, 255, 255, 0.1);
}

html.smartolt-night .guide-card-list {
	color: #e2e8f0;
}

/* Numbered step: step_badge() in common_helper.php. The plain circle is the step to do now. */
.step-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	margin-right: 8px;
	border-radius: 50%;
	background-color: #2f6fb5;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.step-badge.is-done {
	background-color: #15803d;
}

.step-badge.is-waiting {
	background-color: transparent;
	color: #475569;
	box-shadow: inset 0 0 0 2px #94a3b8;
}

/* Language buttons: backend/partials/language_buttons.php */
.language-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
}

.language-buttons-label {
	font-size: 14px;
	font-weight: 600;
	margin-right: 4px;
}

.language-buttons .btn {
	font-size: 14px;
}

.language-buttons-mark {
	margin-left: 6px;
}

.language-buttons .btn-default .language-buttons-mark {
	color: #b45309;
}

html.smartolt-night .language-buttons .btn-default .language-buttons-mark {
	color: #fcd34d;
}

/* Billing link toggle: stays a blue link and does not change colour after a click */
.btn.btn-link.billing-link-toggle,
.btn.btn-link.billing-link-toggle:focus,
.btn.btn-link.billing-link-toggle:active,
.btn.btn-link.billing-link-toggle:active:focus {
	color: #2f6fb5;
	text-decoration: none;
	box-shadow: none;
}

.btn.btn-link.billing-link-toggle:hover {
	color: #1f4f87;
	text-decoration: underline;
}

html.smartolt-night .btn.btn-link.billing-link-toggle,
html.smartolt-night .btn.btn-link.billing-link-toggle:focus,
html.smartolt-night .btn.btn-link.billing-link-toggle:active,
html.smartolt-night .btn.btn-link.billing-link-toggle:active:focus {
	color: #69a7ff;
}

html.smartolt-night .btn.btn-link.billing-link-toggle:hover {
	color: #8cc8ff;
}

.billing-catalog-tabs {
	margin-bottom: 10px;
}

.billing-catalog-tabs > li > a {
	font-size: 15px;
}

.billing-catalog-help {
	margin: 0 0 14px;
	font-size: 14px;
	color: #64748b;
}

html.smartolt-night .billing-catalog-help {
	color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 767px) {
	.billing-catalog-tabs {
		display: flex;
		flex-wrap: wrap;
	}

	.billing-catalog-tabs > li {
		float: none;
	}
}

.control-checkbox {
	margin-left: 20px;
}

.alert-success a,
.alert-success a:hover,
.alert-success a:focus {
	color: white;
}

.form-horizontal .checkbox,
.form-horizontal .radio-inline,
.form-horizontal .checkbox-inline {
	padding-top: 0px !important;
}

.form-horizontal .radio-single {
	padding-top: 0px !important;
	margin-left: 20px;
	font-weight: normal;
}

.form-horizontal .radio-single.only-label {
	margin-left: 0px;
}

.control-label.radio-inline {
	font-weight: bold;
}

.btn-link-slim {
	margin-bottom: 3px;
	padding-left: 0px !important;
	border: none;
}

.btn-primary-outline {
	background-color: transparent;
	border: none;
}

.input-group-addon {
	padding: 5px !important;
}

.input-xs {
	padding: 2px 5px;
	height: 110%;
	font-size: 13px;
	border-radius: 4px;
}	
  
.input-80 {
	width: 80px !important;
}

.input-90 {
	width: 90px !important;
}

.input-100 {
	width: 100px !important;
}

.input-120 {
	width: 120px !important;
}

.input-140 {
	width: 140px !important;
}

.input-150 {
	width: 150px !important;
}

.input-180 {
	width: 180px !important;
}

.input-190 {
	width: 190px !important;
}

.input-220 {
	width: 220px !important;
}

.input-284 {
	width: 284px !important;
}

.input-358 {
	width: 358px !important;
}

@media only screen and (max-width : 998px) {
	.input-80,
	.input-90,
	.input-100,
	.input-120,
	.input-140,
	.input-150,
	.input-180,
	.input-190,
	.input-220,
	.input-284,
	.input-358 {
		width: 100% !important;
	}
}

.colorpicker-component {
	padding-right: 15px !important;
	padding-left: 15px !important;
}

.multiselect-clear-filter {
	padding:10px 5px !important;
}

/* initFormMultiselect() in common.js. The native list is tall until the multiselect replaces it, which made the page jump on load. */
select.form-multiselect[multiple] {
	height: 34px;
	overflow: hidden;
}

/* Long labels, such as a pool name with its range, ran past the screen edge on a phone. */
.form-multiselect-group .multiselect-container {
	max-width: 100%;
}

.form-multiselect-group .multiselect-container > li > a > label {
	white-space: normal;
	overflow-wrap: anywhere;
}

.panel-heading-button {
	margin-top: -5px;
}

.panel-olt {
	height: 325px;
}

.panel-body-olts {
	height: 281px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.dashboard-img {
	height: 150px;
	max-width: 100%;
	object-fit: contain;
	margin: 0 auto;
    display: block;
}

.padding-top {
	padding-top: 11px !important;
}

.padding-top-small {
	padding-top: 5px !important;
}

.no-padding-top {
	padding-top: 0px !important;
}

.no-padding-right {
	padding-right: 0px !important;
}

.no-padding-left {
	padding-left: 0px !important;
}

.padding-left {
	padding-left: 22px !important;
}

.padding-left-xs {
	padding-left: 10px !important;
}

.margin-top {
	margin-top: 10px !important;
}

.margin-top-lg {
	margin-top: 35px !important;
}

.margin-top-xlg {
	margin-top: 60px !important;
}

.margin-top-xxs {
	margin-top: 3px !important;
}

.no-margin-bottom {
	margin-bottom: 0px !important;
}

.margin-bottom {
	margin-bottom: 10px !important;
}

.margin-bottom-lg {
	margin-bottom: 35px !important;
}

.margin-right {
	margin-right: 10px !important;
}

.margin-right-xs {
	margin-right: 5px !important;
}

.margin-left {
	margin-left: 10px !important;
}

.margin-left-sm {
	margin-left: 22px !important;
}

.margin-10 {
	margin: 10px !important;
}

.no-margin-left {
	margin-left: 0px !important;
}

.inline-block {
	display: inline-block;
}

.width-10 {
	width: 10px !important;
	min-width: 10px !important;
}

.width-25 {
	width: 25px !important;
	min-width: 25px !important;
}

.width-120 {
	width: 120px !important;
	min-width: 120px !important;
}

.min-width-250 {
	min-width: 250px !important;
}

.form-horizontal .checkbox.padding-top {
	padding-top: 11px !important;
}

.white-text {
	color: white;
}

.onu-wrapper .col-xs-12,
.onu-wrapper .col-sm-6 {
	padding: 0px !important;
}

#map-canvas,
#map-leaflet {
  height: 200px;
  border: 2px solid #fff;
}

.equipment {
	padding-bottom: 15px;
}

#status {
	margin-top: 5px;
}

.pagination {
	margin: 0px;
}

.pagination>li>a, 
.pagination>li>span {
    position: relative;
    float: left;
    padding: 6px 12px;
    margin-left: -1px;
    line-height: 1.42857143;
    color: #2C3E50;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
}

.pagination > .active > a, 
.pagination > .active > span, 
.pagination > .active > a:hover, 
.pagination > .active > span:hover, 
.pagination > .active > a:focus, 
.pagination > .active > span:focus {
    z-index: 2;
    color: #2c3e50;
    background-color: #eee;
    border-color: #ddd;
}

.pon-type-filter {
	margin-top: 5px;
}

.pon-type-filter span {
	font-weight: bold;
	cursor: pointer !important; 
	cursor: hand !important;
}

.pon-type-filter .pagination > li > span:hover,
.pon-type-filter .pagination > li > span:focus {
	z-index: 2 !important;
    border-color: #ddd !important;
}

.pon-type-filter .pagination > .active > span:hover,
.pon-type-filter .pagination > .active > span:focus {
	z-index: 2 !important;
    border-color: #ddd !important;
}

.pon-type-filter label {
	vertical-align: top !important;
	padding-top: 7px;
}

.status-signal-filters .pagination + .pagination {
	margin-left: 6px;
	padding-left: 8px;
	border-left: 1px solid #ddd;
}

@media (max-width: 767px) {
	.status-signal-filters {
		display: flex;
		align-items: stretch;
		width: 100%;
		margin-top: 26px;
	}
	.status-signal-filters .pagination {
		display: flex;
		flex: 5 1 0;
		min-width: 0;
	}
	.status-signal-filters .pagination + .pagination {
		flex-grow: 3;
		margin-left: 10px;
		padding-left: 10px;
		border-radius: 0;
	}
	.status-signal-filters .pagination > li {
		flex: 1 1 0;
		min-width: 0;
	}
	.status-signal-filters .pagination > li > span {
		float: none;
		display: flex;
		align-items: center;
		justify-content: center;
		height: 44px;
		padding: 0;
		font-size: 16px;
	}
}

.no-default-uppercase {
	text-transform:none !important;
}

._select_color{
    font-size: 20px;
    padding: 10px 12px;
    font-weight: 300;
    line-height: 28px;
    border-radius: 4px;
    border: 1px solid #ccc;
    -webkit-appearance: none;
    width: 100%;
    height: auto;
    box-shadow: none;
    text-align: left;
    background-image: none;
    background: white;
}
._select_color_drop {
    margin: 0;
    padding: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    top: 99%;
    border-top: 0;
    width: 100%;
}
._select_color_drop > li {
    /* display: inline-block; */
    padding: 7px;
    border-right: 1px solid rgba(192, 192, 192, 0.55);
    cursor: pointer;
    float: left;
}
._select_color_drop > li > .color,.btn > span.color{
    width: 25px;
    height: 25px;
    border-radius: 4px;
    float: left;
}
.dropdown .btn:hover, .dropdown .btn:focus, .dropdown .btn.focus {
    color: inherit;
}
.btn > span.color {
	margin-right:10px
}
#buffers-wrapper .btn .caret{
    float: right;
    border-top: 7px solid;
    font-size: 28px;
    padding-top: 5px;
    vertical-align: middle;
    position: absolute;
    right: 20px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    top: 17px;    
}

#buffers-wrapper .btn.disabled, #buffers-wrapper .btn[disabled], #buffers-wrapper fieldset[disabled] .btn {
	opacity:1;
}
._select_color_drop > li > .blue ,.btn._select_color > span.blue{background-color: blue;}
._select_color_drop > li > .orange ,.btn._select_color > span.orange{background-color: orange;}
._select_color_drop > li > .green ,.btn._select_color > span.green{background-color: green;}
._select_color_drop > li > .brown ,.btn._select_color > span.brown{background-color: brown;}
._select_color_drop > li > .grey ,.btn._select_color > span.grey{background-color: silver;}
._select_color_drop > li > .white ,.btn._select_color > span.white{background-color: white; border: 1px solid black;}
._select_color_drop > li > .red ,.btn._select_color > span.red{background-color: red;}
._select_color_drop > li > .black ,.btn._select_color > span.black{background-color: black;}
._select_color_drop > li > .yellow ,.btn._select_color > span.yellow{background-color: yellow;}
._select_color_drop > li > .violet ,.btn._select_color > span.violet{background-color: #800080;}
._select_color_drop > li > .pink ,.btn._select_color > span.pink{background-color: pink;}
._select_color_drop > li > .turquoise ,.btn._select_color > span.turquoise{background-color: #40e0d0;}
._select_color_drop > li > .blue_w_black ,.btn._select_color > span.blue_w_black{background-image: linear-gradient(blue 33.33%, black 33.33%, black 66.66%, blue 66.66%);  background-size: 100% 100%;}
._select_color_drop > li > .orange_w_black ,.btn._select_color > span.orange_w_black{background-image: linear-gradient(orange 33.33%, black 33.33%, black 66.66%, orange 66.66%);  background-size: 100% 100%;}
._select_color_drop > li > .green_w_black ,.btn._select_color > span.green_w_black{background-image: linear-gradient(green 33.33%, black 33.33%, black 66.66%, green 66.66%);  background-size: 100% 100%;}
._select_color_drop > li > .brown_w_black ,.btn._select_color > span.brown_w_black{background-image: linear-gradient(brown 33.33%, black 33.33%, black 66.66%, brown 66.66%);  background-size: 100% 100%;}
._select_color_drop > li > .grey_w_black ,.btn._select_color > span.grey_w_black{background-image: linear-gradient(silver 33.33%, black 33.33%, black 66.66%, silver 66.66%);  background-size: 100% 100%;}
._select_color_drop > li > .white_w_black ,.btn._select_color > span.white_w_black{background-image: linear-gradient(white 33.33%, black 33.33%, black 66.66%, white 66.66%);  background-size: 100% 100%; border: 1px solid black;}
._select_color_drop > li > .red_w_black ,.btn._select_color > span.red_w_black{background-image: linear-gradient(red 33.33%, black 33.33%, black 66.66%, red 66.66%);  background-size: 100% 100%;}
._select_color_drop > li > .black_w_yellow ,.btn._select_color > span.black_w_yellow{background-image: linear-gradient(black 33.33%, yellow 33.33%, yellow 66.66%, black 66.66%);  background-size: 100% 100%;}
._select_color_drop > li > .yellow_w_black ,.btn._select_color > span.yellow_w_black{background-image: linear-gradient(yellow 33.33%, black 33.33%, black 66.66%, yellow 66.66%);  background-size: 100% 100%;}
._select_color_drop > li > .violet_w_black ,.btn._select_color > span.violet_w_black{background-image: linear-gradient(#800080 33.33%, black 33.33%, black 66.66%, #800080 66.66%);  background-size: 100% 100%;}
._select_color_drop > li > .pink_w_black ,.btn._select_color > span.pink_w_black{background-image: linear-gradient(pink 33.33%, black 33.33%, black 66.66%, pink 66.66%);  background-size: 100% 100%;}
._select_color_drop > li > .turquoise_w_black ,.btn._select_color > span.turquoise_w_black{background-image: linear-gradient(#40e0d0 33.33%, black 33.33%, black 66.66%, #40e0d0 66.66%);  background-size: 100% 100%;}
._select_color_drop > li > .blue_w_red ,.btn._select_color > span.blue_w_red{background-image: linear-gradient(blue 33.33%, red 33.33%, red 66.66%, blue 66.66%);  background-size: 100% 100%;}
._select_color_drop > li > .orange_w_red ,.btn._select_color > span.orange_w_red{background-image: linear-gradient(orange 33.33%, red 33.33%, red 66.66%, orange 66.66%);  background-size: 100% 100%;}
._select_color_drop > li > .green_w_red ,.btn._select_color > span.green_w_red{background-image: linear-gradient(green 33.33%, red 33.33%, red 66.66%, green 66.66%);  background-size: 100% 100%;}
._select_color_drop > li > .brown_w_red ,.btn._select_color > span.brown_w_red{background-image: linear-gradient(brown 33.33%, red 33.33%, red 66.66%, brown 66.66%);  background-size: 100% 100%;}
._select_color_drop > li > .grey_w_red ,.btn._select_color > span.grey_w_red{background-image: linear-gradient(silver 33.33%, red 33.33%, red 66.66%, silver 66.66%);  background-size: 100% 100%;}
._select_color_drop > li > .white_w_red ,.btn._select_color > span.white_w_red{background-image: linear-gradient(white 33.33%, red 33.33%, red 66.66%, white 66.66%);  background-size: 100% 100%; border: 1px solid black;}
._select_color_drop > li > .red_w_yellow ,.btn._select_color > span.red_w_yellow{background-image: linear-gradient(red 33.33%, yellow 33.33%, yellow 66.66%, red 66.66%);  background-size: 100% 100%;}
._select_color_drop > li > .black_w_red ,.btn._select_color > span.black_w_red{background-image: linear-gradient(black 33.33%, red 33.33%, red 66.66%, black 66.66%);  background-size: 100% 100%;}
._select_color_drop > li > .yellow_w_red ,.btn._select_color > span.yellow_w_red{background-image: linear-gradient(yellow 33.33%, red 33.33%, red 66.66%, yellow 66.66%);  background-size: 100% 100%;}
._select_color_drop > li > .violet_w_red ,.btn._select_color > span.violet_w_red{background-image: linear-gradient(#800080 33.33%, red 33.33%, red 66.66%, #800080 66.66%);  background-size: 100% 100%;}
._select_color_drop > li > .pink_w_red ,.btn._select_color > span.pink_w_red{background-image: linear-gradient(pink 33.33%, red 33.33%, red 66.66%, pink 66.66%);  background-size: 100% 100%;}
._select_color_drop > li > .turquoise_w_red ,.btn._select_color > span.turquoise_w_red{background-image: linear-gradient(#40e0d0 33.33%, red 33.33%, red 66.66%, #40e0d0 66.66%);  background-size: 100% 100%;}
._select_color_drop > li > .blue_w_green ,.btn._select_color > span.blue_w_green{background-image: linear-gradient(blue 33.33%, green 33.33%, green 66.66%, blue 66.66%);  background-size: 100% 100%;}
._select_color_drop > li > .orange_w_green ,.btn._select_color > span.orange_w_green{background-image: linear-gradient(orange 33.33%, green 33.33%, green 66.66%, orange 66.66%);  background-size: 100% 100%;}
._select_color_drop > li > .red_w_green ,.btn._select_color > span.red_w_green{background-image: linear-gradient(red 33.33%, green 33.33%, green 66.66%, red 66.66%);  background-size: 100% 100%;}



/* custom */

.notranslate {
    translate: none;
}

.select-search {
	text-align: left;
	white-space: nowrap;
	padding: 5px;
}

button.multiselect {
	padding: 10px 5px 10px 10px;
}

.multiselect-selected-text { 
    width: -webkit-calc(100% - 10px);
    width:    -moz-calc(100% - 10px);
    width:         calc(100% - 10px);
	display: inline-block;
	overflow: hidden;
}

.h-75 {
	min-height: 75vh;
}

.full-width {
	width: 100%;
}

.overflow-hidden {
	overflow: hidden;
}

img.img-smartolt-small {
	height: 150px;
	width: 454px;
}

img.img-smartolt-big {
	height: 190px;
	width: 484px;
}

img.img-smartolt-dashboard {
	height: 251px;
	width: 694px;
}

.panel-heading .accordion-toggle:after {
    /* symbol for "opening" panels */
    font-family: 'Glyphicons Halflings';  /* essential for enabling glyphicon */
    content: "\e114";    /* adjust as needed, taken from bootstrap.css */
    float: right;        /* adjust as needed */
    color: grey;         /* adjust as needed */
}
.panel-heading .accordion-toggle.collapsed:after {
    /* symbol for "collapsed" panels */
    content: "\e080";    /* adjust as needed, taken from bootstrap.css */
}

.lb-sm {
  font-size: 12px;
  padding: 6px;
}

.lb-md {
  font-size: 14px;
}

.lb-lg {
  font-size: 16px;
  padding: 6px;

}

.collapsing {
    -webkit-transition: none;
    transition: none;
}

.livetr069graph {
	padding: 2px 0px !important;
	margin: 0px !important;
	width: 100%;
	border-width: 0px !important;
	border-radius: 4px;
	color: #2c3e50;
	white-space: nowrap;
	font-size: 12px;
}

.tr69 > .panel-heading {
	color: inherit;
	background-color: #ebebeb;
	border-color: #cecece;
	padding: 5px 15px;
}
.tr69.panel {
	margin-bottom: 5px;
}
.tr69.panel-info {
	border-color: #cecece;
}

button[data-operation=delTag] {
	background-color: Transparent;
	border: 0px;
	padding: 0px;
}

.tr69 > .panel-heading {
  font-weight: bold;
}
.panel-body.tr69data {
  padding: 1px;
}

span > .tr69actionBtn {
	margin: 10px;
}

@media (min-width: 768px) {
	.modal-xl {
	  width: 90%;
	 max-width:1200px;
	}
}

/* custom inclusion of right, left and below tabs */

.tabs-below > .nav-tabs,
.tabs-right > .nav-tabs,
.tabs-left > .nav-tabs {
  border-bottom: 0;
}

.tab-content > .tab-pane,
.pill-content > .pill-pane {
  display: none;
}

.tab-content > .active,
.pill-content > .active {
  display: block;
}

.tabs-below > .nav-tabs {
  border-top: 1px solid #ddd;
}

.tabs-below > .nav-tabs > li {
  margin-top: -1px;
  margin-bottom: 0;
}

.tabs-below > .nav-tabs > li > a {
  -webkit-border-radius: 0 0 4px 4px;
     -moz-border-radius: 0 0 4px 4px;
          border-radius: 0 0 4px 4px;
}

.tabs-below > .nav-tabs > li > a:hover,
.tabs-below > .nav-tabs > li > a:focus {
  border-top-color: #ddd;
  border-bottom-color: transparent;
}

.tabs-below > .nav-tabs > .active > a,
.tabs-below > .nav-tabs > .active > a:hover,
.tabs-below > .nav-tabs > .active > a:focus {
  border-color: transparent #ddd #ddd #ddd;
}

.tabs-left > .nav-tabs > li,
.tabs-right > .nav-tabs > li {
  float: none;
}

.tabs-left > .nav-tabs > li > a,
.tabs-right > .nav-tabs > li > a {
  min-width: 74px;
  margin-right: 0;
  margin-bottom: 3px;
}

.tabs-left > .nav-tabs {
  float: left;
  margin-right: 19px;
  border-right: 1px solid #ddd;
}

.tabs-left > .nav-tabs > li > a {
  margin-right: -1px;
  -webkit-border-radius: 4px 0 0 4px;
     -moz-border-radius: 4px 0 0 4px;
          border-radius: 4px 0 0 4px;
}

.tabs-left > .nav-tabs > li > a:hover,
.tabs-left > .nav-tabs > li > a:focus {
  border-color: #eeeeee #dddddd #eeeeee #eeeeee;
}

.tabs-left > .nav-tabs .active > a,
.tabs-left > .nav-tabs .active > a:hover,
.tabs-left > .nav-tabs .active > a:focus {
  border-color: #ddd transparent #ddd #ddd;
  *border-right-color: #ffffff;
}

.tabs-right > .nav-tabs {
  float: right;
  margin-left: 19px;
  border-left: 1px solid #ddd;
}

.tabs-right > .nav-tabs > li > a {
  margin-left: -1px;
  -webkit-border-radius: 0 4px 4px 0;
     -moz-border-radius: 0 4px 4px 0;
          border-radius: 0 4px 4px 0;
}

.tabs-right > .nav-tabs > li > a:hover,
.tabs-right > .nav-tabs > li > a:focus {
  border-color: #eeeeee #eeeeee #eeeeee #dddddd;
}

.tabs-right > .nav-tabs .active > a,
.tabs-right > .nav-tabs .active > a:hover,
.tabs-right > .nav-tabs .active > a:focus {
  border-color: #ddd #ddd #ddd transparent;
  *border-left-color: #ffffff;
}

.content-wrap {
	min-height: 90vh;
}

#moveBtn {
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
    padding: 10px 40px;
    z-index: 1060;
}

.modal.slide-right .modal-dialog {
    margin-left: auto !important;
    margin-right: 30px !important;
    transition: margin .4s ease;
}
.modal.slide-left .modal-dialog {
    margin-left: auto !important;
    margin-right: auto !important;
    transition: margin .4s ease;
}

.task-progress .progress .progress-text {
	position: absolute;
	left: 45%;
	font-size: 12px;
	font-weight: bold;
	color: #2c3e50;
	white-space: nowrap;
}

/* Toggle switch container */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

/* Hide the checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch input:focus-visible + .slider {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Slider background */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

/* Slider handle */
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

/* Checked state */
input:checked + .slider {
  background-color: #4CAF50;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

html.smartolt-night .switch .slider {
  background-color: rgba(255, 255, 255, 0.18);
}

html.smartolt-night .switch .slider:before {
  background-color: #e2e8f0;
}

html.smartolt-night .switch input:checked + .slider {
  background-color: #22c55e;
}

html.smartolt-night .switch input:checked + .slider:before {
  background-color: #fff;
}

#auto_interval_group .pagination li span {
  color: #4CAF50;
  border: 1px solid #4CAF50;
  padding: 5px 12px;
  border-radius: 4px;
  transition: 0.2s;
  cursor: pointer;
}

#auto_interval_group .pagination li.active span,
#auto_interval_group .pagination li span:hover,
#auto_interval_group .pagination li span:focus {
  background-color: #4CAF50;
  color: white;
}

#auto_interval_group .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

a:focus:not(:focus-visible),
input[type="file"]:focus:not(:focus-visible),
input[type="radio"]:focus:not(:focus-visible),
input[type="checkbox"]:focus:not(:focus-visible) {
  outline: none;
}

/* Native file inputs: Bootswatch's fixed .form-control height (45px, or 35px with
   .input-sm) plus top padding crops the browser's "Choose file" button so its bottom
   border is cut off. Size to content instead, keeping it aligned with sibling inputs.
   Applies app-wide to any file input carrying .form-control. */
input[type="file"].form-control {
  height: auto;
  min-height: 35px;
  line-height: 1.5;
}

/* In-input eye toggle for password/secret fields. Wrap positions the icon, the
   input reserves room for it on the right. Night overrides live in
   dashboard-smartolt-night.css. */
.password-visibility-wrap {
  position: relative;
}

.password-visibility-input {
  padding-right: 42px;
}

.password-visibility-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}

.password-visibility-toggle:hover,
.password-visibility-toggle:focus {
  color: #333;
  outline: none;
}

/* Small inputs (.input-sm, e.g. the TR-069 parameter tree) are narrower and shorter,
   so the icon sits tighter to the edge. */
.password-visibility-input.input-sm {
  padding-right: 34px;
}

.password-visibility-input.input-sm ~ .password-visibility-toggle {
  right: 10px;
}

/* TR-069 parameter tree: passphrase fields are real text inputs (a filled
   type=password input makes the browser offer to save it as a credential), so
   the masking is done here. Theme-independent - no night override needed. */
input.tr69-masked {
  -webkit-text-security: disc;
}

/* The line between the sections of the ONU details page: notes, SN history, PPPoE account, client portal. */
.onu-section-divided {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid rgba(128, 128, 128, 0.25);
}

/* ONU web password fields: the copy button is attached to the right side of the input.
   The first child is the eye wrap, or the bare input on the TR-069 screen. */
.web-password-row {
  display: flex;
  align-items: stretch;
}

.web-password-row > :first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.web-password-row .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* Beats the global action button elevation and the phone-width .btn bottom margin:
   either one would leave the button out of line with the input. */
.web-password-row > .btn.web-password-copy {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0 0 0 -1px;
  padding-top: 0;
  padding-bottom: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  background-color: #fff;
  border-color: #dce4ec;
  color: #777;
}

.web-password-row > .btn.web-password-copy:hover,
.web-password-row > .btn.web-password-copy:focus,
.web-password-row > .btn.web-password-copy:active,
.web-password-row > .btn.web-password-copy:active:focus {
  background-color: #f4f6f8;
  border-color: #dce4ec;
  color: #333;
  outline: none;
}

/* "Suggest a strong password" link under the input. */
.web-password-actions {
  margin-top: 6px;
}

/* Global action button elevation: keep all colored action buttons aligned with Get Status. */
.btn-success,
.btn-primary,
.btn-warning,
.btn-yellow,
.btn-danger,
.btn-default,
.btn-success:hover,
.btn-primary:hover,
.btn-warning:hover,
.btn-yellow:hover,
.btn-danger:hover,
.btn-default:hover,
.btn-success:focus,
.btn-primary:focus,
.btn-warning:focus,
.btn-yellow:focus,
.btn-danger:focus,
.btn-default:focus,
.btn-success.focus,
.btn-primary.focus,
.btn-warning.focus,
.btn-yellow.focus,
.btn-danger.focus,
.btn-default.focus {
	-webkit-box-shadow: 0 2px 5px 0 rgba(0,0,0,.26) !important;
	box-shadow: 0 2px 5px 0 rgba(0,0,0,.26) !important;
}

.btn-success:active,
.btn-primary:active,
.btn-warning:active,
.btn-yellow:active,
.btn-danger:active,
.btn-default:active,
.btn-success.active,
.btn-primary.active,
.btn-warning.active,
.btn-yellow.active,
.btn-danger.active,
.btn-default.active,
.btn-success:active:hover,
.btn-primary:active:hover,
.btn-warning:active:hover,
.btn-yellow:active:hover,
.btn-danger:active:hover,
.btn-default:active:hover,
.btn-success:active:focus,
.btn-primary:active:focus,
.btn-warning:active:focus,
.btn-yellow:active:focus,
.btn-danger:active:focus,
.btn-default:active:focus,
.btn-success.active:focus,
.btn-primary.active:focus,
.btn-warning.active:focus,
.btn-yellow.active:focus,
.btn-danger.active:focus,
.btn-default.active:focus {
	-webkit-box-shadow: none !important;
	box-shadow: none !important;
}

/* Wide-tables layout (theme-agnostic; applies in both light and night themes).
   Lives here, not in dashboard-smartolt-night.css, so a night-only cleanup
   can't break light-mode wide tables. */
#smartolt-wide-table-toggle {
  opacity: 0.82;
}

@media (max-width: 1439px) {
  #smartolt-wide-table-toggle {
    display: none !important;
  }

  html.smartolt-wide-tables body.smartolt-site #onu_configured_list,
  html.smartolt-wide-tables body.smartolt-site .diagnostics-list-wide-host,
  html.smartolt-wide-tables body.smartolt-site .system-config-wide-host {
    left: auto !important;
    max-width: 100% !important;
    position: static !important;
    width: auto !important;
  }
}

@media (min-width: 1440px) {
html.smartolt-wide-tables {
  --smartolt-wide-table-margin: 40px;
}

#smartolt-wide-table-toggle:hover,
#smartolt-wide-table-toggle:focus,
#smartolt-wide-table-toggle.is-active {
  opacity: 1;
}

#smartolt-wide-table-toggle .smartolt-wide-icon-compress {
  display: none;
}

html.smartolt-wide-tables #smartolt-wide-table-toggle .smartolt-wide-icon-expand {
  display: none;
}

html.smartolt-wide-tables #smartolt-wide-table-toggle .smartolt-wide-icon-compress {
  display: inline-block;
}

html.smartolt-wide-tables body.smartolt-site #onu_configured_list,
html.smartolt-wide-tables body.smartolt-site .diagnostics-list-wide-host,
html.smartolt-wide-tables body.smartolt-site .system-config-wide-host {
  box-sizing: border-box;
  left: calc(50% - 50vw + var(--smartolt-wide-table-margin));
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  position: relative;
  width: calc(100vw - (var(--smartolt-wide-table-margin) * 2));
}

html.smartolt-wide-tables body.smartolt-site #onu_configured_list > .container-fluid,
html.smartolt-wide-tables body.smartolt-site .diagnostics-list-wide-host {
  padding-left: 0;
  padding-right: 0;
}

html.smartolt-wide-tables body.smartolt-site #onu_configured_list > .container-fluid > .row,
html.smartolt-wide-tables body.smartolt-site .diagnostics-list-wide-host > .row {
  margin-left: 0;
  margin-right: 0;
}
}

/* inline <code> tokens (e.g. /newbot in the Telegram guide): white on neutral gray, app-wide */
code {
  color: #ffffff;
  background-color: #0064c8;
  cursor: copy;
  transition: background-color 0.12s ease;
}
code:hover {
  background-color: #1a78d6;
}
pre code {
  cursor: auto;
}
pre code:hover {
  background-color: transparent;
}
/* Click-to-copy flash bubble — shared by every copy surface handled by
   code_copy.js. Night-mode overrides live in dashboard-smartolt-night.css. */
.smartolt-copy-flash {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  color: #0064c8;
  font-size: 12px;
  font-weight: 600;
  left: 0;
  line-height: 1.2;
  opacity: 0;
  padding: 5px 10px;
  pointer-events: none;
  position: fixed;
  top: 0;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  white-space: nowrap;
  z-index: 10050;
}
.smartolt-copy-flash.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Click-to-copy cells — the affordance for any element carrying the
   smartolt-copy-cell hook. Night hover lives in dashboard-smartolt-night.css. */
.smartolt-copy-cell {
  border-radius: 4px;
  cursor: copy;
  display: inline;
  margin: -1px -4px;
  padding: 1px 4px;
  transition: background-color 0.12s ease;
}
.smartolt-copy-cell:hover {
  background-color: rgba(0, 100, 200, 0.1);
}

/* Hub card grid (Presets hub, Infrastructure hub): a landing page whose only content is a
   set of large clickable cards pointing at the real listings. Night equivalents are in
   dashboard-smartolt-night.css. */
html:not(.smartolt-night) .solt-hub-page {
  padding-top: var(--smartolt-nav-offset, 68px);
}
.solt-hub-heading {
  margin-bottom: 22px;
}
.solt-hub-heading h2 {
  margin: 0;
}
.solt-hub-row {
  display: flex;
  flex-wrap: wrap;
}
.solt-hub-column {
  display: flex;
  margin-bottom: 20px;
}
.solt-hub-card,
.solt-hub-card:hover,
.solt-hub-card:focus,
.solt-hub-card:active {
  color: #2c3e50;
  text-decoration: none !important;
}
.solt-hub-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 220px;
  padding: 26px;
  background: #fff;
  border: 1px solid #cecece;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.solt-hub-card:hover,
.solt-hub-card:focus {
  border-color: #0064c8;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
  outline: 0;
  transform: translateY(-2px);
}
.solt-hub-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  color: #0064c8;
  background: #e8f0ff;
  border-radius: 4px;
  font-size: 20px;
}
.solt-hub-card h3 {
  margin: 0 0 9px;
  font-size: 20px;
}
.solt-hub-card p {
  margin-bottom: 24px;
  line-height: 1.55;
}
html:not(.smartolt-night) .solt-hub-card p.text-muted {
  color: #5d6d7e;
}
.solt-hub-action {
  margin-top: auto;
  color: #0064c8;
  font-weight: 600;
}
.solt-hub-action .fa {
  margin-left: 5px;
  transition: transform .15s ease;
}
.solt-hub-card:hover .solt-hub-action .fa,
.solt-hub-card:focus .solt-hub-action .fa {
  transform: translateX(3px);
}
@media (max-width: 767px) {
  .solt-hub-row {
    display: block;
  }
  .solt-hub-card {
    min-height: 0;
    padding: 22px;
  }
}

/* Shared search/filter panel for listing pages (fiber types, cabinets, splitter boxes,
   map objects, area maps). Each page used to carry its own copy under a page-specific
   class prefix; reconciled here so future listings gain the look for free and the five
   pages can point at one definition instead of drifting further apart. */
.solt-filter-panel {
  align-items: flex-end;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 12px;
  padding: 14px 16px;
}
.solt-filter-panel .control-label {
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
}
.solt-filter-panel .form-group {
  margin-bottom: 0;
}
.solt-filter-panel .solt-filter-reset {
  align-self: flex-end;
  margin-bottom: 5px;
  margin-left: 0;
}
html.smartolt-night body.smartolt-site .solt-filter-panel {
  background-color: #111827;
  border-color: #273447;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}
html.smartolt-night body.smartolt-site .solt-filter-panel .control-label {
  color: #9ca3af;
}
html.smartolt-night body.smartolt-site .solt-filter-panel .form-control {
  background-color: #0f172a;
  border-color: #273447;
  color: #f9fafb;
  color-scheme: dark;
}
html.smartolt-night body.smartolt-site .solt-filter-panel .form-control::placeholder {
  color: #9ca3af;
}
@media (max-width: 767px) {
  .solt-filter-panel {
    display: block;
  }
  .solt-filter-panel .form-group {
    margin-bottom: 10px;
  }
  .solt-filter-panel .solt-filter-reset {
    margin-left: 0;
  }
}

/* Bootstrap leaves .btn with no bottom margin, so any row of buttons that wraps on a
   phone comes back as touching rows. A 375px sweep of 85 screens found it on the users
   listing, the preset and reseller-access headers, and every modal footer in the app.
   This gives the rest 8px, close to (not the same as) the 10px the ONU view already
   uses by hand via .margin-bottom. The .modal-footer selector has to be spelled out
   because bootstrap-custom zeroes the margin at that specificity. Buttons inside the
   Leaflet container keep their own spacing; the map page's modals and side panels sit
   outside that container and still pick up the 8px below. */
@media (max-width: 767px) {
  .btn,
  .modal-footer .btn + .btn {
    margin-bottom: 8px;
  }
  .btn-group > .btn,
  .input-group-btn > .btn,
  .navbar .btn,
  .dropdown-menu .btn,
  .leaflet-container .btn,
  td .btn,
  th .btn,
  .panel-heading .btn,
  .metric-card h4 .btn {
    margin-bottom: 0;
  }
  /* Same specificity as .btn (0,1,0), later in the file, so without this it silently
     wins over the password-reveal eye's deliberate 3px in every context .btn-link-slim
     appears in — !important settles it instead of relying on cascade order. */
  .btn-link-slim {
    margin-bottom: 3px !important;
  }
  /* Table cells opt in instead. Most action cells hold one button and never wrap, so
     the margin there would only make every row of a long listing taller — it measured
     +15% row height on the OLT listing. Put .btn-stack on the few cells that really do
     carry a row of buttons. */
  .btn-stack > .btn,
  .btn-stack > .so-denied {
    margin-bottom: 8px;
  }
  /* .btn-group > .btn above ties .btn-stack > .btn on specificity (0,2,0) and loses to
     it on source order, so a button group inside a stacked cell pulled apart at the
     segment joins. One extra selector step re-outranks it without touching either rule. */
  .btn-stack > .btn-group > .btn {
    margin-bottom: 0;
  }
}

/* Two-button switch under a list column title (Diagnostics, Configured); the pressed button is the mode shown. */
.list-mode-switch {
  display: flex;
  margin-top: 4px;
  width: max-content;
}
.list-mode-switch > button {
  background: #fff;
  border: 1px solid #ddd;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  padding: 1px 8px;
}
.list-mode-switch > button + button {
  border-left: 0;
}
.list-mode-switch > button:first-child {
  border-radius: 4px 0 0 4px;
}
.list-mode-switch > button:last-child {
  border-radius: 0 4px 4px 0;
}
.list-mode-switch > button:hover,
.list-mode-switch > button:focus {
  color: #2c3e50;
  outline: none;
}
.list-mode-switch > button:focus-visible {
  box-shadow: 0 0 0 2px rgba(0, 100, 200, 0.35);
}
.list-mode-switch > button[aria-pressed="true"] {
  background: #eee;
  color: #2c3e50;
}
@media (max-width: 767px) {
  .list-mode-switch > button {
    font-size: 13px;
    padding: 5px 12px;
  }
}
html.smartolt-night body.smartolt-site .list-mode-switch > button {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
  color: #94a3b8;
}
html.smartolt-night body.smartolt-site .list-mode-switch > button:hover,
html.smartolt-night body.smartolt-site .list-mode-switch > button:focus {
  color: #dbe2ea;
}
html.smartolt-night body.smartolt-site .list-mode-switch > button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

/* Shared settings-listing classes (Splitters, Zones, Sectors, ONU types, Speed profiles).
   Night rules are in vendor/smartolt/css/dashboard-smartolt-night.css. Padding, not margin,
   clears the fixed light navbar: a margin collapses through .content-wrap. */
html:not(.smartolt-night) .listing-page {
	padding-top: var(--smartolt-nav-offset, 68px);
}
.listing-page-header {
	align-items: flex-start;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: space-between;
	margin: 2px 0 18px;
}
.listing-page-title {
	flex: 1 1 240px;
	min-width: 0;
}
.listing-page-title h2 {
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 8px;
}
.listing-page-title p {
	color: #64748b;
	font-size: 14px;
	margin: 0;
}
.listing-page-actions {
	display: flex;
	flex-shrink: 1;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 2px;
	max-width: 100%;
}
.listing-filter-panel {
	align-items: flex-end;
	background-color: #f7f9fc;
	border: 1px solid #e3e8ef;
	border-radius: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-bottom: 12px;
	padding: 10px 16px;
}
.listing-filter-panel .form-group {
	margin-bottom: 0;
}
.listing-filter-panel .control-label {
	display: block;
	font-size: 15px;
	margin-bottom: 3px;
}
.listing-filter-panel .listing-reset-group {
	align-self: flex-end;
	margin-bottom: 0;
	margin-left: auto;
}
.listing-reset-group .btn-default,
.listing-reset-group .btn-default:active {
	background-color: transparent !important;
	border-color: transparent !important;
	box-shadow: none !important;
}
html:not(.smartolt-night) .listing-reset-group .btn-default {
	color: #5d6d7e;
}
.listing-reset-group .btn-default:hover,
.listing-reset-group .btn-default:focus {
	color: #0064c8 !important;
	text-decoration: underline;
}
.listing-filter-panel #free_text,
.listing-filter-panel #presetSearch,
.listing-filter-panel #mo_search,
.listing-filter-panel #fiber_search,
.listing-filter-panel #cabinet_search,
.listing-filter-panel #splitterbox_search,
.listing-filter-panel #area_map_search {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='6.8' cy='6.8' r='4.8' fill='none' stroke='%238a97a6' stroke-width='1.6'/%3E%3Cpath d='M10.4 10.4 14 14' stroke='%238a97a6' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
	background-position: 11px center;
	background-repeat: no-repeat;
	background-size: 15px 15px;
	padding-left: 34px;
}
.fiber-types-listing-page .listing-table tbody a:not(.btn),
.cabinets-listing-page .listing-table tbody a:not(.btn),
.splitterboxes-listing-page .listing-table tbody a:not(.btn),
.area-maps-listing-page .listing-table tbody a:not(.btn),
.map-objects-listing-page .listing-table tbody a:not(.btn) {
	text-decoration: none;
}
html:not(.smartolt-night) .fiber-types-listing-page .listing-table tbody a:not(.btn):hover,
html:not(.smartolt-night) .fiber-types-listing-page .listing-table tbody a:not(.btn):focus,
html:not(.smartolt-night) .cabinets-listing-page .listing-table tbody a:not(.btn):hover,
html:not(.smartolt-night) .cabinets-listing-page .listing-table tbody a:not(.btn):focus,
html:not(.smartolt-night) .splitterboxes-listing-page .listing-table tbody a:not(.btn):hover,
html:not(.smartolt-night) .splitterboxes-listing-page .listing-table tbody a:not(.btn):focus,
html:not(.smartolt-night) .area-maps-listing-page .listing-table tbody a:not(.btn):hover,
html:not(.smartolt-night) .area-maps-listing-page .listing-table tbody a:not(.btn):focus,
html:not(.smartolt-night) .map-objects-listing-page .listing-table tbody a:not(.btn):hover,
html:not(.smartolt-night) .map-objects-listing-page .listing-table tbody a:not(.btn):focus {
	text-decoration: underline;
}
.table a.listing-name-link {
	font-weight: 500;
}
html:not(.smartolt-night) .listing-name-link,
html:not(.smartolt-night) .listing-name-link:hover,
html:not(.smartolt-night) .listing-name-link:focus {
	color: #0875c1;
}
.map-position-icon {
	align-items: center;
	background: #f8fafc;
	border: 1px solid #dbe3ef;
	border-radius: 50%;
	color: #94a3b8;
	display: inline-flex;
	height: 28px;
	justify-content: center;
	text-decoration: none !important;
	width: 28px;
}
.map-position-icon.has-position {
	background: #ffffff;
	border-color: #0064c8;
	color: #0064c8;
}
a.map-position-icon.has-position:hover,
a.map-position-icon.has-position:focus {
	background: #e8f1fb;
	border-color: #0054a9;
	color: #0054a9;
	outline: none;
}
html.smartolt-night body.smartolt-site .map-position-icon {
	background: #182235;
	border-color: #334155;
	color: #64748b;
}
html.smartolt-night body.smartolt-site .map-position-icon.has-position {
	background: #10243e;
	border-color: #69a7ff;
	color: #69a7ff;
}
html.smartolt-night body.smartolt-site a.map-position-icon.has-position:hover,
html.smartolt-night body.smartolt-site a.map-position-icon.has-position:focus {
	background: #17365f;
	border-color: #9bd0ff;
	color: #9bd0ff;
}
html:not(.smartolt-night) .listing-table .table > thead > tr > th {
	background-color: #f7f9fc;
	border-bottom: 1px solid #e3e8ef;
}
html:not(.smartolt-night) .listing-table .table > tbody > tr > td {
	border-top: 1px solid #f0f3f7;
}
html:not(.smartolt-night) .listing-table .table > tbody > tr:hover > td {
	background-color: #f5f9ff;
}
.listing-table {
	overflow-x: auto;
}
.listing-table .table {
	margin-bottom: 0;
}
.listing-table .table > thead > tr > th,
.listing-table .table > tbody > tr > td {
	vertical-align: middle;
}
.listing-table .sort-link {
	color: inherit;
	text-decoration: none;
}
.listing-page .btn-default,
.listing-page .btn-default:hover,
.listing-page .btn-default:focus {
	outline: none;
}
html:not(.smartolt-night) .listing-page .btn-default {
	border-color: #95a5a6;
}
html:not(.smartolt-night) .listing-page .btn-default:hover,
html:not(.smartolt-night) .listing-page .btn-default:focus {
	border-color: #798d8f;
}
html:not(.smartolt-night) .listing-page .btn-default:active,
html:not(.smartolt-night) .listing-page .btn-default.active,
html:not(.smartolt-night) .listing-page .btn-default:active:hover,
html:not(.smartolt-night) .listing-page .btn-default:active:focus {
	background-color: #687b7c;
	border-color: #687b7c;
	box-shadow: none;
	outline: none;
}
@media (max-width: 760px) {
	.listing-page-header { display: block; }
	.listing-page-actions { flex-wrap: wrap; justify-content: flex-start; margin-top: 14px; }
	.listing-filter-panel { display: block; }
	.listing-filter-panel .form-group { margin-bottom: 10px; }
	.listing-filter-panel .listing-reset-group { margin-left: 0; }
}
/* Header action buttons: one per row on phones, so a long label never wraps onto 2 lines. */
@media (max-width: 767px) {
	.listing-page-header .listing-page-actions { display: block; }
	.listing-page-header .listing-page-actions > .btn {
		display: block;
		margin: 0 0 8px;
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		width: 100%;
	}
	.listing-page-header .listing-page-actions > .btn:last-child { margin-bottom: 0; }
}

/* .form-page gets padding-top because the navbar is fixed and the light theme's
   .content-wrap does not clear it. */
.form-page {
	padding-top: 68px;
}
@media (max-width: 760px) {
	.form-page {
		padding-top: 62px;
	}
}

/* Links on solid red/orange banners: the global link blue is unreadable there. */
.alert-danger a:not(.btn),
.alert-warning a:not(.btn) {
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.alert-danger a:not(.btn):hover,
.alert-danger a:not(.btn):focus,
.alert-warning a:not(.btn):hover,
.alert-warning a:not(.btn):focus {
	color: #fff;
	text-decoration-thickness: 2px;
}

/* Line icons shipped as static SVG files under vendor/smartolt/icons/. The SVG is used as a
   mask so the icon takes the text color (currentColor) of its container in both themes. */
.smartolt-icon {
	background-color: currentColor;
	display: inline-block;
	height: 1em;
	-webkit-mask: var(--smartolt-icon) center / contain no-repeat;
	mask: var(--smartolt-icon) center / contain no-repeat;
	vertical-align: middle;
	width: 1em;
}
.smartolt-icon-splitter {
	--smartolt-icon: url("/vendor/smartolt/icons/splitter.svg");
}
.smartolt-icon-ports {
	--smartolt-icon: url("/vendor/smartolt/icons/ports.svg");
}

/* Add / edit / delete pages that follow the listing-page look (Splitters). Night rules are in
   vendor/smartolt/css/dashboard-smartolt-night.css. */
.entity-form-header {
	margin-bottom: 16px;
}
.entity-form-title {
	align-items: center;
	display: flex;
	gap: 12px;
}
.entity-form-title h2 {
	margin: 0;
}
.entity-form-title-icon {
	align-items: center;
	background: #ffffff;
	border: 1px solid #c6dcf3;
	border-radius: 4px;
	color: #0064c8;
	display: inline-flex;
	flex: 0 0 42px;
	height: 42px;
	justify-content: center;
	width: 42px;
}
.entity-form-title-icon .fa {
	font-size: 20px;
}
.entity-form-title-icon .smartolt-icon {
	display: block;
	height: 30px;
	width: 30px;
}
.entity-form-name {
	color: #2c3e50;
	font-size: 15px;
	font-weight: 600;
	margin-top: 2px;
}
.entity-form-header .listing-page-title > p {
	margin: 10px 0 0;
}
/* Flex stretch makes a short btn-link Cancel as tall as Save but leaves its text at the top,
   5px above the Save text. */
.entity-form-header .listing-page-actions {
	align-items: center;
}
.entity-form-header .listing-page-actions .btn {
	margin: 0;
	max-width: 100%;
	white-space: normal;
}
.entity-form-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}
.entity-form-chip {
	background: #eef2f7;
	border-radius: 4px;
	color: #2c3e50;
	font-size: 13px;
	font-weight: 600;
	padding: 3px 8px;
}
.entity-form-chip.warning {
	background: #fff4e0;
	color: #a15c00;
}
.entity-form-panel,
.form-page > form.form-horizontal:not(:has(.panel, .entity-form-panel)),
.form-page > dl.dl-horizontal {
	background: #f7f9fc;
	border: 1px solid #e3e8ef;
	border-radius: 8px;
	margin-bottom: 16px;
	padding: 14px 16px 4px;
}
/* The bare forms above take the Splitters panel look. Pages whose form already holds panels
   (Splitters, General settings) keep their own boxes; a box inside a box looks broken. */
.form-page > form.form-horizontal:not(:has(.panel, .entity-form-panel)) {
	padding-top: 18px;
}
.form-page > form.form-horizontal:not(:has(.panel, .entity-form-panel)) > .form-actions {
	display: flow-root;
	padding-bottom: 12px;
}
.form-page > dl.dl-horizontal {
	padding-bottom: 14px;
}
.entity-form-panel {
	scroll-margin-top: 70px;
}
/* The night panels have a backdrop-filter, so each one paints as its own layer and the next panel covers an open
   dropdown or result list. The panel that holds an open one is lifted above its neighbours. */
.entity-form-panel:has(.btn-group.open, .dropdown.open, .ticket-picker-results:not([hidden])) {
	position: relative;
	z-index: 30;
}
.entity-form-panel-title {
	color: #2c3e50;
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 14px;
}
html:not(.smartolt-night) .entity-form-panel .help-block {
	color: #5d6d7e;
}
/* Shared by onu_configured_list.php and diagnostics_list.php ODB cells.
   odb_detail_modal.php is not loaded on every render of onu_configured_list.php
   ($can_open_odb gate), so these live here instead, where both pages always load it. */
.onu-list-odb {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.onu-list-odb .odb-glyph {
	flex: 0 0 auto;
	width: 20px;
	height: 24px;
}
/* Name and Zone text on the Configured and Diagnostics lists; each page sets its own column widths. */
.onu-list-name-text,
.onu-list-zone-text {
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
	vertical-align: top;
}
/* Splitter cell on the Configured and Diagnostics lists: the name gets the full column width,
   the icon goes under it next to the port, and names break only between words. */
.onu-list-odb-col .diag-odb-link,
.onu-list-odb-col .onu-splitter-assign,
.onu-list-odb-col .onu-list-odb {
	display: inline-grid;
	grid-template-columns: auto 1fr;
	grid-template-areas: "name name" "icon port";
	column-gap: 5px;
	row-gap: 2px;
	align-items: center;
	justify-items: start;
	text-align: left;
}
.onu-list-odb-col .diag-odb-link-text {
	display: contents;
}
.onu-list-odb-col .diag-odb-link-name,
.onu-list-odb-col .onu-splitter-assign > span,
.onu-list-odb-col .onu-list-odb > span {
	grid-area: name;
	overflow-wrap: break-word;
	word-break: normal;
}
.onu-list-odb-col .diag-odb-link-text small {
	grid-area: port;
	white-space: nowrap;
}
.onu-list-odb-col .diag-odb-link .odb-glyph,
.onu-list-odb-col .onu-splitter-assign .odb-glyph,
.onu-list-odb-col .onu-list-odb .odb-glyph {
	grid-area: icon;
	width: 16px;
	height: 19px;
}

.tooltip-auto .tooltip-inner {
	max-width: 320px;
	white-space: pre-line;
}

.so-denied {
	display: inline-block;
	cursor: not-allowed;
}
.so-denied-inner {
	display: inline-block;
	pointer-events: none;
	opacity: .55;
	filter: grayscale(.6);
}

.tunnel-status-connected {
	color: #0064C8;
}
html.smartolt-night body.smartolt-site .tunnel-status-connected {
	color: #60a5fa;
}

/* Every OLT tab fills over AJAX, and each loader placed its own spinner: two of them measured
   window.innerWidth and scrollTop once at insert time, the rest sat at the top of the pane.
   One fixed overlay centres them all and keeps them centred while the user scrolls. */
.olt-pane-spinner {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	z-index: 1035;
}
.tab-form-back-row {
	margin-bottom: 16px;
}
.tab-form-title {
	margin: 0 0 16px;
	font-weight: 600;
	font-size: 18px;
}
.tab-form-title small {
	font-size: 14px;
}

/* API key edit form, shown in the API key tab of the general page. */
.api-key-field { position: relative; }
.api-key-field #key_display { padding-right: 64px; }
.api-key-field-icons { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); line-height: 1; }
.api-key-field-icons a { color: inherit; opacity: .65; margin-left: 10px; font-size: 16px; cursor: pointer; text-decoration: none; }
.api-key-field-icons a:hover, .api-key-field-icons a:focus { opacity: 1; text-decoration: none; }
.api-key-webhook { margin-top: 30px; }
.api-key-webhook-status { margin-bottom: 10px; }
.api-key-webhook-status dt { float: left; clear: left; width: 210px; font-weight: bold; }
.api-key-webhook-status dd { margin-left: 220px; margin-bottom: 4px; word-break: break-word; white-space: pre-line; }
.api-key-webhook-test-result { margin-top: 10px; word-break: break-word; white-space: pre-line; }
.api-key-webhook-help { margin: 0; }
.api-key-webhook-event-desc { margin: 2px 0 0; }
@media (max-width: 999px) {
	.api-key-webhook-status dt { float: none; width: auto; }
	.api-key-webhook-status dd { margin-left: 0; margin-bottom: 8px; }
	#webhook_regenerate_secret, #webhook_save { margin-top: 8px; }
}

.billing-page .label,
.billing-page small,
.billing-page .small { font-size: 13px; }
.billing-page .btn-xs,
.billing-page .btn-sm,
.billing-page .btn-small { font-size: 14px; }
/* The Bootswatch theme underlines every table link. SmartOLT tables use .btn-link, so their links are underlined only
   on hover in light mode. Billing and network tables use plain links, and this rule gives them the same look. */
.billing-page table a:not(.btn),
.billing-list-cards a:not(.btn),
#nas-pool-allocated-table a:not(.btn),
.radius-own-table a:not(.btn),
.tickets-table a:not(.btn),
#element-tickets-table a:not(.btn),
#ticket_view table a:not(.btn) {
	text-decoration: none;
}
html:not(.smartolt-night) .billing-page table a:not(.btn):hover,
html:not(.smartolt-night) .billing-page table a:not(.btn):focus,
html:not(.smartolt-night) .billing-list-cards a:not(.btn):hover,
html:not(.smartolt-night) .billing-list-cards a:not(.btn):focus,
html:not(.smartolt-night) #nas-pool-allocated-table a:not(.btn):hover,
html:not(.smartolt-night) #nas-pool-allocated-table a:not(.btn):focus,
html:not(.smartolt-night) .radius-own-table a:not(.btn):hover,
html:not(.smartolt-night) .radius-own-table a:not(.btn):focus,
html:not(.smartolt-night) .tickets-table a:not(.btn):hover,
html:not(.smartolt-night) .tickets-table a:not(.btn):focus,
html:not(.smartolt-night) #element-tickets-table a:not(.btn):hover,
html:not(.smartolt-night) #element-tickets-table a:not(.btn):focus,
html:not(.smartolt-night) #ticket_view table a:not(.btn):hover,
html:not(.smartolt-night) #ticket_view table a:not(.btn):focus {
	text-decoration: underline;
}
/* Ticket status labels (Onu_Notes_Manager::STATUS_LABEL_CLASSES). Archived and Cancelled are almost black; in the
   night theme a light edge keeps the dark label visible on the dark page. */
/* Solved has the green of the SmartOLT buttons (.btn-primary as rendered: #1fb325, night #45b942). White on that
   green is under 3:1, so the text is dark green. */
.ticket-label-solved { background-color: #1fb325; color: #062b08; }
html.smartolt-night .ticket-label-solved { background-color: #45b942; color: #062b08; }
.ticket-label-closed { background-color: #1f2937; color: #fff; }
/* Ticket priorities and types (Onu_Notes_Manager::priority_html(), type_html() and the calendar events), with the
   colours of the old billing app. The colour is on the icon; the word keeps the text colour, so it reads in both
   themes. Night lifts the dark navy and the blue, which vanish on the dark page. */
:root { --ticket-priority-low: #2c3e50; --ticket-priority-normal: #217dbb; --ticket-priority-high: #e74c3c; --ticket-priority-urgent: #e74c3c;
	--ticket-type-support: #64748b; --ticket-type-installation: #217dbb; --ticket-type-outage: #e74c3c; --ticket-type-other: #64748b; }
html.smartolt-night { --ticket-priority-low: #cbd5e1; --ticket-priority-normal: #5dade2; --ticket-type-support: #94a3b8; --ticket-type-installation: #5dade2;
	--ticket-type-other: #94a3b8; }
.ticket-priority, .ticket-type { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; }
.ticket-priority .fa, .ticket-type .fa { font-size: 16px; }
.ticket-priority-low .fa { color: var(--ticket-priority-low); }
.ticket-priority-normal .fa { color: var(--ticket-priority-normal); }
.ticket-priority-high .fa { color: var(--ticket-priority-high); }
.ticket-priority-urgent .fa { color: var(--ticket-priority-urgent); }
.ticket-priority-urgent { font-weight: 700; }
.ticket-type-support .fa { color: var(--ticket-type-support); }
.ticket-type-installation .fa { color: var(--ticket-type-installation); }
.ticket-type-outage .fa { color: var(--ticket-type-outage); }
.ticket-type-other .fa { color: var(--ticket-type-other); }
html.smartolt-night .ticket-label-closed { background-color: #0b1220; color: #f8fafc; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
/* Bootstrap pads a .form-horizontal checkbox row so its first line sits level with the control-label beside it.
   The .form-horizontal .checkbox, .checkbox-inline and .radio-inline rule above sets that padding to 0 for the whole
   app, and other pages put it back one row at a time with .checkbox.padding-top (11px, the control-label padding).
   Billing puts it back for the first box of every column with a control-label beside it. Inline boxes sit on their
   baseline, so the rest of the first line follows the padded box and wrapped lines get no extra gap. Below 1000px
   the label stacks above the boxes, so no padding is needed. */
@media (min-width: 1000px) {
	.billing-page .form-horizontal .control-label + [class*="col-"] > .checkbox:first-child,
	.billing-page .form-horizontal .control-label + [class*="col-"] > .checkbox-inline:first-child,
	.billing-page .form-horizontal .control-label + [class*="col-"] > .radio-inline:first-child { padding-top: 11px !important; }
	.billing-page .form-horizontal .control-label + [class*="col-"] > .checkbox-inline,
	.billing-page .form-horizontal .control-label + [class*="col-"] > .radio-inline { vertical-align: baseline; }
}
/* Bootstrap puts 10px before every inline box after the first, so a wrapped line starts 10px right of the line above. */
.billing-page .checkbox-inline,
.billing-page .radio-inline { margin-right: 10px; }
.billing-page .checkbox-inline + .checkbox-inline,
.billing-page .radio-inline + .radio-inline { margin-left: 0; }
/* Bootstrap makes the label inline-block, so when its text wraps on a phone the info icon after it drops to a line
   of its own. An inline label lets the icon follow the last word, and the 20px indent moves from the label to the row
   so wrapped lines still start under the first word. The icon's negative margin cancels its width and the space
   before it, so it never wraps alone and hangs into the row's right padding. A flex row was tried: the wrapped label
   fills the width and pushes the icon to the far edge, away from the text. */
.billing-page .checkbox:has(> .billing-panel-info) { padding-left: 20px; padding-right: 24px; }
.billing-page .checkbox:has(> .billing-panel-info) > label { display: inline; padding-left: 0; }
.billing-page .checkbox > .billing-panel-info { margin-right: -24px; }
/* The "< Back to list" text link above the title of a billing record page. */
.billing-back-link { display: inline-block; margin: 0 0 8px; font-size: 14px; }
/* The facts of a billing record page: dl.billing-facts holds div.billing-fact rows (dt label, dd value) in two columns,
   and .is-wide spans both. .is-pre-line keeps the line breaks of the values. .is-one-column-md drops to one column
   below 1000px, where the side menu leaves too little width for two; the default drops on phones only. On phones the
   label goes above its value, unless the list has .is-row-on-phone. .is-one-column is one column at every width. */
.billing-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; margin: 0; }
.billing-facts.is-one-column { grid-template-columns: minmax(0, 1fr); }
.billing-facts.is-one-column > .billing-fact:first-child { border-top: 0; }
.billing-facts.is-one-column .billing-fact dt { flex-basis: 32%; }
.billing-fact { display: flex; gap: 12px; padding: 7px 0; border-top: 1px solid #eef2f7; font-size: 14px; }
.billing-fact.is-wide { grid-column: 1 / -1; }
.billing-fact dt { flex: 0 0 42%; font-weight: 600; }
.billing-fact.is-wide dt { flex-basis: calc(21% - 7px); }
.billing-fact dd { flex: 1 1 auto; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.billing-facts.is-pre-line dd { white-space: pre-line; }
html.smartolt-night .billing-fact { border-top-color: rgba(255,255,255,0.1); }
@media (max-width: 999px) {
	.billing-facts.is-one-column-md { grid-template-columns: minmax(0, 1fr); }
	.billing-facts.is-one-column-md .billing-fact.is-wide dt { flex-basis: 42%; }
}
@media (max-width: 767px) {
	.billing-facts { grid-template-columns: minmax(0, 1fr); }
	.billing-fact.is-wide dt { flex-basis: 42%; }
	.billing-facts:not(.is-row-on-phone) .billing-fact { flex-direction: column; gap: 2px; }
	.billing-facts:not(.is-row-on-phone) .billing-fact dt { flex: none; }
	.billing-facts.is-one-column:not(.is-row-on-phone) .billing-fact { gap: 4px; }
}
/* The legend and the required mark of the add/edit modals of the billing configuration lists. */
.billing-config-modal .billing-required-mark { color: #c0392b; font-weight: 700; }
.billing-config-modal .billing-config-legend { color: #64748b; font-size: 14px; margin: 0 0 12px; }
html.smartolt-night .billing-config-modal .billing-config-legend { color: rgba(255,255,255,0.68); }
html.smartolt-night .billing-config-modal .billing-required-mark { color: #f87171; }
/* The night surface of a billing box (.billing-night-card) and of the phone cards of a table (.billing-night-card-rows,
   below 768px, where the rows become cards). :not(#billing-night-card) gives the rules the weight of an id, so they
   win over the light-theme colours that the pages set inside their own #page scope. */
html.smartolt-night .billing-night-card:not(#billing-night-card) { background-color: rgba(30,48,80,0.32); border-color: rgba(255,255,255,0.12); }
@media (max-width: 767px) {
	html.smartolt-night .billing-night-card-rows:not(#billing-night-card) > tbody > tr { background-color: rgba(30,48,80,0.32); border-color: rgba(255,255,255,0.12); }
}
/* Contract status colours (Billing_Customer_Service_Manager::STATUS_LABEL_CLASSES): one hue per status, at least 3:1
   against the card in both themes, and the badge text at least 4.5:1 on its colour. The green billing labels (active
   contract, invoice Paid, label-success, label-green) are the exception: by owner decision they use the button green
   #1fb325 with white text. */
.label-contract-n { background-color: #6d28d9; color: #fff; }
.label-contract-a, .label-invoice-paid { background-color: #1fb325; color: #fff; font-weight: 600; }
.label-contract-spo { background-color: #ea580c; color: #1c1917; }
.label-contract-sod { background-color: #b8860b; color: #1c1917; }
.label-contract-scr { background-color: #475569; color: #fff; }
.label-contract-t { background-color: #dc2626; color: #fff; }
html.smartolt-night .label-contract-n { background-color: #a78bfa; color: #1e1b4b; }
html.smartolt-night .label-contract-a, html.smartolt-night .label-invoice-paid { background-color: #1fb325; color: #fff; font-weight: 600; }
/* Every green status label on a billing page takes the button green; other pages keep their own greens. */
.billing-page .label-success, .billing-page .label-green { background-color: #1fb325; color: #fff; font-weight: 600; }
html.smartolt-night body.smartolt-site.billing-page .label-success, html.smartolt-night body.smartolt-site.billing-page .label-green { background-color: #1fb325; border-color: transparent; color: #fff; font-weight: 600; }
html.smartolt-night .label-contract-spo { background-color: #fb923c; color: #1c1917; }
html.smartolt-night .label-contract-sod { background-color: #facc15; color: #1c1917; }
html.smartolt-night .label-contract-scr { background-color: #94a3b8; color: #0f172a; }
html.smartolt-night .label-contract-t { background-color: #f87171; color: #1c1917; }
.gmaps-arrow { color: #0064c8; }
html.smartolt-night body.smartolt-site .gmaps-arrow { color: #93c5fd; }
.guided-tours-menu { max-height: calc(100vh - 70px); overflow-y: auto; overflow-x: hidden; }
.guided-tours-menu .dropdown-header { color: #1e293b; font-size: 16px; font-weight: 700; padding-bottom: 6px; }
.guided-tours-menu .dropdown-header.guided-tours-group { font-size: 15px; font-weight: 700; padding-bottom: 3px; }
.guided-tours-menu > li.guided-tours-group ~ li > a { padding-left: 32px; }
html.smartolt-night body.smartolt-site .guided-tours-menu .dropdown-header { color: #f1f5f9; }
@media (max-width: 999px) {
  body.smartolt-site .navbar.navbar-fixed-top #navbar-icons .open .dropdown-menu.guided-tours-menu > li > a { white-space: normal; }
  body.smartolt-site .navbar.navbar-fixed-top #navbar-icons .open .dropdown-menu.guided-tours-menu > li.guided-tours-group ~ li > a { padding-left: 32px; }
  body.smartolt-site .navbar.navbar-fixed-top #navbar-icons .open .dropdown-menu.guided-tours-menu .dropdown-header { padding-bottom: 6px; }
  body.smartolt-site .navbar.navbar-fixed-top #navbar-icons .open .dropdown-menu.guided-tours-menu .dropdown-header.guided-tours-group { padding-bottom: 3px; }
}

/* Small icon-only up/down order buttons, side by side */
.order-arrows { display: inline-flex; flex-wrap: nowrap; gap: 2px; vertical-align: middle; }
.order-arrow { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; margin: 0; border: 0; border-radius: 4px; background-color: transparent; box-shadow: none; color: #64748b; font-size: 14px; line-height: 1; cursor: pointer; }
.order-arrow .fa { font-size: 14px; }
.order-arrow:hover, .order-arrow:focus { color: #2563eb; background-color: rgba(37,99,235,.08); }
.order-arrow:focus-visible { outline: 2px solid #2563eb; outline-offset: 1px; }
.order-arrow:disabled, .order-arrow:disabled:hover { color: #cbd5e1; background-color: transparent; cursor: default; }
html.smartolt-night .order-arrow { color: rgba(255,255,255,.65); background-color: transparent; }
html.smartolt-night .order-arrow:hover, html.smartolt-night .order-arrow:focus { color: #93c5fd; background-color: rgba(147,197,253,.12); }
html.smartolt-night .order-arrow:focus-visible { outline-color: #93c5fd; }
html.smartolt-night .order-arrow:disabled, html.smartolt-night .order-arrow:disabled:hover { color: rgba(255,255,255,.25); background-color: transparent; }
@media (max-width: 767px) { .order-arrow { width: 36px; height: 36px; } }

/* Row selection of a list (vendor/smartolt/scripts/list_selection.js): the checkbox column and the bar above the table */
.list-selection-col { width: 34px; text-align: center; }
.list-selection-col input[type=checkbox] { cursor: pointer; }
.list-selection-hit { display: inline-block; margin: 0; font-weight: 400; cursor: pointer; }
.list-selection-bar { margin-bottom: 10px; padding: 8px 12px; font-size: 14px; background-color: #eff6ff; border: 1px solid #c6dcf3; border-radius: 4px; }
.list-selection-bar a { margin-left: 6px; font-weight: 600; }
html.smartolt-night .list-selection-bar { background-color: rgba(30, 48, 80, 0.32); border-color: rgba(255, 255, 255, 0.1); }
@media (max-width: 767px) {
  .list-selection-hit { margin: -10px; padding: 10px; }
}

/* Every jQuery UI calendar: each day is a circle with the number in the middle. The picked day is filled blue.
   Today has a blue ring with space around the number, and a bold blue number. When today is also picked, it is
   filled and has a white ring inside.
   jQuery UI marks the browser's today (ui-state-highlight). A calendar that knows the tenant's today, which can be
   another day near midnight, has the class app-date-tenant-today and marks that day's cell app-date-today. */
.ui-datepicker { --app-date-ring: #0064c8; }
html.smartolt-night .ui-datepicker { --app-date-ring: #1d8bff; }
.ui-datepicker table.ui-datepicker-calendar { font-size: 14px; table-layout: fixed; }
.ui-datepicker .ui-datepicker-calendar td { padding: 1px; }
.ui-datepicker .ui-datepicker-calendar td a, .ui-datepicker .ui-datepicker-calendar td span { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 34px; max-width: 100%; aspect-ratio: 1 / 1; margin: 0 auto; padding: 0; border-radius: 50%; text-align: center; }
.ui-datepicker td a.ui-state-default, .ui-datepicker td span.ui-state-default { background-color: transparent; border-color: transparent; color: #333333; }
.ui-datepicker td a.ui-state-default.ui-state-hover, .ui-datepicker td a.ui-state-default:hover { background-color: #e6f0fa; border-color: #e6f0fa; }
.ui-datepicker td a.ui-state-highlight, .ui-datepicker td.app-date-today a { box-shadow: inset 0 0 0 2px var(--app-date-ring); color: var(--app-date-ring); font-weight: 700; }
.ui-datepicker td a.ui-state-default.ui-state-active { background-color: #0064c8; border-color: #0064c8; color: #fff; }
.ui-datepicker td a.ui-state-highlight.ui-state-active, .ui-datepicker td.app-date-today a.ui-state-active { box-shadow: inset 0 0 0 2px var(--app-date-ring), inset 0 0 0 4px #fff; }
.app-date-tenant-today .ui-datepicker-calendar td:not(.app-date-today) a.ui-state-highlight { box-shadow: none; font-weight: 400; }
.app-date-tenant-today .ui-datepicker-calendar td:not(.app-date-today) a.ui-state-highlight:not(.ui-state-active) { color: #333333; }
