/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: #1a1a2e;
  color: #e0e0e0;
  min-height: 100vh;
}

/* ===== Header ===== */
.app-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: #16213e;
  border-bottom: 1px solid #0f3460;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.header-actions button {
  padding: 4px 12px;
  font-size: 0.75rem;
  border-radius: 4px;
  border: 1px solid #0f3460;
  background: #1a1a2e;
  color: #e0e0e0;
  cursor: pointer;
}

.header-actions button:hover {
  background: #0f3460;
}

.app-header h1 {
  font-size: 1.4rem;
  color: #e94560;
  font-weight: 700;
}

.app-subtitle {
  font-size: 0.85rem;
  color: #888;
}

/* ===== Layout ===== */
.app-layout {
  display: flex;
  height: calc(100vh - 52px);
}

.sidebar {
  width: 260px;
  min-width: 260px;
  background: #16213e;
  border-right: 1px solid #0f3460;
  padding: 16px;
  overflow-y: auto;
  transition: margin-left 0.25s ease, opacity 0.25s ease;
}

.sidebar.collapsed {
  margin-left: -260px;
  opacity: 0;
  pointer-events: none;
}

.sidebar-toggle {
  position: relative;
  z-index: 10;
  width: 20px;
  min-width: 20px;
  border: none;
  background: #0f3460;
  color: #e0e0e0;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.sidebar-toggle:hover {
  background: #e94560;
}

.sidebar.collapsed ~ .sidebar-toggle {
  margin-left: 0;
}

.sidebar.collapsed ~ .sidebar-toggle::after {
  content: '\25B6';
}

.sidebar:not(.collapsed) ~ .sidebar-toggle::after {
  content: '\25C0';
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===== Toolbar ===== */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #16213e;
  border-bottom: 1px solid #0f3460;
}

.toolbar label {
  font-size: 0.85rem;
  color: #aaa;
}

.toolbar select,
.toolbar button {
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #0f3460;
  background: #1a1a2e;
  color: #e0e0e0;
  cursor: pointer;
}

.toolbar button:hover {
  background: #0f3460;
}

.toolbar button.btn-danger {
  border-color: #e94560;
  color: #e94560;
}

.toolbar button.btn-danger:hover {
  background: #e94560;
  color: #fff;
}

/* ===== Resizable Panes ===== */
.pane-top {
  flex: 7;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 80px;
}

.resize-handle {
  height: 6px;
  background: #0f3460;
  cursor: row-resize;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  transition: background 0.15s;
}

.resize-handle:hover,
.resize-handle.active {
  background: #e94560;
}

/* ===== Timeline Container ===== */
#timeline-container {
  flex: 1;
  overflow: hidden;
}

/* vis-timeline dark theme overrides */
.vis-timeline {
  border: none !important;
  background: #1a1a2e !important;
}

.vis-panel.vis-bottom,
.vis-panel.vis-top,
.vis-panel.vis-left,
.vis-panel.vis-right {
  border-color: #0f3460 !important;
}

.vis-time-axis .vis-text {
  color: #aaa !important;
  font-size: 0.8rem !important;
}

.vis-time-axis .vis-grid.vis-minor {
  border-color: rgba(15, 52, 96, 0.5) !important;
}

.vis-time-axis .vis-grid.vis-major {
  border-color: #0f3460 !important;
}

.vis-labelset .vis-label {
  color: #e0e0e0 !important;
  background: #16213e !important;
  border-bottom: 1px solid #0f3460 !important;
  font-size: 0.85rem !important;
}

.vis-foreground .vis-group {
  border-bottom: 1px solid #0f3460 !important;
}

.vis-current-time {
  background-color: #e94560 !important;
  width: 2px !important;
}

/* ===== Timeline Items (Order Boxes) ===== */
.vis-item {
  border-radius: 4px !important;
  border-width: 1px !important;
  font-size: 0.8rem !important;
  color: #fff !important;
  padding: 2px 6px !important;
}

.vis-item .vis-item-content {
  padding: 2px 4px !important;
}

.vis-item.vis-selected {
  outline: 2px solid #e94560 !important;
  outline-offset: 1px;
}

/* Recipe color classes — 8 rotating colors */
.recipe-color-0 {
  background-color: rgba(52, 152, 219, 0.8) !important;
  border-color: #2980b9 !important;
}
.recipe-color-1 {
  background-color: rgba(46, 204, 113, 0.8) !important;
  border-color: #27ae60 !important;
}
.recipe-color-2 {
  background-color: rgba(155, 89, 182, 0.8) !important;
  border-color: #8e44ad !important;
}
.recipe-color-3 {
  background-color: rgba(230, 126, 34, 0.8) !important;
  border-color: #d35400 !important;
}
.recipe-color-4 {
  background-color: rgba(241, 196, 15, 0.8) !important;
  border-color: #f39c12 !important;
  color: #333 !important;
}
.recipe-color-5 {
  background-color: rgba(231, 76, 60, 0.8) !important;
  border-color: #c0392b !important;
}
.recipe-color-6 {
  background-color: rgba(26, 188, 156, 0.8) !important;
  border-color: #16a085 !important;
}
.recipe-color-7 {
  background-color: rgba(52, 73, 94, 0.8) !important;
  border-color: #2c3e50 !important;
}

