/* Estilos Globais e Layout Principal */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    "Roboto",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body {
  background-color: #f8f9fa;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  color: #333;
  padding: 0 10px;
  margin-top: 10px;
}

.header {
  background-color: #2c3e50;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  height: 24px;
}

.configurador-panel {
  padding: 0 !important;
  height: auto !important;
  overflow: visible !important;
  position: static !important;
  top: auto !important;
  margin: 0 !important;
}

.simulation-header {
  margin-top: 0px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.right-panel {
  flex-shrink: 0;
  width: 107%;
  border-right: none;
  padding: 10px;
  overflow: hidden;
  margin-left: -10px;
  margin-top: -15px;
  margin-right: -40px;
}

.panel-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #2c3e50;
  padding-bottom: 6px;
  border-bottom: 2px solid #f39c12;
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 9px;
}

.form-label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  color: #495057;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-value,
.config-input,
.form-select {
  padding: 7px 9px;
  background-color: #ffffff;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 11.5px;
  color: #495057;
  font-weight: 400;
  width: 100%;
}

.config-input:focus,
.form-select:focus {
  outline: none;
  border-color: #f39c12;
  box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.2);
}

.simulation-area {
  width: 100%;
  aspect-ratio: 647 / 208.7;
  position: relative;
  left: 45%;
  height: 208.7px;
  max-height: 280px;
  flex-shrink: 0;
  margin: 0;
  background-color: #e9ecef;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transform: scale(1.9);
  transform-origin: top center;
  margin-top: 0px;
  border-top: 1px solid #dee2e6;
  padding-top: 0px;
}

#blocks-container {
  position: absolute;
  z-index: 2;
  width: 647px;
  height: 208.7px;
  flex-shrink: 0;
  top: 0;
  left: 0;
}

.simulation-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #adb5bd;
  z-index: 5;
  background-color: #e9ecef;
  padding: 20px;
}

.simulation-placeholder i {
  font-size: 48px;
  margin-bottom: 15px;
}

.simulation-placeholder p {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
}

.simulation-placeholder span {
  font-size: 13px;
}

#siren-model-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 98%;
  max-height: 98%;
  height: auto;
  z-index: 1;
}

.output-item {
  background-color: #f8f9fa;
  padding: 8px;
  margin-bottom: 8px;
  border-radius: 4px;
  border-left: 3px solid #f39c12;
}

.output-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 3px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.output-value {
  color: #6c757d;
  font-size: 11.5px;
  font-weight: 400;
}

.position-button.selected {
  outline: none !important;
  box-shadow: 0 0 3px 2px rgb(0, 255, 0);
  z-index: 999;
}

.btn-amarelo {
  background-color: #f7b931 !important;
  color: #333 !important;
  font-weight: 500 !important;
}

.btn-amarelo:hover {
  background-color: #e0a800;
  color: #333;
}

.btn {
  color: white;
  border: none;
  padding: 8px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 11.5px;
  letter-spacing: 0.3px;
}

.btn:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
  transform: none;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #ffffff;
  width: 30%;
  max-width: 500px;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  border-bottom: 1px solid #e9ecef;
}

.modal-body {
  padding: 5px;
  overflow-y: auto;
}

.modal-footer {
  padding: 3px;
  border-top: 1px solid #e9ecef;
  text-align: right;
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #6c757d;
}

.excel-container {
  background-color: white;
  border: 1px solid #d0d7de;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.excel-toolbar {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 8px;
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  align-items: center;
  flex-shrink: 0;
  overflow-x: auto;
  min-width: 100%;
  transform: translateZ(0);
}

.excel-toolbar .btn {
  min-width: auto;
  text-align: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 9px;
  padding: 4px 8px;
  color: white;
  border: none;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

#advanced-settings-btn {
  margin-left: 0px;
}

.excel-grid {
  flex: 1;
  overflow-x: auto;
  overflow-y: auto;
  min-height: 0;
  max-height: 100%;
}

.macro-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
  font-family: "Calibri", Arial, sans-serif;
  table-layout: fixed;
}

.macro-table th,
.macro-table td {
  border: 1px solid #d0d7de;
  padding: 2px 4px;
  text-align: center;
  min-width: 30px;
  height: 18px;
  vertical-align: middle;
  overflow: hidden;
  white-space: nowrap;
}

.column-header {
  background-color: #d9e1f2;
  font-weight: bold;
  font-size: 9px;
  color: #333;
  cursor: pointer;
  user-select: none;
}

.macro-table th.column-header {
  position: sticky;
  top: 0;
  z-index: 1;
}

.sheet-selector-container {
  margin-top: -25px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
  position: relative;
}

.sheet-selector-btn {
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-bottom: none;
  padding: 5px 9px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 500;
  border-radius: 4px 4px 0 0;
  transition: all 0.2s ease;
  color: #495057;
  position: relative;
}

.sheet-selector-btn.active {
  background-color: #f39c12;
  color: white;
  border-color: #d0d7de;
  font-weight: 600;
  transform: translateY(1px);
}

.sheet-selector-btn.has-warning {
  background-color: #e74c3c;
  color: white;
  font-weight: 600;
  border-color: #c0392b;
}

.warning-icon {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 12px;
  color: #c0392b;
  background-color: white;
  border-radius: 50%;
  padding: 1px;
}

.macro-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  flex-shrink: 0;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-item {
  display: center;
  align-items: flex;
  font-size: 11.5px;
  transition: all 0.2s ease;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
}

.modal-overlay.standard-modal {
  display: flex;
}

.standard-modal-content {
  background-color: #ffffff;
  width: 500px;
  max-width: 95%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.modal-nav-tabs {
  display: flex;
  border-bottom: 2px solid #dee2e6;
  flex-wrap: wrap;
}

.modal-tab-btn {
  background: none;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.modal-tab-btn:hover {
  background-color: #f8f9fa;
}

.modal-tab-btn.active {
  color: #f39c12;
  border-color: #f39c12;
}

.modal-tab-content {
  display: none;
}

.modal-tab-content.active {
  display: block;
}

.description {
  font-size: 13px;
  color: #6c757d;
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 20px;
  border: 1px solid #e9ecef;
}

.function-table-container {
  margin-bottom: 15px;
}

.function-title {
  font-size: 16px;
  color: #2c3e50;
  margin-bottom: 12px;
  padding-bottom: 5px;
  border-bottom: 1px solid #eee;
}

.function-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.function-table th,
.function-table td {
  border: 1px solid #ced4da;
  padding: 6px;
  text-align: center;
  transition: background-color 0.2s ease;
}

.function-table th {
  background-color: #e9ecef;
  font-weight: 600;
}

.function-table th:first-child,
.function-table td:first-child {
  width: 110px;
  text-align: left;
  padding-left: 8px;
}

.function-table td[contenteditable="true"] {
  background-color: #fff;
}

.function-table td[contenteditable="true"]:focus {
  background-color: #fff3cd;
  outline: 2px solid #f39c12;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}

.checkbox-item input {
  margin-right: 8px;
  cursor: pointer;
}

.relative {
  position: relative;
  width: 100%;
  height: 100%;
}

.function-group {
  margin-bottom: 25px;
  padding: 15px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background-color: #fdfdfd;
}

.function-group-title {
  font-size: 18px;
  color: #2c3e50;
  padding-bottom: 5px;
  border-bottom: 1px solid #eee;
}

.function-group .function-table-container {
  margin-bottom: 0;
}

.function-group .function-table-container+.function-table-container {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.fp-setting-id {
  display: inline-block;
  min-width: 30px;
  font-weight: 600;
  color: #e67e22;
}

.fp-setting-description {
  display: block;
  font-size: 11px;
  color: #6c757d;
  margin-top: 4px;
  font-style: italic;
}

.checkbox-item.active-setting {
  background-color: #fffbe6;
  border-color: #f39c12;
  font-weight: 500;
}

.cell-active-function {
  background-color: #00eb08 !important;
  color: rgba(255, 255, 255, 0.438) !important;
  font-weight: bold;
}

#tab-special-functions td[data-block].special-cell-selected {
  background-color: #cce5ff !important;
  outline: 1px solid #007bff;
  outline-offset: -1px;
}

.cell-inactive-function {
  background-color: #ff1100 !important;
  color: rgb(255, 255, 255) !important;
  font-weight: bold;
}

.function-table td[contenteditable="true"] {
  color: #ffffff !important;
  font-weight: normal !important;
  text-shadow: none !important;
}

.function-table td.cell-active-function {
  background-color: #00cc00 !important;
  color: white !important;
  font-weight: bold !important;
}

.control-btn.active {
  background-color: #000f00 !important;
  color: white !important;
  border: 2px solid #27ae60;
  transform: scale(1.05);
}

.status-panel-list ul {
  list-style-type: none;
  padding-left: 0;
  margin-top: 5px;
}

.status-panel-list li {
  font-size: 11px;
  color: #495057;
  padding: 3px 0;
  border-bottom: 1px solid #ced4da;
}

.status-panel-list li:last-child {
  border-bottom: none;
}

#error-modal.modal-overlay {
  background-color: transparent;
  align-items: flex-start;
  justify-content: flex-start;
  pointer-events: none;
}

#error-modal .modal-content {
  pointer-events: auto;
  position: absolute;
  width: auto;
  max-width: 350px;
}

.status-panel-list li .func-name {
  font-weight: 600;
  color: #333;
}

.status-panel-list .no-settings {
  font-size: 11px;
  color: #6c757d;
  font-style: italic;
}

#jumptabela-status-output {
  background-color: #e9ecef;
  border-left-color: #34495e;
}

