*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13px;
  background: #c8c8c8;
  height: 100vh;
  overflow: hidden;
}

#app { display: flex; height: 100vh; overflow: hidden; }

/* ══════════════════════════════════════════════════════
   DASHBOARD
══════════════════════════════════════════════════════ */
#dashboard {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
}

.dashboard-container {
  width: 100%;
  max-width: 800px;
  padding: 40px 20px;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 50px;
}

.dashboard-header h1 {
  color: #f0f0f0;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}

.dashboard-content {
  background: #242424;
  border-radius: 8px;
  padding: 30px;
  border: 1px solid #3a3a3a;
}

.projects-section h2 {
  color: #f0f0f0;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.projects-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
  min-height: 100px;
}

.project-card {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:hover {
  background: #333;
  border-color: #4a8fd0;
  box-shadow: 0 4px 12px rgba(74, 143, 208, 0.2);
}

.project-name {
  color: #f0f0f0;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  word-break: break-word;
}

.project-meta {
  font-size: 11px;
  color: #666;
  line-height: 1.5;
}

.project-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.project-actions button {
  flex: 1;
  padding: 5px 8px;
  font-size: 11px;
  border: 1px solid #3a3a3a;
  border-radius: 3px;
  background: #1a1a1a;
  color: #ccc;
  cursor: pointer;
  transition: all 0.1s;
}

.project-actions button:hover {
  background: #3a3a3a;
  color: #fff;
}

.project-actions button.delete:hover {
  background: #5a2020;
  color: #e08080;
  border-color: #5a2020;
}

.btn-primary {
  background: #1a3d5c !important;
  border: 1px solid #4a8fd0 !important;
  color: #7ec8f0 !important;
  padding: 10px 16px !important;
  font-size: 13px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  width: 100% !important;
  transition: all 0.2s !important;
}

.btn-primary:hover {
  background: #245080 !important;
  color: #fff !important;
}

.no-projects-text {
  color: #666;
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
}

/* ══════════════════════════════════════════════════════
   EDITOR HEADER
══════════════════════════════════════════════════════ */
.project-header {
  flex: 0 0 auto;
  background: #1c1c1c;
  border-bottom: 1px solid #3a3a3a;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.project-header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 0;
}

.project-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
}

.btn-text {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  color: #ccc;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  transition: all 0.1s;
}

.btn-text:hover {
  background: #363636;
  color: #fff;
  border-color: #4a8fd0;
}

#current-project-name {
  color: #f0f0f0;
  font-size: 16px;
  font-weight: 700;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auto-save-indicator {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 3px;
  background: #1a3d28;
  color: #7ecb97;
  border: 1px solid #2a6040;
  white-space: nowrap;
  transition: all 0.3s;
}

.auto-save-indicator.saving {
  background: #3d3d1a;
  color: #cbcb7e;
  border-color: #606020;
}

/* ══════════════════════════════════════════════════════
   EDITOR & SIDEBAR
══════════════════════════════════════════════════════ */
#editor {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.editor-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}


/* ══════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════ */
#sidebar {
  width: 226px;
  flex-shrink: 0;
  background: #1c1c1c;
  color: #c0c0c0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 14px 12px;
  gap: 18px;
}

#sidebar h2 { color: #f0f0f0; font-size: 14px; font-weight: 700; }

#sidebar h3 {
  color: #666;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.sidebar-hint {
  font-size: 10px;
  color: #555;
  margin-bottom: 6px;
  line-height: 1.4;
}

