﻿body {
  --coffin-configurator-bg: #e3e3e3;
  --coffin-configurator-bg-dark: #c3c3c3;
}

.board-config, .coffin-config, .nail-positioner-config {
  height: 100%;
  position: relative;
  width: 100%;
}
.board-config canvas, .coffin-config canvas, .nail-positioner-config canvas {
  height: 100%;
  position: relative;
  width: 100%;
}

.board-css2d-canvas, .coffin-css2d-canvas, .nail-positioner-css2d-canvas {
  position: absolute;
}

.board-configurator-popup, .coffin-configurator-popup, .coffin-board-popup {
  height: 80% !important;
  max-width: 80% !important;
  min-height: 480px;
  min-width: 480px;
}
.board-configurator-popup .dxbl-modal-content, .coffin-configurator-popup .dxbl-modal-content, .coffin-board-popup .dxbl-modal-content {
  overflow: hidden;
}
.board-configurator-popup .dxbl-modal-content .dxbl-modal-body, .coffin-configurator-popup .dxbl-modal-content .dxbl-modal-body, .coffin-board-popup .dxbl-modal-content .dxbl-modal-body {
  min-height: 0;
}
.board-configurator-popup .dxbl-modal-content .dxbl-modal-body .popup-content, .coffin-configurator-popup .dxbl-modal-content .dxbl-modal-body .popup-content, .coffin-board-popup .dxbl-modal-content .dxbl-modal-body .popup-content {
  align-items: end;
  display: grid;
  grid-template-rows: calc(100% - 4rem) 4rem;
  height: 100%;
}
.board-configurator-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons, .coffin-configurator-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons, .coffin-board-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons {
  align-items: flex-end;
  display: flex;
  gap: 1rem;
  height: 100%;
  justify-content: end;
  width: 100%;
}
.board-configurator-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons .alert, .coffin-configurator-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons .alert, .coffin-board-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons .alert {
  height: fit-content;
  margin: 0;
  width: 100%;
}
.board-configurator-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons > button, .coffin-configurator-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons > button, .coffin-board-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons > button {
  font-size: var(--font-small);
  flex-shrink: 0;
  height: 2rem;
  margin: 0;
  min-width: 0;
}
.board-configurator-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons .waste-inputs, .coffin-configurator-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons .waste-inputs, .coffin-board-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons .waste-inputs {
  display: flex;
  gap: 1rem;
}
.board-configurator-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons .waste-inputs .waste-input p, .coffin-configurator-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons .waste-inputs .waste-input p, .coffin-board-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons .waste-inputs .waste-input p {
  margin: 0;
  white-space: nowrap;
}
.board-configurator-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons .waste-inputs .waste-input .dxbl-text-edit, .coffin-configurator-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons .waste-inputs .waste-input .dxbl-text-edit, .coffin-board-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons .waste-inputs .waste-input .dxbl-text-edit {
  width: 100%;
}
.board-configurator-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons .cc-config-types, .coffin-configurator-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons .cc-config-types, .coffin-board-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons .cc-config-types {
  display: flex;
  height: 100%;
  width: 100%;
}
.board-configurator-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons .cc-config-types .ccct-buttons, .coffin-configurator-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons .cc-config-types .ccct-buttons, .coffin-board-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons .cc-config-types .ccct-buttons {
  background-color: var(--coffin-configurator-bg-dark);
  border: 2px solid var(--coffin-configurator-bg);
  border-top: none;
  border-radius: 0 0 1.25rem 1.25rem;
  display: flex;
  flex-shrink: 0;
  gap: 0.5rem;
  overflow: hidden;
  width: fit-content;
}
.board-configurator-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons .cc-config-types .ccct-buttons button, .coffin-configurator-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons .cc-config-types .ccct-buttons button, .coffin-board-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons .cc-config-types .ccct-buttons button {
  border-radius: 0;
  color: black;
  flex-shrink: 0;
  font-size: var(--font-small);
  height: 100%;
  padding: 0.5rem 1rem;
}
.board-configurator-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons .cc-config-types .ccct-buttons button.dxbl-disabled, .board-configurator-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons .cc-config-types .ccct-buttons button.dxbl-disabled span, .coffin-configurator-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons .cc-config-types .ccct-buttons button.dxbl-disabled, .coffin-configurator-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons .cc-config-types .ccct-buttons button.dxbl-disabled span, .coffin-board-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons .cc-config-types .ccct-buttons button.dxbl-disabled, .coffin-board-popup .dxbl-modal-content .dxbl-modal-body .popup-content .content-buttons .cc-config-types .ccct-buttons button.dxbl-disabled span {
  background-color: var(--coffin-configurator-bg) !important;
  opacity: 1 !important;
}

.cc-wrong-config {
  align-items: center;
  background-color: var(--coffin-configurator-bg);
  color: black;
  display: flex;
  gap: 1rem;
  height: 100%;
  justify-content: center;
  position: absolute;
  top: 0;
  width: 100%;
}
.cc-wrong-config .eas-icon {
  color: var(--danger);
}
.cc-wrong-config h1 {
  font-size: var(--font-large);
  margin: 0;
}
