/* 24-dxf.css — orthophoto (styles repris de mines/index.html, script partagé /mines/app/23-ortho.js)
   et calques DXF du chantier (app/24-dxf.js). 2026-11-17. */
/* ── Contrôle carte « Orthophoto » (module Mines, app/23-ortho.js) ── */
.mine-ortho-control {
    background: var(--panel-bg, #1b1e24); color: #e6e6e6;
    padding: 8px 10px; border-radius: 8px; font-size: .82rem;
    box-shadow: 0 1px 6px rgba(0,0,0,.35); min-width: 150px;
}
.theme-light .mine-ortho-control { background: #fff; color: #1b1e24; }
.mine-ortho-control .moc-row { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
.mine-ortho-control .moc-row input[type="checkbox"] { margin: 0; }
.mine-ortho-control .moc-opacity { justify-content: space-between; }
.mine-ortho-control .moc-opacity span { opacity: .7; font-size: .75rem; }
.mine-ortho-control input[type="range"] { width: 84px; }
.mine-ortho-control .moc-status { font-size: .72rem; opacity: .7; margin-top: 2px; min-height: 1em; }

/* ── Modale d'import de l'orthophoto (barre de progression) ── */
.mine-ortho-modal { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: center; justify-content: center; }
.mine-ortho-modal .mo-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.mine-ortho-modal .mo-card {
    position: relative; width: min(460px, 92vw); padding: 20px 22px;
    border-radius: 14px; background: var(--panel-bg, #1b1e24); color: #e6e6e6;
    border: 1px solid rgba(128,128,128,.25); box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.theme-light .mine-ortho-modal .mo-card { background: #fff; color: #1b1e24; }
.mine-ortho-modal .mo-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.mine-ortho-modal .mo-file { font-size: .85rem; margin-bottom: 12px; word-break: break-all; }
.mine-ortho-modal .mo-size { opacity: .6; }
.mine-ortho-modal .mo-bar-wrap { height: 12px; border-radius: 6px; overflow: hidden; background: rgba(128,128,128,.22); }
.mine-ortho-modal .mo-bar { height: 100%; width: 0; background: #4c9f70; transition: width .15s ease; }
.mine-ortho-modal .mo-bar.mo-bar-error { background: #e07a5f; }
.mine-ortho-modal .mo-bar.mo-bar-indeterminate { width: 100% !important; background-image: linear-gradient(90deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%); background-size: 28px 28px; animation: mo-stripes 1s linear infinite; }
@keyframes mo-stripes { from { background-position: 0 0; } to { background-position: 28px 0; } }
.mine-ortho-modal .mo-meta { display: flex; justify-content: space-between; font-size: .78rem; opacity: .8; margin-top: 6px; font-variant-numeric: tabular-nums; }
.mine-ortho-modal .mo-status { font-size: .82rem; margin-top: 12px; min-height: 1.2em; line-height: 1.4; }
.mine-ortho-modal .mo-status-ok { color: #4c9f70; }
.mine-ortho-modal .mo-status-error { color: #e07a5f; }
.mine-ortho-modal .mo-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.mine-ortho-modal .mo-btn { padding: 7px 16px; border-radius: 7px; cursor: pointer; border: 1px solid rgba(128,128,128,.35); background: transparent; color: inherit; font-size: .85rem; }
.mine-ortho-modal .mo-btn:hover { background: rgba(128,128,128,.14); }
.mine-ortho-modal .mo-btn-primary { background: #4c9f70; border-color: transparent; color: #fff; }
.mine-ortho-modal .mo-btn-primary:hover { background: #418a60; }

/* ── Panneau « Calques » du chantier (ortho + DXF) : copie du panneau du tronçon électrique
   (.eo-panel de electrique/app/21-elec-overlays.js), classes cdx-*. 2026-11-19. ── */
/* En Construction, l'ortho se règle dans ce panneau : le contrôle propre de 23-ortho.js est masqué. */
.mine-ortho-control { display: none !important; }
.cdx-control { margin: 0 12px 64px 0 !important; min-width: 184px; max-width: 230px; max-height: calc(100vh - 230px); overflow-y: auto;
    background: color-mix(in srgb, var(--ohm-surface) 94%, transparent); color: var(--ohm-text); border: 1px solid var(--ohm-border); border-radius: 0;
    box-shadow: 0 6px 22px rgba(0,0,0,.45); padding: 8px 10px; font: 11.5px IBM Plex Sans, Segoe UI, system-ui, sans-serif; backdrop-filter: blur(3px); }
.cdx-control .cdx-t { font-size: 10px; font-weight: 700; color: var(--ohm-fg-soft); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.cdx-control .cdx-row { display: flex; align-items: center; gap: 7px; padding: 3px 2px; cursor: pointer; border-radius: 0; }
.cdx-control .cdx-row:hover { background: var(--ohm-tint-2); }
.cdx-control input[type="checkbox"] { margin: 0; cursor: pointer; accent-color: var(--ohm-accent-hi); flex: 0 0 auto; }
.cdx-control .cdx-sw { width: 13px; height: 13px; border-radius: 3px; flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--ohm-fg-strong) 25%, transparent); }
.cdx-control .cdx-sw-c { cursor: pointer; outline: 1.5px solid transparent; outline-offset: 1px; transition: transform .12s ease, outline-color .12s ease; }
.cdx-control .cdx-sw-c:hover { transform: scale(1.25); outline-color: color-mix(in srgb, var(--ohm-fg-strong) 65%, transparent); }
.cdx-control .cdx-sw-ortho { background: linear-gradient(135deg, #6b8e3a 0%, #caa46a 50%, #7a8a99 100%); }
.cdx-control .cdx-l { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdx-control .cdx-n { flex: 0 0 auto; font-size: 10px; color: var(--ohm-fg-soft); font-variant-numeric: tabular-nums; }
.cdx-control .cdx-range { display: block; width: 100%; margin: 1px 0 4px; accent-color: var(--ohm-accent-hi); cursor: pointer; }
.cdx-control .cdx-range:disabled { opacity: .4; cursor: default; }
.cdx-control .cdx-st { font-size: 10px; color: var(--ohm-fg-soft); margin: 0 0 4px 20px; }
.cdx-control .cdx-div { height: 1px; background: var(--ohm-border); margin: 6px 0; }
.cdx-control .cdx-file { display: flex; align-items: center; gap: 6px; margin: 4px 0 1px; font-size: 10px; color: var(--ohm-fg-faint); }
.cdx-control .cdx-file span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdx-control .cdx-del { border: none; background: transparent; color: var(--ohm-fg-faint); cursor: pointer; font-size: 11px; line-height: 1; padding: 0 1px; flex: 0 0 auto; }
.cdx-control .cdx-del:hover { color: var(--ohm-danger, #e07a5f); }
.cdx-control .cdx-g { margin: 0; }
.cdx-control .cdx-g[open] { margin-bottom: 5px; }
.cdx-control .cdx-gh { display: flex; align-items: center; gap: 7px; padding: 3px 2px; cursor: pointer; border-radius: 0; list-style: none; user-select: none; }
.cdx-control .cdx-gh::-webkit-details-marker { display: none; }
.cdx-control .cdx-gh:hover { background: var(--ohm-tint-2); }
.cdx-control .cdx-gl { flex: 1 1 auto; font-size: 10px; font-weight: 700; color: var(--ohm-fg-soft); text-transform: uppercase;
    letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdx-control .cdx-gl::after { content: '\25B8'; margin-left: 5px; font-size: 9px; color: var(--ohm-fg-faint); }
.cdx-control .cdx-g[open] .cdx-gl::after { content: '\25BE'; }
.cdx-control .cdx-g .cdx-row { padding-left: 15px; }
