/* Administrador de tareas (proServices): estilos propios. Estética Vyron:
   amarillo #ffe600, cian #27e4ff, fondo #050507, tarjetas #0e0e16. Solo se animan transform y opacity. */
.tm{--y:#ffe600;--c:#27e4ff;--card:#0e0e16;--card2:#12121b;--hair:#ffffff0d;--rowh:40px;gap:var(--s4)}
.tm .muted{color:var(--muted)}
.tm .spacer{flex:1}

/* ---------- resumen ---------- */
.tm-sum{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--s3)}
.tm-card{--k:var(--y);position:relative;display:flex;flex-direction:column;gap:6px;padding:14px 16px 0;border-radius:var(--r-md);background:var(--card);border:1px solid var(--line);overflow:hidden;min-width:0}
.tm-card.k-mem,.tm-card.k-net{--k:var(--c)}
.tm-card.k-disk{--k:#ffb21f}
.tm-ct{display:flex;align-items:center;gap:8px;color:var(--muted);font:700 11.5px var(--body);letter-spacing:.08em;text-transform:uppercase}
.tm-cic{width:16px;height:16px;fill:none;stroke:var(--k);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tm-cv{display:flex;flex-direction:column;gap:2px;min-width:0}
.tm-big{font:700 26px/1.1 var(--display);letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--text)}
.tm-sub{color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tm-spark{display:block;width:100%;height:40px;margin-top:2px}
.tm-spark .ln{fill:none;stroke:var(--k);stroke-width:1.6;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.tm-spark .ar{fill:var(--k);opacity:.12}
.tm-bar{position:absolute;left:0;right:0;bottom:0;height:3px;background:#ffffff0f}
.tm-barfill{display:block;height:100%;width:100%;background:var(--k);transform-origin:left center;transform:scaleX(0);transition:transform 600ms var(--ease)}

/* ---------- barra de herramientas ---------- */
.tm-bar2{display:flex;align-items:center;gap:var(--s3);flex-wrap:wrap}
.tm-tabs{display:inline-flex;gap:2px;padding:4px;border-radius:99px;background:#ffffff08;border:1px solid var(--line)}
.tm-tab{padding:8px 18px;border-radius:99px;color:var(--muted);font:700 13px var(--body);transition:background var(--t-fast) var(--ease),color var(--t-fast) var(--ease),transform var(--t-fast) var(--ease)}
.tm-tab:hover{color:var(--text)}
.tm-tab:active{transform:scale(.97)}
.tm-tab.on{background:var(--y);color:#14100a}
.tm-search{position:relative;display:flex;align-items:center;flex:0 1 340px;min-width:200px}
.tm-search .tm-ic{position:absolute;left:12px;width:16px;height:16px;stroke:var(--muted);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.tm-q{width:100%;padding:9px 12px 9px 36px;border-radius:99px;border:1px solid var(--line-2);background:#ffffff0a;color:var(--text);font:inherit;user-select:text}
.tm-q:focus{outline:2px solid var(--c);outline-offset:1px}
.tm-q::-webkit-search-cancel-button{filter:invert(1) opacity(.6);cursor:pointer}
.tm-actions,.tm-grp{display:flex;align-items:center;gap:var(--s2)}
.tm-act .tm-ic{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tm-act{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.tm-act:hover:not(:disabled){transform:translateY(-1px)}
.tm-more{padding-left:10px;padding-right:10px}
.tm-svcbar{display:flex;align-items:center;gap:var(--s4);flex-wrap:wrap}
.tm-svcbar .muted{font-size:12.5px;display:inline-flex;align-items:center;gap:6px}
.tm-ic-s{width:14px;height:14px;fill:none;stroke:var(--c);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tm-note{display:flex;align-items:center;gap:var(--s3);padding:10px 14px;border-radius:var(--r-sm);background:#ffffff08;border:1px solid var(--line);border-left:3px solid var(--warn);font-size:13px}
.tm-note.info{border-left-color:var(--c)}
.tm-note>span{flex:1;min-width:0}
.tm-note .tm-ic{width:18px;height:18px;fill:none;stroke:var(--warn);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.tm-note.info .tm-ic{stroke:var(--c)}
.tm-x{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;color:var(--muted)}
.tm-x:hover{background:#ffffff12;color:var(--text)}
.tm-x .tm-ic{width:14px;height:14px;stroke:currentColor}

/* ---------- panel con la lista ---------- */
.tm-panel{position:relative;background:var(--card);border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden}
.tm-enter{animation:tm-in 220ms var(--ease) both}
@keyframes tm-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.tm-scroll{position:relative;height:clamp(360px,calc(100vh - 400px),820px);overflow:auto;overscroll-behavior:contain;outline:none}
.tm-scroll:focus-visible{box-shadow:inset 0 0 0 2px var(--c)}
.tm-head{position:sticky;top:0;z-index:3;display:grid;grid-template-columns:var(--cols);min-width:var(--minw);height:var(--headh,54px);padding:0;background:var(--card2);border-bottom:1px solid var(--line)}
.tm-hc{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;gap:1px;padding:6px 8px 7px;text-align:left;color:var(--muted);min-width:0;transition:color var(--t-fast) var(--ease)}
.tm-hc.num{align-items:flex-end;text-align:right}
.tm-hc:hover,.tm-hc.on{color:var(--text)}
.tm-hv{font:700 15px/1.2 var(--body);color:var(--y);font-variant-numeric:tabular-nums;min-height:18px;white-space:nowrap}
.tm-hc[data-c=conn] .tm-hv,.c-conn{--hc:39,228,255}
.tm-hl{display:inline-flex;align-items:center;gap:6px;font:600 12px var(--body);white-space:nowrap}
.tm-arr{display:none;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:5px solid var(--y)}
.tm-arr[data-d="1"]{display:inline-block}
.tm-arr[data-d="-1"]{display:inline-block;transform:rotate(180deg)}
.tm-body{position:relative;min-width:var(--minw)}
.tm-row{position:absolute;left:0;right:0;top:0;height:var(--rowh);display:grid;grid-template-columns:var(--cols);align-items:stretch;padding:0;border-bottom:1px solid var(--hair);cursor:default;contain:layout paint style}
.tm-row:hover{background:#ffffff09}
.tm-row.sel{background:#ffe6001a;box-shadow:inset 2px 0 0 var(--y)}
.tm-row.cat{background:#ffffff06;cursor:default}
.tm-row.cat .c-name .t{font:700 11.5px var(--body);letter-spacing:.08em;text-transform:uppercase;color:var(--c)}
.tm-row.cat .c-name .s{padding:1px 8px;border-radius:99px;background:#27e4ff1f;color:var(--c);font-weight:700}
.tm-row.cat:hover{background:#ffffff06}
.tm-row.child{color:#d9dae8}
.tm-row.child>.tm-c.c-name{padding-left:44px}
.tm-row.child .c-name .s{margin-left:auto}
.tm-row.hung .c-name .t{color:var(--bad)}
.tm-row>.tm-c:first-child{padding-left:20px}
.tm-hc:first-child{padding-left:20px}
.tm-hc:last-child{padding-right:16px}
.tm-row>.tm-c:last-child{padding-right:16px}
.tm-c{display:flex;align-items:center;gap:8px;min-width:0;padding:0 8px;overflow:hidden}
.tm-c .t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:0 1 auto}
.tm-c .s{color:var(--muted);font-size:11.5px;white-space:nowrap;flex:none}
.tm-c .s:empty{display:none}
.tm-c.num{justify-content:flex-end;text-align:right;font-variant-numeric:tabular-nums}
.tm-c.num .s{order:-1}
.tm-row.grp .c-name .s{padding:0 7px;border-radius:99px;background:#ffffff12;font-weight:700;color:var(--text)}
.tm-row.grp .c-name .t{font-weight:700}
.tm-c.c-path .t,.tm-c.c-desc .t,.tm-c.c-user .t{color:#c9cade}
.tm-chev{display:inline-grid;place-items:center;width:20px;height:20px;flex:none;margin-left:-4px;border-radius:6px;color:var(--muted)}
.tm-chev:hover{background:#ffffff14;color:var(--text)}
.tm-chev .tm-ic{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform var(--t-fast) var(--ease)}
.tm-chev.open .tm-ic{transform:rotate(90deg)}
.tm-lockic{display:none;flex:none;order:5}
.tm-lockic .tm-ic{width:14px;height:14px;fill:none;stroke:var(--c);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tm-c.c-name .t{order:1}
.tm-c.c-name .s{order:2}
.tm-dot{width:8px;height:8px;border-radius:50%;flex:none;background:var(--muted)}
.tm-dot[data-s=on]{background:var(--ok);box-shadow:0 0 0 3px #35f0a122}
.tm-dot[data-s=wait]{background:var(--warn)}
.tm-dot[data-s=off]{background:#6b6c82}

/* calor, como en el Administrador de tareas pero en amarillo Vyron */
.tm-c[data-h="1"]{background:#ffe60010}
.tm-c[data-h="2"]{background:#ffe6001f}
.tm-c[data-h="3"]{background:#ffe60033}
.tm-c[data-h="4"]{background:#ffe6004d}
.tm-c[data-h="5"]{background:#ffe60073}
.tm-c[data-h="5"] .t{color:#fff;font-weight:700}
.tm-c.c-conn[data-h="1"]{background:#27e4ff10}
.tm-c.c-conn[data-h="2"]{background:#27e4ff1f}
.tm-c.c-conn[data-h="3"]{background:#27e4ff33}
.tm-c.c-conn[data-h="4"]{background:#27e4ff4d}
.tm-c.c-conn[data-h="5"]{background:#27e4ff73}

/* estados de carga / vacío / error */
.tm-skel{position:absolute;left:0;right:0;top:var(--headh,54px);bottom:44px;overflow:hidden;background:var(--card)}
.tm-sk{display:flex;align-items:center;gap:24px;height:var(--rowh);padding:0 20px;border-bottom:1px solid var(--hair)}
.tm-sk i{position:relative;display:block;height:10px;border-radius:6px;background:#ffffff10;overflow:hidden}
.tm-sk i:first-child{margin-right:auto}
.tm-sk i::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,#ffffff1c,transparent);transform:translateX(-100%);animation:tm-shim 1.5s var(--ease) infinite}
@keyframes tm-shim{to{transform:translateX(100%)}}
.tm-empty{position:absolute;left:0;right:0;top:var(--headh,54px);bottom:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;text-align:center;background:var(--card);animation:tm-in 220ms var(--ease) both}
.tm-empty[hidden]{display:none}
.tm-empty b{font:700 16px var(--display)}
.tm-eic{width:34px;height:34px;fill:none;stroke:var(--muted);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.tm-empty.err .tm-eic{stroke:var(--bad)}
.tm-empty .btn{margin-top:6px}
.tm-footer{display:flex;align-items:center;gap:var(--s4);height:44px;padding:0 16px;border-top:1px solid var(--line);background:var(--card2);color:var(--muted);font-size:12px;position:relative;z-index:4}
.tm-live{display:inline-flex;align-items:center;gap:7px;font-weight:700}
.tm-live i{width:7px;height:7px;border-radius:50%;background:#6b6c82}
.tm-live[data-on="1"] i{background:var(--ok);animation:tm-pulse 2s ease-in-out infinite}
@keyframes tm-pulse{50%{opacity:.35}}

/* ---------- menú contextual ---------- */
.tm-menu{position:fixed;z-index:80;min-width:250px;max-width:340px;padding:6px;border-radius:12px;background:#14141f;border:1px solid var(--line-2);box-shadow:0 18px 50px #000b;animation:tm-pop 130ms var(--ease) both;transform-origin:top left}
.tm-menu.out{opacity:0;transition:opacity 100ms}
@keyframes tm-pop{from{opacity:0;transform:scale(.96) translateY(-4px)}to{opacity:1;transform:none}}
.tm-mi{display:flex;align-items:center;gap:8px;width:100%;padding:8px 12px 8px 8px;border-radius:8px;text-align:left;font:600 13px var(--body)}
.tm-mi:hover:not(:disabled),.tm-mi:focus-visible{background:#ffffff14;outline:none}
.tm-mi:disabled{opacity:.38;cursor:not-allowed}
.tm-mi.danger{color:var(--bad)}
.tm-mck{width:14px;flex:none;color:var(--y);font-size:9px;text-align:center}
.tm-mt{flex:1;min-width:0}
.tm-mhd{padding:6px 12px 3px 30px;font:700 10.5px var(--body);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.tm-msep{height:1px;margin:5px 4px;background:var(--line)}

/* ---------- modales ---------- */
.tm-modal{width:min(560px,calc(100vw - 32px))}
.tm-modal.danger{border-color:#ff5a7466}
.tm-mh{display:flex;align-items:center;gap:10px;margin-bottom:var(--s3)}
.tm-mh h2{margin:0}
.tm-mic{width:22px;height:22px;fill:none;stroke:var(--bad);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.tm-modal .modal-body{color:var(--text)}
.tm-modal .modal-body .muted{color:var(--muted);font-size:12.5px}
.tm-modal b{color:var(--text)}
.tm-ul{margin:8px 0 0;padding-left:18px;display:flex;flex-direction:column;gap:6px}
.tm-warnbox{display:flex;gap:12px;margin-top:10px;padding:12px 14px;border-radius:12px;background:#f5a5241f;border:1px solid #f5a52466}
.tm-warnbox .tm-ic{width:20px;height:20px;fill:none;stroke:var(--warn);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none;margin-top:1px}
.tm-warnbox p{margin-top:4px}
.tm-ack{display:flex;align-items:center;gap:10px;margin:0 0 var(--s4);cursor:pointer;font-weight:600}
.tm-ack input{width:18px;height:18px;accent-color:var(--y)}

/* ---------- adaptación ---------- */
@media (max-width:1000px){.tm-sum{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){
  .tm-sum{grid-template-columns:1fr}
  .tm-search{flex:1 1 100%}
  .tm-actions{width:100%;flex-wrap:wrap}
  .tm-scroll{height:clamp(320px,calc(100vh - 340px),700px)}
}

