/* Victoria · Mis tareas (gasca_tareas.js) */
.ta { padding: 18px 22px 30px; max-width: 1640px; margin: 0 auto; font-family: 'Inter', sans-serif; color: #0f172a; }
.ta-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ta-cab h2 { margin: 0; font-size: 1.35rem; font-weight: 800; display: flex; gap: 10px; align-items: center; }
.ta-cab h2 i { color: #b4000c; }
.ta-cab p { margin: 4px 0 0; color: #64748b; font-size: .88rem; }
.ta-btn { border: 1px solid #cbd5e1; background: #fff; color: #0f172a; border-radius: 9px; padding: 7px 12px; font-weight: 700; font-size: .83rem; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.ta-btn:hover { border-color: #94a3b8; }
.ta-btn:disabled { opacity: .6; cursor: wait; }
.ta-btn.ta-prim { background: #b4000c; border-color: #b4000c; color: #fff; }
.ta-btn.ta-on { background: #0f172a; border-color: #0f172a; color: #fff; }
.ta-btn.ta-peligro { color: #b4000c; border-color: #fecaca; }
.ta-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ta-kpi { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 14px; }
.ta-kpi-l { font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #64748b; display: flex; gap: 6px; align-items: center; }
.ta-kpi-v { font-size: 1.7rem; font-weight: 800; margin-top: 2px; }
.ta-kpi-s { font-size: .75rem; color: #64748b; }
.ta-k-mal { border-color: #fca5a5; background: #fef2f2; } .ta-k-mal .ta-kpi-v { color: #b4000c; }
.ta-k-hoy { border-color: #fdba74; background: #fff7ed; } .ta-k-hoy .ta-kpi-v { color: #c2410c; }
.ta-k-pronto { border-color: #fde68a; background: #fffbeb; } .ta-k-pronto .ta-kpi-v { color: #a16207; }
.ta-barra { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.ta-barra select, .ta-buscar input { border: 1px solid #cbd5e1; border-radius: 9px; padding: 7px 10px; font-size: .85rem; background: #fff; }
.ta-buscar { position: relative; flex: 1 1 180px; max-width: 320px; }
.ta-buscar i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: .8rem; }
.ta-buscar input { width: 100%; padding-left: 30px; box-sizing: border-box; }
.ta-tabs { display: inline-flex; background: #f1f5f9; border-radius: 10px; padding: 3px; gap: 2px; }
.ta-tabs button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-weight: 700; font-size: .82rem; color: #475569; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.ta-tabs button.ta-on { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.ta-modo { margin-left: auto; }
.ta-lista { display: grid; gap: 6px; }
.ta-fila { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.ta-fila:hover { border-color: #94a3b8; }
.ta-f-mal { border-left-color: #b4000c; } .ta-f-hoy { border-left-color: #ea580c; } .ta-f-ok { opacity: .7; border-left-color: #16a34a; }
.ta-f-ok .ta-f-t { text-decoration: line-through; }
.ta-check { border: 0; background: none; font-size: 1.25rem; color: #94a3b8; cursor: pointer; padding: 2px; }
.ta-check:hover, .ta-f-ok .ta-check { color: #16a34a; }
.ta-f-c { flex: 1; min-width: 0; }
.ta-f-t { font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ta-f-s { font-size: .78rem; color: #64748b; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ta-f-v { text-align: right; display: grid; gap: 3px; justify-items: end; font-size: .82rem; white-space: nowrap; }
.ta-chip { display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: #475569; }
.ta-c-mal { background: #fee2e2; color: #b4000c; } .ta-c-hoy { background: #ffedd5; color: #c2410c; } .ta-c-pronto { background: #fef3c7; color: #a16207; } .ta-c-ok { background: #dcfce7; color: #15803d; }
.ta-est { font-weight: 700; } .ta-e-ab { color: #2563eb; } .ta-e-cu { color: #d97706; } .ta-e-te { color: #16a34a; }
.ta-vacio, .ta-cargando, .ta-error { background: #fff; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 28px; text-align: center; color: #64748b; display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.ta-error { color: #b4000c; border-color: #fecaca; }
.ta-nota { font-size: .76rem; color: #64748b; margin-top: 12px; }
.ta-cal-h { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; } .ta-cal-h b { font-size: 1.05rem; text-transform: capitalize; min-width: 150px; text-align: center; }
.ta-cal-h .ta-nota { margin: 0 0 0 8px; }
.ta-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ta-cal-ds { font-size: .7rem; font-weight: 800; text-transform: uppercase; color: #64748b; text-align: center; padding: 4px 0; }
.ta-dia { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; min-height: 92px; padding: 4px; cursor: pointer; overflow: hidden; }
.ta-dia:hover { border-color: #94a3b8; } .ta-fuera { background: transparent; border: 0; cursor: default; }
.ta-hoy { border: 2px solid #b4000c; } .ta-dia-n { font-size: .75rem; font-weight: 800; color: #475569; margin-bottom: 2px; }
.ta-ev { font-size: .7rem; font-weight: 600; background: #dbeafe; color: #1e3a8a; border-radius: 5px; padding: 2px 5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ta-ev-mal { background: #fee2e2; color: #b4000c; } .ta-ev-alta { background: #ffedd5; color: #9a3412; } .ta-ev-ok { background: #dcfce7; color: #15803d; text-decoration: line-through; }
.ta-ev-mas { font-size: .68rem; color: #64748b; margin-top: 2px; }
.ta-modal-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 2147483000; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 12px; overflow: auto; }
.ta-modal { background: #fff; border-radius: 14px; width: min(640px, 100%); box-shadow: 0 20px 60px rgba(15, 23, 42, .3); font-family: 'Inter', sans-serif; }
.ta-modal-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #e2e8f0; font-size: 1.05rem; }
.ta-x { border: 0; background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: #64748b; }
.ta-modal-b { padding: 16px 18px 18px; }
.ta-form { display: grid; gap: 10px; }
.ta-form label { display: grid; gap: 4px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #475569; }
.ta-form input, .ta-form textarea, .ta-form select, .ta-para input[type=search], .ta-notas textarea { border: 1px solid #cbd5e1; border-radius: 9px; padding: 8px 10px; font: inherit; font-size: .9rem; text-transform: none; letter-spacing: 0; font-weight: 400; color: #0f172a; box-sizing: border-box; width: 100%; }
.ta-form-f { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.ta-form-b { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.ta-para { display: grid; gap: 6px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; }
.ta-r { display: flex !important; flex-direction: row; gap: 8px; align-items: center; text-transform: none !important; letter-spacing: 0 !important; font-size: .88rem !important; font-weight: 600 !important; color: #0f172a !important; }
.ta-sel { max-height: 220px; overflow: auto; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; margin-top: 6px; }
.ta-op { display: flex !important; flex-direction: row; gap: 8px; align-items: center; padding: 5px 8px; text-transform: none !important; letter-spacing: 0 !important; font-size: .86rem !important; font-weight: 500 !important; color: #0f172a !important; border-bottom: 1px solid #f1f5f9; }
.ta-vacio-m { margin-top: 12px; font-size: .86rem; color: #475569; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }   /* INC-00994 */
.ta-tab-n { background: #2563eb; color: #fff; border-radius: 999px; padding: 0 7px; font-size: .72rem; font-weight: 700; margin-left: 2px; }
.ta-op[hidden] { display: none !important; }   /* INC-00992: si no, el buscador de personas no oculta nada */
.ta-op small { color: #94a3b8; margin-left: auto; } .ta-op input { width: auto !important; }
.ta-ficha { display: grid; gap: 12px; }
.ta-ficha-cab { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ta-ficha-d { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.ta-ficha-d small { display: block; color: #64748b; font-size: .72rem; }
.ta-ficha-desc { background: #f8fafc; border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.ta-ficha-est { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .ta-ficha-est b { margin-right: 6px; }
.ta-lote { border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; font-size: .85rem; display: grid; gap: 4px; }
.ta-lote-f { display: flex; gap: 10px; align-items: center; } .ta-lote-f small { color: #94a3b8; margin-left: auto; }
.ta-editar summary { cursor: pointer; font-weight: 700; font-size: .85rem; color: #2563eb; margin-bottom: 8px; }
.ta-notas { display: grid; gap: 6px; }
.ta-n { background: #f8fafc; border-radius: 8px; padding: 6px 10px; font-size: .86rem; } .ta-n small { color: #64748b; }
.ta-n-est { background: none; padding: 2px 10px; font-size: .78rem; color: #64748b; border-left: 2px solid #e2e8f0; border-radius: 0; }
@media (max-width: 640px) {
    .ta { padding: 12px 12px 24px; }
    .ta-modo { margin-left: 0; }
    .ta-dia { min-height: 64px; } .ta-ev { font-size: .62rem; }
    .ta-f-s { white-space: normal; }
}

/* ── Fase 2/3 (10/11/2026): calendario y próximas a la vez, colores por tarea, predefinidas ── */
.ta-doble { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.ta-doble-lis { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px; max-height: 760px; overflow: auto; box-shadow: 0 4px 18px rgba(15, 23, 42, .05); }
.ta-doble-cal { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px; box-shadow: 0 4px 18px rgba(15, 23, 42, .05); }
.ta-prox-h { font-weight: 800; font-size: 1rem; margin: 2px 2px 10px; display: flex; gap: 8px; align-items: center; } .ta-prox-h i { color: #f59e0b; }
.ta-grupo { margin-bottom: 12px; display: grid; gap: 6px; }
.ta-grupo-h { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c); display: flex; gap: 6px; align-items: center; }
.ta-grupo-h b { background: var(--c); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .68rem; }
.ta-fila { border-left: 0; position: relative; overflow: hidden; transition: transform .12s, box-shadow .12s; }
.ta-fila:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15, 23, 42, .08); }
.ta-fila::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--c1), var(--c2)); }
.ta-badge { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; color: #fff; display: grid; place-items: center; align-content: center; line-height: 1; box-shadow: 0 4px 10px rgba(15, 23, 42, .15); }
.ta-badge b { font-size: 1.15rem; font-weight: 800; } .ta-badge small { font-size: .58rem; font-weight: 800; letter-spacing: .06em; opacity: .9; margin-top: 2px; }
.ta-f-v { align-self: center; }
.ta-c-rep { background: #ede9fe; color: #6d28d9; } .ta-c-cen { background: #e0f2fe; color: #0369a1; } .ta-c-inc { background: #fce7f3; color: #be185d; }
.ta-ev { color: #fff !important; font-weight: 700; border-radius: 6px; padding: 3px 6px; box-shadow: 0 2px 6px rgba(15, 23, 42, .12); }
.ta-ev i { font-size: .6rem; opacity: .85; }
.ta-ev:hover { filter: brightness(1.08); }
.ta-ev-ok { opacity: .55; text-decoration: line-through; }
.ta-finde { background: #f8fafc; } .ta-pasado .ta-dia-n { color: #cbd5e1; }
.ta-hoy { border: 2px solid #b4000c; box-shadow: 0 0 0 3px rgba(180, 0, 12, .08); } .ta-hoy .ta-dia-n { color: #b4000c; }
.ta-doble .ta-dia { min-height: 82px; }
.ta-kpi { position: relative; overflow: hidden; }
.ta-k-1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); border: 0; color: #fff; } .ta-k-1 .ta-kpi-l, .ta-k-1 .ta-kpi-s { color: rgba(255, 255, 255, .85); }
.ta-k-2 { background: linear-gradient(135deg, #0ea5e9, #14b8a6); border: 0; color: #fff; } .ta-k-2 .ta-kpi-l, .ta-k-2 .ta-kpi-s { color: rgba(255, 255, 255, .85); }
.ta-k-mal { background: linear-gradient(135deg, #ef4444, #b91c1c); border: 0; color: #fff; } .ta-k-mal .ta-kpi-v { color: #fff; } .ta-k-mal .ta-kpi-l, .ta-k-mal .ta-kpi-s { color: rgba(255, 255, 255, .85); }
.ta-k-hoy { background: linear-gradient(135deg, #f97316, #ea580c); border: 0; color: #fff; } .ta-k-hoy .ta-kpi-v { color: #fff; } .ta-k-hoy .ta-kpi-l, .ta-k-hoy .ta-kpi-s { color: rgba(255, 255, 255, .85); }
.ta-k-pronto { background: linear-gradient(135deg, #f59e0b, #eab308); border: 0; color: #fff; } .ta-k-pronto .ta-kpi-v { color: #fff; } .ta-k-pronto .ta-kpi-l, .ta-k-pronto .ta-kpi-s { color: rgba(255, 255, 255, .9); }
.ta-mh-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.ta-aviso-inc { background: #fce7f3; color: #be185d; border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: .85rem; }
.ta-pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ta-pl { color: #fff; border-radius: 16px; padding: 16px; display: grid; gap: 6px; box-shadow: 0 8px 22px rgba(15, 23, 42, .14); }
.ta-pl-off { filter: grayscale(.8); opacity: .75; }
.ta-pl-t { font-size: 1.05rem; font-weight: 800; }
.ta-pl-s { font-size: .8rem; opacity: .92; }
.ta-pl-n { display: flex; gap: 12px; flex-wrap: wrap; font-size: .78rem; background: rgba(255, 255, 255, .16); border-radius: 10px; padding: 6px 10px; margin-top: 4px; }
.ta-pl-n b { font-size: .95rem; }
.ta-pl-b .ta-btn { background: rgba(255, 255, 255, .92); border: 0; }
@media (max-width: 1000px) { .ta-doble { grid-template-columns: 1fr; } .ta-doble-lis { order: -1; max-height: none; } }
.ta-r input, .ta-op input, .ta-form .ta-r input { width: auto !important; flex: 0 0 auto; margin: 0; }
.ta-r { justify-content: flex-start; }

/* ── INC-00806 (alex): pantalla más bonita: cabecera, gráficos e iconos ── */
.ta-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 20px 24px; border-radius: 20px; margin-bottom: 14px; color: #fff;
    background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .18), transparent 40%), linear-gradient(120deg, #b4000c 0%, #c026d3 55%, #6366f1 100%); box-shadow: 0 14px 34px rgba(124, 58, 237, .22); }
.ta-hero-ic { width: 58px; height: 58px; border-radius: 16px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; font-size: 1.6rem; }
.ta-hero-t { flex: 1 1 260px; } .ta-hero-t small { opacity: .85; font-weight: 600; } .ta-hero-t h2 { margin: 0; font-size: 1.6rem; font-weight: 800; color: #fff; } .ta-hero-t p { margin: 4px 0 0; opacity: .95; font-size: .95rem; color: #fff; }
.ta-hero-ring { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .14); border-radius: 16px; padding: 8px 14px 8px 8px; }
.ta-hero-ring svg { width: 64px; height: 64px; transform: rotate(-90deg); } .ta-ring-f { fill: none; stroke: rgba(255, 255, 255, .25); stroke-width: 8; }
.ta-ring-v { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; }
.ta-hero-ring b { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1; } .ta-hero-ring small { font-size: .72rem; opacity: .9; }
.ta-hero-btn { background: #fff; color: #b4000c; border: 0; padding: 10px 16px; font-size: .9rem; box-shadow: 0 6px 16px rgba(15, 23, 42, .18); }
.ta-graf { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ta-g { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 14px 16px; box-shadow: 0 4px 16px rgba(15, 23, 42, .04); }
.ta-g-h { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #475569; display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.ta-g-dona { display: flex; align-items: center; gap: 14px; } .ta-dona { width: 112px; height: 112px; flex: 0 0 auto; }
.ta-dona-n { font-size: 22px; font-weight: 800; fill: #0f172a; } .ta-dona-s { font-size: 10px; fill: #64748b; }
.ta-leg { display: grid; gap: 6px; font-size: .82rem; color: #475569; flex: 1; } .ta-leg span { display: flex; align-items: center; gap: 6px; } .ta-leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ta-leg b { margin-left: auto; color: #0f172a; }
.ta-leg-h { grid-template-columns: repeat(3, 1fr); margin-top: 8px; } .ta-leg-h b { margin-left: 4px; }
.ta-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 16px; }
.ta-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.ta-bar span { width: 100%; max-width: 30px; border-radius: 7px 7px 3px 3px; position: relative; min-height: 4px; }
.ta-bar em { position: absolute; top: -17px; left: 0; right: 0; text-align: center; font-style: normal; font-size: .7rem; font-weight: 800; color: #334155; }
.ta-bar small { font-size: .62rem; color: #64748b; font-weight: 700; }
.ta-stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #f1f5f9; }
.ta-spark { width: 100%; height: 56px; }
.ta-f-ic { margin-right: 2px; font-size: .9rem; }
.ta-mh-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #fff; margin-right: 10px; vertical-align: middle; font-size: .85rem; }
.ta-tabs button.ta-on { color: #b4000c; }
@media (max-width: 640px) { .ta-hero { padding: 16px; } .ta-hero-t h2 { font-size: 1.3rem; } .ta-hero-btn { width: 100%; justify-content: center; } }
