*,
*::before,
*::after {
  box-sizing: border-box;
  user-select: none;
}

:root {
  --background-color: #fcfcfc;
  --menu-background: linear-gradient(to bottom, #dedede, #c8c8c8);
  --font-family: Arial, Helvetica, sans-serif;
  --menuItemHighligth-color: #5d5e5f;
  --optMenuItemHover-background: linear-gradient(to bottom, #81ac56, #71964c);
  --widgetBackground-color: #f9f9f9;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: var(--backgound-color);
  font-family:
    "Mona Sans",
    "Mona Sans Fallback",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol";
  overflow: hidden; /* prevent scroll bar */
}
/*-----------------   Popup  -----------------*/
.mc-popup {
  position: absolute;
  display: none;
  z-index: 1000;
}

.mc-popup.open {
  display: block;
}

/*-----------------   Tooltip  -----------------*/
.tooltip {
  position: absolute;
  visibility: hidden;
  z-index: 3;
  background-color: var(--menuItemHighligth-color);
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  border: solid 1px #333;
  white-space: nowrap;
  font-size: 12px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tooltip-content {
  display: flex;
  align-items: center;
}

.tooltip-arrow {
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
}

.tooltip.open {
  visibility: visible;
}

.tooltip-content {
  /* Optionnel : peut être utilisé pour du styling additionnel */
}

/*-----------------   Menu  -----------------*/
#app-menu {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 21px;
  padding: 0px 5px;
  background: var(--menu-background);
  border-bottom: solid 1px #aea8a3;
  cursor: default;
}

.mc-menu {
  width: 100%;
  display: flex;
}

.mc-menu,
.mc-popup.submenu {
  font-size: 12px;
  letter-spacing: 0.8px;
}

.mc-menu .mc-popup:not(.submenu) {
  box-shadow: -2px 5px 15px #aea8a3;
}

.mc-popup.submenu {
  box-shadow: 1px 3px 5px #d4d2cf;
}

.mc-menu .mc-popup,
.mc-popup.submenu {
  background-color: white;
  border: solid 1px #989898;
  white-space: nowrap;
  width: max-content;
  border-collapse: separate;
}

.mc-menu-header {
  position: relative;
}

.mc-menu-header.highlighted {
  background-color: var(--menuItemHighligth-color);
}

.mc-menu-header > div:first-child {
  display: flex;
  align-items: center;
  padding: 0px 6px;
  height: 100%;
}

.mc-menu-header.highlighted > div:first-child {
  color: white;
}

.mc-menutitem-block {
  position: relative;
  display: table;
}

.mc-menu-item {
  display: table-row;
  align-items: center;
  white-space: nowrap;
}

.mc-menu-item.highlighted {
  background: var(--optMenuItemHover-background);
  color: white;
}

.mc-menu-item.highlighted > div {
  border-top: solid 1px #70995f;
  border-bottom: solid 1px #70995f;
}

.mc-menu-item.disabled {
  color: #999;
}

.mc-menu-item > .item-lbl,
.mc-menu-item > .item-sc,
.mc-menu-item > .item-sbm {
  display: table-cell;
  vertical-align: middle;
  white-space: nowrap;
}

.mc-menu-item > .item-deco {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  width: 22px;
}

.mc-menu-item .item-lbl {
  padding: 0px 5px;
}

.mc-menu-item > .item-sc {
  text-align: right;
  padding: 0px 2px;
  color: #666;
}

.mc-menu-item > .item-sbm {
  padding: 0px 5px 0px 2px;
  text-align: center;
}

.mc-menu-item.spacer {
  position: relative;
  top: 0px;
  display: table-row;
  height: 3px;
}

.mc-menu-item.spacer > div {
  position: absolute;
  left: 5px;
  display: block;
  width: calc(100% - 10px);
  height: 2px;
  border-bottom: solid 1px #bababa;
}

.mc-menu-item.titlespacer {
  display: table-cell;
  height: 24px;
  border-top: solid 1px transparent;
}

.menuitem-title {
  position: absolute;
  background-color: #c5c2c2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 22px;
  border-top: solid 1px #a3a3a3;
  border-bottom: solid 1px #a3a3a3;
}

.item-deco.togglebutton.on {
  position: relative;
}

.item-deco.togglebutton.on::before {
  position: absolute;
  top: 1px;
  z-index: -1;
  width: 20px;
  height: 20px;
  content: "";
  display: block;
  background-color: #7e857d;
  border: solid 2px #5f665f;
  border-radius: 3px;
}