/* ===== Sidebar: Building Manager ===== */
.building-manager h2 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #e94560;
}

.building-list {
  list-style: none;
  margin-bottom: 16px;
}

.building-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid #0f3460;
}

.building-list li .building-name {
  flex: 1;
  font-size: 0.85rem;
  cursor: pointer;
}

.building-list li .building-name:hover {
  color: #e94560;
}

/* Drag & drop reorder */
.building-list li {
  cursor: grab;
}

.building-list li.dragging {
  opacity: 0.4;
}

.building-list li.drag-over {
  border-top: 2px solid #e94560;
  padding-top: 4px;
}

.building-list li button {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid #0f3460;
  background: transparent;
  color: #aaa;
  cursor: pointer;
}

.building-list li button:hover {
  background: #0f3460;
  color: #fff;
}

.building-list li button.btn-remove:hover {
  background: #e94560;
}

/* Color picker in building list */
.building-color-picker,
.new-building-color {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 1px solid #0f3460;
  border-radius: 4px;
  padding: 0;
  cursor: pointer;
  background: none;
}

.building-color-picker::-webkit-color-swatch-wrapper,
.new-building-color::-webkit-color-swatch-wrapper {
  padding: 1px;
}

.building-color-picker::-webkit-color-swatch,
.new-building-color::-webkit-color-swatch {
  border: none;
  border-radius: 3px;
}

.building-slots {
  width: 36px;
  padding: 2px 4px;
  font-size: 0.75rem;
  border-radius: 3px;
  border: 1px solid #0f3460;
  background: #1a1a2e;
  color: #e0e0e0;
  text-align: center;
}

/* Recent colors palette */
.recent-colors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #0f3460;
}

.recent-colors-label {
  font-size: 0.75rem;
  color: #666;
  margin-right: 2px;
}

.color-swatch {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1px solid #0f3460;
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
}

.color-swatch:hover {
  outline: 2px solid #e94560;
  outline-offset: 1px;
}

.add-building-form {
  display: flex;
  gap: 6px;
}

.add-building-form input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  font-size: 0.8rem;
  border-radius: 4px;
  border: 1px solid #0f3460;
  background: #1a1a2e;
  color: #e0e0e0;
}

.add-building-form input::placeholder {
  color: #666;
}

.add-building-form button {
  padding: 6px 10px;
  font-size: 0.8rem;
  white-space: nowrap;
  border-radius: 4px;
  border: 1px solid #0f3460;
  background: #0f3460;
  color: #e0e0e0;
  cursor: pointer;
}

.add-building-form button:hover {
  background: #e94560;
  border-color: #e94560;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: #16213e;
  border: 1px solid #0f3460;
  border-radius: 8px;
  padding: 24px;
  min-width: 500px;
  max-width: 90vw;
}

.modal h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: #e94560;
}

.modal .form-group {
  margin-bottom: 12px;
}

.modal .form-group label {
  display: block;
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 4px;
}

.modal .form-group input {
  width: 100%;
  padding: 6px 8px;
  font-size: 0.85rem;
  border-radius: 4px;
  border: 1px solid #0f3460;
  background: #1a1a2e;
  color: #e0e0e0;
}

.modal .form-group input::placeholder {
  color: #666;
}

.duration-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.duration-inputs input {
  width: 70px;
}

.duration-unit {
  font-size: 0.85rem;
  color: #aaa;
}

.modal .modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  justify-content: flex-end;
}

.modal .modal-actions button {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: 4px;
  border: 1px solid #0f3460;
  background: #1a1a2e;
  color: #e0e0e0;
  cursor: pointer;
}

.modal .modal-actions button:hover {
  background: #0f3460;
}

.modal .modal-actions button.btn-primary {
  background: #0f3460;
  border-color: #0f3460;
}

.modal .modal-actions button.btn-primary:hover {
  background: #e94560;
  border-color: #e94560;
}

.modal .modal-actions button.btn-danger {
  border-color: #e94560;
  color: #e94560;
}

.modal .modal-actions button.btn-danger:hover {
  background: #e94560;
  color: #fff;
}

/* ===== Add Order Button (per row) ===== */
.add-order-btn {
  font-size: 0.75rem;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid #0f3460;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  margin-left: 6px;
}

.add-order-btn:hover {
  background: #0f3460;
  color: #fff;
}

