/* DXF → G-code çalışma alanı (Views/Home/DxfToGcode.cshtml, wwwroot/js/dxf/dxf-app.js). Düz CSS; Tailwind derlemesi gerekmez. */
.dg-app {
    --dg-bg: #070b14;
    --dg-panel: #0c1322;
    --dg-panel2: #101a2d;
    --dg-line: rgba(148, 163, 184, .14);
    --dg-text: #e2e8f0;
    --dg-mute: #8a9ab3;
    --dg-acc: #38bdf8;
    --dg-red: #e30613;
    position: relative;
    padding: 12px;
    border-radius: 28px;
    background: radial-gradient(80% 60% at 70% 0%, rgba(56, 189, 248, .08), transparent 60%), var(--dg-bg);
    border: 1px solid rgba(255, 255, 255, .07);
    color: var(--dg-text);
    box-shadow: 0 40px 90px -40px rgba(2, 6, 23, .7);
}
.dg-app { --dg-c1: 320px; --dg-c3: 380px; --dg-hud: 272px; }
.dg-grid { position: relative; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
    .dg-grid { grid-template-columns: var(--dg-c1) minmax(0, 1fr); }
    .dg-code-panel { grid-column: 1 / -1; }
}
@media (min-width: 1500px) {
    .dg-grid { grid-template-columns: var(--dg-c1) minmax(0, 1fr) var(--dg-c3); }
    .dg-code-panel { grid-column: auto; }
}
.dg-panel { background: var(--dg-panel); border: 1px solid var(--dg-line); border-radius: 20px; min-width: 0; }

