/* CSS reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* common elements styling */
button {
  font-size: inherit;
}
button:focus {
  outline: 0;
}
textarea:focus {
  border-color: var(--highlight-color);
  outline: 0;
}

html, body {
  width: 100%;
  height: 100%;
  color:var(--gray-0);
  background-color:var(--gray-e);
}
#desktop {
  position: relative;
  width: 100%;
  height: 100%;
}
#desktop.desktop-withConsole {
  height: calc(100% - 240px);
}

.mConsole {
  position: absolute;
  box-sizing: border-box;
  z-index: 999999;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 240px;
  color: #000;
  background-color: #ffee;
  font-family: monospace;
  font-size: 10px;
  padding: 2px;
}
.mConsole p {
  margin: 2px 0;
}
.mConsole-hidden {
  display: none;
}
.mConsole_logs {
  display: inline-block;
  vertical-align: top;
  width: 100%;
  height: 100%;
  background-color: #ffee;
  overflow-y: scroll;
}
.mConsole_DQ {
  display: inline-block;
  vertical-align: top;
  width: 100%;
  height: 100%;
  background-color: #fede;
  overflow-y: scroll;
}
.mConsole-hideLogs {
  width: 25%;
  left: auto;
}
.mConsole-hideLogs .mConsole_logs {
  display: none;
}
.mConsole-hideDQ .mConsole_DQ {
  display: none;
}
.mConsole:not(.mConsole-hideDQ) .mConsole_logs {
  width: 75%;
}
.mConsole:not(.mConsole-hideLogs) .mConsole_DQ {
  width: 25%;
}

.mScreen_overlay {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  text-align: center;
  white-space: nowrap;
  -webkit-transition: 0.3s opacity;
  transition: 0.3s opacity;
}
.mScreen_overlay-passive {
  opacity: 0;
}
.mScreen_overlay-fadeout {
  background-color: var(--overlay-fadeout);
}
.mScreen_layer {
  position: absolute;
  text-align: left;
  white-space: normal;
}


.mGroup {
  margin-top: 16px;
}
.mGroup:first-child {
  margin-top: 0px;
}
.mGroup_title {
  padding: 8px 16px;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--gray);
  position: relative;
}
.mGroup-canBeMinimized .mGroup_title:before {
  content: "\f0d8";
  padding: 0 4px;
  font: normal normal normal 14px/1 FontAwesome;
}
.mGroup-canBeMinimized.mGroup-isMinimized .mGroup_title:before {
  content: "\f0d7";
}
.mGroup-isMinimized *:not(.mGroup_title) {
  display: none;
}

/* Button */
.mButton {
  border: 1px solid var(--gray-a);
  background-color: var(--gray-e);
  color: var(--gray-2);
  padding: 6px 8px;
  line-height: 1.2;
  margin: 4px;
  font-weight: normal;
  font-size: var(--font-size);
  cursor: pointer;
}
.mButton:disabled {
  color: var(--gray-b);
}
.mButton-default {
  background-color: var(--gray-f);
}
.mButton-hidden {
  display: none;
}
.mButton_menu {
  display: inline-block;
  margin: -5px -4px -5px 4px;
  padding: 6px 4px;
  border-left: 1px solid var(--gray-8);
}
.mButton-withStatus {
  padding-left: 16px;
  position: relative;
  margin-right: 0;
}
.mButton-withStatus:before {
  content: " ";
  display: block;
  position: absolute;
  left: 6px;
  top: 8px;
  width: 4px;
  height: 10px;
  box-shadow: inset 0 0 1px rgba(0,0,0,0.5);
  background-color: var(--passiveLED);
}
.mButton-withStatusOn:before {
  background-color: var(--activeLED);
}



/* Button bar */
.mButtonBar {
  width: 100%;
  padding: 8px 8px;
  display: flex;
}
.mButtonBar .mButton {
  flex: 1 1 auto;
  margin: 0 8px;
}

/* Checkbox */
.mCheckbox {
  box-sizing: border-box;
  padding: 12px 16px 12px 50px;
  position: relative;
  cursor: pointer;
}
.mCheckbox_checkbox {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 16px;
  margin: auto;
  width: 28px;
  height: 28px;
  border: 2px solid var(--dark-gray);
  border-radius: 3px;
}
.mCheckbox_checkbox:after {
  opacity: 0;
  -webkit-transition: all 0.30s ease;
  transition: all 0.30s ease;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  background-color: var(--highlight-color);
}
.mCheckbox-on .mCheckbox_checkbox:after {
  opacity: 1;
}
.mCheckbox-disabled {
  color: var(--dark-gray);
}
.mCheckbox-disabled .mCheckbox_checkbox {
  border-color: var(--gray);
  background-color: var(--light-gray);
}

