@charset "UTF-8";

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background: #dcdfe3;
}

::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: #749398;
}

::-webkit-scrollbar-track {
  background: #dcdfe3;
}

body {
  overflow: -moz-scrollbars-vertical;
  overflow-y: scroll !important;
  background-color: #f4f6f9 !important;
  min-width: 1024px !important;
}

body:not(.dark-mode) .nodec:link {
  text-decoration: none;
  color: black;
}

body.dark-mode .nodec:link {
  text-decoration: none;
  color: white;
}

body:not(.dark-mode) .nodec:visited {
  text-decoration: none;
  color: black;
}

body.dark-mode .nodec:visited {
  text-decoration: none;
  color: white;
}

body:not(.dark-mode) .nodec:active {
  text-decoration: none;
  color: black;
}

body.dark-mode .nodec:active {
  text-decoration: none;
  color: white;
}

body:not(.dark-mode) .nodec:hover {
  text-decoration: underline;
  color: black;
}

body.dark-mode .nodec:hover {
  text-decoration: underline;
  color: white;
}

body.dark-mode .hr-text::after .hr-text-white::after .hr-text-pointer::after hr-text-white-large::after hr-text-pointer-white-large::after {
  background-color: #454d55;
}

#toast-container > div {
  opacity: 1;
  filter: progid:dximagetransform.microsoft.alpha(opacity=100);
  filter: alpha(opacity=100);
}

.toast-warning > .toast-message {
  color: black;
}

.toast-warning > .toast-title {
  color: black;
}

.direct-chat-text-secondary::after {
  content: none !important;
  display: none;
}

.direct-chat-text-secondary::before {
  content: none !important;
  display: none;
}

@font-face {
  font-family: Peignot;
  src: url(../ttf/peignot.ttf);
}

.centre-of-all {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  padding: 15px !important;
  transform: translate(-50%, -50%) !important;
}

.hoverable:hover {
  text-decoration: underline;
  cursor: pointer;
}

.pointer {
  cursor: pointer;
}

.pointer-input-group:hover {
  cursor: pointer;
  background-color: #e9ecef !important;
}

.pointer-input-group {
  background-color: #f8f9fa;
}

.cursor {
  cursor: default !important;
}

.tdform-top {
  vertical-align: top !important;
  white-space: nowrap !important;
}

.tdform {
  vertical-align: middle !important;
  white-space: nowrap !important;
}

.tdform-right {
  vertical-align: middle !important;
  white-space: nowrap !important;
  width: 100% !important;
}

.tform-borderless > tbody > tr:first-child > td {
  border-bottom: none !important;
}

.tform-borderless > tbody > tr:last-child > td {
  border-top: none !important;
}

.tform-borderless > tbody > tr:not(:first-child):not(:last-child) > td {
  border-top: none !important;
  border-bottom: none !important;
}

.dropdown-toggle-no-icon::after {
  display: none;
}

select {
  appearance: none;
}

.select-arrow {
  background: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg fill='gray' width='20' height='20' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position-x: 100%;
  background-position-y: 4px;
}

.opacity-disabled {
  opacity: 0.2;
}

.tdform-right > .note-editor {
  margin-bottom: 0;
  box-shadow: none;
}

.btn-tool-rbt-left {
  font-size: 0.875rem !important;
  margin: -0.75rem 0;
}

.btn-tool-rbt-right {
  font-size: 0.875rem !important;
  margin: -0.15rem 0 -0.75rem;
}

.ld-bar-label {
  font-size: 24pt;
  font-weight: bold;
  font-family: Verdana, serif;
}

.modal-backdrop {
  background-color: gray;
}

.note-statusbar {
  display: none;
}

#toast-container .toast-warning {
  background-color: #d4ac0d;
}

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

.border-color-invalid {
  border-color: #dc3435 !important;
}

.no-border-top {
  border-top: none !important;
}

.hr-text {
  line-height: 1em;
  position: relative;
  outline: 0;
  border: 0;
  color: black;
  text-align: left;
  height: 1.5em;
  font-size: 11pt;
}

.hr-text::before {
  content: "";
  background: linear-gradient(to left, transparent, rgb(128 128 128 / 75%));
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  opacity: 0.5;
}

.hr-text::after {
  content: attr(data-content);
  position: relative;
  display: inline-block;
  padding-left: 0;
  padding-right: 0.5em;
  line-height: 1.5em;
  color: #17a2b8 !important;
  font-weight: bold;
  background-color: #f4f6f9;
  opacity: 1 !important;
}