/* ===== Commodity Badges ===== */
.commodity-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.commodity-badge.small {
  padding: 1px 5px;
  font-size: 0.7rem;
}

.commodity-tag {
  font-size: 0.7rem;
  color: #888;
  font-style: italic;
}

.commodity-tag.raw {
  color: #2ecc71;
}

/* ===== Timeline Item Content ===== */
.tl-item-content {
  display: inline;
  font-size: 0.75rem;
  white-space: nowrap;
}

.tl-item-content strong {
  font-weight: 700;
  margin-right: 4px;
}

.tl-item-content small {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.6);
  margin-left: 4px;
  font-style: italic;
}

/* ===== Recipe/Commodity Badge (rc-badge) ===== */
.rc-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  margin: 0 2px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

.rc-badge-name {
  font-size: inherit;
  font-weight: inherit;
}

.rc-badge-qty {
  font-size: 0.6rem;
  opacity: 0.85;
  margin-left: 2px;
}

.rc-qty {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: #e0e0e0;
  vertical-align: middle;
  margin: 0 2px;
}

.rc-arrow {
  display: inline-block;
  margin: 0 4px;
  font-size: 0.7rem;
  color: #aaa;
  vertical-align: middle;
}

.rc-dur {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.55rem;
  color: #888;
  vertical-align: middle;
  white-space: nowrap;
  font-style: italic;
}

.rc-building {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.6rem;
  color: #888;
  border: 1px solid #0f3460;
  border-radius: 3px;
  padding: 0 4px;
  vertical-align: middle;
}

.rc-preview {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.vis-item.commodity-item {
  border-radius: 4px !important;
  color: #fff !important;
}

.vis-item.commodity-item .vis-item-content {
  padding: 1px 4px;
}

/* ===== Commodity Dialog ===== */
.commodity-list {
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.commodity-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #0f3460;
}

.commodity-row.dragging {
  opacity: 0.5;
  background: #0f3460;
}

.drag-handle {
  cursor: grab;
  color: #888;
  font-size: 1rem;
  user-select: none;
  padding: 0 4px;
}

.drag-handle:active {
  cursor: grabbing;
}

.commodity-recipe {
  flex: 1;
  font-size: 0.8rem;
  color: #ccc;
}

.btn-remove-commodity {
  font-size: 0.85rem;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid #0f3460;
  background: transparent;
  color: #aaa;
  cursor: pointer;
}

.btn-remove-commodity:hover {
  background: #e94560;
  color: #fff;
}

.commodity-add-section {
  border-top: 1px solid #0f3460;
  padding-top: 12px;
}

.commodity-add-section h4 {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #e94560;
}

.commodity-add-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}

.commodity-add-row input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 5px 8px;
  font-size: 0.85rem;
  border-radius: 4px;
  border: 1px solid #0f3460;
  background: #1a1a2e;
  color: #e0e0e0;
  text-transform: uppercase;
}

.commodity-add-row input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: 1px solid #0f3460;
  border-radius: 4px;
  padding: 0;
  cursor: pointer;
  background: none;
}

.commodity-add-row input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 1px;
}

.commodity-add-row input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 3px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: #aaa;
  cursor: pointer;
  white-space: nowrap;
}

.recipe-section {
  margin-top: 8px;
  padding: 8px;
  background: #1a1a2e;
  border-radius: 4px;
  border: 1px solid #0f3460;
}

.recipe-section label {
  font-size: 0.8rem;
  color: #aaa;
  display: block;
  margin-bottom: 6px;
}

.ingredient-list {
  margin-bottom: 6px;
  font-size: 0.8rem;
}

.ingredient-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.8rem;
  color: #ccc;
}

.btn-remove-ingredient {
  font-size: 0.7rem;
  padding: 0 3px;
  border: none;
  background: transparent;
  color: #e94560;
  cursor: pointer;
  margin-left: 2px;
}

.ingredient-add-row {
  display: flex;
  gap: 4px;
  align-items: center;
}

.ingredient-add-row select {
  flex: 1;
  min-width: 0;
  padding: 4px 6px;
  font-size: 0.8rem;
  border-radius: 4px;
  border: 1px solid #0f3460;
  background: #1a1a2e;
  color: #e0e0e0;
}

.ingredient-add-row input {
  width: 50px;
  padding: 4px 6px;
  font-size: 0.8rem;
  border-radius: 4px;
  border: 1px solid #0f3460;
  background: #1a1a2e;
  color: #e0e0e0;
}

.btn-small {
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 3px;
  border: 1px solid #0f3460;
  background: #0f3460;
  color: #e0e0e0;
  cursor: pointer;
  white-space: nowrap;
}

.btn-small:hover {
  background: #e94560;
  border-color: #e94560;
}

.empty-hint {
  font-size: 0.8rem;
  color: #666;
  font-style: italic;
  padding: 8px 0;
}

