/* Huisstijl Estafette Stokje: inkt #12161d, oranje #ff7a2f, baanrood #c9432b, zand #f4ead9. */

.eg-wrapper { margin: 12px 0; }
.eg-loop-ontwerp-btn { white-space: nowrap; }
.eg-open-designer { font-size: 15px; padding: 10px 16px; }
.eg-status { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: #f4ead9; color: #12161d; font-weight: 600; }
.eg-status.eg-ok { background: #e2f4e6; color: #175c2a; }
.eg-status.eg-error { background: #fde6e1; color: #8f2413; }

.eg-modal {
	position: fixed; inset: 0; background: rgba(18,22,29,.72);
	z-index: 100000; display: flex; align-items: center; justify-content: center;
}
.eg-modal-inner {
	background: #fff; border-radius: 14px; padding: 20px;
	max-width: 95vw; max-height: 95vh; display: flex; flex-direction: column; gap: 14px;
	overflow: auto; box-shadow: 0 30px 60px -20px rgba(18,22,29,.55);
}
.eg-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.eg-spacer { flex: 1; }
.eg-toolbar-divider { width: 1px; align-self: stretch; background: #e3dccf; margin: 0 4px; }
.eg-btn {
	background: #fff; border: 2px solid #12161d; border-radius: 999px; color: #12161d;
	padding: 9px 16px; cursor: pointer; font-size: 15px; font-weight: 600; line-height: 1.2;
	transition: background .2s, color .2s, border-color .2s;
}
.eg-btn:hover, .eg-btn:focus { background: #12161d; border-color: #12161d; color: #fff; }
.eg-btn.eg-btn-primary { background: #ff7a2f; border-color: #ff7a2f; color: #fff; }
.eg-btn.eg-btn-primary:hover, .eg-btn.eg-btn-primary:focus { background: #c9432b; border-color: #c9432b; color: #fff; }
.eg-btn:focus-visible, .eg-side-tab:focus-visible { outline: 3px solid rgba(255,122,47,.45); outline-offset: 2px; }

.eg-canvas-area {
	border: 2px dashed #b9b2a4; background: repeating-conic-gradient(#f5f5f5 0% 25%, #ececec 0% 50%) 0/16px 16px;
	overflow: auto; align-self: start;
}
.eg-hint { color: #5c6470; font-size: 14px; line-height: 1.5; margin: 0; }
.eg-dimensions-readout { display: block; margin-top: 2px; color: #8a909a; }

.eg-canvas-grid {
	display: grid;
	grid-template-columns: 22px auto;
	grid-template-rows: 22px auto;
	align-self: center;
}
.eg-ruler-corner { grid-column: 1; grid-row: 1; background: #fbf9f6; border: 1px solid #e3dccf; border-right: none; border-bottom: none; }
#eg-ruler-top { grid-column: 2; grid-row: 1; }
#eg-ruler-left { grid-column: 1; grid-row: 2; }
.eg-ruler { background: #fbf9f6; border: 1px solid #e3dccf; display: block; }
#eg-ruler-top { border-left: none; }
#eg-ruler-left { border-top: none; }
.eg-canvas-grid .eg-canvas-area { grid-column: 2; grid-row: 2; }

/* Tekstvenster en meldingen */
.eg-font-dialog {
	position: fixed; inset: 0; background: rgba(18,22,29,.6); z-index: 100001;
	display: flex; align-items: center; justify-content: center;
}
.eg-message-dialog { z-index: 100002; }
.eg-font-dialog-inner {
	background: #fff; padding: 24px; border-radius: 14px; width: 360px; max-width: calc(100vw - 32px);
	max-height: calc(100vh - 24px); overflow: auto; box-sizing: border-box;
	display: flex; flex-direction: column; gap: 8px; color: #3d4450;
	box-shadow: 0 30px 60px -20px rgba(18,22,29,.55);
}
.eg-font-dialog-inner > strong { font-size: 20px; line-height: 1.2; color: #12161d; margin-bottom: 6px; }
.eg-font-dialog-inner label { margin: 8px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #12161d; }
.eg-font-dialog-inner input, .eg-font-dialog-inner select {
	padding: 12px 14px; font-size: 16px; line-height: 1.3; width: 100%; box-sizing: border-box;
	border: 2px solid #e3dccf; border-radius: 10px; background: #fff; color: #12161d;
	transition: border-color .2s, box-shadow .2s;
}
.eg-font-dialog-inner input:focus, .eg-font-dialog-inner select:focus { outline: none; border-color: #ff7a2f; box-shadow: 0 0 0 4px rgba(255,122,47,.18); }
.eg-font-dialog-inner select {
	max-height: 260px;
}
/* Voorbeeld op een donker vlak, zodat ook lichte gravurekleuren leesbaar zijn. */
.eg-text-preview-box {
	background: #5d6570; border: 0; border-radius: 10px;
	padding: 16px 12px; min-height: 48px; display: flex; align-items: center; justify-content: center;
	text-align: center; word-break: break-word; line-height: 1.2;
}
.eg-dialog-message { margin: 0; font-size: 17px; line-height: 1.5; font-weight: 600; color: #12161d; }
.eg-dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 10px; }

.eg-side-tabs { display: flex; gap: 6px; }
.eg-side-tab {
	background: #fff; border: 2px solid #12161d; border-radius: 999px;
	padding: 7px 16px; cursor: pointer; font-size: 14px; font-weight: 600; color: #12161d;
}
.eg-side-tab:hover { background: #f4ead9; color: #12161d; }
.eg-side-tab.eg-side-tab-active { background: #12161d; color: #fff; border-color: #12161d; }