.hr-text-pointer {
  line-height: 1em;
  position: relative;
  outline: 0;
  border: 0;
  color: black;
  text-align: left;
  height: 1.5em;
  font-size: 11pt;
}

.hr-text-pointer::before {
  content: "";
  background: linear-gradient(to left, transparent, rgb(128 128 128 / 75%));
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  opacity: 0.5;
}

.hr-text-pointer::after {
  content: attr(data-content);
  cursor: pointer;
  position: relative;
  display: inline-block;
  padding-left: 0;
  padding-right: 0.5em;
  line-height: 1.5em;
  color: #17a2b8 !important;
  font-weight: bold;
  background-color: #f4f6f9;
  opacity: 1 !important;
}

.hr-text-pointer-white {
  line-height: 1em;
  position: relative;
  outline: 0;
  border: 0;
  color: black;
  text-align: left;
  height: 1.5em;
  font-size: 11pt;
}

.hr-text-pointer-white::before {
  content: "";
  background: linear-gradient(to left, transparent, rgb(128 128 128 / 75%));
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  opacity: 0.5;
}

.hr-text-pointer-white::after {
  content: attr(data-content);
  cursor: pointer;
  position: relative;
  display: inline-block;
  padding-left: 0;
  padding-right: 0.5em;
  line-height: 1.5em;
  color: #a5a5a5 !important;
  font-weight: bold;
  background-color: #ffffff;
  opacity: 1 !important;
}

.hr-text-white {
  line-height: 1em;
  position: relative;
  outline: 0;
  border: 0;
  color: black;
  text-align: left;
  height: 1.5em;
  opacity: 0.5;
  font-size: 8pt;
}

.hr-text-white::before {
  content: "";
  background: linear-gradient(to left, transparent, rgb(128 128 128 / 75%));
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
}

.hr-text-white::after {
  content: attr(data-content);
  position: relative;
  display: inline-block;
  padding-left: 12px;
  padding-right: 10px;
  line-height: 1.5em;
  color: #000;
  background-color: white;
}

.hr-text-white-no-padding {
  line-height: 1em;
  position: relative;
  outline: 0;
  border: 0;
  color: black;
  text-align: left;
  height: 1.5em;
  opacity: 0.5;
  font-size: 8pt;
}

.hr-text-white-no-padding::before {
  content: "";
  background: linear-gradient(to left, transparent, rgb(128 128 128 / 75%));
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
}

.hr-text-white-no-padding::after {
  content: attr(data-content);
  position: relative;
  display: inline-block;
  padding-left: 0px;
  padding-right: 10px;
  line-height: 1.5em;
  color: #000;
  background-color: white;
}

.hr-text-white-large {
  line-height: 1em;
  position: relative;
  outline: 0;
  border: 0;
  color: black;
  text-align: left;
  height: 1.5em;
  font-size: 11pt;
}

.hr-text-white-large::before {
  content: "";
  background: linear-gradient(to left, transparent, rgb(128 128 128 / 75%));
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  opacity: 0.5;
}

.hr-text-white-large::after {
  content: attr(data-content);
  position: relative;
  display: inline-block;
  padding-left: 0;
  padding-right: 0.5em;
  line-height: 1.5em;
  color: #17a2b8 !important;
  font-weight: bold;
  background-color: #ffffff;
  opacity: 1 !important;
}

.nav-item-back-hover:hover {
  background: #ccc;
  border-radius: 4px;
}

.nav-item-back-selected {
  cursor: default;
  color: #0056b3 !important;
}

.nav-item-back-selected:hover {
  cursor: default;
  color: #0056b3 !important;
}

.ace-editor {
  margin: 0;
  position: relative;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}

.back-to-top {
  bottom: 2.25rem;
  right: 5.25rem;
  opacity: 0.5;
}

.back-to-top:hover {
  opacity: 1;
}

.table tbody tr.rbt-flat-row-nav-highlight td {
  background-color: rgba(255, 193, 7, 0.4) !important;
  transition: background-color 0.3s ease;
}

body.dark-mode .table tbody tr.rbt-flat-row-nav-highlight td {
  background-color: rgba(255, 193, 7, 0.25) !important;
}

.tr-hoverable:hover {
  background: #ccc !important;
}

.td-journal {
  font-size: 14px;
  vertical-align: top;
}