/* Select */
.mSelect, .mDropdown {
  background-color: var(--black);
  background-image: url("data:image/svg+xml;base64,PHN2ZyBmaWxsPScjYmJiJyBoZWlnaHQ9JzI0JyB2aWV3Qm94PScwIDAgMjQgMjQnIHdpZHRoPScyNCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz48cGF0aCBkPSdNNyAxMGw1IDUgNS01eicvPjxwYXRoIGQ9J00wIDBoMjR2MjRIMHonIGZpbGw9J25vbmUnLz48L3N2Zz4=");
  /* <svg fill='#bbb' height='24' viewBox='0 0 24 24' width='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: 1px;
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
  box-sizing: border-box;
  font-size: 15px;
  padding: 4px 8px 4px 8px;
  border: 1px solid var(--dark-gray);
  border-radius: 3px;
  margin: 4px 0;
  box-shadow: none;
  color: var(--white);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mDropdown {
  padding-right: 20px;
}
.mSelect:disabled, .mDropdown-disabled {
  border-color: var(--dark-gray);
  color: var(--dark-gray);
  cursor: default;
}
.mSelect:focus, .mDropdown:focus {
  border-color: var(--highlight-color);
  outline: 0px none;
}
.mDropdown_item-selected {
  background-color: var(--highlight-color);
}
.mDropdown_menu {
  overflow-y: auto;
}
/* Radio buttons */
.mRadioButtons {
}
.mRadioButtons_item {
  position: relative;
  display: block;
  margin: 0;
  padding: 12px 16px 12px 50px;
  color: var(--white);
  width: 100%;
  font-size: 15px;
  cursor: pointer;
}
.mRadioButtons_checkbox {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 16px;
  margin: auto;
  width: 28px;
  height: 28px;
  border: 2px solid var(--dark-gray);
  border-radius: 50%;
}
.mRadioButtons-disabled .mRadioButtons_item {
  color: var(--gray);
}
.mRadioButtons-disabled .mRadioButtons_checkbox {
  background-color: var(--light-gray);
}

.mRadioButtons_checkbox:after {
  opacity: 0;
  -webkit-transition: all 0.30s ease;
  transition: all 0.30s ease;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  background-color: var(--highlight-color);
  border-radius: 50%;
}
.mRadioButtons_item-on .mRadioButtons_checkbox:after {
  opacity: 1;
}
.mRadioButtons_item:not(.mRadioButtons_item-on) .mRadioButtons_itemContent {
  pointer-events: none;
}

/* Radio row */
.mRadioRow {
  display: flex;
  background-color: var(--black);
  border: 1px solid var(--dark-gray);
  border-radius: 3px;
  font-size: 15px;
}
.mRadioRow_item {
  flex: 1 1 0;
  padding: 8px 2px;
  color: var(--light-gray);
  cursor: pointer;
  border-left: 1px solid var(--dark-gray);
  text-align: center;
}
.mRadioRow-disabled .mRadioRow_item {
  color: var(--gray);
}
.mRadioRow_item:first-child {
  border-left: none;
}
.mRadioRow_checkbox {
  display: none;
}
.mRadioRow_item-on {
  background-color: var(--highlight-color);
  color: var(--highlight-oposite-color);
}
.mRadioRow-disabled .mRadioRow_item-on {
  background-color: var(--black);
  color: var(--gray);
}



/* submenu  */
.mSubmenu {
  line-height: 1;
  display: block;
  margin: 0;
  padding: 12px 16px 11px;
  background-color: var(--black);
  color: var(--white);
  width: 100%;
  font-size: 15px;
  cursor: pointer;
}
.mSubmenu::after {
  display: inline-block;
  position: absolute;
  right: 16px;
  padding-top: 2px;
  font: normal normal normal 14px/1 LineAwesome;
  content: "\f112";
  color: var(--light-gray);
}
.mSubmenu-highlighted {
  background-color: var(--secondary-color);
}
.mSubmenu-warn {
  background-color: var(--warn-color);
}

/* slider */
.mSlider {
  position: relative;
  cursor: pointer;
}

.mSlider_bar {
  position: absolute;
  margin: 0.4em;
  width: calc(100% - 0.8em);
  height: 0.2em;
  background-color: var(--light-gray);
  pointer-events: none;
}
.mSlider_thumb {
  position: absolute;
  left: 0%;
  top: 0.1em;
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  background-color: var(--light-gray);
}
.mSlider_thumb-hidden {
  opacity: 0;
}

/* bubble */
.mBubble {
  position: absolute;
  -webkit-transition: 0.3s -webkit-transform, 0.3s opacity;
  transition: 0.3s transform, 0.3s opacity;
  font-size: 15px;
}
.mBubble-passive {
  opacity: 0;
}
.mBubble-passive.mBubble-left {
  -webkit-transform: translate(20px, 0);
  transform: translate(20px, 0);
}
.mBubble-passive.mBubble-top {
  -webkit-transform: translate(0, 20px);
  transform: translate(0, 20px);
}
.mBubble-passive.mBubble-bottom {
  -webkit-transform: translate(0, -20px);
  transform: translate(0, -20px);
}
.mBubble_arrow {
  position: absolute;
}
.mBubble-left .mBubble_arrow {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 8px 8px 0;
  border-color: transparent var(--highlight-color) transparent transparent;
}
.mBubble-top .mBubble_arrow {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 8px 8px 8px;
  border-color: transparent transparent var(--highlight-color) transparent;
}
.mBubble-bottom .mBubble_arrow {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 8px 0 8px;
  border-color: var(--highlight-color) transparent transparent transparent;
}
.mBubble_content {
  position: absolute;
  background-color: var(--highlight-color);
  color: var(--highlight-oposite-color);
  border-radius:3px;
  padding: 8px 20px 8px 8px;
  overflow: hidden;
  line-height: 140%;
}
.mBubble_content:after {
  position: absolute;
  top: 8px;
  right: 6px;
  width: 16px;
  height: 16px;
  font: normal normal normal 14px/1 LineAwesome;
  content: "\f342";
  text-align: center;
  cursor: pointer;
}

/* dots */
.mDots {
  text-align: center;
  margin: 4px 16px;
}

.mDots_dot {
  display: inline-block;
  margin: 0 4px;
  width: 8px;
  height: 8px;
  background-color: var(--gray);
  border-radius: 50%;
  cursor: pointer;
}
.mDots_dot-selected {
  background-color: var(--white);
}


/* file box */
.mFile {
  box-sizing: border-box;
  display: inline-block;
  text-align: center;
  border: 1px solid var(--gray);
  position: relative;
  overflow: hidden;
}
.mFile:before {
  display: inline-block;
  vertical-align: middle;
  height: 100%;
  content: "";
}
.mFile_content {
  display: inline-block;
  vertical-align: middle;
  width: 100%;
  box-sizing: border-box;
  padding: 4px;
  overflow-wrap: break-word;
}
.mFile_content-image {
  height: 100%;
}
.mFile_content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mFile_buttonDelete {
  position: absolute;
  box-sizing: border-box;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background-color: var(--warning-color, #d00);
  color: white;
  cursor: pointer;
}
.mFile_buttonDelete-hidden {
  display: none;
}
.mFile_progressBar {
  width: 50%;
  height: 4px;
  margin: 2px auto 0;
}
.mFile_progressBar div {
  height: 100%;
  background-color: var(--highlight-color);
  transition: 0.5s width;
}

/* edit toolbar */
.mFile_editToolbar {
  position: absolute;
  bottom: 4px;
  left: 4px;
  display: flex;
  gap: 4px;
}
.mFile_editToolbar > div {
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.5);
  color: white;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.mFile_editToolbar > div:hover {
  background: rgba(0,0,0,0.8);
}
.mFile.mFile-blackBg {
  background: #000;
}
.mFile.mFile-whiteBg {
  background: #fff;
}
.mFile_viewModeMenu {
  position: absolute;
  bottom: 4px;
  right: 4px;
  display: flex;
  gap: 4px;
}
.mFile_viewModeMenu > div {
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.3);
  color: rgba(255,255,255,0.5);
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.mFile_viewModeMenu > div:hover {
  background: rgba(0,0,0,0.6);
}
.mFile_viewModeButton-active {
  color: white !important;
  background: rgba(0,0,0,0.7) !important;
}
.mFile_removeBackgroundPanel {
  padding: 8px;
  background-color: var(--gray-e);
}
.mFile_removeBackgroundPanel .mRadioRow {
  margin-bottom: 8px;
}
.mFile_removeBackgroundPanel .mButton {
  width: 100%;
  margin: 8px 0 0;
}

/* mFloatingMenu */
.mFloatingMenu {
}
.mFloatingMenu_item {
  width: 100%;
  position: relative;
}


/* mDialog */
.mDialog {
  position: absolute;
  background-color: var(--gray-d);
  border: 1px solid var(--gray-8);
  color: var(--gray-0);
  max-width: calc(100% - 4px) !important;
  max-height: calc(100% - 4px) !important;
}
.mDialog-fullscreen {
  width: calc(100% - 64px);
  height: calc(100% - 64px);
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}
.mDialog-verticalAlign {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}
.mDialog_verticalAligner {
  display: inline-block;
  vertical-align: middle;
  width: 0px;
  height: 100%;
  background-color: #0000;
}
.mDialog_header {
  background-color: var(--gray-8);
  color: var(--gray-f);
  padding: 6px 8px;
  font-weight: bold;
}
.mDialog_headerClosingButton {
  position: absolute;
  right: 0px;
  top: 0px;
  padding: 2px 8px 2px;
}
.mDialog_content {
  box-sizing: border-box;
  padding: 8px;
  overflow-y: auto;
}
.mDialog-fullscreen .mDialog_form {
  height: calc(100% - 112px);
}
.mDialog-fullscreen .mDialog_content {
  height: 100%;
  overflow-y: hidden;
}
.mDialog_buttons {
  text-align: center;
  padding: 8px 0;
  background-color: var(--gray-d);
}
.mDialog_fakeButtonsInContentArea {
  padding: 8px 0;
  margin: 0 -8px;
  width: calc(100% + 16px);
  opacity: 0;
}
.mDialog_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.mColor {
  width: 1.2em !important;
  height: 1.2em;
  padding: 0;
  margin-top: 1px;
}
.mColor:disabled {
  opacity: 0.2;
  cursor: default;
}

.mElementsWithLabels_row {
  position: relative;
}
.mElementsWithLabels_row-hidden {
  display: none;
}
.mElementsWithLabels_label {
  display: inline-block;
  box-sizing: border-box;
  vertical-align: top;
  padding-top: 0.5em;
  padding-right: 4px;
  font-size: var(--font-size);
  overflow-wrap: break-word;
}
.mElementsWithLabels_label b {
  color: var(--warning);
  vertical-align: top;
  font-size: 80%;
}
.mElementsWithLabels_element {
  display: block;
  margin-left: 0px;
  margin-right: 0px;
}
.mElementsWithLabels_element-withLabel {
  display: inline-block;
  vertical-align: top;
}
.mElementsWithLabels-column {
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  vertical-align: top;
  border-left: 1px solid var(--gray-c);
  padding: 0 4px;
}
.mElementsWithLabels-column:first-child {
  border-left: 0px none;
  padding-left: 0;
}
.mElementsWithLabels-column:last-child {
  padding-right: 0;
}
.mElementsWithLabels-column80 {
  width: 80%;
}
.mElementsWithLabels-column75 {
  width: 75%;
}
.mElementsWithLabels-column70 {
  width: 70%;
}
.mElementsWithLabels-column66 {
  width: 66.666%;
}
.mElementsWithLabels-column60 {
  width: 60%;
}
.mElementsWithLabels-column50 {
  width: 50%;
}
.mElementsWithLabels-column40 {
  width: 40%;
}
.mElementsWithLabels-column35 {
  width: 35%;
}
.mElementsWithLabels-column33 {
  width: 33.333%;
}
.mElementsWithLabels-column30 {
  width: 30%;
}
.mElementsWithLabels-column25 {
  width: 25%;
}
.mElementsWithLabels-column20 {
  width: 20%;
}
.mElementsWithLabels-columnHidden {
  display: none;
}
@media screen and (max-width: 600px) {
  .mElementsWithLabels-column {
    display: block;
    width: 100% !important;
    padding: 4px 0;
    border-left: 0 none;
    border-top: 1px solid var(--gray-c);
    margin-top: 4px;
  }
  .mElementsWithLabels-column:first-child {
    border-top: 0px none;
    padding-top: 0;
  }
}
.mInput[type="number"] {
  padding-right: 0;
}
.mInput_value {
  width: calc(100% - 1em);
  text-align: right;
}
.mInput_unit {
  display: inline-block;
  text-align: right;
  width: 1em;
}
.mInputWithMenu {
  display: inline-block;
  border: 1px solid var(--gray-a);
  box-sizing: border-box;
  background-color: var(--gray-f);
}
.mInputWithMenu-focused {
  border-color: var(--highlight-color);
}
.mInputWithMenu .mInput {
  display: inline-block;
  vertical-align: top;
  background-color: transparent;
  width: calc(100% - 2em);
  border: 0 none;
  margin: 0;
}
.mInputWithMenu .mInput:hover {
  border: 0px none;
}
.mInputWithMenu .mButton, .mInputWithMenu span {
  box-sizing: border-box;
  display: inline-block;
  vertical-align: top;
  margin: 0;
  padding: 2px 0;
  background-color: transparent;
  width: 2em;
  border: 0 none;
}

.mInputWithNumberControl {
  display: inline-block;
  box-sizing: border-box;
  white-space: nowrap;
}
.mInputWithNumberControl_input {
  width: calc(100% - 4em);
  text-align: right;
  margin: 0;
  border: 0 none;
}
.mInputWithNumberControl_button {
  width: 2em;
  margin: 0;
}



.mFloatingPanel-mInputAutoComplete {
  box-sizing: border-box;
  background-color: var(--gray-f);
  border: 1px solid var(--gray-a);
  overflow-y: scroll;
}
.mInputAutoComplete_item {
  box-sizing: border-box;
  padding: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mInputAutoComplete_item:hover {
  background-color: var(--primary-color);
  color: var(--primary-color-opposite);
}


.mDropdown {
  border: 1px solid
}


.mFolders_itemsWrapper {
  display: inline-block;
  box-sizing: border-box;
  vertical-align: top;
  width: 25%;
  height: 100%;
  overflow-y: scroll;
}
.mFolders_contentsWrapper {
  display: inline-block;
  box-sizing: border-box;
  vertical-align: top;
  width: 75%;
}
.mFoldersItem {
  padding: 4px;
}
.mFoldersItem-selected {
  background-color: var(--highlight-color);
}
.mFoldersContent {
  display: none;
}
.mFoldersContent-selected {
  display: block;
}



/* error inputs */
.mInput.mErrorInput {
  box-shadow: inset 0 0 0 1px var(--warning-color, #d00);
  background-color: color-mix(in srgb, var(--inputs-background, #fff) 80%, var(--warning-color, #d00) 20%);
}
.mInputWithMenu.mErrorInput {
  border-color: var(--warning-color, #d00);
  background-color: color-mix(in srgb, var(--inputs-background, #fff) 80%, var(--warning-color, #d00) 20%);
}
.mRadioButtons.mErrorInput {
  box-shadow: inset 0 0 0 1px var(--warning-color, #d00);
  background-color: color-mix(in srgb, var(--inputs-background, #fff) 80%, var(--warning-color, #d00) 20%);
}
.mErrorStatus {
  margin: 0.25em 0 1em;
  font-size: 90%;
}
.mErrorStatus_row-invalid {
  color: var(--warning-color, #d00);
}
.mErrorStatus_row-warning {
  color: #c80;
}
.mErrorStatus-hidden {
  display: none;
}



/* common styling */
.mBlackMilkFrame {
  margin: 8px 0px;
  padding: 8px 0px;
  background-color: rgba(0, 0, 0, 0.2);
  position: relative;
}

.mFloatLeft {
  float: left;
  display: block;
}
.mFloatRight {
  float: right;
  display: block;
}
.mMarginOnTop {
  margin-top: 16px;
}
.mMarginOnTop-small {
  margin-top: 4px;
}
.mMarginOnBottom {
  margin-bottom: 16px;
}
.mMarginOnLeft {
  margin-left: 16px;
}
.mMarginOnRight {
  margin-right: 16px;
}
.mClear {
  clear: both;
}
.mSmaller {
  font-size: 90%;
}
.mAbsoluteBottomRight {
  position: absolute;
  right: 16px;
  bottom: 16px;
}
.mVerticalAlignMiddle {
  display: inline-block;
  vertical-align: middle;
}
.mVerticalAlignMiddle:before {
  content: "";
  width: 1px;
  height: 100%;
  display: inline-block;
  vertical-align: middle;
}
.mBlock {
  display: block;
}
.mCentered {
  text-align: center;
}
.mTextAlignRight {
  text-align: right;
}
.mColumn {
  display: inline-block;
  vertical-align: top;
  padding-left: 16px;
  box-sizing: border-box;
}
.mColumn:first-child {
  padding-left: 0px;
}
.mBorderOnTop {
  margin-top: 4px;
  padding-top: 3px;
  border-top: 1px solid var(--gray-c);
}
.mBorderOnBottom {
  margin-bottom: 4px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--gray-c);
}
.mInline {
  display: inline-block;
}
.mInline-50 {
  width: 50%;
}

/* Toast */
.mToast_container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.mToast {
  background: var(--gray-2);
  color: var(--gray-f);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
}
.mToast-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Color Input --- */

.mColorInput {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mColorInput_swatch {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid var(--gray-a);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: repeating-conic-gradient(var(--gray-d) 0% 25%, var(--gray-f) 0% 50%) 0 0 / 10px 10px;
}
.mColorInput_swatch:hover {
  border-color: var(--gray-6);
}
.mColorInput_swatchInner {
  position: absolute;
  inset: 0;
}
.mColorInput_hex.mInput {
  width: 80px;
  font-family: monospace;
  font-size: 12px;
  padding: 4px 6px;
}
.mColorInput_panel.mFloatingPanel {
  padding: 8px;
  background: var(--gray-f);
  border: 1px solid var(--gray-c);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* --- Color Mixer --- */

.mColorMixer {
  display: flex;
  gap: 10px;
  user-select: none;
}
.mColorMixer_left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

/* SV gradient area */
.mColorMixer_sv {
  width: 140px;
  height: 140px;
  position: relative;
  cursor: crosshair;
  border-radius: 4px;
  overflow: hidden;
}
.mColorMixer_svWhite {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #fff, transparent);
}
.mColorMixer_svBlack {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000, transparent);
}
.mColorMixer_svCursor {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Hue strip */
.mColorMixer_hue {
  width: 140px;
  height: 14px;
  border-radius: 3px;
  position: relative;
  cursor: crosshair;
  background: linear-gradient(to right,
    hsl(0, 100%, 50%),
    hsl(60, 100%, 50%),
    hsl(120, 100%, 50%),
    hsl(180, 100%, 50%),
    hsl(240, 100%, 50%),
    hsl(300, 100%, 50%),
    hsl(360, 100%, 50%)
  );
}
.mColorMixer_hueCursor {
  position: absolute;
  top: -1px;
  width: 6px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 3px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
  transform: translateX(-50%);
  pointer-events: none;
}

/* Right column */
.mColorMixer_right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Preview swatch */
.mColorMixer_preview {
  height: 28px;
  border-radius: 4px;
  border: 1px solid var(--gray-c);
  position: relative;
  overflow: hidden;
  background: repeating-conic-gradient(var(--gray-d) 0% 25%, var(--gray-f) 0% 50%) 0 0 / 10px 10px;
}
.mColorMixer_previewInner {
  position: absolute;
  inset: 0;
}

/* Slider rows */
.mColorMixer_sliderRow {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 18px;
}
.mColorMixer_sliderLabel {
  width: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-8);
  text-align: center;
  flex-shrink: 0;
}
.mColorMixer_sliderBar {
  flex: 1;
  height: 8px;
  background: var(--gray-d);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.mColorMixer_sliderFill {
  height: 100%;
  background: var(--gray-5);
  border-radius: 4px;
  pointer-events: none;
}
.mColorMixer_sliderInput.mInput {
  width: 38px;
  padding: 1px 3px;
  font-size: 11px;
  font-family: monospace;
  text-align: right;
  flex-shrink: 0;
  -moz-appearance: textfield;
}
.mColorMixer_sliderInput.mInput::-webkit-outer-spin-button,
.mColorMixer_sliderInput.mInput::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Hex row */
.mColorMixer_hexRow {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: var(--gray-6);
  font-family: monospace;
  overflow: hidden;
}
.mColorMixer_hexRow > span {
  flex-shrink: 0;
}
.mColorMixer_hexInput.mInput {
  flex: 1;
  min-width: 0;
  padding: 2px 4px;
  font-size: 12px;
  font-family: monospace;
  box-sizing: border-box;
}
.mTable {
  position: relative;
  background-color:var(--gray-f);
  overflow: hidden;
  text-align: left;
}
.mTable:focus {
  outline: none;
}
.mTable_toolbar {
  background-color: var(--gray-e);
  white-space: nowrap;
  min-height: 34px;
}
.mTable_tableWrapper {
  height: calc(100% - 34px - 34px); /* minus toolbar, minus pager */
  min-height: 120px;
  position: relative;
}
.mTable_pager {
  background-color: var(--gray-e);
  text-align: center;
  position: relative;
  min-height: 34px;
}

.mTable_statusBox {
  position: absolute;
  width: 320px;
  max-width: 80%;
  height: 54px;
  max-height: 100%;
  padding: 8px;
  border: 1px solid var(--gray-8);
  background-color: var(--gray-d);
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  text-align: center;
}
.mTable_statusBox-oneRow {
  height: 1em;
}
.mTable_button {
  border: 1px solid var(--gray-b);
  font-size: var(--font-size);
  border-radius: 0;
  background-color: var(--gray-e);
  color: var(--gray-1);
}

.mTable_tableHeaderWrapper {
  position: relative;
  height: 28px;
}
.mTable_tableHeader {
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  display: table;
  table-layout: fixed;
  font-size: var(--font-size);
  color: var(--gray-4);
  border: 0px none transparent;
  width: 1px;
}
.mTable_tableBodyWrapper {
  height: calc(100% - 27px);
  overflow-x: visible;
  overflow-y: scroll;
  /* scroll-snap-type: y mandatory;
  scroll-padding: 12px; */
}
.mTable_tableBody {
  box-sizing: border-box;
  display: table;
  table-layout: fixed;
  font-size: var(--font-size);
  color: var(--gray-4);
  border: 0px none transparent;
  width: 1px;
}
.mTable-thumbnails .mTable_tableBody,
.mTable-previews .mTable_tableBody {
  display: block;
  line-height: 1;
  font-size: 0;
  width: auto;
}

.mTable_tr {
  scroll-snap-align: start;

  box-sizing: border-box;
  border-bottom: 1px solid var(--gray-e);
  display: table-row;
}
.mTable_tr:nth-child(even) {
  background-color: #ddd4;
}
.mTable-thumbnails .mTable_tr,
.mTable-previews .mTable_tr {
  display: inline-block;
  vertical-align: top;
  position: relative;
  margin: 0px;
  font-size: var(--font-size);
  padding: 4px 6px;
  border-color: transparent;
}
.mTable-thumbnails .mTable_tr:nth-child(even),
.mTable-previews .mTable_tr:nth-child(even) {
  background-color:transparent;
}

.mTable-thumbnails .mTable_tr {
  width: 142px;
}
.mTable-previews .mTable_tr {
  width: 180px;
}
.mTable_tr-selected {
  color: var(--gray-f);
  background-color: var(--primary-color) !important;
}
.mTable-rowSorting .mTable_tr {
  position: relative;
}
.mTable_tr-sorted {
  z-index: 1;
  opacity: 0.8;
  cursor: all-scroll;
  box-shadow: 4px 4px 4px rgba(0,0,0,0.5);
  transition: 0.1s transform;
}
.mTable-rowSorting .mTable_tr:not(.mTable_tr-sorted) {
  transition: 0.3s all;
}
.mTable-disable {
  pointer-events: none;
  opacity: 0.2;
}
.mTable-thumbnails .mTable_tableHeaderWrapper,
.mTable-previews .mTable_tableHeaderWrapper {
  display: none;
}
.mTable_th {
  box-sizing: border-box;
  position: relative;
  display: table-cell;
  text-align: left;
  border-top: 0px none;
  border-bottom: 0px none;
  padding: 6px 8px;
  vertical-align: middle;
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mTable_th-sorting {
  background-color: var(--gray-d);
}
.mTable_th-filtering {
  background-color: var(--gray-4);
  color: var(--gray-f);
}
.mTable_columnHandle {
  position: absolute;
  right: 0px;
  top: 0px;
  height: 100%;
  width: 4px;
  border-right: 1px solid var(--gray-e);
  cursor: col-resize;
}
.mTable_columnHandle:hover {
  border-right: 2px solid var(--gray-a);
}
.mTable_columnHandle-fixedWidth {
  cursor: not-allowed;
}
.mTable_columnHandle-fixedWidth:hover {
  border-right: 1px solid var(--gray-e);
}
.mTable-thumbnails colgroup,
.mTable-previews colgroup {
  display: none;
}
.mTable_columnIcons {
  float: right;
  color: var(--gray-c);
  cursor: pointer;
}
.mTable_th:hover .mTable_columnIcons {
  color: var(--gray-8);
}
.mTable_th-sorting .mTable_columnIcons {
  color: var(--gray-8);
}
.mTable_th-filtering .mTable_columnIcons {
  color: var(--gray-f);
}

.mTable_editingStatus {
  position: absolute;
  left: 0px;
  top: 0px;
}

.mTable_editModeStart {
  padding: 6px;
  border: 0;

  margin: 2px;
  border-radius: 3px;
  background-color: transparent;
  font-size: var(--font-size);
  color: var(--gray-4);
  cursor: pointer;
}
.mTable_editModeStart:hover {
  background-color: var(--gray-a);
}

.mTable_editHelp {
  padding: 6px;
}

.mTable_editingStatus-on .mTable_editModeStart {
  display: none;
}
.mTable_editingStatus:not(.mTable_editingStatus-on) .mTable_editHelp {
  display: none;
}

.mTable_filteringStatus {
  position: absolute;
  right: 2px;
  top: 2px;
  padding: 6px;
  border: 1px solid var(--gray-8);
  background-color: var(--gray-e);
}
.mTable_summaryInfo {
  position: absolute;
  right: 2px;
  top: 2px;
  padding: 6px;
}

.mTable_td {
  box-sizing: border-box;
  display: table-cell;
  background-color: transparent;
  padding: 6px 8px;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mTable_td-disabled {
  color: var(--gray-c);
}
.mTable-thumbnails .mTable_td,
.mTable-previews .mTable_td {
  display: block;
  width: 100%;
  height: 100%;
  padding: 2px;
  min-height: 1.5em;
  line-height: 120%;
}
.mTable_tdInput {
  width: 100%;
  margin: -2px 0 !important;
  padding: 0 !important;
  border: 0 none !important;
  line-height: 0;
}
.mTable_tdArea {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 none !important;
  line-height: 0;
  resize: vertical;
}
.mTable_td-sortableByDrag {
  padding: 0 2px;
}
.mTable_sortingHandle {
  border: 1px solid var(--gray-b);
  background-color: var(--gray-d);
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  display: inline-block;
  font-size: 80%;
  padding: 0.4em 0.2em;
  cursor: all-scroll;
}
/* .mTable_tr-folder .mTable_td {
  font-weight: bold;
} */
.mTable_toolbarButton {
  display: inline-block;
  box-sizing: border-box;
  width: auto;
  padding: 6px;
  margin: 2px;
  border: 0 none;
  border-radius: 3px;
  background-color: transparent;
  font-size: var(--font-size);
  color: var(--gray-4);
  cursor: pointer;
}
.mTable_toolbarButton:hover {
  background-color: var(--gray-a);
}
.mTable_toolbarButton-active {
  background-color: var(--gray-4);
  color: var(--gray-f);
}
.mTable_toolbarButton-active:hover {
  background-color: var(--gray-5);
}
.mTable_toolbarButton:disabled {
  background-color: transparent;
  color: var(--gray-a);
}
.mTable_toolbarButton:disabled:hover {
  background-color: transparent;
}
.mTable_toolbarComboWrapper {
  display: inline-block;
  vertical-align: baseline;
  box-sizing: border-box;
  width: auto;
  padding: 0;
  margin: 0 4px;
  border: 1px solid transparent;
  border-radius: 0;
  background-color: transparent;
  font-size: var(--font-size);
  color: var(--gray-4);
}
.mTable_toolbarComboWrapper .mDropdown,  .mTable_toolbarLegend {
  display: inline-block;
  vertical-align: middle;
}
.mTable_toolbarComboWrapper .mInput {
  vertical-align: middle;
  margin: 0;
}
.mTable_toolbarLegend {
  margin-right: 4px;
}
.mTable_toolbarButton-hiddenDownloadCSVButton {
  display: none;
}

.mTable_page {
  display: inline-block;
  box-sizing: border-box;
  text-align: center;
  width: auto;
  min-width: 30px;
  padding: 6px;
  margin: 2px;
  border: 1px solid var(--gray-d);
  border-radius: 3px;
  background-color: var(--gray-f);
  font-size: var(--font-size);
  color: var(--gray-4);
}
.mTable_page:hover {
  border-color: var(--gray-8);
  background-color: var(--gray-a);
}
.mTable_page-active {
  background-color: var(--gray-4);
  color: var(--gray-f);
}
.mTable_page-active:hover {
  background-color: var(--gray-5);
}
.mTable_page:disabled {
  background-color: transparent;
  border-color: transparent;
  color: var(--gray-d);
}
.mTable_page:disabled:hover {
  background-color: transparent;
  border-color: transparent;
}

.mTable_timeZone {
  float: right;
  margin: 8px 8px 0 0;
  color: var(--gray-4);
}

.mTable_toolbarRightPart {
  float: right;
  white-space: nowrap;
}
.mTable_quickFilterInputsGroup {
  display: inline-block;
  padding: 2px;
  width: 180px;
}
.mTable_quickFilterInputsGroup-active {
  background-color: var(--gray-a);
  color: var(--gray-f);
}
.mTable_quickFilterInputsGroup i {
  margin: 0 0.35em;
}
.mTable_quickFilterInputsGroup i.fa-times {
  cursor: pointer;
}
.mTable_quickFilterInputsGroup:not(.mTable_quickFilterInputsGroup-active) .mTable_quickFilterCancelButton {
  display: none;
}
.mInput-quickFilter {
  width: calc(100% - 1.8em);
}
.mTable_quickFilterInputsGroup-active .mInput-quickFilter {
  width: calc(100% - 3.6em);
}


.mTable_hoverBox {
  position: absolute;
  width: 300px;
  height: 300px;
  pointer-events: none;
}
.mTable_hoverBox img {
  background-color: var(--gray-f);
  height: 100%;
  object-fit: contain;
  border: 1px solid black;
}
/* --- CSS Variables (required by m.css and MTable.css) --- */

:root {
  --highlight-color: var(--olovari-orange-light);
  --highlight-color-opposite: #fff;
  --primary-color: var(--olovari-orange);
  --primary-color-hover: #c5501f;
  --primary-color-opposite: #fff;
  --secondary-color: #fc5;
  --secondary-color-opposite: #000;
  --lines-color: rgba(128, 128, 128, 0.25);
  --overlay-fadeout: rgba(255, 255, 255, 0.8);
  --warning: #a00;

  --gray-0: #000;
  --gray-1: #111;
  --gray-2: #222;
  --gray-3: #333;
  --gray-4: #444;
  --gray-5: #555;
  --gray-6: #666;
  --gray-7: #777;
  --gray-8: #888;
  --gray-9: #999;
  --gray-a: #aaa;
  --gray-b: #bbb;
  --gray-c: #ccc;
  --gray-d: #ddd;
  --gray-e8: #e8e8e8;
  --gray-e: #eee;
  --gray-f8: #f8f8f8;
  --gray-f: #fff;

  --gray-0-50: #0008;
  --gray-0-25: #0004;
  --gray-a-50: #aaa8;
  --gray-f-50: #fff8;

}

:root {
  /* Olovari brand — gradient z tečky v logu */
  --olovari-orange: #e8652b;
  --olovari-orange-light: #ffad5c;
}

/* --- Layout --- */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background: #f0f2f5;
}

#desktop {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* --- Top bar --- */

.app_topBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 20px;
  background: #1a1a2e;
  color: #fff;
  flex-shrink: 0;
}

.app_topBar_left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app_topBar_logo {
  height: 28px;
  width: 110px;
  background: url('img/olovari-white-color.svg') no-repeat center / contain;
}

.app_topBar_build {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}

.app_topBar_projectSwitch {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  transition: background 0.15s;
}
.app_topBar_projectSwitch:hover {
  background: rgba(255, 255, 255, 0.15);
}
.app_topBar_projectSwitch .fa {
  font-size: 11px;
  margin-left: 4px;
  opacity: 0.7;
}

.app_projectSwitchList {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
}
.app_projectSwitchItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 4px;
}
.app_projectSwitchItem:hover {
  background: var(--gray-e);
}
.app_projectSwitchItem-current {
  background: var(--gray-e);
  cursor: default;
  font-weight: 600;
}
.app_projectSwitchItem-current::before {
  content: "✓";
  margin-right: 8px;
  color: var(--olovari-orange);
}
.app_projectSwitchItem_name {
  flex: 1;
}
.app_projectSwitchItem_meta {
  font-size: 11px;
  color: var(--gray-7);
  font-family: monospace;
}

.app_topBar_project {
  font-size: 13px;
  opacity: 0.7;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.app_topBar_right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app_topBar_user {
  font-size: 13px;
  opacity: 0.8;
}

.app_topBar_logoutButton.mButton {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 3px;
}

.app_topBar_logoutButton.mButton:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

.app_langSwitch {
  display: flex;
  gap: 2px;
}

.app_langSwitch_btn.mButton {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  font-size: 11px;
  cursor: pointer;
  border-radius: 3px;
}

.app_langSwitch_btn.mButton:hover {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
}

.app_langSwitch_btn-active.mButton {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
}

/* --- Tabs --- */

.app_tabs {
  display: flex;
  background: #16213e;
  padding: 0 20px;
  flex-shrink: 0;
}

.app_tab.mButton {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 20px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 0;
}

.app_tab.mButton:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.app_tab-active.mButton {
  color: #fff;
  border-bottom-color: var(--highlight-color);
}

/* --- Content area --- */

.app_content {
  flex: 1;
  padding: 20px;
  overflow: auto;
}

/* --- Toolbar --- */

.app_toolbar {
  margin-bottom: 16px;
}

.app_toolbar_button.mButton {
  background: var(--primary-color);
  color: var(--primary-color-opposite);
  border: none;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 3px;
}

.app_toolbar_button.mButton:hover {
  background: var(--primary-color-hover);
}

.app_noProject {
  color: #888;
  font-style: italic;
  padding: 40px 0;
  text-align: center;
}

/* --- Login dialog override --- */

.app_loginDialog .mDialog_header {
  text-align: center;
  font-size: 20px;
  padding: 24px 20px 16px;
}

.app_loginDialog .mElementsWithLabels {
  padding: 0 20px;
}

.app_loginDialog .mDialog_buttons {
  padding: 16px 20px 24px;
  text-align: center;
}

.app_loginDialog .mButton-inDialog {
  min-width: 120px;
}

/* --- Stats bar --- */

.app_stats {
  display: flex;
  gap: 24px;
  padding: 8px 16px;
  background: var(--gray-1);
  border-bottom: 1px solid var(--lines-color);
  font-size: 13px;
}

.app_stats_item {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.app_stats_label {
  color: var(--gray-8);
}

.app_stats_item {
  color: var(--gray-f);
}

.app_widgetInfo {
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.app_widgetInfo code {
  background: var(--gray-2);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 12px;
}

.app_widgetCode {
  background: var(--gray-f);
  color: var(--gray-2);
  border: 1px solid var(--gray-c);
  border-radius: 6px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.app_widgetActions {
  margin-top: 12px;
}

/* --- Analytics --- */

.app_analytics {
  padding: 16px;
}

.app_analyticsCard {
  background: var(--gray-f);
  border: 1px solid var(--lines-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.app_analyticsCard_title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
}

.app_analyticsGrid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 4px 24px;
}

.app_analyticsMetric {
  display: contents;
}

.app_analyticsMetric_value {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-2);
  text-align: right;
}

.app_analyticsMetric_label {
  font-size: 12px;
  color: var(--gray-8);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  align-self: center;
}

.app_analyticsMetric-header .app_analyticsMetric_value {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-8);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.app_analyticsMetric-header .app_analyticsMetric_label {
  visibility: hidden;
}

.app_analyticsRecent {
  margin-top: 24px;
}

.app_analyticsRecent h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
}

.app_analyticsTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.app_analyticsTable th {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 2px solid var(--lines-color);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--gray-8);
}

.app_analyticsTable td {
  padding: 6px 12px;
  border-bottom: 1px solid var(--lines-color);
}

.app_btn-small {
  padding: 3px 10px;
  font-size: 12px;
  border: 1px solid var(--lines-color);
  border-radius: 4px;
  background: var(--gray-f);
  color: var(--gray-3);
  cursor: pointer;
}
.app_btn-small:hover {
  background: var(--gray-e);
}

.app_badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 3px;
}
.app_badge-vector {
  background: #dbeafe;
  color: #1e40af;
}
.app_badge-fulltext {
  background: #dcfce7;
  color: #166534;
}
.app_badge-exact {
  background: #fef3c7;
  color: #92400e;
}

.app_diagTable td {
  white-space: nowrap;
}
.app_diagTable td:nth-child(2) {
  white-space: normal;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app_diagTable a {
  color: var(--gray-3);
  text-decoration: none;
}
.app_diagTable a:hover {
  text-decoration: underline;
}

.app_noData {
  padding: 32px;
  text-align: center;
  color: var(--gray-8);
}

.app_toolbar_select {
  margin-left: 8px;
}

/* --- Widget cards --- */

.app_widgetsList {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.app_widgetCard {
  background: var(--gray-f);
  border: 1px solid var(--lines-color);
  border-radius: 8px;
  padding: 16px;
}

.app_widgetCard_header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.app_widgetCard_title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  flex: 1;
}

.app_widgetCard_status {
  font-size: 11px;
  color: var(--gray-8);
  text-transform: uppercase;
}

.app_widgetCard_searchBtn {
  background: none;
  border: 1px solid var(--lines-color);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  color: var(--gray-2);
}
.app_widgetCard_searchBtn:hover {
  background: var(--gray-e);
}

.app_widgetCard_menuBtn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  color: var(--gray-6);
  font-size: 14px;
}

.app_widgetCard_menuBtn:hover {
  color: var(--gray-2);
}

.app_widgetCard_websites {
  margin-bottom: 10px;
}

.app_widgetCard_website {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  font-size: 13px;
}

.app_widgetCard_priority {
  font-size: 11px;
  color: var(--gray-8);
  background: var(--gray-e);
  padding: 1px 4px;
  border-radius: 3px;
}

.app_widgetCard_noWebsites {
  font-size: 12px;
  color: var(--gray-8);
  font-style: italic;
}

.app_widgetCard_apiKey {
  font-size: 11px;
  color: var(--gray-8);
  font-family: monospace;
}

.app_widgetCard_sources {
  margin-top: 8px;
  border-top: 1px solid var(--lines-color);
  padding-top: 12px;
}

.app_widgetCard_sourcesHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.app_widgetCard_sourcesTitle {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gray-6);
  letter-spacing: 0.05em;
}

.app_widgetCard_addSource {
  background: none;
  border: 1px solid var(--lines-color);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  color: var(--gray-2);
}

.app_widgetCard_addSource:hover {
  background: var(--gray-e);
}

.app_widgetCard_noSources {
  margin: 8px 0;
  padding: 12px;
  font-size: 13px;
  color: var(--gray-8);
  font-style: italic;
  text-align: center;
}

.app_widgetWebsiteList {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--lines-color);
  border-radius: 4px;
  padding: 8px;
  margin: 0 16px 12px;
}

.app_widgetWebsiteItem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
}

.app_widgetWebsiteItem_name {
  flex: 1;
}

.app_widgetPriorityInput {
  width: 50px;
  padding: 2px 4px;
  font-size: 12px;
  border: 1px solid var(--lines-color);
  border-radius: 3px;
}

.app_widgetAssignTitle {
  margin: 12px 16px 8px;
  font-size: 13px;
  font-weight: 600;
}

/* --- Customize dialog --- */

.app_customizeLayout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.app_customizeSettings {
  flex: 1;
  min-width: 0;
}
.app_customizePreviewCol {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
}
.app_customizeSection {
  margin: 20px 0 10px;
  padding: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--olovari-orange);
  border-bottom: 1px solid var(--lines-color);
}
.app_customizeSection:first-child {
  margin-top: 0;
}
.app_customizeHint {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--gray-8);
}
.app_customizeTextarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  font-size: 13px;
  font-family: inherit;
  border: 1px solid var(--lines-color);
  border-radius: 4px;
  resize: vertical;
}

/* --- Custom prompts dialog --- */

.app_promptsHint {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--gray-8);
}
.app_promptsHint code {
  background: var(--gray-2);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 11px;
}
.app_promptsRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}
.app_promptsBlock {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.app_promptsLabel {
  font-weight: 600;
  font-size: 13px;
  color: var(--gray-c);
}
.app_promptsToolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.app_promptsBtnGroup {
  display: inline-flex;
  gap: 4px;
}
.app_promptsBtn {
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid var(--lines-color);
  background: var(--gray-1);
  color: var(--gray-c);
  border-radius: 4px;
  cursor: pointer;
}
.app_promptsBtn:hover {
  background: var(--gray-2);
}
.app_promptsBtn-primary {
  background: var(--olovari-orange);
  color: var(--gray-0);
  border-color: var(--olovari-orange);
}
.app_promptsBtn-primary:hover {
  filter: brightness(1.1);
}
.app_promptsTextarea {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  min-height: 200px;
}
.app_promptsActions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}
.app_widgetCard_testBtn {
  color: var(--olovari-orange);
  border-color: var(--olovari-orange);
}

/* --- Widget Preview --- */

.app_customizePreview {
  border: 1px solid var(--lines-color);
  border-radius: 8px;
  overflow: hidden;
}
.app_customizePreviewWidget {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  background: var(--ais-bg);
  color: var(--ais-text);
  border-radius: 8px;
}
.app_pw_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ais-border);
}
.app_pw_title {
  font-weight: 600;
  font-size: 13px;
}
.app_pw_close {
  color: var(--ais-text-secondary);
  font-size: 16px;
  cursor: default;
}
.app_pw_search {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ais-border);
}
.app_pw_input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--ais-border);
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
  color: var(--ais-text);
  background: var(--ais-bg);
  min-width: 0;
}
.app_pw_input::placeholder {
  color: var(--ais-text-secondary);
}
.app_pw_btn {
  padding: 6px 12px;
  background: var(--ais-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.app_pw_answer {
  margin: 10px 14px;
  padding: 10px;
  background: var(--ais-bg-alt);
  border-radius: 6px;
  border: 1px solid var(--ais-border);
  font-size: 12px;
  line-height: 1.5;
}
.app_pw_answerLabel {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ais-text-secondary);
  margin-bottom: 4px;
}
.app_pw_source {
  display: flex;
  gap: 8px;
  padding: 8px 14px;
}
.app_pw_sourceImg {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: var(--ais-bg-alt);
  flex-shrink: 0;
}
.app_pw_sourceText {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app_pw_sourceTitle {
  font-weight: 600;
  font-size: 12px;
}
.app_pw_sourceUrl {
  font-size: 11px;
  color: var(--ais-primary);
}
.app_pw_footer {
  padding: 8px 14px;
  border-top: 1px solid var(--ais-border);
  text-align: center;
  font-size: 10px;
  color: var(--ais-text-secondary);
}

/* --- Floating menu (from Composer) --- */
.mFloatingMenu {
  background-color: var(--gray-f);
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--gray-d);
  overflow-y: auto;
  padding: 12px;
  border-radius: 3px;
}
.mFloatingMenu_item {
  width: 100%;
  background-color: transparent;
  color: var(--gray-4);
  border: 0 none;
  padding: 10px 8px;
  margin: 0;
  text-align: left;
  font-size: var(--font-size);
  cursor: pointer;
}
.mFloatingMenu-hasSelectableItems .mFloatingMenu_item {
  padding-left: 20px;
}
.mFloatingMenu_item-divider {
  display: block;
  width: 100%;
  border-top: 1px solid var(--gray-d);
  margin: 5px 0 4px;
  padding: 0;
  cursor: default;
}
.mFloatingMenu_item:disabled {
  background-color: var(--gray-e);
  color: var(--gray-a);
  cursor: default;
}
.mFloatingMenu_item:hover:not(.mFloatingMenu_item-divider) {
  background-color: var(--gray-d);
}
.mFloatingMenu_item:disabled:hover {
  background-color: var(--gray-e);
}
.mFloatingMenu_item-checked:before {
  position: absolute;
  top: 10px;
  left: 4px;
  content: "\f00c";
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
}
.mFloatingMenu_item-submenu:before {
  position: absolute;
  top: 9px;
  right: 6px;
  content: "\f0da";
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
}
.mFloatingMenu_item i {
  width: 1em;
  text-align: center;
  margin-right: 0.3em;
}
.mFloatingMenu .mButton.mFloatingMenu_item {
  border: none;
  background: transparent;
  border-radius: 0;
  margin: 0;
  padding: 10px 8px;
  color: var(--gray-4);
}
.mFloatingMenu .mButton.mFloatingMenu_item:hover {
  background-color: var(--gray-d);
}
.mFloatingMenu .mButton.mFloatingMenu_item-divider {
  padding: 0;
  margin: 5px 0 4px;
  height: 0;
  line-height: 0;
  font-size: 0;
  border-top: 1px solid var(--gray-d);
  cursor: default;
}
.mFloatingMenu .mButton.mFloatingMenu_item-divider:hover {
  background: transparent;
}

/* Dialog header — Olovari oranžové záhlaví pro všechny dialogy. */
.mDialog_header {
  background: linear-gradient(90deg, var(--olovari-orange) 0%, var(--olovari-orange-light) 100%);
  color: var(--gray-f);
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
}
.mDialog_headerClosingButton {
  padding: 8px 14px;
  color: var(--gray-f);
}

/* --- m.css overrides for Olovari light palette ---
   m.css assumes a dark theme with --dark-gray / --black / --white tokens
   that are not part of the Olovari --gray-X palette. Re-skin select,
   inputs & checkbox to look like a coherent input set. */

.mInput {
  box-sizing: border-box;
  font-size: 14px;
  line-height: 20px;
  padding: 5px 8px;
  border: 1px solid var(--gray-9);
  border-radius: 3px;
  background-color: var(--gray-f);
  color: var(--gray-1);
  margin: 0;
}
.mInput:hover {
  border-color: var(--gray-6);
}
.mInput:focus {
  border-color: var(--gray-3);
  outline: 0;
}
.mInput:disabled {
  background-color: var(--gray-e);
  color: var(--gray-9);
  border-color: var(--gray-c);
}
.mInputWithNumberControl {
  box-sizing: border-box;
}
.mInputWithNumberControl_input.mInput {
  border-right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.mSelect, .mDropdown {
  box-sizing: border-box;
  font-size: 14px;
  line-height: 20px;
  padding: 5px 22px 5px 8px;
  margin: 0;
  background-color: var(--gray-f);
  color: var(--gray-1);
  border: 1px solid var(--gray-9);
  border-radius: 3px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path fill='%23555' d='M7 10l5 5 5-5z'/></svg>");
  background-position: right 2px center;
}
.mSelect:hover, .mDropdown:hover {
  border-color: var(--gray-6);
}
.mSelect:focus, .mDropdown:focus {
  border-color: var(--gray-3);
  outline: 0;
}
.mSelect:disabled, .mDropdown-disabled {
  background-color: var(--gray-e);
  color: var(--gray-9);
  border-color: var(--gray-c);
}
.mSelect option {
  background-color: var(--gray-f);
  color: var(--gray-1);
}

.mCheckbox {
  padding: 6px 8px 6px 32px;
}
.mCheckbox_checkbox {
  top: 0;
  bottom: 0;
  left: 4px;
  width: 18px;
  height: 18px;
  border: 1px solid var(--gray-7);
  border-radius: 3px;
  background-color: var(--gray-f);
}
.mCheckbox:hover .mCheckbox_checkbox {
  border-color: var(--gray-3);
}
.mCheckbox_checkbox:after {
  width: 10px;
  height: 10px;
  background-color: var(--gray-1);
  border-radius: 1px;
}
.mCheckbox-on .mCheckbox_checkbox {
  border-color: var(--gray-1);
}
.mCheckbox-disabled .mCheckbox_checkbox {
  border-color: var(--gray-c);
  background-color: var(--gray-e);
}

/* Users — admin dialogs */
.app_dialog_inlineBtn.mButton {
  margin-left: 140px;
  margin-bottom: 8px;
  background: var(--gray-d);
  color: var(--gray-2);
  border: 1px solid var(--gray-c);
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 3px;
  cursor: pointer;
}
.app_dialog_inlineBtn.mButton:hover {
  background: var(--gray-c);
}

.app_passwordBox {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 12px;
  align-items: center;
  margin: 16px 0;
  padding: 14px;
  background: var(--gray-e);
  border: 1px solid var(--gray-c);
  border-radius: 4px;
}
.app_passwordBox_label {
  color: var(--gray-5);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.app_passwordBox_value {
  color: var(--gray-1);
  font-size: 14px;
  word-break: break-all;
}
.app_passwordBox_value-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 600;
  user-select: all;
}

/* Article browser (per-website list + chunk detail) */
.app_articlesToolbar {
  margin-bottom: 12px;
}
.app_articlesTable {
  height: 60vh;
}
.app_articlesTable .mTable_tr:not(.mTable_tr-header) {
  cursor: pointer;
}
.app_articleMeta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 12px;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--gray-e);
  border: 1px solid var(--gray-c);
  border-radius: 4px;
}
.app_articleMeta_row {
  display: contents;
}
.app_articleMeta_label {
  color: var(--gray-5);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.app_articleMeta_value {
  color: var(--gray-1);
  font-size: 13px;
  word-break: break-word;
}
.app_chunksSection h4 {
  margin: 0 0 8px;
  color: var(--gray-2);
}
.app_chunkBox {
  border: 1px solid var(--gray-c);
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
}
.app_chunkHeader {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 6px 10px;
  background: var(--gray-e);
  font-size: 12px;
  color: var(--gray-4);
}
.app_chunkIndex {
  font-weight: 600;
  color: var(--gray-2);
}
.app_chunkModel {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.app_chunkLength {
  margin-left: auto;
}
.app_chunkContent {
  margin: 0;
  padding: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  color: var(--gray-1);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 400px;
  overflow: auto;
}
.app_chunksEmpty {
  color: var(--gray-5);
  font-style: italic;
}