#special-functions-status-output {
  background-color: #e7f5ff;
  border-left-color: #3498db;
}

.ms25-column,
.ms-column {
  font-weight: bold;
  font-size: 9px;
  cursor: cell;
}

.ms25-column {
  background-color: #e9ecef;
  color: red;
}

.ms-column {
  background-color: #fff;
  color: black;
}

.editable-cell {
  background-color: #dbdbdb;
  cursor: cell;
  transition: all 0.2s ease;
}

.editable-cell:hover,
.ms25-column:hover,
.ms-column:hover {
  background-color: #d0e3ff;
}

.editable-cell:focus,
.ms25-column:focus,
.ms-column:focus {
  background-color: #d0e3ff;
  outline: 2px solid #0066cc;
}

.cell-red {
  background-color: #ff0000 !important;
  color: black;
  font-weight: bold;
}

.cell-blue {
  background-color: #0000ff !important;
  color: white;
  font-weight: bold;
}

.cell-white {
  background-color: #ffffff !important;
  color: black;
  font-weight: bold;
}

.cell-yellow {
  background-color: #ffc000 !important;
  color: black;
  font-weight: bold;
}

.selected-row {
  background-color: #fff3cd !important;
  outline: 2px solid #f39c12;
  outline-offset: -2px;
}

.cell-selected {
  background-color: #d0e3ff !important;
  outline: 1px solid #4a89dc;
}

.row-counter-column {
  background-color: #e9ecef;
  font-weight: bold;
  font-size: 9px;
  color: #333;
}

.block-container {
  position: absolute;
  overflow: visible;
}

.block-content-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 8px;
  color: #1f2937;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.block-color-part {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.block-part-single {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 8px;
  color: #1f2937;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.block-part-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.block-part-top,
.block-part-bottom {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 8px;
  color: #1f2937;
}

.block-part-top {
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.layout-color-red {
  background-color: #ff0000;
  color: black;
}

.layout-color-blue {
  background-color: #0000ff;
  color: white;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.layout-color-green {
  background-color: #00cc00;
  color: rgb(0, 0, 0);
}

.layout-color-white {
  background-color: #ffffff;
  color: black;
  text-shadow: none;
}

.layout-color-yellow {
  background-color: #ffc000;
  color: black;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
}

.layout-color-off {
  background-color: #d1d5db;
  text-shadow: none;
}

/* ✅ ESTILOS PARA PLACEHOLDERS - APARECEM EM TODAS AS VISTAS */
.block-placeholder {
  background-color: #6b7280 !important;
  cursor: not-allowed !important;
  opacity: 0.7;
}

.block-placeholder .block-part-single,
.block-placeholder .block-part-top,
.block-placeholder .block-part-bottom {
  background-color: #6b7280 !important;
  color: #9ca3af !important;
  border: 1px solid #4b5563 !important;
  text-shadow: none !important;
}

.block-placeholder .block-part-container {
  border: 1px solid #4b5563 !important;
}

.simulation-area.edit-mode .block-container {
  cursor: move;
  border: 1px dashed #3498db;
}

.block-container.selected {
  outline: 2px solid #3498db;
  z-index: 10;
}

.interaction-handle {
  position: absolute;
  background-color: #3498db;
  border: 1px solid white;
  display: none;
}

.block-container.selected .interaction-handle {
  display: block;
}

/* ✅ MODO VISUALIZAÇÃO: MOSTRAR PLACEHOLDERS MESMO SEM EDIT-MODE */
.simulation-area .block-placeholder {
  display: block !important;
  visibility: visible !important;
  opacity: 0.7;
}

.resize-handle {
  width: 16px;
  height: 16px;
  bottom: -8px;
  right: -8px;
  cursor: nwse-resize;
  background-color: #3498db;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.resize-handle:hover {
  background-color: #2980b9;
  transform: scale(1.2);
}

.resize-handle:active {
  background-color: #1f618d;
}

.rotate-handle {
  width: 18px;
  height: 18px;
  top: -24px;
  left: calc(50% - 9px);
  border-radius: 50%;
  cursor: grab;
  background-color: #e74c3c;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.rotate-handle:hover {
  background-color: #c0392b;
  transform: scale(1.2);
}

.rotate-handle:active {
  cursor: grabbing;
  background-color: #922b21;
}

.layout-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.layout-category-title {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-top: 20px;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid #f39c12;
  grid-column: 1 / -1;
}

.layout-category-title:first-child {
  margin-top: 0;
}

.layout-preview-item {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

.layout-preview-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #f39c12;
}

.layout-preview-item img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.layout-preview-item p {
  padding: 10px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  color: #495057;
  margin: 0;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#color-context-menu {
  display: none;
  position: absolute;
  z-index: 10000;
  background-color: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  padding: 5px 0;
  list-style: none;
  font-size: 12px;
}

#color-context-menu li {
  padding: 8px 15px;
  cursor: pointer;
}

#color-context-menu li:hover {
  background-color: #f39c12;
  color: white;
}

#color-context-menu hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 4px 0;
}

.persistent-color-red {
  background-color: #f8d7da !important;
  color: black !important;
}

.persistent-color-green {
  background-color: #d1e7dd !important;
  color: black !important;
}

.persistent-color-blue {
  background-color: #d0e3ff !important;
  color: black !important;
}

.persistent-color-white {
  background-color: #ffffff !important;
  color: black !important;
  border: 1px solid #ccc !important;
}

.persistent-color-yellow {
  background-color: #fff3cd !important;
  color: black !important;
}

.instruction-text {
  font-size: 11px;
  color: #6c757d;
  margin-bottom: 8px;
  padding-left: 4px;
}

/* NOVO: Estilos para a paleta de cores */
.color-selector {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  margin-bottom: 5px;
}

.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: 1px solid black;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.color-swatch:hover {
  transform: scale(1.15);
  border-color: #3498db;
}