.nowrap {
  white-space: nowrap !important;
}

.bg-lightgray, .bg-lightgray > a {
  color: #0000 !important;
}

.bg-lightgray {
  background-color: #cfcfcf !important;
}

/* Единый SVG-спиннер: img (оверлеи, карточки) и фоновая картинка (ячейки, Select2) */
img.rbt-spinner-img {
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

.spinner-small {
  background-image: url('../img/spinnerSmall.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 32px 32px;
  min-height: 32px;
}

.select2-container--open {
  z-index: 9999999 !important;
}

.select2-invalid > span.select2 > span.selection > span.select2-selection {
  border-color: #dc3435 !important;
}

.select2-results__option.loading-results, .select2-results__option.select2-results__option--load-more {
  background-image: url('../img/spinnerSmall.svg');
  background-repeat: no-repeat;
  padding-left: 35px;
  background-position: 10px 50%;
  background-size: 18px;
}

.select2-selection {
  overflow: hidden;
}

.select2-selection__rendered {
  white-space: normal;
  word-break: break-all;
  width: 100% !important;
}

.select2-selection__rendered span {
  white-space: normal;
  word-break: break-all;
  width: 100% !important;
}

.select2-selection__rendered span[role="presentation"] {
  width: auto !important;
}

.select2-selection__choice__remove {
  width: auto !important;
  display: none !important;
}

.text-decoration-line-through {
  text-decoration: line-through;
}

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

.dropdown-menu .dropdown-menu {
	top: auto;
	left: 100%;
	transform: translateY(-2rem);
}

.dropdown-item + .dropdown-menu {
	display: none;
}

.dropdown-item.submenu::after {
	content: '▸';
  text-align: right;
  float: right;
}

.dropdown-item.nomenu::after {
	content: '▸';
  text-align: right;
  float: right;
  color: transparent;
}

.dropdown-item:hover + .dropdown-menu, .dropdown-menu:hover {
	display: block;
}

.datatable {
  margin: 2px 0;
  border-collapse: collapse;
}

.datatable td {
  border: 1px solid #dbdbdb;
  padding: 3px;
  text-align: left;
}

.datatable th {
  padding: 3px;
  text-align: left;
  cursor: default;
}

[data-toggle="collapse"] .fa:before {
  content: "\f0d7";
  padding-right: 3px;
}

[data-toggle="collapse"].collapsed .fa:before {
  content: "\f0da";
  padding-right: 3px;
}

.top-input {
  width: 200px !important;
}

.drag {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.sticky-bg-color-white {
  background-color: rgb(255, 255, 255);
}

.sticky-bg-color-coral {
  background-color: rgb(250, 175, 168);
}

.sticky-bg-color-peach {
  background-color: rgb(243, 159, 118);
}

.sticky-bg-color-sand {
  background-color: rgb(255, 248, 184);
}

.sticky-bg-color-mint {
  background-color: rgb(226, 246, 211);
}

.sticky-bg-color-grayGreen {
  background-color: rgb(180, 221, 211);
}

.sticky-bg-color-grayBlue {
  background-color: rgb(212, 228, 237);
}

.sticky-bg-color-gray {
  background-color: rgb(174, 204, 220);
}

.sticky-bg-color-darkBlue {
  background-color: rgb(211, 191, 219);
}

.sticky-bg-color-pink {
  background-color: rgb(246, 226, 221);
}

.sticky-bg-color-terracotta {
  background-color: rgb(233, 227, 212);
}

.sticky-bg-color-lightGray {
  background-color: rgb(239, 239, 241);
}

.sortable-list-noborder-input {
  border: none;
  display: initial;
  width: 100%;
}

.sortable-list-noborder-input:hover {
  border: none;
  display: initial;
  width: 100%;
}

.sortable-list-noborder-input:focus {
  border: none;
  outline: none;
  display: initial;
  width: 100%;
}

.sortable-list-noborder-table {
  margin: 0;
  padding: 0;
  border-collapse: collapse;
}

.sortable-list-noborder-table td {
  border: none;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 3px !important;
  padding-bottom: 3px !important;
  text-align: left;
  vertical-align: middle;
}

.sortable-list-noborder-frame {
  border: solid thin lightgrey;
  border-radius: 0.25rem;
}

.fa.disabled, .fa[disabled], .disabled > .fa, [disabled] > .fa, .fab.disabled, .fab[disabled], .disabled > .fab, [disabled] > .fab, .fas.disabled, .fas[disabled], .disabled > .fas, [disabled] > .fas, .far.disabled, .far[disabled], .disabled > .far, [disabled] > .far {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.right-top-select {
  background-color: white;
}

.navbar-badge {
  right: 10px;
  top: 5px;
}

.nohover:hover {
  background-color: transparent !important;
}

.cropper-view-box, .cropper-face {
  border-radius: 50%;
}

.cropper-view-box {
  outline: 0;
  box-shadow: 0 0 0 1px #39f;
}

.ellipses-parent {
  display: flex;
}

.ellipses-children {
  flex: 1;
  width: 0;
  overflow-x: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nopicker::-webkit-calendar-picker-indicator {
  background: transparent;
  color: transparent;
  position: absolute;
  right: 0px;
  height: 0px;
  width: 0px;
}

pre {
  display: block;
  padding: 9.5px;
  font-size: 13px;
  line-height: 1.42857143;
  color: #333;
  word-break: break-all;
  word-wrap: break-word;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-right: 4px;
}

pre code {
  padding: 0;
  font-size: inherit;
  color: inherit;
  white-space: pre-wrap;
  background-color: transparent;
  border-radius: 0
}

code {
  padding: 2px 4px;
  font-size: 90%;
  color: #c7254e;
  background-color: #f9f2f4;
  border-radius: 4px;
}

.dots {
  background-image: radial-gradient(rgb(235, 235, 235) 1px, transparent 0);
  background-size: 10px 10px;
  background-position: -4px -4px;
}

.cs-data-cell {
  position: relative;
}

.cs-data-cell > a {
  color: inherit !important;
}

.cs-data-cell > a:visited {
  color: inherit !important;
}

.cs-data-cell > a:hover {
  color: inherit !important;
  text-decoration: underline !important;
}

.cs-issue-span {
  color: inherit !important;
}

.cs-issue-span:visited {
  color: inherit !important;
}

.cs-issue-span:hover {
  color: inherit !important;
  text-decoration: underline !important;
}

.cs-data-cellLogin {
  position: absolute;
  display: inline-block;
  top: 0px;
  right: 0px;
  padding-right: 3px;
  font-size: small;
  white-space: pre-wrap;
  text-align: right;
}

.cs-data-cellLogin > a {
  color: inherit !important;
}

.cs-data-cellLogin > a:visited {
  color: inherit !important;
}

.cs-data-cellLogin > a:hover {
  color: inherit !important;
  text-decoration: underline !important;
}

.content-wrapper .kanban {
  height: auto !important;
  min-height: auto !important;
}

.kanban-col {
  min-height: calc(100vh - 75px);
}

.card-no-scroll {
  overflow-y: inherit !important;
}

.kanban-desk .kanban-col:last-child {
  margin-right: 2px !important;
}

.kanban-desk .kanban-col:first-child {
  margin-left: 2px !important;
}

.noselect {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.text-no-bold {
  font-weight: normal !important;
}

.hidden {
  display: none;
}

.dropdown-avatar {
  width: 30px;
  height: 30px;
  margin-top: 4px;
  margin-left: 14.33px;
  margin-right: 14.33px;
}

.bg-superlightblue {
  background-color: rgb(60, 141, 188, 0.2) !important;
}

.fyeo {
  filter: blur(0.2rem);
}

.sudo {
  box-shadow: 0 3px 6px rgba(255, 0, 0, .80), 0 3px 6px rgba(0, 0, 0, .23) !important;
}

.rotate {
  animation: rotate 2s infinite linear;
}

@keyframes rotate {
  100% {transform: rotate(360deg);}
}

.kanban-badge {
  margin-right: 4px;
  font-size: 100% !important;
}

.kanban-badges:last-child {
  margin-right: 0px !important;
}

.kanban-card-body *:last-child {
  margin-bottom: 0px !important;
}

.form-sortable-item {
  margin-bottom: 8px;
  margin-top: 0px;
}

.form-sortable-item:last-child {
  margin-bottom: 0px !important;
}

.form-sortable-item:first-child {
  margin-top: 8px !important;
}

.badge {
  max-width: 200px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.bg-black {
  background-color: black !important;
}

.text-black {
  color: black !important;
}

.dropdown-item:focus, .dropdown-item:hover {
  color: #ffffff !important;
  background-color: #007bff !important;
}

.leftsidebar-button {
  margin-top: 2px;
}

.leftsidebar-button:first-child {
  margin-top: 11px !important;
}

/* Левое меню модулей: иконка + подпись, акцент у активного, свёрнутый сайдбар */
.main-sidebar #leftside-menu .nav-link.nav-link-text-only {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  position: relative;
  text-align: left;
  padding: 0.5rem 0.65rem 0.5rem 0.55rem;
  margin: 0 0.35rem;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

/* Вертикальная полоса-акцент слева у активного пункта */
.main-sidebar #leftside-menu .nav-link.nav-link-text-only::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.95) 0%, rgba(56, 189, 248, 0.85) 100%);
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.main-sidebar #leftside-menu .nav-link.nav-link-text-only.active::before {
  opacity: 1;
}

.main-sidebar #leftside-menu .nav-link.nav-link-text-only .nav-icon {
  flex: 0 0 auto;
  width: 1.35rem;
  text-align: center;
  font-size: 1.05rem;
  opacity: 1;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.main-sidebar #leftside-menu .nav-link.nav-link-text-only > .sidebar-module-label {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  line-height: 1.35;
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: normal;
  word-break: break-word;
  hyphens: auto;
  /* Одна колонка текста после иконки: визуально ровнее, чем center при разной длине названий */
  padding-right: 0.15rem;
}

.main-sidebar #leftside-menu .nav-link.nav-link-text-only:hover {
  background-color: rgba(255, 255, 255, 0.07);
}

.main-sidebar #leftside-menu .nav-link.nav-link-text-only.active {
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.main-sidebar #leftside-menu .nav-link.nav-link-text-only.active > .sidebar-module-label {
  font-weight: 700;
}

/* Свёрнутый сайдбар (sidebar-collapse): только иконки по центру полосы */
body.sidebar-collapse .main-sidebar #leftside-menu .nav-link.nav-link-text-only {
  justify-content: center;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}

body.sidebar-collapse .main-sidebar #leftside-menu .nav-link.nav-link-text-only .sidebar-module-label {
  display: none !important;
}

body.sidebar-collapse .main-sidebar #leftside-menu .nav-link.nav-link-text-only .nav-icon {
  font-size: 1.15rem;
  width: auto;
}

