html,
body {
  height: 100%;
}

body {
  --taskbar-offset: 0px;
}

body.has-minimized-windows {
  --taskbar-offset: 32px;
}

#web-main-actions {
  float: right;
  padding: 0 8px;
  -webkit-app-region: no-drag;
}

#web-main-actions li {
  float: left;
  padding: 8px 10px;
  display: inline-block;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  cursor: pointer;
  transition: all .2s linear;
  -webkit-app-region: no-drag;
}

#web-main-actions li:hover {
  background: #ffffff40;
}

#main-menu-container,
#status-container {
  min-width: 1100px;
}

#window-controls {
  display: none !important;
}

#taskbar-container {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 25px;
  height: 32px;
  background: #f8f9fb;
  border-top: 1px solid #dadce0;
  border-bottom: 1px solid #dadce0;
  padding: 4px 8px;
  z-index: 4;
}

body.has-minimized-windows #taskbar-container {
  display: block;
}

#taskbar {
  height: 22px;
  display: flex;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
}

#taskbar .taskbar-item {
  height: 22px;
  min-width: 140px;
  max-width: 240px;
  border: 1px solid #d0d7e2;
  border-radius: 3px;
  background: #ffffff;
  color: #5f6368;
  cursor: pointer;
  font: 12px "Roboto", Arial, sans-serif;
  overflow: hidden;
  padding: 0 10px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#taskbar .taskbar-item:hover {
  border-color: #12568a;
  color: #12568a;
}

#taskbar .taskbar-item.active {
  border-color: #12568a;
  box-shadow: inset 0 0 0 1px #12568a33;
  color: #12568a;
}

#taskbar .taskbar-item.minimized {
  opacity: 0.7;
}

#window-layer {
  position: absolute;
  top: 43px;
  right: 0;
  bottom: calc(25px + var(--taskbar-offset));
  left: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 10;
}

#panels-container {
  top: 43px;
  bottom: calc(25px + var(--taskbar-offset));
}

.web-window {
  position: absolute;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(31, 41, 51, 0.16);
  overflow: hidden;
  pointer-events: auto;
}

.web-window.focused {
  border-color: #12568a;
  box-shadow: 0 14px 32px rgba(18, 86, 138, 0.18);
}

.web-window.minimized {
  display: none;
}

.web-window.hidden {
  display: none;
}

.web-window.maximized {
  border-radius: 0;
}

.web-window-header {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 8px 0 12px;
  background: #ffffff;
  border-bottom: 1px solid #e4e7eb;
  color: #45474a;
  cursor: move;
  user-select: none;
  touch-action: none;
}

.web-window-header.static {
  cursor: default;
}

.web-window-title {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 400;
}

.web-window-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.web-window-action {
  height: 22px;
  min-width: 22px;
  border: 1px solid #d0d7e2;
  border-radius: 3px;
  background: #ffffff;
  color: #45474a;
  cursor: pointer;
  font: 12px "Roboto", Arial, sans-serif;
  padding: 0 8px;
}

.web-window-action:hover {
  background: #f3f4f6;
}

.web-window-system-action {
  width: 22px;
  padding: 0;
}

.web-window-system-action img {
  width: 14px;
  height: 14px;
  user-select: none;
  pointer-events: none;
}

.web-window-system-action.close:hover {
  background: #cf000f;
  border-color: #cf000f;
}

.web-window-frame {
  width: 100%;
  height: calc(100% - 34px);
  border: 0;
  background: #ffffff;
}

.web-window-resize-handle {
  position: absolute;
  z-index: 15;
  background: transparent;
  touch-action: none;
}

.web-window-resize-handle.n,
.web-window-resize-handle.s {
  left: 10px;
  right: 10px;
  height: 8px;
}

.web-window-resize-handle.e,
.web-window-resize-handle.w {
  top: 10px;
  bottom: 10px;
  width: 8px;
}

.web-window-resize-handle.n {
  top: 0;
  cursor: n-resize;
}

.web-window-resize-handle.s {
  bottom: 0;
  cursor: s-resize;
}

.web-window-resize-handle.e {
  right: 0;
  cursor: e-resize;
}

.web-window-resize-handle.w {
  left: 0;
  cursor: w-resize;
}

.web-window-resize-handle.nw,
.web-window-resize-handle.ne,
.web-window-resize-handle.sw,
.web-window-resize-handle.se {
  width: 14px;
  height: 14px;
}

.web-window-resize-handle.nw {
  top: 0;
  left: 0;
  cursor: nw-resize;
}

.web-window-resize-handle.ne {
  top: 0;
  right: 0;
  cursor: ne-resize;
}

.web-window-resize-handle.sw {
  bottom: 0;
  left: 0;
  cursor: sw-resize;
}

.web-window-resize-handle.se {
  right: 0;
  bottom: 0;
  cursor: se-resize;
}

.web-window-resize-handle.se::after {
  content: '';
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 8px;
  height: 8px;
  border-right: 1px solid #b9c0ca;
  border-bottom: 1px solid #b9c0ca;
}

.web-hidden-frame {
  width: 0;
  height: 0;
  border: 0;
  position: absolute;
  left: -10000px;
  top: -10000px;
  opacity: 0;
  pointer-events: none;
}

#command-history .web-panel-list {
  margin: 0;
  padding: 0;
}

#command-history .web-panel-list li.empty {
  background: none;
  color: #999;
  cursor: default;
  font-size: 13px;
  padding: 10px;
  text-align: center;
}

#command-history .web-panel-list li:hover:after {
  content: '';
  position: absolute;
  top: 3px;
  right: 0;
  bottom: 3px;
  left: 0;
  border: 1px solid #999;
  border-radius: 3px;
  z-index: -1;
}

#command-history .web-panel-list li {
  font-size: 14px;
  line-height: 18px;
  margin: 0 10px;
  min-height: 18px;
  padding: 5px 10px;
  position: relative;
  white-space: nowrap;
  color: #666;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px solid #eee;
}

#command-history .web-panel-list li.active {
  color: #12568a;
}

#command-history-options.options i#new-figure-window-button {
  background: url(../img/new-tab.svg) no-repeat center;
}

#file-browser-options.options i.import {
  background: url(../img/open-import.svg) no-repeat center;
}

#file-browser-options.options i.import-url {
  background: url(../img/browser-link.svg) no-repeat center;
}

#workspace .web-empty-row .col {
  color: #999;
}

.web-console-entry {
  padding: 4px 10px;
  word-break: break-word;
}

.web-console-entry.error {
  color: #cf000f;
}

.web-console-entry.muted {
  color: #7b8794;
}

#status-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}

#status-icons img {
  float: none;
}

#help-container,
#info-container,
#settings-container,
#paths-container {
  bottom: calc(25px + var(--taskbar-offset));
}

#sandbox-stats-popup {
  bottom: calc(35px + var(--taskbar-offset));
}

#web-path-actions {
  margin: 10px;
  margin-bottom: 0;
}

#web-path-actions button {
  margin-right: 8px;
}

#file-browser-context-menu {
  display: none;
  z-index: 30;
}

#file-browser-import-menu {
  display: none;
  z-index: 30;
}

.web-hidden {
  display: none !important;
}
