/* dxf_style.css */

.dxf-export-panel {
  position: fixed;
  top: 95px;
  right: 118px;
  width: 315px;
  max-width: calc(100vw - 28px);
  z-index: 5700;
  background: var(--tsa-white, rgba(255,255,255,0.94));
  color: #102a4c;
  border-radius: 12px;
  padding: 12px 14px;
  border-top: 5px solid var(--tsa-blue, #1f4f9a);
  box-shadow: var(--tsa-shadow, 0 6px 18px rgba(0,0,0,0.28));
  font-family: Arial, sans-serif;
}

.dxf-export-panel.is-hidden {
  display: none !important;
}

.dxf-export-title {
  color: var(--tsa-blue, #1f4f9a);
  font-size: 14px;
  font-weight: 800;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--tsa-light-blue, #8faee0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  user-select: none;
}

.dxf-export-drag-handle {
  cursor: move;
}

.dxf-export-help {
  font-size: 12px;
  line-height: 1.35;
  margin-bottom: 10px;
  color: #334155;
}

.dxf-export-list {
  max-height: 235px;
  overflow-y: auto;
  border: 1px solid #c9d3e4;
  border-radius: 9px;
  background: #fff;
}

.dxf-export-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border-bottom: 1px solid #edf1f7;
  cursor: pointer;
}

.dxf-export-item:last-child {
  border-bottom: none;
}

.dxf-export-item:hover {
  background: #f7faff;
}

.dxf-export-checkbox {
  flex: 0 0 auto;
  accent-color: var(--tsa-blue, #1f4f9a);
}

.dxf-export-item-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dxf-export-item-name {
  font-size: 13px;
  font-weight: 800;
  color: #102a4c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dxf-export-item-meta {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.dxf-empty-message {
  padding: 12px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
}

.dxf-export-actions-secondary,
.dxf-export-actions-primary {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}

.dxf-secondary-btn,
.dxf-primary-btn {
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 800;
  font-family: Arial, sans-serif;
}

.dxf-secondary-btn {
  flex: 1;
  padding: 7px 8px;
  background: #e4e8ef;
  color: #102a4c;
}

.dxf-secondary-btn:hover {
  background: #d7deea;
}

.dxf-primary-btn {
  width: 100%;
  padding: 9px 10px;
  background: var(--tsa-blue, #1f4f9a);
  color: #fff;
}

.dxf-primary-btn:hover {
  filter: brightness(1.08);
}

.dxf-export-status {
  min-height: 16px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.dxf-export-status.is-error {
  color: var(--tsa-red, #d71920);
}

@media (max-width: 700px) {
  .dxf-export-panel {
    display: none !important;
  }
}


.dxf-points-btn {
  background: #102a4c;
}

.dxf-points-btn:hover {
  filter: brightness(1.1);
}

/* --------------------
   Hide DXF tools on phones/tablets in both portrait and landscape
-------------------- */
@media (pointer: coarse), (hover: none), (max-width: 900px), (max-height: 520px) {
  .dxf-export-panel {
    display: none !important;
    pointer-events: none !important;
  }
}