body.sidebar-collapse .main-sidebar #leftside-menu .nav-link.nav-link-text-only::before {
  top: 0.25rem;
  bottom: 0.25rem;
}

/* Разворот при наведении на узкую полосу (AdminLTE): снова подпись + иконка слева */
body.sidebar-collapse .main-sidebar.sidebar-focused #leftside-menu .nav-link.nav-link-text-only,
body.sidebar-collapse .main-sidebar:hover #leftside-menu .nav-link.nav-link-text-only {
  justify-content: flex-start;
  padding-left: 0.55rem;
  padding-right: 0.65rem;
}

body.sidebar-collapse .main-sidebar.sidebar-focused #leftside-menu .nav-link.nav-link-text-only .sidebar-module-label,
body.sidebar-collapse .main-sidebar:hover #leftside-menu .nav-link.nav-link-text-only .sidebar-module-label {
  display: block !important;
}

/* Разделители между группами модулей */
.main-sidebar #leftside-menu > li.nav-item > hr.border-top {
  margin: 0.55rem 0.85rem 0.4rem;
  opacity: 0.18;
  border-color: rgba(255, 255, 255, 0.35);
}

/* Цветные иконки левого меню (data-rbt-sidebar задаётся в widgets.js / leftSide) */
.main-sidebar #leftside-menu .nav-link.nav-link-text-only .nav-icon {
  opacity: 1;
  filter: drop-shadow(0 0 0.35rem rgba(0, 0, 0, 0.35));
}