.color-swatch.clear-swatch {
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* NOVO: Estilos para o popup da paleta de cores */
.color-palette-popup {
  display: none;
  position: absolute;
  z-index: 1050;
  background-color: #ffffff;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 5px;
}

.color-palette-popup .color-selector {
  border: none;
  padding: 5px;
}

/* ESTILOS ADICIONADOS DO SINAUX - Layout e Containers */
.leftSidebar {
  border-color: #dee2e6;
  border-radius: 5px;
  padding: 0px !important;
  background-color: white;
  color: white;
  height: 100vh;
  right: 0px;
  top: 40px;
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.principal {
  top: 40px;
  height: 100vh;
  width: 800px !important;
  background-color: white;
}

.right-sidebar {
  background-color: white;
  color: white;
  height: 100vh;
  top: 40px;
  position: fixed;
  width: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding-top: 60px;
  padding-left: 5px;
}

/* ESTILOS PARA SIDEBAR */
.sidebar {
  display: flex;
  gap: 5px;
}

.sidebar .form-control {
  padding: 0.175rem 0.35rem !important;
  font-size: 0.56rem !important;
  width: 120px !important;
  margin-bottom: 0 !important;
}

.sidebar select.form-control {
  height: auto !important;
}

.sidebar label {
  font-size: 0.56rem !important;
  margin-bottom: 0 !important;
}

.sidebar .invalid-feedback {
  font-size: 0.49rem !important;
  margin-top: 0 !important;
}

.sidebar .form-group {
  margin: 0 !important;
  padding: 0 !important;
  transform: translate(0px, -7px);
}

/* ESTILOS PARA CONTAINERS DE VEÍCULOS E VISTAS */
.vehicle-container {
  position: relative;
  height: 287px;
  width: 579.6px;
  border-radius: 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.vehicle-container:not(.active) {
  display: none;
}

.vehicle-views {
  position: relative;
  width: 596px;
  height: 299px;
  background-color: #fdfdfd;
  border: 2px dashed var(--primary-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-top-left-radius: 0;
}

.vehicle-container {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.vehicle-container.active {
  display: block;
}

/* ESTILOS PARA SISTEMA DE VISTAS */
.vistas-container {
  width: 600px;
  height: auto;
  position: relative;
  border-radius: 5px;
  background-color: white;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.vistas-container .nav-tabs {
  flex-shrink: 0;
}

.vistas-container .nav-tabs .nav-item .nav-link {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.vista {
  width: 100%;
  flex-grow: 1;
  position: relative;
  display: none;
}

.vista.active {
  display: block;
}

.fixed-image-container {
  width: 598px;
  height: 296px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.vistas-container .fixed-image-container img.img-fluid {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.marker-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.marker-container>.position-button {
  pointer-events: all;
}

/* ESTILOS PARA BOTÕES DE POSIÇÃO */
.position-button {
  height: 10px;
  width: 20px;
  position: absolute;
  background-color: #404040;
  cursor: pointer;
  pointer-events: auto;
  z-index: 10;
  border: 1px solid #202020;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.6rem;
  font-weight: bold;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.position-button.botao-vazio {
  width: 20px;
  height: 10px;
  border-radius: 4px;
  border: 1px solid #202020;
}

.position-button.botao-Nucleon {
  width: 16px;
  height: 10px;
  border-radius: 4px;
  border: 1px solid #202020;
}

.position-button.botao-Hadron {
  width: 25px;
  height: 10px;
  border-radius: 4px;
  border: 1px solid #202020;
}

.position-button.botao-Rescue6 {
  width: 20px;
  height: 15px;
  border-radius: 4px;
  border: 1px solid #202020;
}

.position-button.botao-Halo {
  width: 12px;
  height: 13px;
  border-radius: 6px;
  border: 1px solid #202020;
}

.position-button.botao-Cromo-Linear {
  width: 17px;
  height: 10px;
  clip-path: polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%);
  z-index: 2;
  border: none;
}

.position-button.botao-Cromo-Triangular {
  width: 15px;
  height: 13px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: rotate(-180deg) translate(10px, 8px);
  left: 7px;
  position: absolute;
  z-index: 2;
  border: none;
  background: inherit;
}

.position-button.botao-Cromo-Redondo {
  width: 13px;
  height: 12px;
  position: absolute;
  clip-path: polygon(50% 0%,
      90% 20%,
      100% 60%,
      75% 100%,
      25% 100%,
      0% 60%,
      10% 20%);
  z-index: 2;
  border: none;
}

/* ESTILOS PARA BORDAS DOS BOTÕES CROMO */
.borda-Cromo-Linear {
  width: 28px;
  height: 17px;
  clip-path: polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%);
  background-color: #000000;
  position: absolute;
  z-index: 1 !important;
}

.borda-Cromo-Triangular {
  width: 22.4px;
  height: 19.2px;
  background-color: #000000;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: rotate(-180deg) translate(14px, 10.5px);
}

.borda-Cromo-Redondo {
  width: 20.7px;
  height: 20.3px;
  background-color: #000000;
  clip-path: polygon(50% 0%,
      90% 20%,
      100% 60%,
      75% 100%,
      25% 100%,
      0% 60%,
      10% 20%);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-30px, -25px);
  z-index: 1 !important;
}

/* TOOLTIPS PARA BOTÕES */
.position-button .tooltip {
  display: none;
  position: absolute;
  top: -17.5px;
  left: 21px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 1.4px 3.5px;
  border-radius: 2.8px;
  white-space: nowrap;
  z-index: 20;
}

.position-button:hover .tooltip {
  display: inline-block;
}

.button-container {
  position: absolute;
  display: inline-block;
  width: 21px;
  height: 21px;
  transform: translateY(17px);
}

/* ESTILOS PARA BOTÕES E CONTROLES */
.btnAdicionar {
  background-color: #00c31f !important;
  border-color: #00c31f !important;
  color: #ffffff !important;
  padding: 0.2625rem 0.525rem;
  font-size: 0.7rem;
  border-radius: 0.175rem;
}

.btnAdicionar:hover {
  background-color: #009b19 !important;
  border-color: #009b19 !important;
}

.btnAdicionar:focus,
.btnAdicionar:active {
  background-color: #007a13 !important;
  border-color: #007a13 !important;
  box-shadow: 0 0 0 0.14rem rgba(0, 195, 31, 0.5);
}

.cart-button-container {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1050;
  top: -45px;
}

.cart-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.75rem;
  margin-right: 0;
}

.cart-icon {
  width: 20px;
  height: 20px;
}

/* ESTILOS PARA CONTAINER DE KITS */
.container-kits {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  max-height: 730px;
  width: 210px;
  position: relative;
  top: 10px;
  padding: 10px;
  padding-top: 50px;
  box-sizing: border-box;
  overflow: auto;
  overflow-x: hidden;
}

.botoes-alternar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 10px;
  box-sizing: border-box;
  gap: 5px;
}

.container-kits .d-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ESTILOS PARA LINKS DE PRODUTOS */
.product-link {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #0069da;
  margin: 0;
  padding: 0;
  text-align: justify;
  text-justify: inter-word;
  left: 15px;
}

.product-link a {
  text-decoration: none;
  color: #0069da;
  transition: color 0.3s ease;
}

.product-link a:hover {
  text-decoration: underline;
  color: #004ea1 !important;
}

.product-link img {
  margin-left: 5px;
  width: 20px;
  height: 20px;
}

.copy-message {
  color: green;
  font-size: 12px;
  display: none;
  margin-left: 5px;
}

/* ESTILOS PARA RESUMOS */
.resumoVista {
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
}

.resumoGeral {
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
}

.separator {
  border-bottom: 1px solid #ff0000;
  margin-top: 5px;
  margin-bottom: 5px;
}

.resumoKit {
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
  background-color: white;
  z-index: 1;
  color: black;
  display: flex;
  flex-direction: column;
  margin-bottom: 5px;
  border: 1px solid #dee2e6;
}

.resumoKit .product-img-kit {
  height: 20px;
  width: auto;
  padding-left: 0;
  padding-right: 0;
}

.resumoKit .product-description {
  font-size: 0.7em;
}

.resumoKit .qtd-product {
  font-size: 11px;
}

.resumoKit .ver-mais-content {
  width: 180px;
  font-size: 11px;
  padding-left: 0px;
  padding-right: 0px;
}

/* ESTILOS PARA SEPARADORES DE VISTA */
.vista-separator {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  height: 50px;
  text-align: center;
}

.vista-label {
  display: inline-block;
  border-bottom: 1px solid #000;
  padding-bottom: 10px;
  font-weight: bold;
  font-size: 1.2em;
  color: #333;
  text-transform: uppercase;
}

.vista-separator-resumo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  text-align: center;
  width: 100%;
}

.vista-label-resumo {
  display: inline-block;
  border-bottom: 1px solid #000;
  padding-bottom: 10px;
  font-weight: bold;
  font-size: 1.2em;
  color: #333;
  text-transform: uppercase;
  width: 100%;
}

.total-cost {
  position: relative;
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding: 5px;
  z-index: 10;
  width: 100%;
  height: 35px;
}

/* ESTILOS PARA MARCADORES E CONTROLES ADICIONAIS */
.marker {
  width: 10px;
  height: 10px;
  background-color: red;
  border-radius: 50%;
  position: absolute;
}

.fixed-image-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.form-control {
  padding: 0.25rem 0.5rem !important;
  font-size: 0.8rem !important;
  max-width: 200px !important;
  margin-bottom: 0.1rem !important;
  height: auto !important;
}

select.form-control {
  height: auto !important;
}

.veiculo-txt {
  align-items: center;
}

.uniform-height {
  height: 300px;
  width: auto;
  margin: 0 auto;
}

.text-white {
  color: white;
}

.image-marker-container {
  position: relative;
  display: inline-block;
  height: 296.8px;
  width: 596.8px;
}

.img-fluid {
  display: block;
  max-width: 100%;
  height: auto;
}

.title {
  text-align: center;
  margin-bottom: 20px;
}

.controls-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.controls label {
  margin-right: 5px;
}

.main-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* ESTILOS PARA BOTÕES DRAGGABLE */
.draggable-button {
  position: absolute;
  width: 25px;
  height: 13px;
  background-color: grey;
  color: grey;
  border: none;
  border-radius: 5px;
  cursor: grab;
  text-align: center;
  line-height: 13px;
  user-select: none;
  opacity: 1;
  transition: opacity 0.3s ease;
  font-size: 10px;
}

.draggable-button:active {
  opacity: 0.5;
}

.trash-area {
  width: 50px;
  height: 50px;
  background-color: white;
  border: 2px solid #ccc;
  position: absolute;
  bottom: 20px;
  right: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
  z-index: 1;
}

.trash-area img {
  width: 30px;
  height: 30px;
}

.trash-area:hover {
  background-color: rgba(255, 0, 0, 0.2);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.buttons-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.buttons-container button {
  padding: 10px 20px;
  font-size: 16px;
}

.total-positions-row {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.total-positions {
  font-size: 16px;
  color: #333;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.icon-container {
  position: absolute;
  right: 5px;
  top: 5px;
  display: flex;
  gap: 5px;
  z-index: 10;
}

.icon-container :hover {
  transform: scale(1.1);
  transition: transform 0.1s;
}

.icon-container div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.icon-container img {
  width: 20px;
  height: 20px;
}

/* ESTILOS PARA ELEMENTOS VISUAIS ESPECIAIS */
.visual-only {
  height: 13px;
  width: 25px;
  background-color: gray;
  z-index: 10;
  cursor: default;
  pointer-events: none;
  transform: translate(0px, -13px);
}

.visual-only.visual-Nucleon {
  width: 20px;
  height: 13px;
  border-radius: 25%;
  border: 1px solid #000000;
}

.visual-only.visual-Hadron {
  width: 30px;
  height: 13px;
  border-radius: 25%;
  border: 1px solid #000000;
}

.visual-only.visual-Rescue6 {
  width: 33px;
  height: 26px;
  border-radius: 25%;
  border: 1px solid #000000;
}

.visual-only.visual-Halo {
  width: 16px;
  height: 16px;
  border-radius: 12px;
  border: 1px solid #000000;
}

.visual-only.visual-Cromo-Linear {
  width: 24px;
  height: 13px;
  clip-path: polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%);
  position: absolute;
  z-index: 2;
}

.visual-only.visual-Cromo-Triangular {
  width: 19.4px;
  height: 16.2px;
  background-color: black;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: rotate(-180deg) translate(12.5px, 9.5px);
  position: absolute;
  z-index: 2;
  border-radius: 6px;
}

.visual-cromo.visual-cromo-triangular.selected[data-cor1="Azul"] {
  background-image: url('../images/visuaisCromo/visual-triangular-azul-selected.png') !important;
  width: 24px !important;
  height: 21px !important;
  margin: -5px !important;
  transform: translate(-13.3px, -11.5px);
}

.visual-cromo.visual-cromo-triangular.selected[data-cor1="Branco"] {
  background-image: url('../images/visuaisCromo/visual-triangular-branco-selected.png') !important;
  width: 24px !important;
  height: 21px !important;
  margin: -5px !important;
  transform: translate(-13.3px, -11.5px);
}

.visual-cromo.visual-cromo-triangular.selected[data-cor1="Verde"] {
  background-image: url('../images/visuaisCromo/visual-triangular-verde-selected.png') !important;
  width: 24px !important;
  height: 21px !important;
  margin: -5px !important;
  transform: translate(-13.3px, -11.5px);
}

.visual-cromo.visual-cromo-triangular.selected[data-cor1="Vermelho"] {
  background-image: url('../images/visuaisCromo/visual-triangular-vermelho-selected.png') !important;
  width: 24px !important;
  height: 21px !important;
  margin: -5px !important;
  transform: translate(-13.3px, -11.5px);
}

/* ✅ CROMO COM IMAGENS PNG - Redondo */
.visual-cromo.visual-cromo-redondo {
  width: 14px;
  height: 14px;
  position: relative;
}

/* ✅ CROMO NA LISTA DE RESUMO COM IMAGENS PNG - Redondo */
.visual-cromo-resumo.visual-cromo-resumo-redondo {
  width: 14px;
  height: 14px;
  position: relative;
  z-index: 2;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.visual-cromo-resumo.visual-cromo-resumo-redondo[data-cor1="Ambar"] {
  background-image: url('../images/visuaisCromo/visual-redondo-ambar.png') !important;
}

.visual-cromo-resumo.visual-cromo-resumo-redondo[data-cor1="Azul"] {
  background-image: url('../images/visuaisCromo/visual-redondo-azul.png') !important;
}

.visual-cromo-resumo.visual-cromo-resumo-redondo[data-cor1="Branco"] {
  background-image: url('../images/visuaisCromo/visual-redondo-branco.png') !important;
}

.visual-cromo-resumo.visual-cromo-resumo-redondo[data-cor1="Verde"] {
  background-image: url('../images/visuaisCromo/visual-redondo-verde.png') !important;
}

.visual-cromo-resumo.visual-cromo-resumo-redondo[data-cor1="Vermelho"] {
  background-image: url('../images/visuaisCromo/visual-redondo-vermelho.png') !important;
}

/* Estado normal - cores específicas */
.visual-cromo.visual-cromo-redondo[data-cor1="Ambar"] {
  background-image: url('../images/visuaisCromo/visual-redondo-ambar.png') !important;
}

.visual-cromo.visual-cromo-redondo[data-cor1="Azul"] {
  background-image: url('../images/visuaisCromo/visual-redondo-azul.png') !important;
}

.visual-cromo.visual-cromo-redondo[data-cor1="Branco"] {
  background-image: url('../images/visuaisCromo/visual-redondo-branco.png') !important;
}

.visual-cromo.visual-cromo-redondo[data-cor1="Verde"] {
  background-image: url('../images/visuaisCromo/visual-redondo-verde.png') !important;
}

.visual-cromo.visual-cromo-redondo[data-cor1="Vermelho"] {
  background-image: url('../images/visuaisCromo/visual-redondo-vermelho.png') !important;
}

/* Estado selected - cores específicas */
.visual-cromo.visual-cromo-redondo.selected[data-cor1="Ambar"] {
  background-image: url('../images/visuaisCromo/visual-redondo-ambar-selected.png') !important;
  width: 20px !important;
  height: 20px !important;
  margin: -5px !important;
  transform: translate(-12.3px, -11.8px);
}

.visual-cromo.visual-cromo-redondo.selected[data-cor1="Azul"] {
  background-image: url('../images/visuaisCromo/visual-redondo-azul-selected.png') !important;
  width: 20px !important;
  height: 20px !important;
  margin: -5px !important;
  transform: translate(-12.3px, -11.8px);
}

.visual-cromo.visual-cromo-redondo.selected[data-cor1="Branco"] {
  background-image: url('../images/visuaisCromo/visual-redondo-branco-selected.png') !important;
  width: 20px !important;
  height: 20px !important;
  margin: -5px !important;
  transform: translate(-12.3px, -11.8px);
}

.visual-cromo.visual-cromo-redondo.selected[data-cor1="Verde"] {
  background-image: url('../images/visuaisCromo/visual-redondo-verde-selected.png') !important;
  width: 20px !important;
  height: 20px !important;
  margin: -5px !important;
  transform: translate(-12.3px, -11.8px);
}

.visual-cromo.visual-cromo-redondo.selected[data-cor1="Vermelho"] {
  background-image: url('../images/visuaisCromo/visual-redondo-vermelho-selected.png') !important;
  width: 20px !important;
  height: 20px !important;
  margin: -5px !important;
  transform: translate(-12.3px, -11.8px);
}

.visual-only.visual-Cromo-Redondo {
  width: 17.9px;
  height: 17.3px;
  clip-path: polygon(50% 0%,
      90% 20%,
      100% 60%,
      75% 100%,
      25% 100%,
      0% 60%,
      10% 20%);
  background-color: gray;
  position: absolute;
  z-index: 2;
}

/* ESTILOS PARA POPUPS E MODAIS */
.download-popup,
.import-popup,
.search-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* ESTILOS PARA POPUPS E MODAIS */
.download-popup,
.import-popup,
.search-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  width: 800px;
  max-height: 300px;
  overflow-y: auto;
}

.popup-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  width: 800px;
  max-height: 300px;
  overflow-y: auto;
}

.search-input {
  width: 100%;
  padding: 8px;
  margin: 10px 0;
}

.search-input {
  width: 100%;
  padding: 8px;
  margin: 10px 0;
}

.search-button {
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  margin-bottom: 10px;
}

.search-button {
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  margin-bottom: 10px;
}

.search-button:hover {
  background-color: #0056b3;
}

.search-button:hover {
  background-color: #0056b3;
}

.search-results {
  list-style: none;
  padding: 0;
}

.search-results {
  list-style: none;
  padding: 0;
}

.search-results li {
  padding: 8px;
  cursor: pointer;
  border-bottom: 1px solid #ddd;
}

.search-results li {
  padding: 8px;
  cursor: pointer;
  border-bottom: 1px solid #ddd;
}

.search-results li:hover {
  background-color: #f1f1f1;
}

.search-results li:hover {
  background-color: #f1f1f1;
}

.close-popup {
  background: none;
  border: none;
  font-size: 20px;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.close-popup {
  background: none;
  border: none;
  font-size: 20px;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.popup {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.popup {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
  position: absolute;
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
}

.popup-content {
  position: absolute;
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
}

.close-btn {
  color: #aaa;
  font-size: 30px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
}

.close-btn {
  color: #aaa;
  font-size: 30px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* ESTILOS PARA INPUTS E BOTÕES DE AÇÃO */
.file-input {
  width: 100%;
  padding: 10px;
  margin: 15px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

/* ESTILOS PARA INPUTS E BOTÕES DE AÇÃO */
.file-input {
  width: 100%;
  padding: 10px;
  margin: 15px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

.import-button {
  background-color: #5cb85c;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 1.2em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.import-button {
  background-color: #5cb85c;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 1.2em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.import-button:hover {
  background-color: #45a049;
}

.import-button:hover {
  background-color: #45a049;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.popup-header h3 {
  margin: 0;
  font-size: 1.2em;
  color: #333;
}

.popup-header h3 {
  margin: 0;
  font-size: 1.2em;
  color: #333;
}

.popup-body {
  margin: 20px 0;
}

.popup-body {
  margin: 20px 0;
}

.popup-body label {
  font-size: 1em;
  color: #555;
  margin-bottom: 8px;
  display: block;
}

.popup-body label {
  font-size: 1em;
  color: #555;
  margin-bottom: 8px;
  display: block;
}

.popup-body input {
  width: 100%;
  padding: 8px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 8px;
}

.popup-body input {
  width: 100%;
  padding: 8px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 8px;
}

.popup-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.popup-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.popup-footer button {
  padding: 10px 20px;
  font-size: 1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.popup-footer button {
  padding: 10px 20px;
  font-size: 1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cancel-btn {
  background-color: #dc3545;
  color: #fff;
}

.cancel-btn {
  background-color: #dc3545;
  color: #fff;
}

.cancel-btn:hover {
  background-color: #bb2d3b;
}

.cancel-btn:hover {
  background-color: #bb2d3b;
}

.confirm-btn {
  background-color: #198754;
  color: #fff;
}

.confirm-btn {
  background-color: #198754;
  color: #fff;
}

.confirm-btn:hover {
  background-color: #157347;
}

.confirm-btn:hover {
  background-color: #157347;
}

.search-btn {
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-block;
  text-align: center;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.search-btn {
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-block;
  text-align: center;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.search-btn:hover {
  background-color: #0069d9;
}

.search-btn:hover {
  background-color: #0069d9;
}

.import-btn {
  background-color: #007bff;
  color: #fff;
}

.import-btn {
  background-color: #007bff;
  color: #fff;
}

.import-btn:hover {
  background-color: #0069d9;
}

.import-btn:hover {
  background-color: #0069d9;
}

.preset-name-input {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.preset-name-input {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.icon-container .search-icon,
.icon-container .import-icon,
.icon-container .download-icon {
  cursor: pointer;
}

.icon-container .search-icon,
.icon-container .import-icon,
.icon-container .download-icon {
  cursor: pointer;
}

/* ESTILOS PARA TABELAS E ELEMENTOS DE CORES */
.table-bordered tr.table-danger {
  --bs-table-bg: #f8d7da;
  --bs-table-border-color: #f1b0b7;
  --bs-table-striped-bg: #edd9db;
  color: #721c24;
}

.table-bordered tr.table-danger>th,
.table-bordered tr.table-danger>td {
  border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-table-border-color, #dee2e6) !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
}

.table-bordered tr.table-danger>td:nth-last-child(2) {
  border-right: none !important;
}

.table-bordered tr.table-danger>td:last-child {
  border-left: none !important;
}

.table-bordered tr.table-danger>td:first-child {
  border-left: var(--bs-border-width) var(--bs-border-style) var(--bs-table-border-color, #dee2e6) !important;
}

.table-bordered tr.table-danger>td:last-child {
  border-right: var(--bs-border-width) var(--bs-border-style) var(--bs-table-border-color, #dee2e6) !important;
}

.table-bordered td.table-danger {
  border: var(--bs-border-width) var(--bs-border-style) #f1b0b7 !important;
}

.table-bordered td.table-danger {
  border: var(--bs-border-width) var(--bs-border-style) #f1b0b7 !important;
}

.color-square-cell {
  text-align: center;
  vertical-align: middle;
  line-height: 1;
}

.color-square-cell {
  text-align: center;
  vertical-align: middle;
  line-height: 1;
}

.color-square {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid #000;
  border-radius: 3px;
  vertical-align: middle;
  margin: 1px;
}

.color-square {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid #000;
  border-radius: 3px;
  vertical-align: middle;
  margin: 1px;
}

/* CLASSE AUXILIAR PARA CONTAINER BORDA */
.border-container {
  position: relative;
  display: inline-block;
}

/* CLASSE AUXILIAR PARA CONTAINER BORDA */
.border-container {
  position: relative;
  display: inline-block;
}

/* ESTILOS PARA SEARCH RESULTS EM POPUPS */
.search-results {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  border-top: 1px solid #ddd;
}

/* ESTILOS PARA SEARCH RESULTS EM POPUPS */
.search-results {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  border-top: 1px solid #ddd;
}

.search-results li {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  font-size: 0.9em;
  color: #333;
  transition: background-color 0.3s;
}

.search-results li {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  font-size: 0.9em;
  color: #333;
  transition: background-color 0.3s;
}

.search-results li:hover {
  background-color: #f1f1f1;
}

.search-results li:hover {
  background-color: #f1f1f1;
}

.macro-table th.column-selected {
  background-color: #f39c12 !important;
  color: white !important;
  position: relative;
  z-index: 2;
}

.macro-table th.column-selected {
  background-color: #f39c12 !important;
  color: white !important;
  position: relative;
  z-index: 2;
}

.macro-table td.column-selected {
  box-shadow:
    inset 2px 0 0 #f39c12,
    inset -2px 0 0 #f39c12;
}

.macro-table td.column-selected {
  box-shadow:
    inset 2px 0 0 #f39c12,
    inset -2px 0 0 #f39c12;
}

.titulo {
  background-color: #f7b731;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: #333;
  font-weight: bold;
  margin-top: 35px;
  position: fixed;
  left: 0;
  right: 0;
  z-index: 1;
}

.titulo {
  background-color: #f7b731;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: #333;
  font-weight: bold;
  margin-top: 35px;
  position: fixed;
  left: 0;
  right: 0;
  z-index: 1;
}

/* ESTILOS ESPECÍFICOS PARA CONFIGURADOR DE TABELAS - LAYOUT NO TOPO */
.configurador-layout {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ESTILOS ESPECÍFICOS PARA CONFIGURADOR DE TABELAS - LAYOUT NO TOPO */
.configurador-layout {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.configurador-content {
  flex: 1;
  display: flex;
  overflow: hidden;
  flex-direction: row-reverse;
}

.configurador-content {
  flex: 1;
  display: flex;
  overflow: hidden;
  flex-direction: row-reverse;
}

.excel-grid {
  flex: 1;
  overflow: auto;
  min-height: 0;
}

.excel-grid {
  flex: 1;
  overflow: auto;
  min-height: 0;
}

.sheet-selector-btn.pulsing {
  animation: pulse-animation-debug 0.6s ease-in-out !important;
  box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7) !important;
  border: 2px solid red !important;
}

.sheet-selector-btn.pulsing {
  animation: pulse-animation-debug 0.6s ease-in-out !important;
  box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7) !important;
  border: 2px solid red !important;
}

@keyframes pulse-animation-debug {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    background-color: #ff0000 !important;
  }

  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 15px rgba(255, 0, 0, 0);
    background-color: #ff6666 !important;
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    background-color: inherit;
  }
}

.sheet-selector-btn.active.pulsing {
  animation: pulse-active-animation-debug 0.6s ease-in-out !important;
  box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7) !important;
  border: 2px solid green !important;
}

.sheet-selector-btn.active.pulsing {
  animation: pulse-active-animation-debug 0.6s ease-in-out !important;
  box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7) !important;
  border: 2px solid green !important;
}

@keyframes pulse-active-animation-debug {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7);
    background-color: #00ff00 !important;
  }

  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 15px rgba(0, 255, 0, 0);
    background-color: #66ff66 !important;
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 255, 0, 0);
    background-color: inherit;
  }
}

#btn-show-channels {
  background-color: #6c757d;
  color: #ffffff;
  border: 1px solid #6c757d;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease-in-out;
  font-size: 8.9px;
  font-weight: 100;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transform: translateY(0);
  box-shadow: none;
}

#btn-show-channels {
  background-color: #6c757d;
  color: #ffffff;
  border: 1px solid #6c757d;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease-in-out;
  font-size: 8.9px;
  font-weight: 100;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transform: translateY(0);
  box-shadow: none;
}

#btn-show-channels:not(.active):hover {
  border-color: #545b62;
  transform: translateY(-1px);
}

#btn-show-channels:not(.active):hover {
  border-color: #545b62;
  transform: translateY(-1px);
}

#btn-show-channels.active {
  background-color: #494e53;
  border-color: #43484d;
  box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.5);
  transform: translateY(0);
}

#btn-show-channels.active {
  background-color: #494e53;
  border-color: #43484d;
  box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.5);
  transform: translateY(0);
}

#btn-show-channels i.fa {
  margin-right: 6px;
}

#btn-show-channels i.fa {
  margin-right: 6px;
}