/* Recipe preview in order dialog */
.recipe-preview {
  padding: 8px;
  margin: 8px 0;
  background: #1a1a2e;
  border-radius: 4px;
  border: 1px solid #0f3460;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* Select styling in modal */
.modal select {
  width: 100%;
  padding: 6px 8px;
  font-size: 0.85rem;
  border-radius: 4px;
  border: 1px solid #0f3460;
  background: #1a1a2e;
  color: #e0e0e0;
}

/* ===== Recipe Dialog ===== */
.recipe-list {
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.recipe-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #0f3460;
}

.recipe-display {
  flex: 1;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.recipe-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.recipe-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.btn-edit-recipe,
.btn-remove-recipe {
  font-size: 0.85rem;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid #0f3460;
  background: transparent;
  color: #aaa;
  cursor: pointer;
}

.btn-edit-recipe:hover {
  background: #0f3460;
  color: #fff;
}

.btn-remove-recipe:hover {
  background: #e94560;
  color: #fff;
}

.recipe-add-section {
  border-top: 1px solid #0f3460;
  padding-top: 12px;
}

.recipe-add-section h4 {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #e94560;
}

.recipe-form-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.recipe-form-row label {
  font-size: 0.8rem;
  color: #aaa;
  min-width: 50px;
}

.recipe-form-row select {
  flex: 1;
  min-width: 0;
}

.recipe-form-row input[type="number"] {
  width: 50px;
  padding: 4px 6px;
  font-size: 0.85rem;
  border-radius: 4px;
  border: 1px solid #0f3460;
  background: #1a1a2e;
  color: #e0e0e0;
}

.recipe-form-x {
  font-size: 0.9rem;
  color: #aaa;
}

.recipe-preview-label {
  font-size: 0.75rem;
  color: #888;
  margin-right: 4px;
}

/* Commodity row color picker */
.commodity-row-color {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 1px solid #0f3460;
  border-radius: 3px;
  padding: 0;
  cursor: pointer;
  background: none;
}

.commodity-row-color::-webkit-color-swatch-wrapper {
  padding: 1px;
}

.commodity-row-color::-webkit-color-swatch {
  border: none;
  border-radius: 2px;
}

/* ===== Inventory Panel ===== */
.inv-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0 12px 12px;
}

.inv-box {
  display: flex;
  flex-direction: column;
  background: #16213e;
  border: 1px solid #0f3460;
  border-radius: 6px;
  padding: 6px;
  width: 112px;
  gap: 3px;
}

.inv-top {
  display: flex;
  gap: 3px;
}

.inv-swatch {
  width: 38px;
  min-height: 38px;
  border-radius: 3px;
  flex-shrink: 0;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.inv-inputs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inv-qty,
.inv-price {
  width: 100%;
  padding: 2px 4px;
  font-size: 0.7rem;
  border-radius: 2px;
  border: 1px solid #0f3460;
  background: #1a1a2e;
  color: #e0e0e0;
  box-sizing: border-box;
}

.inv-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.inv-totals-row {
  justify-content: space-between;
}

.inv-total {
  font-size: 0.6rem;
  color: #aaa;
}

.inv-final-total {
  font-size: 0.55rem;
  color: #888;
  font-style: italic;
}

.inv-projection {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2ecc71;
}

/* ===== Notes Section ===== */
.notes-section {
  flex: 3;
  display: flex;
  flex-direction: column;
  min-height: 80px;
  overflow: hidden;
}

.notes-tab-bar {
  display: flex;
  align-items: center;
  background: #16213e;
  border-bottom: 1px solid #0f3460;
  padding: 0 8px;
  gap: 0;
  overflow-x: auto;
  flex-shrink: 0;
}

.notes-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
}

.notes-tab {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 0.8rem;
  color: #888;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  user-select: none;
  transition: color 0.15s, border-color 0.15s;
}

.notes-tab:hover {
  color: #e0e0e0;
}

.notes-tab.active {
  color: #e94560;
  border-bottom-color: #e94560;
}

.notes-tab-title {
  pointer-events: auto;
}

.notes-tab-close {
  font-size: 0.85rem;
  line-height: 1;
  padding: 0 2px;
  border: none;
  background: transparent;
  color: #666;
  cursor: pointer;
  border-radius: 3px;
}

.notes-tab-close:hover {
  background: #e94560;
  color: #fff;
}

.notes-add-tab {
  font-size: 1rem;
  padding: 4px 10px;
  border: none;
  background: transparent;
  color: #888;
  cursor: pointer;
  border-radius: 3px;
  flex-shrink: 0;
}

.notes-add-tab:hover {
  background: #0f3460;
  color: #e0e0e0;
}

#notes-editor-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

#notes-editor-wrap .tox.tox-tinymce {
  border: none !important;
  border-radius: 0 !important;
}