.main-sidebar #leftside-menu .nav-link.nav-link-text-only:hover .nav-icon,
.main-sidebar #leftside-menu .nav-link.nav-link-text-only.active .nav-icon {
  filter: drop-shadow(0 0 0.45rem rgba(255, 255, 255, 0.2));
}

.main-sidebar #leftside-menu a[data-rbt-sidebar="addresses"] .nav-icon { color: #7ecbff !important; }
.main-sidebar #leftside-menu a[data-rbt-sidebar="addresses-domophones"] .nav-icon { color: #ffab91 !important; }
.main-sidebar #leftside-menu a[data-rbt-sidebar="addresses-cameras"] .nav-icon { color: #a5d6a7 !important; }
.main-sidebar #leftside-menu a[data-rbt-sidebar="addresses-keys"] .nav-icon { color: #ffe082 !important; }
.main-sidebar #leftside-menu a[data-rbt-sidebar="virtualDomophones"] .nav-icon { color: #4fc3f7 !important; }
.main-sidebar #leftside-menu a[data-rbt-sidebar="companies"] .nav-icon { color: #b39ddb !important; }
.main-sidebar #leftside-menu a[data-rbt-sidebar="queues"] .nav-icon { color: #ce93d8 !important; }
.main-sidebar #leftside-menu a[data-rbt-sidebar="analytics"] .nav-icon { color: #80cbc4 !important; }
.main-sidebar #leftside-menu a[data-rbt-sidebar="map"] .nav-icon { color: #4dd0e1 !important; }
.main-sidebar #leftside-menu a[data-rbt-sidebar="diagnostics"] .nav-icon { color: #ff8a80 !important; }
.main-sidebar #leftside-menu a[data-rbt-sidebar="users"] .nav-icon { color: #90caf9 !important; }
.main-sidebar #leftside-menu a[data-rbt-sidebar="groups"] .nav-icon { color: #9fa8da !important; }
.main-sidebar #leftside-menu a[data-rbt-sidebar="permissions"] .nav-icon { color: #ffcc80 !important; }
.main-sidebar #leftside-menu a[data-rbt-sidebar="contacts"] .nav-icon { color: #aed581 !important; }
.main-sidebar #leftside-menu a[data-rbt-sidebar="providers"] .nav-icon { color: #bcaaa4 !important; }
.main-sidebar #leftside-menu a[data-rbt-sidebar="mkb"] .nav-icon { color: #f48fb1 !important; }
.main-sidebar #leftside-menu a[data-rbt-sidebar="notes"] .nav-icon { color: #fff59d !important; }
.main-sidebar #leftside-menu a[data-rbt-sidebar="cs"] .nav-icon { color: #81d4fa !important; }
.main-sidebar #leftside-menu a[data-rbt-sidebar="tt"] .nav-icon { color: #64b5f6 !important; }
.main-sidebar #leftside-menu a[data-rbt-sidebar="tt-settings"] .nav-icon { color: #42a5f5 !important; }
.main-sidebar #leftside-menu a[data-rbt-sidebar="tt-workspaces"] .nav-icon { color: #5c6bc0 !important; }
.main-sidebar #leftside-menu a[data-rbt-sidebar="tt-custom-filter"] .nav-icon { color: #7986cb !important; }
.main-sidebar #leftside-menu a[data-rbt-sidebar="tt-createIssue"] .nav-icon { color: #66bb6a !important; }
.main-sidebar #leftside-menu a[data-rbt-sidebar="about"] .nav-icon { color: #b0bec5 !important; }
.main-sidebar #leftside-menu a[data-rbt-sidebar="about-systemInfo"] .nav-icon { color: #cfd8dc !important; }
.main-sidebar #leftside-menu a[data-rbt-sidebar="unknown"] .nav-icon { color: #eceff1 !important; }
.main-sidebar #leftside-menu a[data-rbt-sidebar="click-action"] .nav-icon { color: #aed581 !important; }