#advanced-settings-modal {
  justify-content: flex-start !important;
  align-items: center !important;
  background-color: rgba(0, 0, 0, 0.1) !important;
}

#advanced-settings-modal .modal-content {
  width: 100% !important;
  height: 43vh !important;
  margin-top: 510px !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 8px;
  overflow-y: auto;
  box-shadow: 10px 10px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  margin: 10px;
}

#advanced-settings-modal .modal-content {
  width: 100% !important;
  height: 43vh !important;
  margin-top: 510px !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 8px;
  overflow-y: auto;
  box-shadow: 10px 10px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  margin: 10px;
}

#advanced-settings-modal .modal-header .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
}

#advanced-settings-modal .modal-header .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
}

#advanced-settings-modal .modal-body {
  flex-grow: 1;
  overflow-y: auto;
}

#advanced-settings-modal .modal-body {
  flex-grow: 1;
  overflow-y: auto;
}

.right-panel .config-image-container button.active,
#btn-td.active,
#btn-le.active,
#btn-ld.active,
#btn-cut-front.active,
#btn-cut-rear.active {
  background-color: #28a745 !important;
  color: white !important;
  border-color: #1e7e34 !important;
  animation: prettyRippleGreen 0s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
  transform: scale(1.06);
  animation: none !important;
  box-shadow: none !important;
}

