/* Identidad del espacio de análisis; estilos acotados a su diálogo. */
#lm-dialog{--pi-bg:#f5f4ef;--pi-panel:#fff;--pi-line:#dcded8;--pi-ink:#24332d;--pi-muted:#66746e;--pi-accent:#126f5d;--pi-soft:#e7f2ed;color-scheme:light;color:var(--pi-ink);font-family:Inter,system-ui,sans-serif;width:min(1480px,96vw);border:0;border-radius:24px;box-shadow:0 35px 120px #08150f66}
#lm-dialog button,#lm-dialog input,#lm-dialog select{font-family:inherit}#lm-dialog button{line-height:1.45}#lm-dialog h4{text-transform:none}#lm-dialog #lm-cases-view.pi-root{--pi-bg:#f5f4ef;--pi-panel:#fff;--pi-line:#dcded8;--pi-ink:#24332d;--pi-muted:#66746e;--pi-accent:#126f5d;--pi-soft:#e7f2ed;color-scheme:light}
#lm-dialog .lm-head{padding:20px 28px 16px;background:#fcfcf8;border:0;gap:16px}
#lm-dialog .lm-head small{color:#86705d;font-size:10px;letter-spacing:.18em}
#lm-dialog .lm-head h2{font-size:26px;letter-spacing:-.8px;color:#23362d;margin:4px 0 0}
#lm-dialog .lm-head>button{border-radius:50%;width:38px;height:38px;padding:0;background:#efefea;border:0;color:#35463f}
#lm-dialog .lm-nav{padding:0 28px;display:flex;gap:26px;border-bottom:1px solid #dcded8;background:#fcfcf8}
#lm-dialog .lm-nav button{border:0;border-radius:0;border-bottom:3px solid transparent;background:transparent;color:#66746e;padding:12px 0;font-size:12px;font-weight:650}
#lm-dialog .lm-nav button[aria-selected=true]{color:#254a3b;border-bottom-color:#d57d5a}
#lm-dialog [hidden]{display:none!important}
#lm-sets-view{display:grid;grid-template-columns:265px minmax(0,1fr);flex:1;min-height:0}
#lm-dialog .ls-sidebar{background:#23382f;color:#f7f5ed;padding:26px 18px 16px;display:flex;flex-direction:column;min-height:0;gap:16px}
#lm-dialog .ls-eyebrow{display:block;font-size:9px;font-weight:750;letter-spacing:.16em;line-height:1.7}
#lm-dialog .ls-side-title{padding:0 8px}.ls-side-title>.ls-eyebrow{color:#cbaf88}
#lm-dialog .ls-side-title h3{font-size:22px;font-weight:650;letter-spacing:-.5px;margin:4px 0 7px;color:#fff}
#lm-dialog .ls-side-title h3 span{font-size:11px;background:#ffffff15;color:#d1decf;border-radius:20px;padding:4px 8px;vertical-align:middle;margin-left:5px}
#lm-dialog .ls-side-title p,#lm-dialog .ls-side-note{font-size:11px;line-height:1.65;color:#afc1b6;margin:0}
#lm-dialog .ls-search{display:flex;align-items:center;gap:9px;border:1px solid #dfe3dc;background:#fff;border-radius:10px;padding:0 12px;min-width:0;color:#839388}
#lm-dialog .ls-search input{border:0!important;box-shadow:none!important;border-radius:10px;background:transparent;color:inherit;width:100%;min-width:0;font:inherit;font-size:12px;padding:11px 0;outline:none}
#lm-dialog .ls-search:focus-within{outline:2px solid #bc8763;outline-offset:2px}
#lm-dialog .ls-sidebar .ls-search{background:#ffffff09;border-color:#ffffff25;color:#dce6df}
#lm-dialog .ls-sidebar input::placeholder{color:#b2c0b6}
#ls-set-list{overflow:auto;flex:1;min-height:80px;scrollbar-width:thin;scrollbar-color:#657b6d transparent}
#lm-dialog .ls-set{display:flex;align-items:center;text-align:left;width:100%;gap:12px;padding:14px 11px;border-radius:12px;border:1px solid transparent;background:transparent;color:#f0f1e8;margin:0 0 5px;transition:background .15s}
#lm-dialog .ls-set:hover{background:#ffffff0c}
#lm-dialog .ls-set.is-selected{background:#f3f0e5;color:#253c30;border-color:#f3f0e5;box-shadow:0 4px 16px #13231a20}
#lm-dialog .ls-set-icon{display:grid;place-items:center;width:34px;height:36px;flex-shrink:0;border-radius:10px;background:color-mix(in srgb,var(--set-color) 22%,#fff);color:#283c31;box-shadow:inset 0 -3px var(--set-color)}
#lm-dialog .ls-set>span:nth-child(2){min-width:0;flex:1}
#lm-dialog .ls-set strong{display:block;font-size:12px;font-weight:700;overflow-wrap:anywhere}
#lm-dialog .ls-set small{display:block;font-size:10px;opacity:.7;margin-top:4px}
#lm-dialog .ls-set-arrow{font-size:18px;opacity:.5}
#lm-dialog .ls-refresh{font-size:11px;background:#ffffff0a;border:1px solid #ffffff25;color:#eef2e9;padding:10px}
#ls-main{overflow:auto;padding:26px 30px;background:#f5f4ef;min-width:0;scrollbar-width:thin;scrollbar-color:#c7cec2 transparent}
#lm-dialog .ls-hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:4px 0 26px;border-bottom:1px solid #dedfd6;margin-bottom:23px}
#lm-dialog .ls-hero-copy{position:relative;z-index:1;flex:1;min-width:0}
#lm-dialog .ls-hero .ls-eyebrow{color:#8b674f}.ls-hero .ls-eyebrow span{color:#899186}
#lm-dialog .ls-hero h3{font-size:clamp(26px,3vw,42px);font-weight:730;letter-spacing:-1.6px;line-height:1.12;margin:10px 0 12px;color:#253d31;overflow-wrap:anywhere}
#lm-dialog .ls-hero p{font-size:12px;line-height:1.7;color:#68776e;max-width:600px;margin:0 0 18px}
#lm-dialog .ls-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
#lm-dialog .ls-actions button,#lm-dialog .ls-actions a{font-size:11px;font-weight:650;padding:10px 12px;border-radius:8px;background:#fff;border:1px solid #d8ddd4;color:#46584e;text-decoration:none;display:inline-flex;gap:8px;align-items:center}
#lm-dialog .ls-actions .ls-primary{background:#263e31;border-color:#263e31;color:#fff}
#lm-dialog .ls-hero-art{position:relative;width:148px;height:145px;flex-shrink:0;display:grid;place-content:center;text-align:center}
#lm-dialog .ls-orbit{position:absolute;inset:4px;border-radius:50%;border:1px solid #ccd6c4;transform:rotate(-20deg);background:repeating-linear-gradient(90deg,transparent 0 23px,#c7d1bf55 24px 25px),repeating-linear-gradient(0deg,transparent 0 23px,#c7d1bf55 24px 25px);mask-image:radial-gradient(black 30%,transparent 72%)}
#lm-dialog .ls-art-icon{position:relative;width:65px;height:65px;margin:0 auto 18px;border-radius:20px;background:var(--set-color);color:#213c2f;display:grid;place-items:center;font-size:26px;box-shadow:8px 10px 0 #293f3110;transform:rotate(-8deg);border:2px solid #fff}
#lm-dialog .ls-art-icon i{transform:rotate(8deg)}
#lm-dialog .ls-hero-art>span{font-size:8px;letter-spacing:.17em;color:#7c8479;position:relative}
#lm-dialog .ls-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
#lm-dialog .ls-metric{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:17px;border:1px solid #e2e2d9;background:#fff;border-radius:13px;min-width:0;color:#34483b;box-shadow:0 4px 12px #263e3103}
#lm-dialog .ls-metric>span{font-size:10px;font-weight:650;width:100%;display:flex;justify-content:space-between;gap:4px}
#lm-dialog .ls-metric>strong{font-size:32px;letter-spacing:-1px;font-weight:700;line-height:1.2;margin:13px 0 5px}
#lm-dialog .ls-metric>small{font-size:9px;opacity:.75;line-height:1.5}
#lm-dialog .ls-metric.ls-purple{background:#ede9f5;color:#67517f;border-color:#e4ddef}
#lm-dialog .ls-metric.ls-green{background:#e5eee3;color:#3a6948;border-color:#dae7d8}
#lm-dialog .ls-metric.ls-orange{background:#f6eadd;color:#a06638;border-color:#ebdecb}
#lm-dialog .ls-insights{display:grid;grid-template-columns:1.1fr 1fr;gap:18px;margin-bottom:18px}
#lm-dialog .ls-card{padding:20px;background:#fff;border:1px solid #e0e3db;border-radius:14px;min-width:0}
#lm-dialog .ls-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:19px}
#lm-dialog .ls-section-head h4{font-size:13px;font-weight:700;color:#30473a;margin:0;letter-spacing:-.2px}
#lm-dialog .ls-section-head>span{font-size:8px;color:#7e8b81;letter-spacing:.08em}
#lm-dialog .ls-section-head .ls-eyebrow{color:#9b8165;font-size:8px;margin-bottom:5px}
#lm-dialog .ls-coverage{margin-bottom:14px}.ls-coverage>div:first-child{display:flex;justify-content:space-between;gap:8px;font-size:10px;margin-bottom:7px;color:#69756d}
.ls-track{height:6px;background:#f0f1eb;border-radius:8px;overflow:hidden}.ls-track>span{display:block;height:100%;border-radius:8px;background:#8b73ad}.ls-green .ls-track>span{background:#77a282}
#lm-dialog .ls-footnote{color:#7c877e;font-size:10px;line-height:1.7;margin:12px 0 0}
#lm-dialog .ls-connections{max-height:132px;overflow:auto}
#lm-dialog .ls-connections button{display:flex;align-items:center;gap:8px;background:transparent;border:0;border-bottom:1px solid #f0f0e9;border-radius:0;color:#5a6a5f;width:100%;text-align:left;padding:10px 0;font-size:10px}
#lm-dialog .ls-connections strong{flex:1;min-width:0;overflow-wrap:anywhere}.ls-dot{display:inline-block;width:7px;height:7px;border-radius:50%;flex-shrink:0}
#lm-dialog .ls-table-tools{display:flex;gap:12px;margin-bottom:16px}.ls-table-tools>.ls-search{flex:1}
#lm-dialog .ls-table-tools select{background:#f8f9f5;border:1px solid #dde2d8;border-radius:9px;color:#526657;padding:9px 12px;font:inherit;font-size:11px;max-width:100%}
#lm-dialog .ls-table-scroll{overflow:auto;position:relative}
#lm-dialog .ls-register table{width:100%;border-collapse:collapse;text-align:left;min-width:620px;font-size:11px}
#lm-dialog .ls-register th{font-size:9px;text-transform:uppercase;letter-spacing:.07em;color:#899587;background:#f6f7f2;padding:12px 10px;font-weight:600;border-bottom:1px solid #e4e8dc}
#lm-dialog .ls-register td{padding:12px 10px;border-bottom:1px solid #edf0e8;vertical-align:middle}
#lm-dialog .ls-register tr:hover td{background:#fcfcf7}
#lm-dialog .ls-parcel{padding:0;background:transparent;border:0;color:#314b39;font-size:13px;font-weight:700;white-space:nowrap}.ls-parcel span{color:#b0b9a6}
#lm-dialog .ls-case-tag{display:inline-block;background:#f2eef8;color:#71578f;border-radius:6px;padding:5px 7px;text-decoration:none;font-size:10px;margin:2px 3px 2px 0}.ls-case-tag small{opacity:.65}
#lm-dialog .ls-docs{background:none;border:0;padding:3px 0;color:#818d81;font-size:10px;white-space:nowrap}#lm-dialog .ls-docs.has-docs{color:#3e8866}
#lm-dialog .ls-tag{display:inline-flex;gap:5px;align-items:center;background:#f5f6f0;border:0;padding:5px 7px;font-size:9px;color:#6e7868;margin:2px;border-radius:6px}
#lm-dialog .ls-muted{font-size:10px;color:#8e968b}
#lm-dialog .ls-open-parcel{background:#f5f7f0;border:0;color:#64725e;border-radius:7px;padding:5px 9px}
#lm-dialog .ls-pagination{display:flex;justify-content:space-between;align-items:center;margin-top:15px;color:#8a9485;font-size:10px}.ls-pagination>div{display:flex;gap:6px}
#lm-dialog .ls-pagination button{padding:5px 12px;background:#fff;border:1px solid #e0e5d8;border-radius:7px;color:#63745a}
#lm-dialog button:disabled{opacity:.4;cursor:not-allowed}#lm-dialog button{cursor:pointer}#lm-dialog button:focus-visible,#lm-dialog a:focus-visible,#lm-dialog select:focus-visible{outline:2px solid #c18158;outline-offset:3px}
#lm-dialog .ls-state{display:grid;place-content:center;text-align:center;min-height:400px;padding:30px;color:#6f7e70}.ls-state h3{font-size:24px;color:#314b3c;letter-spacing:-.6px}.ls-state p{font-size:13px;line-height:1.8;max-width:430px}.ls-state-icon{font-size:35px;color:#b98660}.ls-state button{margin:15px auto}
#lm-dialog .ls-no-rows{text-align:center;padding:30px;color:#74826c;font-size:12px}
.ls-sr-only{position:absolute;top:0;left:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#lm-dialog .lm-layout>aside{background:#edf0e8}#lm-dialog .lm-item.selected{background:#dceadd;border-color:#8baa89}#lm-dialog .lm-item small{color:#6e816c}
#lm-dialog #lm-integrated .pi-root{--pi-bg:#f5f4ef;--pi-panel:#fff;--pi-line:#dcded8;--pi-ink:#24332d;--pi-muted:#66746e;--pi-accent:#126f5d;--pi-soft:#e7f2ed;color-scheme:light}
@media(min-width:1600px){#ls-main{padding:30px 36px}.ls-hero{min-height:200px}}
@media(max-width:1050px){#lm-sets-view{grid-template-columns:225px minmax(0,1fr)}#ls-main{padding:22px 18px}#lm-dialog .ls-hero-art{display:none}#lm-dialog .ls-metrics{gap:8px}#lm-dialog .ls-metric{padding:13px}#lm-dialog .ls-insights{grid-template-columns:1fr}.ls-connections{max-height:100px}}
@media(max-width:700px){#lm-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}#lm-dialog .lm-head{padding:16px 18px 10px}#lm-dialog .lm-head h2{font-size:22px}#lm-dialog .lm-nav{padding:0 18px;gap:22px}#lm-sets-view{display:block;overflow:auto}#lm-dialog .ls-sidebar{padding:16px;gap:10px}.ls-side-title p,#lm-dialog .ls-side-note{display:none}#lm-dialog .ls-side-title h3{font-size:18px;margin:0}#lm-dialog .ls-side-title>.ls-eyebrow{display:none}#ls-set-list{display:flex;gap:8px;overflow:auto;min-height:0;max-height:95px}#lm-dialog .ls-set{min-width:195px;width:195px;margin:0;padding:10px}#lm-dialog .ls-refresh{align-self:flex-end;padding:5px 10px}#ls-main{overflow:visible;padding:20px 16px}#lm-dialog .ls-hero{padding:0 0 20px}#lm-dialog .ls-hero h3{font-size:30px}#lm-dialog .ls-metrics{grid-template-columns:1fr 1fr}#lm-dialog .ls-card{padding:16px}#lm-dialog .ls-table-tools{flex-direction:column}#lm-dialog .ls-actions button,#lm-dialog .ls-actions a{font-size:10px}#lm-dialog .ls-state{min-height:250px}.ls-register{scroll-margin:12px}}
@media(prefers-reduced-motion:reduce){#lm-dialog *{scroll-behavior:auto!important;transition:none!important}}

/* Relación documental de partida con loteo: independiente de las causas y los sets. */
#lm-dialog .ls-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}
#lm-dialog .ls-metric.ls-pink{border-color:#eac5d6;background:#fff7fb}
#lm-dialog .ls-metric.ls-pink strong{color:#a32b65}
#lm-dialog .ls-coverage.ls-pink .ls-track>span{background:#b63574}
#lm-dialog .ls-loteo-tag{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;max-width:260px;min-width:175px;padding:9px 11px;margin:3px 0;border:1px solid #e8bfd2;border-radius:9px;background:#fff2f8;color:#84264f;white-space:normal;font:inherit;cursor:pointer}
#lm-dialog .ls-loteo-tag>span{font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
#lm-dialog .ls-loteo-tag>strong{font-size:11px;line-height:1.35;overflow-wrap:anywhere}
#lm-dialog .ls-loteo-tag>small{font-size:9px;line-height:1.35;color:#995170}
#lm-dialog .ls-loteo-tag:hover{background:#ffe5f1;border-color:#ca6190}
#lm-dialog .ls-loteo-tag:focus-visible{outline:2px solid #ad3970;outline-offset:2px}
#lm-dialog .ls-register-loteo{display:block;margin-top:8px;padding:8px 10px;border:1px solid #a1c9b4;border-radius:8px;background:#eef8f2;color:#205540;font-family:inherit;font-size:11px;font-weight:600;line-height:1.4;cursor:pointer;white-space:normal;text-align:left}
#lm-dialog .ls-register-loteo:hover{background:#dbeee3;border-color:#427c60}
#lm-dialog .ls-register-loteo:focus-visible{outline:2px solid #205540;outline-offset:2px}
#lm-dialog .ls-register-loteo:disabled{opacity:.6;cursor:wait}
@media(max-width:1100px){#lm-dialog .ls-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){#lm-dialog .ls-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