/* Избранные адреса: усилить цвет классов text-* от сервера */
.main-sidebar #leftside-menu .address-favorite-link .nav-icon {
  opacity: 1 !important;
  filter: saturate(1.4) brightness(1.12) drop-shadow(0 0 0.3rem rgba(0, 0, 0, 0.35));
}

.rbt-grid-col:first-child {
  padding-left: 0px !important;
}

.rbt-grid-col:last-child {
  padding-right: 0px !important;
}

.rbt-acc-row {
  margin-bottom: 0.25rem;
}

.rbt-acc-row:last-child {
  margin-bottom: 0px !important;
}

.pt-35 {
  padding-top: 1.25rem !important;
}

.aside-right {
  position: fixed !important;
  right: 0px !important;
  top: 56px !important;
  width: calc(100vw / 2) !important;
  height: calc(100vh - 55px) !important;
  background-color: white;
  padding: 10px;
  border: solid thin #dee2e6;
  border-top-left-radius: .25rem;
  border-bottom-left-radius: .25rem;
}

.aside-right-body {
  height: 100%;
  width: 100%;
}

.border-with-shadow {
  border: solid thin #dee2e6 !important;
  border-radius: .25rem !important;
  box-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 1px 3px rgba(0, 0, 0, .2) !important;
}

