/* ALTEA_UI_POLISH_V830 — identidad original, detalles suaves y locales. */
.altea-polish{--ap-green:#558d70;--ap-green-soft:rgba(85,141,112,.12);--ap-paper:#fff;--ap-text:#365c46;--ap-border:#dbe5de}
.altea-polish[data-theme="dark"]{--ap-green:#91b79e;--ap-green-soft:rgba(145,183,158,.12);--ap-paper:#24292a;--ap-text:#d4e6d9;--ap-border:#3c4941}
.ap-sr{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
.ap-updated{outline:1px solid var(--ap-green);outline-offset:-1px;box-shadow:inset 3px 0 var(--ap-green)!important}
.ap-updated>td{background:color-mix(in srgb,var(--ap-green) 10%,var(--ap-paper))!important}
.ap-updated:not(tr){background:color-mix(in srgb,var(--ap-green) 8%,var(--surface,var(--ap-paper)))!important}
.altea-polish :is(.btn.primary,.primary-button,.secondary-button,.ap-empty-action,.ap-crumb-button):active:not(:disabled):not(.ap-saving){transform:translateY(1px);transition:transform 70ms ease-out}
.ap-saving,.ap-saved{position:relative!important;color:transparent!important;pointer-events:none}
.ap-saving>*,.ap-saved>*{visibility:hidden}
.ap-saving::after,.ap-saved::after{content:attr(data-ap-label);position:absolute;inset:0;display:grid;place-items:center;color:var(--ap-text);background:var(--ap-paper);border:1px solid var(--ap-border);border-radius:inherit;font-size:inherit;font-weight:650;white-space:nowrap}
.ap-saving::before{content:"";position:absolute;left:9px;top:calc(50% - 5px);width:10px;height:10px;border:1.5px solid var(--ap-border);border-top-color:var(--ap-green);border-radius:50%;z-index:1;animation:ap-spin .7s linear infinite}
.ap-saving[data-ap-label=""]::before{left:calc(50% - 5px)}
.ap-saved::after{color:var(--ap-text);background:color-mix(in srgb,var(--ap-green) 12%,var(--ap-paper));border-color:var(--ap-green)}
@keyframes ap-spin{to{transform:rotate(360deg)}}
.altea-polish[data-ux-system="tasks"] .topbar{position:sticky;top:0;z-index:30;background:var(--solid,var(--surface))}
.altea-polish[data-ux-system="tasks"] .filters{position:sticky;top:var(--ap-topbar,69px);z-index:12;background:var(--bg,var(--solid,var(--surface)));border-bottom:1px solid var(--line);padding-left:8px;padding-right:8px;border-radius:8px 8px 0 0}
.altea-polish .list-view .ap-table-scroll{max-height:clamp(230px,calc(100dvh - 310px),680px);overscroll-behavior-y:contain;scrollbar-gutter:stable;scrollbar-width:thin}
.altea-polish .ap-table-scroll table{border-collapse:separate;border-spacing:0}
.altea-polish .ap-table-scroll thead th{position:sticky;top:0;z-index:3;background:var(--ah-bg,var(--solid,var(--ap-paper)));box-shadow:0 1px var(--line,var(--ap-border))}
.altea-polish .ap-table-scroll thead th.project-column{z-index:4}
.altea-polish .ap-table-scroll:focus-visible{outline:2px solid var(--ap-green);outline-offset:-2px}
.ap-crumbs{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap;font-size:.8rem;line-height:1.45}
#project-main>.ap-crumbs{margin:0 0 18px;color:var(--ap-text)}
.altea-polish .project-detail-section>.detail-breadcrumb{display:none}
.breadcrumb:has(.ap-crumbs){min-width:0;gap:8px}
.breadcrumb>.ap-crumbs{flex-wrap:nowrap;max-width:100%;overflow-x:auto;scrollbar-width:none}
.breadcrumb>.ap-crumbs>*{flex-shrink:0}
.ap-crumb-button{background:transparent;border:0;border-radius:5px;padding:3px 5px;color:var(--muted,var(--ap-text));font:inherit;cursor:pointer;max-width:220px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ap-crumb-button:hover{background:var(--ap-green-soft);color:var(--ap-text)}
.ap-crumb-current{font-weight:650;max-width:320px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--text,var(--ap-text))}
.ap-crumb-sep{opacity:.55}
.ap-crumb-button:focus-visible,.ap-empty-action:focus-visible{outline:2px solid var(--ap-green);outline-offset:2px}
.altea-polish .pg-drop-before>td{box-shadow:inset 0 3px var(--ap-green)!important}
.altea-polish .pg-checklist-row.pg-drop-before{box-shadow:inset 0 3px var(--ap-green)!important}
.altea-polish .pg-drop-inside>td{background:color-mix(in srgb,var(--ap-green) 14%,var(--ap-paper))!important}
.altea-polish [data-drop].drag-over{outline:2px solid var(--ap-green);outline-offset:-2px}
.altea-polish [data-subtask-drop].subtask-drag-over{outline:1px dashed var(--ap-green);outline-offset:2px}
.altea-polish .subtask-row.dragging{border-top:2px solid var(--ap-green)}
.ap-drop-hint{position:fixed;z-index:9999;max-width:min(300px,calc(100vw - 16px));padding:8px 12px;border:1px solid var(--ap-green);border-radius:8px;background:var(--ap-paper);color:var(--ap-text);box-shadow:0 4px 12px rgba(20,45,30,.12);font-size:.8rem;font-weight:600;pointer-events:none;overflow-wrap:anywhere}
.ap-empty-copy{max-width:450px;margin:auto;padding:22px 16px;text-align:center;color:var(--muted,var(--ah-muted,var(--ap-text)));white-space:normal}
.ap-empty-copy strong{display:block;color:var(--text,var(--ah-text,var(--ap-text)));font-size:1rem;line-height:1.4;margin-top:10px}
.ap-empty-copy p{font-size:.875rem;line-height:1.6;margin:8px 0 15px}
.ap-empty-symbol{display:grid;place-items:center;width:44px;height:44px;margin:auto;border-radius:13px;background:var(--ap-green-soft);color:var(--ap-green)}
.ap-empty-symbol svg{width:25px;height:25px;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.ap-empty-action{background:var(--ap-green-soft);color:var(--ap-text);border:1px solid var(--ap-border);border-radius:8px;padding:8px 13px;font:inherit;font-size:.875rem;font-weight:600;cursor:pointer}
.ap-empty-action:hover{border-color:var(--ap-green)}
@media(max-width:760px){.ap-crumbs{font-size:.75rem;gap:4px}.ap-crumb-current{max-width:170px}.ap-crumb-button{max-width:120px}#project-main>.ap-crumbs{margin-bottom:12px}.altea-polish .list-view .ap-table-scroll{max-height:58dvh}.altea-polish[data-ux-system="tasks"] .filters{position:static}.ap-empty-copy{padding:18px 12px}}
@media(prefers-reduced-motion:reduce){.ap-saving::before{animation:none}.altea-polish :is(.btn.primary,.primary-button,.secondary-button,.ap-empty-action,.ap-crumb-button):active{transform:none!important;transition:none!important}}