.btn {
  display: block;
  width: 100%;
  padding: 7px 10px;
  margin-bottom: 5px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  color: #ccc;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  font-family: inherit;
  transition: background 0.1s;
  line-height: 1.4;
}
.btn:hover { background: #363636; color: #fff; }
.btn:last-child { margin-bottom: 0; }

.btn-print { background: #1a3d28; border-color: #2a6040; color: #7ecb97; }
.btn-print:hover { background: #21502f; }
.btn-danger { border-color: #5a2020; color: #c07070; }
.btn-danger:hover { background: #3a1515; color: #e08080; }

#page-indicator { font-size: 11px; color: #666; padding: 2px 0 7px; text-align: center; }

/* ── Layout lock bar ──────────────────────────────────── */
#layout-lock-bar { margin-bottom: 6px; }

.btn-layout-lock {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
  text-align: left;
  transition: background 0.12s, color 0.12s;
}
.btn-layout-lock.locked {
  background: #2a1515;
  border-color: #5a2020;
  color: #c07070;
}
.btn-layout-lock.locked:hover { background: #3a1a1a; color: #e08080; }
.btn-layout-lock.unlocked {
  background: #1a2a1a;
  border-color: #2a5030;
  color: #7ecb97;
}
.btn-layout-lock.unlocked:hover { background: #1f3520; color: #9ee0b0; }

/* Dim layout thumbnails when page is locked */
#layout-picker.picker-locked .layout-btn {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Layout picker ────────────────────────────────────── */
#layout-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.layout-btn {
  background: #252525;
  border: 2px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.12s, background 0.12s;
}
.layout-btn:hover { background: #333; border-color: #555; }
.layout-btn.active { border-color: #4a8fd0; background: #1a2e45; }
.layout-btn svg { width: 100%; height: auto; display: block; }

/* ── Symbol panel ─────────────────────────────────────── */
#symbol-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

/* Symbol color picker row */
.sym-color-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}
.sym-color-label {
  font-size: 10px;
  color: #666;
  flex-shrink: 0;
}
.sym-color-input {
  width: 28px;
  height: 22px;
  border: 1px solid #444;
  border-radius: 3px;
  padding: 1px;
  background: #2e2e2e;
  cursor: pointer;
  flex-shrink: 0;
}

.sym-btn {
  background: #252525;
  border: 1px solid #3a3a3a;
  color: #ccc;
  border-radius: 3px;
  padding: 3px 5px;
  cursor: grab;
  font-size: 13px;
  line-height: 1.4;
  min-width: 26px;
  text-align: center;
  transition: background 0.1s, color 0.1s;
  user-select: none;
}
.sym-btn:hover { background: #4a8fd0; color: #fff; border-color: #4a8fd0; }
.sym-btn:active { cursor: grabbing; }

/* ══════════════════════════════════════════════════════
   MAIN AREA (toolbar + canvas)
══════════════════════════════════════════════════════ */
#main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════
   TEXT FORMATTING TOOLBAR
══════════════════════════════════════════════════════ */
#text-toolbar {
  flex: 0 0 auto;
  background: #242424;
  border-bottom: 1px solid #3a3a3a;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  min-height: 38px;
}

.tb-group {
  display: flex;
  align-items: center;
  gap: 2px;
}

.tb-sep {
  width: 1px;
  height: 20px;
  background: #3a3a3a;
  margin: 0 4px;
  flex-shrink: 0;
}

.tb-btn {
  background: #2e2e2e;
  border: 1px solid #444;
  color: #ccc;
  border-radius: 3px;
  padding: 3px 7px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  line-height: 1.5;
  min-width: 28px;
  text-align: center;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}
.tb-btn:hover { background: #3e3e3e; color: #fff; }
.tb-btn.tb-active { background: #1a3d5c; border-color: #4a8fd0; color: #7ec8f0; }

.tb-label {
  font-size: 10px;
  color: #666;
  margin-right: 3px;
  white-space: nowrap;
}

.tb-select {
  background: #2e2e2e;
  border: 1px solid #444;
  color: #ccc;
  border-radius: 3px;
  padding: 3px 4px;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
}
.tb-select:hover { border-color: #666; }

.tb-color {
  width: 28px;
  height: 24px;
  border: 1px solid #444;
  border-radius: 3px;
  padding: 1px;
  background: #2e2e2e;
  cursor: pointer;
}

.tb-hint {
  font-size: 10px;
  color: #444;
  margin-left: auto;
  font-style: italic;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════
   CANVAS AREA
══════════════════════════════════════════════════════ */
#canvas-area {
  flex: 1;
  overflow: auto;
  padding: 28px;
  display: flex;
  align-items: flex-start;
}

#pages-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 28px;
  min-width: max-content;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.page-label {
  color: #999;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── A4 canvas ───────────────────────────────────────── */
.page-canvas {
  position: relative;
  background: #fff;
  box-shadow: 0 6px 32px rgba(0,0,0,0.35);
  padding: 24px;
  flex-shrink: 0;
}
.page-wrapper.active .page-canvas {
  outline: 3px solid #2f80d0;
  outline-offset: 2px;
}

/* ── Page content area ───────────────────────────────── */
.page-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #bbb;
  border: 1px solid #bbb;
  /* No gap — separators and resize handles provide visual dividers */
}

/* ══════════════════════════════════════════════════════
   ROW SEPARATORS & RESIZE HANDLES
══════════════════════════════════════════════════════ */

/* Static 1px separator (e.g. banner → content rows) */
.row-separator {
  height: 1px;
  flex-shrink: 0;
  background: #bbb;
}

/* Draggable handle between content rows */
.row-resize-handle {
  height: 5px;
  flex-shrink: 0;
  background: #bbb;
  cursor: row-resize;
  position: relative;
  z-index: 5;
  transition: background 0.15s;
}
.row-resize-handle:hover  { background: rgba(74, 143, 208, 0.7); }
.row-resize-handle.dragging { background: #4a8fd0; }

/* Draggable handle between columns */
.col-resize-handle {
  width: 5px;
  flex-shrink: 0;
  background: #bbb;
  cursor: col-resize;
  position: relative;
  z-index: 5;
  transition: background 0.15s;
}
.col-resize-handle:hover   { background: rgba(74, 143, 208, 0.7); }
.col-resize-handle.dragging { background: #4a8fd0; }

/* ══════════════════════════════════════════════════════
   BANNER ROW
══════════════════════════════════════════════════════ */
.banner-row {
  flex: 0 0 80px;
  display: flex;
  flex-direction: row;
}

.banner-segs {
  flex: 1;
  display: flex;
  flex-direction: row;
  /* No gap — col-resize-handles provide separators */
  background: #bbb;
  min-width: 0;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════
   CONTENT ROWS
══════════════════════════════════════════════════════ */
.content-row {
  /* flex is set dynamically via JS (flex: flexGrow 1 0px) */
  display: flex;
  flex-direction: row;
  min-height: 0;
}

.row-cells {
  flex: 1;
  display: flex;
  flex-direction: row;
  /* No gap — col-resize-handles provide separators */
  background: #bbb;
  min-width: 0;
  overflow: hidden;
}

/* ── Row / Banner column controls ────────────────────── */
.row-col-controls,
.banner-col-controls {
  flex: 0 0 38px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 2px;
  padding: 4px 3px;
  background: #e0e0e0;
  opacity: 0;
  transition: opacity 0.15s;
}
.content-row:hover .row-col-controls,
.banner-row:hover .banner-col-controls { opacity: 1; }

/* Small section label inside controls */
.ctrl-section-label {
  font-size: 8px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1;
  width: 100%;
}

.row-ctrl-btn {
  width: 28px;
  height: 19px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #555;
  transition: background 0.1s, color 0.1s;
}
.row-ctrl-btn:hover:not(:disabled) { background: #4a8fd0; color: #fff; border-color: #4a8fd0; }
.row-ctrl-btn.danger:hover:not(:disabled) { background: #c0392b; color: #fff; border-color: #c0392b; }
.row-ctrl-btn:disabled { opacity: 0.3; cursor: default; }

/* ══════════════════════════════════════════════════════
   CELL
══════════════════════════════════════════════════════ */
.cell {
  /* flex is set dynamically via JS */
  display: flex;
  flex-direction: column;
  background: #fff;
  min-width: 0;
  /* overflow intentionally NOT hidden — allows symbols to extend across columns */
}

/* Cells that contain placed symbols always sit above adjacent cells */
.cell:has(.placed-symbol) {
  position: relative;
  z-index: 10;
}
/* When a symbol in this cell is selected/moved, boost further */
.cell.sym-active-cell {
  position: relative;
  z-index: 20;
}

/* ── Type bar (always visible at top of cell) ────────── */
.cell-type-bar {
  flex: 0 0 22px;
  display: flex;
  flex-direction: row;
  background: #f0f0f0;
  border-bottom: 1px solid #ddd;
  overflow: hidden;
}

.type-btn {
  flex: 1;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 600;
  font-family: inherit;
  background: transparent;
  border: none;
  border-right: 1px solid #ddd;
  cursor: pointer;
  color: #999;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.type-btn:last-child { border-right: none; }
.type-btn:hover { background: #e0e0e0; color: #333; }
.type-btn.active { background: #e8f0fb; color: #2f80d0; }
.type-btn.active:hover { background: #d0e4f8; }

/* ── Cell body (content area below type bar) ─────────── */
.cell-body {
  flex: 1;
  position: relative;
  overflow: visible;
  min-height: 0;
}

/* ── Image layer ─────────────────────────────────────── */
.cell-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden; /* clip image to cell boundary */
}
.cell-img img { width: 100%; height: 100%; object-fit: contain; display: block; }

.cell-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  color: rgba(0,0,0,0.2);
  user-select: none;
  pointer-events: none;
}
.cell-img-placeholder .ph-icon { font-size: 28px; line-height: 1; }
.cell-img-placeholder .ph-text { font-size: 10px; text-align: center; }

/* ── Text layer ──────────────────────────────────────── */
.cell-text {
  position: absolute;
  inset: 0;
  padding: 8px;
  font-size: 12px;
  line-height: 1.55;
  color: #222;
  outline: none;
  overflow: hidden; /* clip text to cell boundary */
  cursor: text;
  word-break: break-word;
  /* Flex column enables vertical alignment via justify-content */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* overridden by vAlign style */
}
.cell-text:empty::before {
  content: attr(data-placeholder);
  color: rgba(0,0,0,0.2);
  pointer-events: none;
}
/* Show/hide layers based on cell type */
.cell[data-type=image] .cell-text { display: none; }
.cell[data-type=text]  .cell-img  { display: none; }

/* ══════════════════════════════════════════════════════
   SYMBOL OVERLAY SYSTEM
══════════════════════════════════════════════════════ */

/* Layer that sits over image/text, fills the cell body */
.cell-symbols {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none; /* pass clicks through to image/text by default */
}

/* ── Placed symbol ────────────────────────────────────── */
.placed-symbol {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: move;
  user-select: none;
  pointer-events: auto;
  line-height: 1;
  box-sizing: content-box;
}

.placed-symbol.selected {
  outline: 2px solid #4a8fd0;
  outline-offset: 3px;
  z-index: 50;
}

/* ── Corner resize handles ────────────────────────────── */
.sym-resize-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border: 2px solid #4a8fd0;
  border-radius: 2px;
  pointer-events: auto;
  z-index: 60;
}
.sym-resize-handle.nw { top: -5px;    left: -5px;   cursor: nw-resize; }
.sym-resize-handle.ne { top: -5px;    right: -5px;  cursor: ne-resize; }
.sym-resize-handle.sw { bottom: -5px; left: -5px;   cursor: sw-resize; }
.sym-resize-handle.se { bottom: -5px; right: -5px;  cursor: se-resize; }

/* ── Rotate handle (above symbol) ────────────────────── */
.sym-rotate-handle {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  background: #4a8fd0;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: grab;
  user-select: none;
  pointer-events: auto;
  z-index: 60;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.sym-rotate-handle:active { cursor: grabbing; }

/* ── Floating toolbar (below symbol) ─────────────────── */
.sym-toolbar {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  background: #1e1e1e;
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  padding: 4px 6px;
  white-space: nowrap;
  z-index: 200;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  pointer-events: auto;
}

/* Small triangle pointing up to the symbol */
.sym-toolbar::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: #3a3a3a;
}

.sym-tb-btn {
  background: #2e2e2e;
  border: 1px solid #444;
  color: #ccc;
  border-radius: 3px;
  padding: 3px 7px;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
  line-height: 1.5;
  white-space: nowrap;
  min-width: 26px;
  text-align: center;
}
.sym-tb-btn:hover { background: #4a4a4a; color: #fff; }
.sym-tb-btn.danger { color: #c07070; border-color: #5a2020; }
.sym-tb-btn.danger:hover { background: #3a1515; color: #e08080; }

.sym-tb-color {
  width: 28px;
  height: 24px;
  border: 1px solid #444;
  border-radius: 3px;
  padding: 1px;
  background: #2e2e2e;
  cursor: pointer;
}

/* ── Cell drop-target highlight during drag ───────────── */
.sym-drop-target {
  outline: 2px dashed #4a8fd0 !important;
  outline-offset: -3px;
  background: rgba(74, 143, 208, 0.07) !important;
}

/* ── Ghost element that follows the cursor during drag ── */
.sym-drag-ghost {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-size: 36px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px dashed #4a8fd0;
  border-radius: 8px;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  opacity: 0.9;
}

/* ══════════════════════════════════════════════════════
   PRINT
══════════════════════════════════════════════════════ */
@media print {
  body { background: white; overflow: visible; height: auto; }
  #sidebar         { display: none !important; }
  #text-toolbar    { display: none !important; }
  #project-header  { display: none !important; }
  #canvas-area  { display: block; padding: 0; overflow: visible; }
  #pages-container { flex-direction: column; gap: 0; min-width: unset; }

  .page-wrapper { break-after: page; }
  .page-wrapper:last-child { break-after: avoid; }
  .page-label { display: none; }

  .page-canvas {
    box-shadow: none !important;
    outline: none !important;
    width: 210mm !important;
    height: 297mm !important;
    padding: 8mm !important;
  }

  .banner-row { flex-basis: 24mm !important; flex: 0 0 24mm !important; }

  /* Hide all editing controls and handles */
  .cell-type-bar        { display: none !important; }
  .row-col-controls     { display: none !important; }
  .banner-col-controls  { display: none !important; }
  .cell-img-placeholder { display: none !important; }
  .row-resize-handle    { display: none !important; }
  .col-resize-handle    { background: transparent !important; width: 1px !important; height: 1px !important; }
  .row-separator        { height: 1px !important; }

  /* Hide symbol editing chrome, keep the symbol itself */
  .sym-resize-handle,
  .sym-rotate-handle,
  .sym-toolbar,
  .sym-drag-ghost       { display: none !important; }
  .placed-symbol.selected { outline: none !important; }

  @page { size: A4 portrait; margin: 0; }
}
