.designer-layout { display:grid; grid-template-columns:220px 1fr 280px; height:calc(100vh - 60px); overflow:hidden; }

/* Toolbox */
.toolbox-panel { background:#f8f9fa; border-right:1px solid #dee2e6; padding:12px; overflow-y:auto; }
.panel-title { font-weight:600; color:#495057; margin-bottom:12px; padding-bottom:8px; border-bottom:2px solid #0d6efd; }
.toolbox-section { margin-bottom:16px; }
.section-label { display:block; font-size:11px; text-transform:uppercase; letter-spacing:.5px; color:#6c757d; margin-bottom:6px; font-weight:600; }
.toolbox-item { display:flex; align-items:center; gap:8px; padding:6px 10px; cursor:pointer; border-radius:4px; font-size:13px; transition:background .15s; }
.toolbox-item:hover { background:#e2e6ea; }
.toolbox-item .e-icons { font-size:16px; color:#0d6efd; width:20px; text-align:center; }
.datasource-item,.param-item { display:flex; align-items:center; gap:6px; padding:4px 8px; font-size:12px; color:#495057; cursor:pointer; border-radius:3px; }
.datasource-item:hover { background:#e9ecef; }

/* Canvas */
.canvas-area { display:flex; flex-direction:column; background:#e9ecef; overflow:hidden; }
.canvas-toolbar { display:flex; align-items:center; justify-content:space-between; padding:6px 12px; background:#fff; border-bottom:1px solid #dee2e6; gap:12px; flex-shrink:0; }
.toolbar-group { display:flex; align-items:center; gap:6px; }
.canvas-wrapper { flex:1; overflow:auto; display:flex; justify-content:center; padding:30px; }
.report-page { background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.15); position:relative; border:1px solid #ccc; }

/* Elements */
.element-wrapper { position:absolute; cursor:move; border:1px solid transparent; transition:border-color .15s; }
.element-wrapper:hover { border-color:#0d6efd40; }
.element-wrapper.selected { border:2px solid #0d6efd; box-shadow:0 0 0 1px #0d6efd20; }
.element-content { width:100%; height:100%; overflow:hidden; }
.resize-handle { position:absolute; width:8px; height:8px; background:#0d6efd; border:1px solid #fff; border-radius:1px; }
.resize-se { right:-4px; bottom:-4px; cursor:se-resize; }

.expression-badge { display:inline-block; background:#ffc107; color:#000; font-size:9px; font-weight:700; padding:1px 4px; border-radius:2px; margin-left:4px; vertical-align:super; }
.ds-badge { position:absolute; bottom:2px; right:2px; background:#0d6efd; color:#fff; font-size:9px; padding:1px 6px; border-radius:3px; }
.ds-badge.warning { background:#dc3545; }

/* Properties */
.properties-panel { background:#f8f9fa; border-left:1px solid #dee2e6; padding:12px; overflow-y:auto; }
.prop-section { margin-bottom:16px; padding-bottom:12px; border-bottom:1px solid #e9ecef; }
.prop-row { display:flex; align-items:center; gap:6px; margin-bottom:6px; }
.prop-row label { font-size:12px; color:#495057; min-width:40px; white-space:nowrap; }
.column-editor { background:#fff; border:1px solid #dee2e6; border-radius:4px; padding:8px; margin-bottom:6px; }

/* DataSource Dialog */
.ds-dialog { max-height:70vh; overflow-y:auto; }
.ds-section { margin-bottom:16px; padding-bottom:12px; border-bottom:1px solid #eee; }
.ds-section-title { display:block; font-weight:600; font-size:13px; color:#333; margin-bottom:8px; }
.ds-form-row { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.ds-form-row label { font-size:12px; color:#555; min-width:60px; }
.ds-info { display:flex; align-items:center; gap:8px; margin-top:6px; font-size:12px; color:#666; }
.ds-badge { display:inline-block; background:#0d6efd; color:#fff; font-size:10px; padding:2px 8px; border-radius:3px; }
.ds-tab-bar { display:flex; gap:0; margin-bottom:12px; }
.ds-tab { padding:6px 16px; border:1px solid #dee2e6; background:#f8f9fa; cursor:pointer; font-size:13px; }
.ds-tab.active { background:#0d6efd; color:#fff; border-color:#0d6efd; }
.ds-tab:first-child { border-radius:4px 0 0 4px; }
.ds-tab:last-child { border-radius:0 4px 4px 0; }
.ds-actions { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.ds-loading { font-size:12px; color:#666; }
.ds-error { background:#f8d7da; color:#721c24; padding:8px 12px; border-radius:4px; font-size:12px; margin-top:8px; }
.ds-test-result { background:#f8f9fa; border:1px solid #dee2e6; border-radius:4px; padding:12px; margin-top:8px; }
.ds-columns { display:flex; flex-wrap:wrap; gap:4px; margin:8px 0; }
.ds-column-chip { background:#e9ecef; padding:2px 8px; border-radius:12px; font-size:11px; }
.sql-editor { font-family:'Courier New',monospace !important; min-height:120px; }