.border-no-shadow {
  border: solid thin #dee2e6 !important;
  border-radius: .25rem !important;
}

.td-last-no-right-border {
  border-right: solid thin #dde1e5;
}

.td-last-no-right-border:last-child {
  border-right: none !important;
}

.content-wrapper.kanban .card.card-row {
  width: 400px;
}

.cursor-wait {
  cursor: wait !important;
}

.preview-content {
  text-wrap: wrap;
  display: none;
  border: solid thin #ced4da;
  border-radius: 0.25rem;
  overflow-y: auto;
  padding-left: 8px;
  padding-right: 8px;
  padding-top: 4px;
}

.preview-button {
  font-size: 0.8rem;
  position: absolute;
  right: 10px; top: -10px;
  border: solid thin #ced4da;
  border-radius: 0.25rem;
  background: white;
  padding-left: 4px;
  padding-right: 4px;
}

.width32 {
  width: 32px !important;
}

.input-group > .select2-container--default {
    flex: 1 1 auto;
    width: 1% !important;
}

.input-group > .select2-container--default .select2-selection--single {
    height: 100%;
    border-radius: 0;
}

.sticky {
  border-radius: 5px;
  border: solid thin rgb(192, 192, 192);
  display: inline-block;
  padding: 1rem;
  position: relative;
  min-width: 200px;
  max-width: 350px;
  box-shadow: 1px 1px 1px #696969;
}

.sticky .caption {
  pointer-events: none;
}

.sticky .body {
  margin: 0;
  min-height: 9rem;
  overflow-y: auto;
  max-height: 350px;
  pointer-events: all;
  -webkit-touch-callout: unset;
  -webkit-user-select: text;
  -khtml-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.sticky .body a {
  pointer-events: all;
}

.sticky .editSticky {
  cursor: pointer;
  font-size: 16px;
  position: absolute;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding-top: 7px;
  padding-left: 3px;
}

.sticky .reminder {
  font-size: 0.75rem;
  position: absolute;
  right: 0.25rem;
  top: 0.35rem;
  pointer-events: none;
}

.sticky .showFyeo {
  cursor: pointer;
  font-size: 16px;
  position: absolute;
  right: 0;
  bottom: 24px;
  border-radius: 50%;
  width: 35px;
  height: 32px;
  padding-top: 7px;
  padding-left: 3px;
}

.tr-no-hover:hover {
  background-color: inherit !important;
}
/* Закладки адресов в сайдбаре: кнопка «×» (контраст на тёмном меню) */
.main-sidebar .nav-sidebar .address-favorite-row {
  position: relative;
}
.main-sidebar .nav-sidebar .address-favorite-row > .address-favorite-link.nav-link {
  padding-right: 2.75rem !important;
}
.main-sidebar .nav-sidebar .address-favorite-row .favorite-remove-btn {
  position: absolute;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  z-index: 10;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff !important;
  line-height: 1.65rem;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
}
.main-sidebar .nav-sidebar .address-favorite-row .favorite-remove-btn:hover,
.main-sidebar .nav-sidebar .address-favorite-row .favorite-remove-btn:focus {
  background: rgba(220, 53, 69, 0.95);
  color: #fff !important;
  outline: none;
}
.main-sidebar .nav-sidebar .address-favorite-row .favorite-remove-btn i {
  font-size: 0.7rem;
  vertical-align: middle;
}

/* Превью камеры у входа (карточка дома) */
.rbt-entrance-cam-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    vertical-align: middle;
    background: #1a1a1a;
    display: inline-block;
}
.rbt-entrance-preview-cell {
    vertical-align: middle !important;
    text-align: center !important;
}
th.rbt-entrance-preview-col {
    width: 76px;
}
.rbt-camera-dvr-iframe {
    background: #000;
}


/* Аватар/логотип в сайдбаре: ~+40% к штатным ~33px (AdminLTE) */
.brand-link .brand-image#leftSideToggler {
    max-height: 46px !important;
    height: 46px !important;
    width: 46px !important;
    object-fit: contain;
    border-radius: 0;
    margin-top: -2px;
    margin-left: 0.5rem;
    margin-right: 0.45rem;
}