.right-panel .config-image-container button.active,
#btn-td.active,
#btn-le.active,
#btn-ld.active,
#btn-cut-front.active,
#btn-cut-rear.active {
  background-color: #28a745 !important;
  color: white !important;
  border-color: #1e7e34 !important;
  animation: prettyRippleGreen 0s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
  transform: scale(1.06);
  animation: none !important;
  box-shadow: none !important;
}

.right-panel .config-image-container button:not(.active) {
  transform: scale(1);
}

.right-panel .config-image-container button:not(.active) {
  transform: scale(1);
}

#export-txt-btn {
  background-color: #8400ff;
  color: #ffffff;
  border: 1px solid #6c757d;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease-in-out;
  transform: translateY(0);
  box-shadow: none;
  font-size: 9px;
  font-weight: 50;
  appearance: none;
}

#export-txt-btn {
  background-color: #8400ff;
  color: #ffffff;
  border: 1px solid #6c757d;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease-in-out;
  transform: translateY(0);
  box-shadow: none;
  font-size: 9px;
  font-weight: 50;
  appearance: none;
}

#export-txt-btn:hover {
  transform: translateY(-1px);
}

#export-txt-btn:hover {
  transform: translateY(-1px);
}

.buttons-section {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.buttons-section {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.buttons-left-column {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.buttons-left-column {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.buttons-right-column {
  flex: 1;
  display: flex;
  gap: 5px;
  align-items: stretch;
}

.button-row button {
  flex: 1;
  min-width: 0;
}

.button-row button {
  flex: 1;
  min-width: 0;
}

.buttons-right-column button {
  flex: 1;
  height: 100%;
  font-size: 11px;
}

.buttons-right-column button {
  flex: 1;
  height: 100%;
  font-size: 11px;
}

.cut-function-btn {
  font-size: 10px;
}

.cut-function-btn {
  font-size: 10px;
}

.buttons-right-column button.active,
#btn-cut-front.active,
#btn-cut-rear.active,
.cut-function-btn.active {
  background-color: #00cc00 !important;
  color: white !important;
  border-color: #188d48 !important;
  transform: scale(1.06);
  animation: unset !important;
  box-shadow: none !important;
}

.buttons-right-column button.active,
#btn-cut-front.active,
#btn-cut-rear.active,
.cut-function-btn.active {
  background-color: #00cc00 !important;
  color: white !important;
  border-color: #188d48 !important;
  transform: scale(1.06);
  animation: unset !important;
  box-shadow: none !important;
}

.buttons-right-column .control-btn.active {
  background-color: #00cc00 !important;
  color: white !important;
  border-color: #188d48 !important;
  transform: scale(1.06);
}

.buttons-right-column .control-btn.active {
  background-color: #00cc00 !important;
  color: white !important;
  border-color: #188d48 !important;
  transform: scale(1.06);
}

.buttons-section button.active {
  background-color: #00cc00 !important;
  border-color: #188d48 !important;
  color: white !important;
  transform: scale(1.06);
}

.buttons-section button.active {
  background-color: #00cc00 !important;
  border-color: #188d48 !important;
  color: white !important;
  transform: scale(1.06);
}

.main-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: calc(100vh - 80px);
}

.top-wrapper {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
  flex-shrink: 0;
  margin-bottom: 20px;
  margin-top: -30px;
}

.top-wrapper {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
  flex-shrink: 0;
  margin-bottom: 20px;
  margin-top: -30px;
}

.top-wrapper .center-panel {
  flex: none;
  width: auto;
  position: static;
  border-bottom: 1px solid #e9ecef;
  padding: 0;
  margin: 0;
  align-items: flex-start;
  min-height: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.top-wrapper .center-panel {
  flex: none;
  width: auto;
  position: static;
  border-bottom: 1px solid #e9ecef;
  padding: 0;
  margin: 0;
  align-items: flex-start;
  min-height: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.top-wrapper .botoes-funcoes-panel {
  flex: none;
  width: 625px;
  margin-left: 585px;
  margin-top: 10px;
  position: static;
  left: auto;
  top: auto;
  max-width: none !important;
}

.top-wrapper .botoes-funcoes-panel {
  flex: none;
  width: 625px;
  margin-left: 585px;
  margin-top: 10px;
  position: static;
  left: auto;
  top: auto;
  max-width: none !important;
}

.tabela-flash-wrapper {
  flex-grow: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tabela-flash-wrapper {
  flex-grow: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tabela-flash-wrapper .excel-container {
  flex-grow: 1;
  min-height: 10px;
  max-height: 500px;
  width: 900px;
}

.tabela-flash-wrapper .excel-container {
  flex-grow: 1;
  min-height: 10px;
  max-height: 500px;
  width: 900px;
}

.botoes-funcoes-panel {
  flex-wrap: wrap;
  gap: 6px;
}

.botoes-funcoes-panel {
  flex-wrap: wrap;
  gap: 6px;
}

.botoes-funcoes-panel .btn {
  height: 30px !important;
  padding: 0 !important;
  font-size: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
  flex: none !important;
}

.botoes-funcoes-panel .btn {
  height: 30px !important;
  padding: 0 !important;
  font-size: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
  flex: none !important;
}

.container-multi-tabela {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.container-multi-tabela .coluna-tabela {
  flex: 1 1 23%;
  min-width: 280px;
}

.container-multi-tabela .tabela-flash-wrapper .excel-container {
  width: 100% !important;
  max-height: 400px;
}

.tabelas-container-flex {
  display: flex;
  flex-direction: row;
  gap: 5px;
  width: 100%;
}

.tabela-individual-wrapper {
  flex: 1;
  min-width: 0;

  display: flex;
  flex-direction: column;
}


.tabela-individual-wrapper .excel-grid {
  flex-grow: 1;
}

.tabelas-container-flex {
  display: flex;
  flex-direction: row;
  gap: 5px;
  width: 100%;
}

.tabela-individual-wrapper {
  flex: 1;
  min-width: 0;

  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.total-ms-container {
  padding: 1px 1px;
  background-color: #f0f2f5;
  border-bottom: 1px solid #d0d7de;
  font-size: 12px;
  text-align: left;
  min-height: 25px;
  box-sizing: border-box;
}

.tabela-individual-wrapper .excel-grid {
  flex-grow: 1;
}

.coluna-tabela {
  width: 100%;
  max-width: none;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

.tabela-flash-wrapper {
  width: 100%;
  max-width: none;
}

.principal {
  width: 100% !important;
  padding: 0 20px;
  box-sizing: border-box;
}

.coluna-tabela {
  width: 100%;
  max-width: none;
  padding: 0;
  position: static;
  left: auto;
  transform: none;
}


.tabela-flash-wrapper {
  width: 100%;
  max-width: none;
}

.tabela-flash-wrapper .excel-container {
  width: 100% !important;
  max-height: 400px;
}

.tabelas-container-flex {
  display: flex;
  flex-direction: row;
  gap: 5px;
  width: 100%;
}

.tabela-individual-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.total-ms-container {
  padding: 1px 1px;
  background-color: #f0f2f5;
  border-bottom: 1px solid #d0d7de;
  font-size: 12px;
  text-align: left;
  min-height: 25px;
  box-sizing: border-box;
}

.tabela-individual-wrapper .excel-grid {
  flex-grow: 1;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #95a5a6;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin-bottom: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #95a5a6;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin-bottom: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.accordion-header:hover {
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
  border-color: #d6d6d6;
}

.accordion-header:hover {
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
  border-color: #d6d6d6;
}

.accordion-header.active {
  border-left-color: #f39c12;
  background-color: #fffbf2;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  margin-bottom: 0;
  border-bottom-color: transparent;
}

.accordion-header.active {
  border-left-color: #f39c12;
  background-color: #fffbf2;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  margin-bottom: 0;
  border-bottom-color: transparent;
}

/* Texto do Título */
.accordion-title {
  font-size: 11px;
  font-weight: 700;
  color: #2c3e50;
  /* Azul escuro */
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Ícone da Seta */
.accordion-icon {
  font-size: 12px;
  color: #95a5a6;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

/* Ícone da Seta */
.accordion-icon {
  font-size: 12px;
  color: #95a5a6;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

/* Ícone quando ativo */
.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
  color: #f39c12;
}

/* Ícone quando ativo */
.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
  color: #f39c12;
}

/* Container do Conteúdo */
.accordion-content {
  display: none;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-top: 1px solid #f0f0f0;
  /* Linha sutil separando header */
  border-radius: 0 0 6px 6px;
  padding: 0;
  /* Padding zero para a lista encostar nas bordas */
  margin-bottom: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  /* Garante que bordas arredondadas funcionem */
  animation: slideDown 0.25s ease-out forwards;
}

/* Classe para mostrar o conteúdo */
.accordion-content.show {
  display: block;
}

/* Classe para mostrar o conteúdo */
.accordion-content.show {
  display: block;
}

/* Estilização da lista interna */
.accordion-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Estilização da lista interna */
.accordion-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.accordion-content li {
  font-size: 11px;
  color: #555;
  padding: 8px 15px;
  border-bottom: 1px solid #f1f1f1;
  display: flex;
  align-items: center;
}

.accordion-content li {
  font-size: 11px;
  color: #555;
  padding: 8px 15px;
  border-bottom: 1px solid #f1f1f1;
  display: flex;
  align-items: center;
}

.accordion-content li:last-child {
  border-bottom: none;
}

.accordion-content li:last-child {
  border-bottom: none;
}

/* Efeito Zebrado (Linhas alternadas) */
.accordion-content li:nth-child(even) {
  background-color: #fafafa;
}

/* Efeito Zebrado (Linhas alternadas) */
.accordion-content li:nth-child(even) {
  background-color: #fafafa;
}

/* Destaque no nome da função dentro da lista */
.accordion-content .func-name {
  font-weight: 700;
  color: #2c3e50;
  margin-right: 5px;
  min-width: 80px;
  /* Alinha os textos */
  display: inline-block;
}

/* Mensagem de vazio */
.accordion-content .no-settings {
  padding: 15px;
  text-align: center;
  color: #999;
  font-style: italic;
  font-size: 11px;
  margin: 0;
}

/* Mensagem de vazio */
.accordion-content .no-settings {
  padding: 15px;
  text-align: center;
  color: #999;
  font-style: italic;
  font-size: 11px;
  margin: 0;
}

/* Animação de entrada */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- CORREÇÃO: Barra Superior e Botões --- */

/* 1. Container Principal */
.center-panel>div {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  /* Impede que quebre linha */
  overflow: hidden !important;
  gap: 8px !important;
  /* Um pouco mais de respiro */
  width: 100% !important;
  /* Garante uso total do pai */
}

/* 2. Título (Nome da Barra): O "Sacrifício" */
/* É este elemento que deve encolher se faltar espaço, não os botões */
.center-panel .panel-title {
  flex: 1 1 auto !important;
  /* Cresce para ocupar espaço, mas encolhe se precisar */
  min-width: 0 !important;
  /* TRUQUE CRUCIAL: Permite que o flexbox corte o texto */
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  /* Coloca "..." no fim do texto cortado */
  margin: 0 !important;
  font-size: 12px !important;
  font-weight: bold !important;
  text-align: left !important;
}

/* 3. Wrapper dos Botões: A Prioridade */
/* Este bloco nunca deve encolher */
#layout-actions-wrapper {
  flex: 0 0 auto !important;
  /* 0 grow, 0 shrink, auto basis = Tamanho fixo do conteúdo */
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  justify-content: flex-end !important;
}

/* 4. Estilo dos Botões */
#layout-actions-wrapper .btn {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  /* Segurança extra: O botão jamais encolhe */
  height: 26px !important;
  /* Altura confortável */
  padding: 0 10px !important;
  font-size: 11px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}

#layout-actions-wrapper .btn i {
  margin-right: 4px !important;
  font-size: 10px !important;
}

/* Estilo dos botões de seleção de Módulo */
.btn-group-mb {
  display: flex;
  gap: 2px;
}

.btn-mb {
  border: 1px solid #ced4da;
  background-color: #fff;
  color: #495057;
  font-size: 10px;
  font-weight: bold;
  width: 24px;
  height: 24px;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
}

.btn-mb {
  border: 1px solid #ced4da;
  background-color: #fff;
  color: #495057;
  font-size: 10px;
  font-weight: bold;
  width: 24px;
  height: 24px;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
}

.btn-mb:hover {
  background-color: #e9ecef;
}

.btn-mb:hover {
  background-color: #e9ecef;
}

.btn-mb.active {
  background-color: #f39c12;
  /* Laranja */
  color: white;
  border-color: #e67e22;
}

.tabelas-container-flex .tabela-individual-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
}

.tabelas-container-flex .tabela-individual-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
}

.tabelas-container-flex.modulos-1 .tabela-individual-wrapper:nth-child(n + 2) {
  display: none !important;
}

.tabelas-container-flex.modulos-1 .tabela-individual-wrapper:nth-child(n + 2) {
  display: none !important;
}

.tabelas-container-flex.modulos-2 .tabela-individual-wrapper:nth-child(n + 3) {
  display: none !important;
}

.tabelas-container-flex.modulos-2 .tabela-individual-wrapper:nth-child(n + 3) {
  display: none !important;
}

.tabelas-container-flex.modulos-3 .tabela-individual-wrapper:nth-child(n + 4) {
  display: none !important;
}

.tabelas-container-flex.modulos-3 .tabela-individual-wrapper:nth-child(n + 4) {
  display: none !important;
}

/* Container do Tooltip */
#module-info-tooltip {
  display: none;
  /* Escondido por padrão */
  position: absolute;
  z-index: 10000;
  /* Bem acima de tudo */
  background-color: rgba(33, 37, 41, 0.95);
  /* Fundo escuro quase sólido */
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  pointer-events: none;
  /* O mouse "atravessa" ele para não piscar */
  min-width: 150px;
  border: 1px solid #495057;
  backdrop-filter: blur(2px);
}

/* Cabeçalho do Tooltip */
#module-info-tooltip h4 {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: #ffc107;
  /* Amarelo destaque */
  border-bottom: 1px solid #495057;
  padding-bottom: 4px;
  text-align: center;
}

/* Linhas de informação */
.tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  padding: 2px 4px;
  border-radius: 3px;
}

/* Linhas de informação */
.tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  padding: 2px 4px;
  border-radius: 3px;
}

/* Zebrado suave nas linhas */
.tooltip-row:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Zebrado suave nas linhas */
.tooltip-row:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Bolinha da cor */
.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Bolinha da cor */
.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.info-text {
  flex-grow: 1;
}

/* =========================================
   ESTILOS DO MODAL DE IMPORTAÇÃO MULTI-MB
   ========================================= */

/* Fundo escuro que cobre a tela inteira */
.modal-overlay-mb {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  /* Fundo semi-transparente */
  backdrop-filter: blur(3px);
  /* Desfoque leve no fundo */
  z-index: 10000;
  /* Muito alto para ficar por cima de tudo */
  display: none;
  /* Começa escondido */
  justify-content: center;
  align-items: center;
}

/* A caixa branca do modal */
.modal-content-mb {
  background-color: #fff;
  width: 450px;
  max-width: 90%;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideDown 0.3s ease-out;
}

/* A caixa branca do modal */
.modal-content-mb {
  background-color: #fff;
  width: 450px;
  max-width: 90%;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Cabeçalho do Modal */
.modal-header-mb {
  background-color: #f8f9fa;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Cabeçalho do Modal */
.modal-header-mb {
  background-color: #f8f9fa;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header-mb h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-header-mb h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-btn-mb {
  cursor: pointer;
  font-size: 20px;
  color: #999;
  transition: color 0.2s;
}

.close-btn-mb:hover {
  color: #e74c3c;
}

/* Corpo do Modal */
.modal-body-mb {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

/* Corpo do Modal */
.modal-body-mb {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

/* Lista de Inputs */
.import-mb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Lista de Inputs */
.import-mb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.import-row {
  display: flex;
  align-items: center;
  background: #fdfdfd;
  border: 1px solid #e0e0e0;
  padding: 10px;
  border-radius: 6px;
  transition: all 0.2s;
}

.import-row {
  display: flex;
  align-items: center;
  background: #fdfdfd;
  border: 1px solid #e0e0e0;
  padding: 10px;
  border-radius: 6px;
  transition: all 0.2s;
}

/* Estilo quando um arquivo é selecionado */
.import-row.file-selected {
  background-color: #e8f5e9;
  border-color: #27ae60;
}

/* Estilo quando um arquivo é selecionado */
.import-row.file-selected {
  background-color: #e8f5e9;
  border-color: #27ae60;
}

.mb-label {
  font-weight: bold;
  background: #34495e;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 15px;
  min-width: 60px;
  text-align: center;
}

.mb-label {
  font-weight: bold;
  background: #34495e;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 15px;
  min-width: 60px;
  text-align: center;
}

.mb-input-file {
  flex: 1;
  font-size: 12px;
}

.mb-input-file {
  flex: 1;
  font-size: 12px;
}

/* Rodapé */
.modal-footer-mb {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  background-color: #f8f9fa;
  text-align: right;
}

/* Rodapé */
.modal-footer-mb {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  background-color: #f8f9fa;
  text-align: right;
}

.btn-confirmar-mb {
  background-color: #27ae60;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-confirmar-mb {
  background-color: #27ae60;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-confirmar-mb:hover {
  background-color: #219150;
}

.btn-confirmar-mb:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Abas de seleção de MB */
.mb-selector-tabs {
  display: flex;
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  padding: 0 10px;
  margin-bottom: 15px;
}

.mb-tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 500;
  color: #6c757d;
  transition: all 0.3s ease;
  font-size: 14px;
}

.mb-tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 500;
  color: #6c757d;
  transition: all 0.3s ease;
  font-size: 14px;
}

.mb-tab-btn.active {
  color: #007bff;
  border-bottom-color: #007bff;
  background: white;
}

.mb-tab-btn.active {
  color: #007bff;
  border-bottom-color: #007bff;
  background: white;
}

.mb-tab-btn:hover:not(.active) {
  color: #495057;
  background: #e9ecef;
}

.mb-tab-btn:hover:not(.active) {
  color: #495057;
  background: #e9ecef;
}

/* Container para conteúdo de cada MB */
.mb-tab-content {
  display: none;
}

/* Container para conteúdo de cada MB */
.mb-tab-content {
  display: none;
}

.mb-tab-content.active {
  display: block;
}

.mb-tab-content.active {
  display: block;
}

/* Configurações compartilhadas */
.shared-settings {
  border-top: 2px solid #e9ecef;
  padding-top: 20px;
  margin-top: 20px;
}

/* Abas de Seleção de MB no Modal Avançado */
.mb-selector-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.mb-tab-btn {
  padding: 8px 20px;
  border: 1px solid #ccc;
  background-color: #f8f9fa;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.2s;
}

.mb-tab-btn {
  padding: 8px 20px;
  border: 1px solid #ccc;
  background-color: #f8f9fa;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.2s;
}

.mb-tab-btn.active {
  background-color: #3498db;
  color: white;
  border-color: #2980b9;
}

.mb-tab-btn.active {
  background-color: #3498db;
  color: white;
  border-color: #2980b9;
}

/* Conteúdo das Abas MB */
.mb-tab-content {
  display: none;
  /* Oculto por padrão */
}

.mb-tab-content.active {
  display: block;
  /* Visível quando ativo */
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Estilos para as Mini Abas do Painel Lateral */
.mini-mb-tabs {
  display: flex;
  justify-content: space-between;
  background-color: #f1f1f1;
  border-radius: 4px;
  padding: 2px;
  margin-bottom: 8px;
  border: 1px solid #ddd;
}

.mini-tab-btn {
  flex: 1;
  padding: 4px 0;
  font-size: 11px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 3px;
  color: #666;
  font-weight: 600;
  transition: all 0.2s;
}

.mini-tab-btn {
  flex: 1;
  padding: 4px 0;
  font-size: 11px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 3px;
  color: #666;
  font-weight: 600;
  transition: all 0.2s;
}

.mini-tab-btn:hover {
  background-color: #e2e2e2;
}

.mini-tab-btn:hover {
  background-color: #e2e2e2;
}

.mini-tab-btn.active {
  background-color: #fff;
  color: #2980b9;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mini-tab-btn.active {
  background-color: #fff;
  color: #2980b9;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Conteúdo das Mini Abas */
.mini-tab-content {
  display: none;
  animation: fadeIn 0.2s;
}

/* Conteúdo das Mini Abas */
.mini-tab-content {
  display: none;
  animation: fadeIn 0.2s;
}

.mini-tab-content.active {
  display: block;
}

.mini-tab-content.active {
  display: block;
}

.special-func-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.special-func-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.special-func-list li {
  font-size: 11px;
  border-bottom: 1px solid #eee;
  padding: 4px 0;
  color: #333;
  line-height: 1.4;
}

.special-func-list li {
  font-size: 11px;
  border-bottom: 1px solid #eee;
  padding: 4px 0;
  color: #333;
  line-height: 1.4;
}

.special-func-list li:last-child {
  border-bottom: none;
}

.special-func-list li:last-child {
  border-bottom: none;
}

.func-label {
  font-weight: bold;
  color: #2c3e50;
  display: block;
  /* Força quebra de linha para o nome da função */
  margin-bottom: 1px;
}

.blocks-list {
  color: #666;
  font-size: 10px;
}

/* Estilos para as Mini Abas (MB 1, 2, 3, 4) no Painel Direito */
.mini-mb-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 8px;
  background-color: #f8f9fa;
}

.mini-tab-btn {
  flex: 1;
  padding: 6px 2px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  color: #666;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.mini-tab-btn {
  flex: 1;
  padding: 6px 2px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  color: #666;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.mini-tab-btn:hover {
  background-color: #e9ecef;
  color: #333;
}

.mini-tab-btn:hover {
  background-color: #e9ecef;
  color: #333;
}

.mini-tab-btn.active {
  color: #007bff;
  /* Azul padrão */
  border-bottom: 2px solid #007bff;
  background-color: #fff;
  font-weight: bold;
}

.mini-tab-content {
  display: none;
  /* Esconde por padrão */
  padding: 5px;
  animation: fadeIn 0.3s;
}

.mini-tab-content.active {
  display: block;
  /* Mostra apenas o ativo */
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Lista de itens dentro do JumpTabela */
.jumptabela-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Lista de itens dentro do JumpTabela */
.jumptabela-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.jumptabela-list li {
  font-size: 11px;
  color: #495057;
  padding: 3px 0;
  border-bottom: 1px solid #eee;
}

.jumptabela-list li {
  font-size: 11px;
  color: #495057;
  padding: 3px 0;
  border-bottom: 1px solid #eee;
}

.jumptabela-list li:last-child {
  border-bottom: none;
}

.jumptabela-list li:last-child {
  border-bottom: none;
}

.no-settings {
  text-align: center;
  padding: 10px;
  color: #adb5bd;
  font-size: 11px;
  font-style: italic;
}

/* Estilo para o container de abas dentro do modal */
.mb-tabs-header {
  display: flex;
  background-color: #f1f3f5;
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 15px;
}

.mb-tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 600;
  color: #6c757d;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.mb-tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 600;
  color: #6c757d;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.mb-tab-btn:hover {
  background-color: #e9ecef;
  color: #495057;
}

.mb-tab-btn:hover {
  background-color: #e9ecef;
  color: #495057;
}

.mb-tab-btn.active {
  color: #0d6efd;
  border-bottom-color: #0d6efd;
  background-color: white;
}

.mb-tab-btn.active {
  color: #0d6efd;
  border-bottom-color: #0d6efd;
  background-color: white;
}

/* Oculta conteúdo inativo */
.mb-tab-content {
  display: none;
}

/* Oculta conteúdo inativo */
.mb-tab-content {
  display: none;
}

.mb-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

.mb-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

/* Ajuste no Grid dos Checkboxes */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 colunas */
  gap: 10px;
  margin-bottom: 15px;
}

.jumptabela-group h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

/* Estilo para o novo Display de Tempo na barra superior */
.simulation-timer-display {
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: #2c3e50;
  /* Cor escura para contraste */
  color: #fff;
  padding: 0 12px;
  height: 32px;
  /* Mesma altura dos botões */
  border-radius: 4px;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.simulation-timer-display strong {
  font-family: monospace;
  font-size: 15px;
  color: #f1c40f;
  /* Amarelo destaque para o número */
}

/* Estilo para a etiqueta MB acima de cada tabela */
.mb-label-header {
  background-color: #f1c40f;
  /* Azul acinzentado */
  color: white;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  padding: 3px 0;
  border-radius: 4px 4px 0 0;
  /* Arredonda só em cima */
  letter-spacing: 1px;
  margin-bottom: 0;
  border: 1px solid #bdc3c7;
  border-bottom: none;
  /* Remove borda inferior para colar na tabela */
}

/* Ajuste fino para a tabela colar na etiqueta */
.tabela-individual-wrapper .excel-grid {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: none;
  /* Remove borda superior da tabela para unir com a etiqueta */
}

/* Ajuste na toolbar para garantir alinhamento */
.excel-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 5px;
  background: #ecf0f1;
  border-bottom: 1px solid #bdc3c7;
}

/* ============================================================
   CORREÇÃO GLOBAL DE ANIMAÇÃO (FP, DS, CUT, AUX)
   Adicione isso ao final do seu arquivo CSS
   ============================================================ */

/* 1. Define a animação keyframe (caso não esteja injetada pelo JS) */
@keyframes globalPulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    transform: scale(1);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
    transform: scale(1.06);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    transform: scale(1);
  }
}

button.pulsing-continuously,
.control-btn.pulsing-continuously,
.sheet-selector-btn.pulsing-continuously,
.buttons-left-column button.active,
/* Garante que os FPs fiquem verdes mesmo sem pulso */
.pulsing-continuously {
  background-color: #28a745 !important;
  /* Verde Google */
  color: white !important;
  border-color: #1e7e34 !important;
  background-image: none !important;
  animation: globalPulseGreen 2s infinite !important;
  opacity: 1 !important;
  z-index: 100;
  /* Garante que a sombra fique por cima */
}

/* Garante que o estado 'active' estático dos botões da esquerda (FPs) seja verde também */
.buttons-left-column button.active {
  background-color: #00cc00 !important;
  border-color: #188d48 !important;
  color: white !important;
  transform: scale(1.06);
}

/* Garante que o estado 'active' estático dos botões da esquerda (FPs) seja verde também */
.buttons-left-column button.active {
  background-color: #00cc00 !important;
  border-color: #188d48 !important;
  color: white !important;
  transform: scale(1.06);
}

@keyframes prettyRippleGreen {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.8);
  }

  10% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 20px rgba(40, 167, 69, 0);
  }
}

