body.resizing-x,
body.resizing-x * {
  cursor: col-resize !important;
}

body.resizing-y,
body.resizing-y * {
  cursor: row-resize !important;
}

/* ===============================
   Base layout
================================ */
.workspace {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.topnavbar {
  display: flex;
  align-items: center;
  height: fit-content;
  border-bottom: 1px solid #ccc;
}

.global-content {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* ===============================
   leftbar and main content
================================ */
.leftbar {
  width: 70px;
  border-right: 1px solid #ccc;
}

.activity-btn {
  position: relative;
  width: 100%;
  height: 55px;
  flex-direction: column;
  transition: background-color 150ms ease;
  border-bottom: solid 1px #b9c0b3;
}

.activity-btn:hover .btn-ico img,
.activity-btn.active .btn-ico img {
  filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.5));
  opacity: 1;
}

.activity-btn:hover {
  background-color: #f1f1f1;
  border-bottom: solid 1px #ccc;
}

.activity-btn.active {
  background-color: #dfe6da;
  border-left: none;
  /*pointer-events: none;*/
}

.activity-btn.disabled {
  background-color: #dae2d2;
  border-bottom: solid 1px #b9b9b9;
  color: #b9b9b9;
  opacity: 0.5;
  pointer-events: none;
}

.activity-btn:first-child {
  border-top: solid 1px #eee;
  border-left: solid 1px transparent;
}

.activity-btn:first-child.active {
  border-left: none;
}

.leftbar-ctn {
  flex-direction: column;
  padding: 0;
}

.activity-btn::before {
  position: absolute;
  top: -1px;
  left: 0px;
  content: "";
  display: block;
  width: 2px;
  height: calc(100% + 2px);
  transition: background-color 150ms ease;
  background: transparent;
}

.activity-btn.lp-retracted::before {
  background: transparent;
}

.activity-btn.active:not(.lp-retracted)::before {
  background: #566448;
}

.activity-btn .btn-lbl {
  font-size: 10px;
  letter-spacing: 0.5px;
  font-weight: 500;
  margin: 0px;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.activity-btn.active .btn-lbl {
  color: #252524;
}

/* ===============================
   main content
================================ */
.ws-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===============================
   Working area
================================ */
.working-area {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.panel {
  background: #f7f7f7;
}

.panel.left {
  border-right: 1px solid #ccc;
}

.panel.right {
  border-left: 1px solid #ccc;
}

.mainboard {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 300px;
  height: 100%;
}

/* -------------  MBview ----------------------*/
.MBview {
  flex: 1;
  background: #fff;
  height: 100%;
}

.mbView-content {
  padding: 10px 50px;
  font-size: 0.9rem;
  max-width: 600px;
  margin: auto;
  overflow-y: auto;
  height: 100%;
}

.mbView-content .logo {
  width: 150px;
  height: 40px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.mbView-content .logo > img {
  width: 100%;
  height: 100%;
  background: #434340;
}

.mbView-content .subtitle {
  font-weight: 600;
}

.construction {
  margin-top: 200px;
}

.MBbottomView {
  height: 100px;
  border-top: 1px solid #ccc;
  background: #f7f7f7;
}

/* ===============================
   Bottom tools
================================ */
.bottomtools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  border-top: 1px solid #ccc;
  padding: 0px 4px;
}

.toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.toolbtn {
  width: 26px;
  height: 26px;
}

.toolbtn.active {
  border: 1px solid #999;
  border-radius: 6px;
  background-color: #e9e9e9;
}

.btn-ico {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-ico img {
  transition:
    transform 0.3s ease,
    opacity 0.3s ease; /* Transition fluide */
}

.bottombar-ctn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

/* ===============================
   Navigation bar for panelLeft
================================ */
.nav4panelLeft {
  display: flex;
  flex-direction: column;
  padding: 0;
  font-size: 12px;
}

.nav4panelLeft > div {
  display: flex;
  align-items: center;
  width: 100%;
  height: 32px;
  border-bottom: solid 1px #ccc;
  padding-left: 20px;
}

.nav4panelLeft > div:not(.active) {
  cursor: pointer;
}

.nav4panelLeft > div:hover {
  background-color: #f1f1f1;
}

.nav4panelLeft > div.active {
  background-color: #dfe6da;
}
.nav4panelLeft > div:first-child {
  border-top: solid 1px #eee;
}

/* ===============================
   Resizers (invisibles, hover only)
================================ */
.resizer-h {
  width: 0;
  position: relative;
  z-index: 10;
}

.resizer-h:hover::before,
.resizer-v:hover::before {
  opacity: 1;
}

.resizer-v {
  height: 0;
  position: relative;
}

.resizer-h::before,
.resizer-v::before {
  content: "";
  position: absolute;
  background: #0078d4;
  opacity: 0;
  transition: opacity 150ms ease;
  transition-delay: 150ms;
}

.resizer-h::before {
  top: 0;
  bottom: 0;
  left: -1.5px;
  width: 3px;
  cursor: col-resize;
}

.resizer-v::before {
  left: 0;
  right: 0;
  top: -1.5px;
  height: 3px;
  cursor: row-resize;
}