.brand-link .brand-image#leftSideToggler.brand-image-square {
    aspect-ratio: 1 / 1;
}

/* Горизонтальный логотип (brandLogoWide в config) — без круглой маски */
/* AdminLTE задаёт .brand-link .brand-image { float: left } — снимаем, иначе центр «уезжает» */
.brand-link .brand-image#leftSideToggler.brand-image-wide {
    float: none !important;
    width: auto !important;
    max-width: min(300px, 100%);
    height: auto !important;
    max-height: 56px !important;
    object-fit: contain;
    border-radius: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: inline-block;
    vertical-align: middle;
}

/*
 * Полоса бренда при layout-navbar-fixed: position:fixed — НЕЛЬЗЯ задавать width в %,
 * иначе процент считается от viewport и логотип визуально оказывается по центру экрана.
 * Ширину задаёт AdminLTE (250px / 4.6rem в sidebar-collapse) — не переопределяем.
 * Класс .rbt-brand-wide вешается в app.js (надёжнее :has()).
 */
.main-sidebar #brand.brand-link.rbt-brand-wide {
    display: block !important;
    text-align: center;
    box-sizing: border-box;
}

.main-sidebar #brand.brand-link.rbt-brand-wide .sidebarToggler[data-widget="pushmenu"] {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    width: auto;
    max-width: 100%;
    float: none;
}

#brand .sidebarToggler[data-widget="pushmenu"] {
    display: inline-flex;
    align-items: center;
}

.brand-link #brandTitle.brand-text {
    position: relative;
    margin-left: 0.5rem;
    padding-left: 0.1rem;
    transform: translateY(4px);
    line-height: 1.15;
}



/* Только название приложения Armatis, без логотипа */
.brand-link.brand-text-only .sidebarToggler[data-widget="pushmenu"] {
    justify-content: center;
    width: 100%;
    padding: 0.65rem 0.5rem;
}

.brand-link.brand-text-only #brandTitle.brand-text {
    margin-left: 0;
    padding-left: 0;
    transform: none;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
}
/* Отступ меню от блока бренда (аватар / CityHome / ссылка на GitHub) */
.main-sidebar .sidebar {
    padding-top: 0.9rem;
}

.main-sidebar .sidebar > nav.mt-2 {
    margin-top: 0.35rem !important;
}

/* Полноразмерный превью-поток MJPEG/видео в модалке камеры */
.rbt-camera-player-wrap {
    overflow: hidden;
}
.rbt-camera-mjpeg-live {
    background: #111;
}
.rbt-camera-video-el:focus {
    outline: 2px solid rgba(0, 123, 255, 0.5);
    outline-offset: 2px;
}

/* Надпись над формой входа при config.loginBrandText (вместо img/*Text.png) */
.login-logo .login-brand-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a4ca1;
    letter-spacing: 0.02em;
    text-align: center;
    line-height: 1.2;
}

/* Billing matrix: keep labels/buttons on one baseline */
#billingBody .billing-rule-matrix,
#billingBody .billing-rule-days,
#billingBody .billing-rule-reset {
  height: 22px;
  line-height: 18px;
  padding-top: 1px;
  padding-bottom: 1px;
  vertical-align: middle;
}

#billingBody .billing-days {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  line-height: 20px;
  vertical-align: middle;
}

#billingBody .billing-rule-matrix {
  white-space: nowrap;
}

#billingBody .billing-flat-col {
  width: 120px;
  min-width: 120px;
  text-align: right;
  padding-right: 16px;
  white-space: nowrap;
  vertical-align: top;
}

#billingBody .billing-services-col {
  vertical-align: top;
  padding-left: 0;
}

#billingBody table thead th:nth-child(2) {
  padding-left: 0;
  text-align: left;
  position: relative;
  left: -20px;
}

#billingApplyFilters {
  margin-top: 6px;
}

#billingBody .billing-services-wrap {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 320px;
  align-items: center;
  column-gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
}

#billingBody .billing-service-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

#billingBody .billing-service-main {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#billingBody .billing-service-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

#billingBody .billing-rule-matrix.btn-success {
  box-shadow: none;
}

/* Billing should use full content width and hide right column */
.content .container-fluid > .row.rbt-content-split.billing-fullwidth > #mainForm {
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}

.content .container-fluid > .row.rbt-content-split.billing-fullwidth > #altForm {
  display: none !important;
  flex: 0 0 0 !important;
  width: 0 !important;
  max-width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
