/* Detalle a pantalla completa: barra fija, cuadritos, anillos, puntos y mini líneas. Solo variables del tema. */
.detail-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; min-height: 48px; margin: 0 0 14px; padding: 6px 4px; background: var(--bg); border-bottom: 1px solid var(--sep); }
.detail-bar .dv-back, .detail-bar .dv-step { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; border: 0; border-radius: 10px; background: none; color: var(--accent); font-size: 15px; font-weight: 600; cursor: pointer; }
.detail-bar .dv-back { padding: 0 10px 0 4px; }
.detail-bar .dv-step { width: 40px; background: var(--fill); }
.detail-bar .dv-step:disabled { opacity: .35; cursor: default; }
.detail-bar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.detail-bar .dv-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.detail-bar .grow { flex: 1; }
.detail-bar .dv-count { white-space: nowrap; padding: 0 6px; }
@media (max-width: 639px) { .detail-bar { top: 0; } .detail-bar .dv-title { display: none; } .detail-bar .dv-back span { max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

.dv-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border-radius: 8px; color: var(--dv-tone, var(--accent)); background: color-mix(in srgb, var(--dv-tone, var(--accent)) 14%, transparent); }
.dv-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dv-dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--dv-tone, var(--muted)); }
.dv-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; }
.dv-tile { display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--card); }
.dv-tile .dv-ico { grid-row: 1 / 3; }
.dv-tile b { font-size: 17px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-tile span:not(.dv-ico) { color: var(--muted); font-size: 12px; line-height: 1.2; }
.dv-ring { position: relative; display: inline-grid; place-items: center; flex: none; color: var(--dv-tone, var(--accent)); }
.dv-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dv-ring circle { fill: none; stroke-width: 4; }
.dv-ring .dv-ring-bg { stroke: var(--fill); }
.dv-ring .dv-ring-fg { stroke: currentColor; stroke-linecap: round; }
.dv-ring small { position: relative; font-size: 10px; font-weight: 700; color: var(--text); }
.dv-spark { display: inline-block; vertical-align: middle; color: var(--dv-tone, var(--accent)); }
.dv-spark polyline { stroke: currentColor; }
.dv-spark svg { display: block; }

/* Un diálogo que es un detalle (integración, ejercicio, plantillas) ocupa la pantalla entera, a la derecha del panel de secciones. */
dialog.dv-full { position: fixed; inset: 0; width: auto; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; padding: 0 clamp(12px, 4vw, 40px) 40px; overflow: auto; background: var(--bg); animation: none; }
dialog.dv-full::before { display: none; }
dialog.dv-full::backdrop { background: transparent; }
dialog.dv-full > :not(.detail-bar) { max-width: 960px; margin-inline: auto; }
dialog.dv-full > .detail-bar { max-width: none; margin: 0 calc(-1 * clamp(12px, 4vw, 40px)) 14px; padding-inline: clamp(12px, 4vw, 40px); }
@media (min-width: 640px) { body.has-navigation dialog.dv-full { left: var(--sidebar-width, 0px); } }
@media (max-width: 639px) { body.has-navigation dialog.dv-full { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); height: auto; } }
dialog.dv-full::backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }
dialog.dv-full .ticket-body { padding-left: 0; }
.dv-chip { display: inline-flex; align-items: center; gap: 5px; margin-right: 10px; font-size: 12px; color: var(--muted); }
.dv-chip .dv-ico { width: 22px; height: 22px; border-radius: 7px; }
.dv-chip .dv-ico svg { width: 13px; height: 13px; }
dialog.dv-full .template-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
dialog.dv-full .template-item { padding: 12px 0; border-top: 1px solid var(--sep); }
.admin-ticket summary .dv-ico { width: 30px; height: 30px; }
.integration-status::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--muted); vertical-align: baseline; }
.integration-status.is-connected::before { background: var(--green); }