/* --- ayarlar --- */
.dg-side { display: flex; flex-direction: column; overflow: hidden; }
@media (min-width: 1024px) { .dg-side { max-height: calc(100vh - 110px); position: sticky; top: 92px; } }
.dg-side-scroll { overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: #334155 transparent; }
.dg-drop {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 14px; text-align: center;
    border: 1.5px dashed rgba(56, 189, 248, .45); border-radius: 16px; background: rgba(56, 189, 248, .05); cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.dg-drop:hover, .dg-drop.is-over { background: rgba(56, 189, 248, .12); border-color: #38bdf8; }
.dg-drop.is-over { transform: scale(1.01); }
.dg-drop b { font-size: 14px; color: #fff; }
.dg-drop span { font-size: 12px; color: var(--dg-mute); }
.dg-drop svg { width: 26px; height: 26px; color: #38bdf8; }
.dg-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dg-file { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--dg-panel2); font-size: 12.5px; }
.dg-file b { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-file span { margin-left: auto; color: var(--dg-mute); white-space: nowrap; }
.dg-samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dg-sample {
    display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--dg-line);
    background: var(--dg-panel2); color: var(--dg-text); font-size: 11.5px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}
.dg-sample:hover { border-color: rgba(56, 189, 248, .5); }
.dg-sample.is-on { border-color: #38bdf8; background: rgba(56, 189, 248, .12); }
.dg-sample svg { width: 40px; height: 28px; }

.dg-sec { border: 1px solid var(--dg-line); border-radius: 16px; background: rgba(255, 255, 255, .015); }
.dg-sec > summary {
    display: flex; align-items: center; gap: 8px; padding: 11px 12px; list-style: none; cursor: pointer; user-select: none;
    font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #cbd5e1;
}
.dg-sec > summary::-webkit-details-marker { display: none; }
.dg-sec > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid #64748b; border-bottom: 2px solid #64748b; transform: rotate(45deg); transition: transform .2s ease; }
.dg-sec[open] > summary::after { transform: rotate(-135deg); }
.dg-sec > summary i, .dg-sec > summary svg { width: 15px; height: 15px; color: #38bdf8; }
.dg-sec-body { padding: 2px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.dg-f { display: flex; flex-direction: column; gap: 4px; }
.dg-f > label { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11.5px; font-weight: 600; color: #cbd5e1; }
.dg-f > label em { font-style: normal; font-weight: 500; color: var(--dg-mute); font-size: 11px; }
.dg-f .dg-hint { font-size: 11px; line-height: 1.35; color: var(--dg-mute); }
.dg-in { display: flex; align-items: stretch; border-radius: 10px; background: #0a1020; border: 1px solid rgba(148, 163, 184, .2); overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.dg-in:focus-within { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56, 189, 248, .18); }
.dg-in input, .dg-in select { flex: 1; min-width: 0; padding: 7px 9px; border: 0; outline: 0; background: transparent; color: #f8fafc; font: 600 13px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.dg-in select { font-family: inherit; cursor: pointer; }
.dg-in select option { background: #0c1322; color: #e2e8f0; }
.dg-in > span { display: flex; align-items: center; padding: 0 9px; font-size: 11px; font-weight: 700; color: #94a3b8; background: rgba(148, 163, 184, .08); }
.dg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dg-range { width: 100%; accent-color: #38bdf8; }
.dg-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; gap: 3px; border-radius: 11px; background: #0a1020; border: 1px solid rgba(148, 163, 184, .2); }
.dg-seg button { padding: 6px 4px; border-radius: 8px; border: 0; background: transparent; color: #94a3b8; font-size: 12px; font-weight: 700; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.dg-seg button.is-on { background: #38bdf8; color: #04111f; }
.dg-check { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #cbd5e1; cursor: pointer; }
.dg-check input { margin-top: 2px; accent-color: #38bdf8; width: 15px; height: 15px; }
.dg-check em { display: block; font-style: normal; font-size: 11px; color: var(--dg-mute); }
.dg-layers { display: flex; flex-direction: column; gap: 2px; max-height: 220px; overflow: auto; scrollbar-width: thin; }
.dg-layer { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 8px; font-size: 12.5px; cursor: pointer; }
.dg-layer:hover { background: rgba(255, 255, 255, .04); }
.dg-layer input { accent-color: #38bdf8; }
.dg-layer i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.dg-layer span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-layer small { margin-left: auto; color: var(--dg-mute); font-size: 11px; }
.dg-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.dg-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 99px; border: 1px solid var(--dg-line); background: var(--dg-panel2); color: #cbd5e1; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.dg-chip b { color: #fff; }
.dg-chip.is-off { opacity: .45; text-decoration: line-through; }
.dg-chip.is-skip { cursor: default; border-style: dashed; color: var(--dg-mute); }

/* --- görüntüleyici --- */
.dg-viewer { display: flex; flex-direction: column; overflow: hidden; }
.dg-tb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border-bottom: 1px solid var(--dg-line); }
.dg-btn {
    display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 10px; border: 1px solid var(--dg-line);
    background: var(--dg-panel2); color: #e2e8f0; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.dg-btn:hover { border-color: rgba(56, 189, 248, .55); }
.dg-btn.is-on { background: rgba(56, 189, 248, .14); border-color: rgba(56, 189, 248, .6); color: #7dd3fc; }
.dg-btn svg, .dg-btn i { width: 15px; height: 15px; }
.dg-btn.dg-primary { background: #38bdf8; border-color: #38bdf8; color: #04111f; }
.dg-btn.dg-primary:hover { background: #7dd3fc; }
.dg-btn.dg-red { background: var(--dg-red); border-color: var(--dg-red); color: #fff; }
.dg-tb .dg-sp { flex: 1; }
.dg-sim { display: flex; align-items: center; gap: 8px; flex: 1 1 280px; min-width: 240px; }
.dg-sim input[type=range] { flex: 1; accent-color: #22c55e; }
.dg-sim output { font: 600 12px ui-monospace, Consolas, monospace; color: #a7f3d0; white-space: nowrap; }
.dg-sim select { height: 32px; border-radius: 10px; border: 1px solid var(--dg-line); background: var(--dg-panel2); color: #e2e8f0; font-size: 12px; padding: 0 6px; }
.dg-stage { position: relative; height: clamp(420px, 68vh, 840px); background: #050913; touch-action: none; cursor: crosshair; }
.dg-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dg-stage.is-pan { cursor: grabbing; }
.dg-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: var(--dg-mute); font-size: 14px; pointer-events: none; }
.dg-empty svg { width: 52px; height: 52px; color: #334155; }
.dg-busy { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); padding: 6px 12px; border-radius: 99px; background: rgba(15, 23, 42, .9); border: 1px solid var(--dg-line); font-size: 12px; color: #7dd3fc; display: none; }
.dg-busy.is-on { display: block; }
.dg-legend { position: absolute; left: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 4px 10px; max-width: calc(100% - 20px); padding: 6px 10px; border-radius: 12px; background: rgba(5, 9, 19, .78); border: 1px solid var(--dg-line); font-size: 11px; color: #cbd5e1; pointer-events: none; backdrop-filter: blur(6px); }
.dg-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dg-legend i { width: 16px; height: 3px; border-radius: 2px; }
.dg-legend i.dash { background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px) !important; height: 2px; }
.dg-coord { position: absolute; right: 10px; top: 10px; padding: 4px 8px; border-radius: 8px; background: rgba(5, 9, 19, .78); border: 1px solid var(--dg-line); font: 600 11.5px ui-monospace, Consolas, monospace; color: #94a3b8; pointer-events: none; }
.dg-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-height: 46px; padding: 9px 12px; border-top: 1px solid var(--dg-line); font-size: 12.5px; color: #cbd5e1; }
.dg-info code { font: 700 13px ui-monospace, Consolas, monospace; color: #fff; padding: 3px 8px; border-radius: 8px; background: rgba(250, 204, 21, .12); border: 1px solid rgba(250, 204, 21, .35); }
.dg-info .dg-k { color: var(--dg-mute); }
.dg-info .dg-v { color: #f8fafc; font-weight: 600; }
.dg-info .dg-mutetxt { color: var(--dg-mute); }

/* --- G-code paneli --- */
.dg-code-panel { display: flex; flex-direction: column; overflow: hidden; min-height: 420px; }
.dg-code-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border-bottom: 1px solid var(--dg-line); }
.dg-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--dg-line); border-bottom: 1px solid var(--dg-line); }
.dg-stat { padding: 8px 10px; background: var(--dg-panel); }
.dg-stat small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dg-mute); }
.dg-stat b { display: block; margin-top: 2px; font: 700 14px ui-monospace, Consolas, monospace; color: #f8fafc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-search { flex: 1; min-width: 120px; }
.dg-code { position: relative; flex: 1; min-height: 300px; height: clamp(360px, 60vh, 760px); overflow: auto; font: 12.5px/22px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; scrollbar-width: thin; scrollbar-color: #334155 transparent; outline: 0; }
/* Üç sütunda liste, çizim panelinin yüksekliğini doldurur (içerikle uzamaz; sanal liste görünen satırları çizer) */
@media (min-width: 1500px) { .dg-code { height: 0; flex: 1 1 0; } }
.dg-code-inner { position: relative; }
.dg-row { position: absolute; left: 0; right: 0; height: 22px; display: flex; gap: 10px; padding: 0 10px 0 0; white-space: pre; cursor: pointer; color: #cbd5e1; }
.dg-row:hover { background: rgba(255, 255, 255, .04); }
.dg-row > i { flex: none; width: 52px; padding-right: 8px; text-align: right; font-style: normal; color: #475569; border-right: 1px solid rgba(148, 163, 184, .1); user-select: none; }
.dg-row.is-sel { background: rgba(250, 204, 21, .14); box-shadow: inset 3px 0 0 #facc15; }
.dg-row.is-src:not(.is-sel) { background: rgba(250, 204, 21, .05); }
.dg-row.is-run { box-shadow: inset 3px 0 0 #22c55e; background: rgba(34, 197, 94, .1); }
.dg-row .c-n { color: #64748b; }
.dg-row .c-g0 { color: #fbbf24; font-weight: 700; }
.dg-row .c-g1 { color: #38bdf8; font-weight: 700; }
.dg-row .c-g2 { color: #c084fc; font-weight: 700; }
.dg-row .c-gx { color: #f472b6; font-weight: 700; }
.dg-row .c-ax { color: #e2e8f0; }
.dg-row .c-ij { color: #a5b4fc; }
.dg-row .c-f { color: #4ade80; }
.dg-row .c-m { color: #fb7185; font-weight: 700; }
.dg-row .c-cm { color: #64748b; font-style: italic; }
.dg-checks { padding: 8px 10px; border-top: 1px solid var(--dg-line); font-size: 12px; display: flex; flex-direction: column; gap: 4px; max-height: 190px; overflow: auto; }
.dg-ok { color: #86efac; }
.dg-warn { color: #fcd34d; }
.dg-err { color: #fca5a5; }
.dg-checks div { display: flex; gap: 6px; align-items: flex-start; }
.dg-checks div::before { content: "✓"; font-weight: 800; }
.dg-checks .dg-warn::before { content: "!"; }
.dg-checks .dg-err::before { content: "×"; }
.dg-toast { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 5; max-width: min(560px, calc(100% - 24px)); padding: 10px 14px; border-radius: 12px; background: #450a0a; border: 1px solid #b91c1c; color: #fecaca; font-size: 13px; display: none; }
.dg-toast.is-on { display: block; }

/* --- X CNC simülasyon paneli (web HMI'daki yol paneline benzer) --- */
.dg-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .35); color: #86efac; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.dg-badge i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.dg-vbody { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1280px) { .dg-vbody { grid-template-columns: minmax(0, 1fr) var(--dg-hud); } }
.dg-hud { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-top: 1px solid var(--dg-line); background: #080e1b; }
@media (min-width: 1280px) { .dg-hud { border-top: 0; border-left: 1px solid var(--dg-line); max-height: clamp(420px, 68vh, 840px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #334155 transparent; } }
.dg-hud-btns { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 6px; }
.dg-hb { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border-radius: 11px; border: 0; font-size: 13px; font-weight: 700; cursor: pointer; transition: filter .15s ease, opacity .15s ease, transform .1s ease; }
.dg-hb svg { width: 15px; height: 15px; }
.dg-hb:active { transform: scale(.97); }
.dg-hb:disabled { opacity: .38; cursor: default; }
.dg-hb.dg-go { background: #34c759; color: #04210e; }
.dg-hb.dg-go.is-run { background: rgba(52, 199, 89, .18); color: #86efac; box-shadow: inset 0 0 0 1.5px #34c759; }
.dg-hb.dg-or { background: rgba(255, 149, 0, .16); color: #ffb340; }
.dg-hb.dg-or.is-on { background: #ff9500; color: #2a1600; }
.dg-hb.dg-rd { background: #ff3b30; color: #fff; }
.dg-job { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--dg-line); }
.dg-ring { width: 58px; height: 58px; flex: none; transform: rotate(-90deg); }
.dg-ring circle { fill: none; stroke-width: 6; }
.dg-ring circle:first-child { stroke: rgba(148, 163, 184, .16); }
.dg-ring circle + circle { stroke: #34c759; stroke-linecap: round; stroke-dasharray: 169.65; stroke-dashoffset: 169.65; transition: stroke-dashoffset .12s linear; }
.dg-job b { display: block; font: 750 20px/1.1 ui-monospace, Consolas, monospace; color: #fff; }
.dg-job span { display: block; margin-top: 2px; font: 600 12px ui-monospace, Consolas, monospace; color: #a7f3d0; }
.dg-job small { display: block; font-size: 11px; color: var(--dg-mute); }
.dg-ovr { padding: 7px 10px 6px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--dg-line); }
.dg-ovr label { display: flex; justify-content: space-between; align-items: baseline; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dg-mute); }
.dg-ovr b { font: 750 15px ui-monospace, Consolas, monospace; color: #fff; letter-spacing: 0; text-transform: none; }
.dg-ovr input { width: 100%; accent-color: #ff9500; }
.dg-hud-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dg-mute); }
.dg-seg-sm { padding: 2px; gap: 2px; border-radius: 9px; }
.dg-seg-sm button { padding: 3px 7px; font-size: 11px; border-radius: 7px; }
.dg-dro { display: grid; gap: 1px; padding: 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--dg-line); }
.dg-ax { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: baseline; padding: 2px 0; }
.dg-al { grid-row: span 2; align-self: center; display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: 15px; color: #e2e8f0; }
.dg-al i { width: 6px; height: 6px; border-radius: 50%; background: #64748b; transition: background-color .2s ease; }
.dg-ax.is-mov .dg-al i { background: #34c759; box-shadow: 0 0 0 3px rgba(52, 199, 89, .2); }
.dg-ax b { text-align: right; font: 650 20px/1.15 ui-monospace, SFMono-Regular, Consolas, monospace; color: #fff; letter-spacing: -.01em; }
.dg-ax small { text-align: right; font: 600 11px ui-monospace, Consolas, monospace; color: #7dd3fc; }
.dg-ax small em { font-style: normal; color: var(--dg-mute); margin-left: 3px; }
.dg-pv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.dg-pv > div { display: flex; flex-direction: column; min-width: 0; padding: 6px 7px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--dg-line); }
.dg-pv span { font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dg-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-pv b { font: 700 14px ui-monospace, Consolas, monospace; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-pv small { font-size: 10px; color: var(--dg-mute); }
.dg-sparks { display: grid; gap: 3px; padding: 6px 8px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--dg-line); }
.dg-sparks-head { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dg-mute); margin-bottom: 2px; }
.dg-spark { display: grid; grid-template-columns: 14px 1fr; align-items: center; gap: 6px; }
.dg-spark span { font: 700 12px ui-monospace, Consolas, monospace; color: var(--dg-mute); }
.dg-spark canvas { width: 100%; height: 30px; display: block; }
.dg-now { padding: 7px 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--dg-line); min-width: 0; }
.dg-now-h { display: flex; align-items: baseline; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dg-mute); }
.dg-now-h b { font: 700 13px ui-monospace, Consolas, monospace; color: #fff; letter-spacing: 0; }
.dg-now-h .dg-sp { flex: 1; }
.dg-now code { display: block; margin-top: 4px; font: 600 12px ui-monospace, Consolas, monospace; color: #facc15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-ana { border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--dg-line); }
.dg-ana summary { padding: 7px 10px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #cbd5e1; cursor: pointer; }
.dg-ana-grid { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; padding: 0 10px 9px; font-size: 12px; color: var(--dg-mute); }
.dg-ana-grid b { font: 650 12px ui-monospace, Consolas, monospace; color: #e2e8f0; text-align: right; }
.dg-tl { position: relative; height: 64px; border-top: 1px solid var(--dg-line); background: #060b16; cursor: pointer; touch-action: none; }
.dg-tl canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* --- sütunlar: genişlik tutamaçları ve küçültme (dxf-app.js; durum localStorage'da) --- */
.dg-rz { position: absolute; top: 0; bottom: 0; z-index: 6; width: 12px; display: none; cursor: col-resize; touch-action: none; }
.dg-rz::after { content: ""; position: absolute; top: 50%; left: 50%; width: 4px; height: 44px; margin: -22px 0 0 -2px; border-radius: 4px; background: rgba(148, 163, 184, .28); transition: background-color .15s ease, height .15s ease, margin .15s ease; }
.dg-rz:hover::after, .dg-rz.is-drag::after { background: #38bdf8; height: 88px; margin-top: -44px; }
.dg-rz[data-rz="c1"] { left: var(--dg-c1); }
.dg-rz[data-rz="c3"] { right: var(--dg-c3); }
.dg-rz[data-rz="hud"] { width: 10px; right: calc(var(--dg-hud) - 5px); }
.dg-app.is-resizing, .dg-app.is-resizing * { cursor: col-resize !important; user-select: none !important; }
@media (min-width: 1024px) { .dg-rz[data-rz="c1"] { display: block; } }
@media (min-width: 1280px) { .dg-rz[data-rz="hud"] { display: block; } }
@media (min-width: 1500px) { .dg-rz[data-rz="c3"] { display: block; } }
.dg-app.min-c1 .dg-rz[data-rz="c1"], .dg-app.min-c3 .dg-rz[data-rz="c3"], .dg-app.min-hud .dg-rz[data-rz="hud"] { display: none; }

.dg-colhead { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; }
.dg-colhead .dg-sp { flex: 1; }
.dg-min { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border-radius: 8px; border: 1px solid var(--dg-line); background: var(--dg-panel2); color: #94a3b8; cursor: pointer; transition: color .15s ease, border-color .15s ease; }
.dg-min:hover { color: #7dd3fc; border-color: rgba(56, 189, 248, .55); }
.dg-min svg { width: 15px; height: 15px; }
.dg-rail { display: none; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px 12px; border: 0; background: transparent; color: #cbd5e1; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.dg-rail:hover { color: #7dd3fc; background: rgba(56, 189, 248, .06); }
.dg-rail svg { width: 16px; height: 16px; flex: none; }
.dg-app.min-c1 .dg-side > :not(.dg-rail), .dg-app.min-c3 .dg-code-panel > :not(.dg-rail), .dg-app.min-hud .dg-hud > :not(.dg-rail) { display: none !important; }
.dg-app.min-c1 .dg-side > .dg-rail, .dg-app.min-c3 .dg-code-panel > .dg-rail, .dg-app.min-hud .dg-hud > .dg-rail { display: flex; }
.dg-app.min-c3 .dg-code-panel { min-height: 0; }
.dg-app.min-hud .dg-hud { padding: 0; }
/* geniş ekranda küçültülen sütun dikey şerit olur */
@media (min-width: 1024px) {
    .dg-app.min-c1 .dg-side .dg-rail { flex-direction: column; height: 100%; min-height: 240px; padding: 14px 0; writing-mode: vertical-rl; }
}
@media (min-width: 1280px) {
    .dg-app.min-hud .dg-hud .dg-rail { flex-direction: column; height: 100%; padding: 14px 0; writing-mode: vertical-rl; }
}
@media (min-width: 1500px) {
    .dg-app.min-c3 .dg-code-panel .dg-rail { flex-direction: column; height: 100%; padding: 14px 0; writing-mode: vertical-rl; }
}

.dg-job .dg-rate { color: #fbbf24; font-weight: 700; }