.buttons-left-column button.active,
.buttons-left-column button.pulsing-continuously,
.buttons-right-column button.active,
.buttons-right-column button.pulsing-continuously,
#btn-cut-front.active,
#btn-cut-rear.active {
  background-color: #28a745 !important;
  background-image: none !important;
  color: white !important;
  border-color: #1e7e34 !important;
  animation: prettyRippleGreen 0s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
  opacity: 1 !important;
  z-index: 100;
  box-shadow: none;
  outline: none !important;
}

.buttons-left-column button.active,
.buttons-left-column button.pulsing-continuously,
.buttons-right-column button.active,
.buttons-right-column button.pulsing-continuously,
#btn-cut-front.active,
#btn-cut-rear.active {
  background-color: #28a745 !important;
  background-image: none !important;
  color: white !important;
  border-color: #1e7e34 !important;
  animation: prettyRippleGreen 0s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
  opacity: 1 !important;
  z-index: 100;
  box-shadow: none;
  outline: none !important;
}

.btn-amarelo.active,
.btn-amarelo.pulsing-continuously {
  background-color: #28a745 !important;
  color: white !important;
}

.snap-guide {
  position: absolute;
  background-color: #ff0000;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.8;
}

/* Espessura da linha */
.snap-guide-v {
  width: 1px;
}

.snap-guide-h {
  height: 1px;
}

.measure-tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  pointer-events: none;
  z-index: 10000;
  display: none;
  font-family: sans-serif;
}

/* Handles de Interação */
.interaction-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #fff;
  border: 1px solid #333;
  border-radius: 50%;
  z-index: 1000;
  display: none;
  /* Escondido por padrão */
}

/* Mostra handles apenas quando o bloco está selecionado E em modo de edição */
.block-container.selected .interaction-handle {
  display: block;
}

/* Mostra handles apenas quando o bloco está selecionado E em modo de edição */
.block-container.selected .interaction-handle {
  display: block;
}

/* Posição do Redimensionar (Canto Inferior Direito) */
.resize-handle {
  bottom: -5px;
  right: -5px;
  cursor: se-resize;
  background-color: #3498db;
  /* Azul */
}

/* Posição do Rotacionar (Topo Centro) */
.rotate-handle {
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  cursor: grab;
  background-color: #e74c3c;
  /* Vermelho */
}

.rotate-handle:active {
  cursor: grabbing;
}

.rotate-handle:active {
  cursor: grabbing;
}

/* Tooltip de Medidas */
.measure-tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  pointer-events: none;
  z-index: 9999;
  display: none;
}