/* FARMATURNOS | Equipo: registro comparativo anual (2026-11) */
.team-ledger {display:grid;gap:13px;min-width:0}
.team-ledger-head {display:flex;align-items:end;justify-content:space-between;gap:14px;flex-wrap:wrap}
.team-ledger-head h1 {font-size:25px;line-height:1.15;letter-spacing:-.025em;margin:0}
.team-ledger-head p {margin:5px 0 0;color:var(--ink-3);font-size:12px}
.team-ledger-actions {display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.team-ledger-actions label {display:flex;align-items:center;gap:6px;color:var(--ink-3);font-size:12px;font-weight:700}
.team-ledger-actions select {background:var(--surface);color:var(--ink);border:1px solid var(--line-strong);border-radius:8px;padding:8px 12px}
.team-ledger-summary {display:flex;flex-wrap:wrap;align-items:center;gap:0;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:11px 8px}
.team-ledger-summary>div {display:grid;gap:3px;padding:3px 16px;min-width:155px;border-right:1px solid var(--line);flex:1}
.team-ledger-summary>div:last-child {border-right:0}
.team-ledger-summary small {color:var(--ink-3);font-size:11px}
.team-ledger-summary strong {font-size:19px;font-variant-numeric:tabular-nums;color:var(--ink)}
.team-ledger-error {margin:0;padding:10px 12px;border-radius:9px;background:color-mix(in srgb,var(--amber) 11%,var(--surface));color:var(--ink);font-size:12px}
.team-ledger-tools {display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.team-ledger-search {display:flex;align-items:center;gap:9px;flex:1;min-width:210px;max-width:420px;border:1px solid var(--line-strong);background:var(--surface);border-radius:9px;padding:0 10px}
.team-ledger-search svg {width:16px;height:16px;color:var(--ink-3)}
.team-ledger-search input {flex:1;min-width:0;background:transparent;color:var(--ink);border:0;outline:0;padding:10px 2px;font-size:13px}
.team-ledger-search:focus-within {outline:2px solid var(--brand);outline-offset:2px}
.team-ledger-check {display:flex;gap:6px;align-items:center;cursor:pointer;font-size:12px;color:var(--ink-2);font-weight:650}
.team-ledger-check input {accent-color:var(--brand)}
.team-tag {display:inline-flex;align-items:center;justify-content:center;gap:4px;border-radius:6px;padding:4px 7px;font-weight:750;line-height:1.2;font-size:11px;white-space:nowrap;border:1px solid transparent;font-variant-numeric:tabular-nums}
.team-tag.good {color:var(--good);background:color-mix(in srgb,var(--good) 13%,var(--surface));border-color:color-mix(in srgb,var(--good) 24%,transparent)}
.team-tag.warn {color:var(--amber);background:color-mix(in srgb,var(--amber) 13%,var(--surface));border-color:color-mix(in srgb,var(--amber) 27%,transparent)}
.team-tag.bad {color:var(--danger);background:color-mix(in srgb,var(--danger) 11%,var(--surface));border-color:color-mix(in srgb,var(--danger) 25%,transparent)}
.team-tag.neutral,.team-tag.muted {background:var(--surface-inset);color:var(--ink-2);border-color:var(--line)}
.team-tag.muted {font-weight:600}
.team-ledger-scroll {width:100%;overflow-x:auto;overflow-y:hidden;border:1px solid var(--line);border-radius:12px;background:var(--surface);scrollbar-width:thin}
.team-ledger-table {border-collapse:collapse;width:100%;min-width:1010px;table-layout:fixed;color:var(--ink)}
.team-ledger-table th,.team-ledger-table td {text-align:left;vertical-align:middle;padding:11px 9px;border-bottom:1px solid var(--line);font-size:12px}
.team-ledger-table th:nth-child(1){width:18%}
.team-ledger-table th:nth-child(2){width:12%}
.team-ledger-table th:nth-child(3){width:10%}
.team-ledger-table th:nth-child(4){width:10%}
.team-ledger-table th:nth-child(5){width:20%}
.team-ledger-table th:nth-child(6){width:10%}
.team-ledger-table th:nth-child(7){width:12%}
.team-ledger-table th:nth-child(8){width:8%}
.team-ledger-table thead th {background:var(--surface-inset);color:var(--ink-3);font-size:11px;font-weight:780;position:sticky;top:0;z-index:1;white-space:normal}
.team-ledger-table thead button {background:none;border:0;color:inherit;cursor:pointer;padding:3px 1px;font:inherit;text-align:left}
.team-ledger-table thead button:hover,.team-ledger-table thead button[aria-pressed="true"] {color:var(--brand-strong);text-decoration:underline;text-underline-offset:3px}
.team-ledger-table tbody tr:hover {background:color-mix(in srgb,var(--brand) 4%,var(--surface))}
.team-ledger-table tbody tr:last-child td,.team-ledger-table tbody tr:last-child th {border-bottom:0}
.team-ledger-person {display:flex;align-items:center;gap:8px;min-width:0}
.team-ledger-person i {display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:7px;font-style:normal;color:#fff;background:var(--person-color);font-size:10px;font-weight:800}
.team-ledger-person>span {display:grid;min-width:0;gap:3px}
.team-ledger-person b {font-size:12px;overflow-wrap:anywhere}
.team-ledger-table td small,.team-ledger-person small {display:block;margin-top:4px;color:var(--ink-3);font-size:10px;line-height:1.4;font-weight:500}
.team-ledger-table td> b {font-size:12px;font-variant-numeric:tabular-nums}
.team-ledger-plan {display:grid;gap:5px;min-width:0}
.team-ledger-plan b {font-variant-numeric:tabular-nums}
.team-ledger-meter {display:block;height:5px;overflow:hidden;border-radius:99px;background:var(--surface-inset);border:1px solid var(--line)}
.team-ledger-meter i {display:block;height:100%;background:var(--brand);border-radius:99px}
.team-ledger-buttons {display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.team-ledger-buttons .button {min-height:30px;font-size:11px;padding:5px 7px}
.team-ledger-buttons .button svg {width:13px;height:13px}
.team-ledger-empty {text-align:center!important;color:var(--ink-3);padding:25px!important}
.team-ledger-footnote {font-size:11px;color:var(--ink-3);margin:0;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.team-ledger-detail {background:var(--surface);border:1px solid var(--line);border-radius:11px}
.team-ledger-detail>summary {display:flex;align-items:center;gap:8px;padding:13px 15px;cursor:pointer;font-weight:740;font-size:13px;color:var(--ink);list-style:none}
.team-ledger-detail>summary::after {content:'⌄';margin-left:auto;color:var(--ink-3)}
.team-ledger-detail[open]>summary {border-bottom:1px solid var(--line)}
.team-ledger-detail[open]>summary::after {transform:rotate(180deg)}
.team-ledger-detail>summary small {font-size:11px;color:var(--ink-3);font-weight:500}
.team-ledger-detail-body {padding:13px 15px;overflow:auto}
.team-archive-table {width:100%;border-collapse:collapse;font-size:12px}
.team-archive-table td,.team-archive-table th {border-bottom:1px solid var(--line);padding:9px;text-align:left}
.team-ledger button:focus-visible,.team-ledger select:focus-visible,.team-ledger summary:focus-visible {outline:2px solid var(--brand);outline-offset:2px}
@media(max-width:1080px){.team-ledger-summary>div{min-width:135px;padding:5px 12px}.team-ledger-scroll{border-radius:10px}}
@media(max-width:700px){
 .team-ledger-head h1 {font-size:22px}
 .team-ledger-actions {width:100%;justify-content:space-between}
 .team-ledger-summary {display:grid;grid-template-columns:1fr 1fr;padding:4px}
 .team-ledger-summary>div {padding:9px 11px;border-bottom:1px solid var(--line)}
 .team-ledger-summary>div:nth-child(2n) {border-right:0}
 .team-ledger-summary>div:nth-last-child(-n+2) {border-bottom:0}
 .team-ledger-summary strong {font-size:17px}
 .team-ledger-search {max-width:none}
 .team-ledger-scroll {overflow:visible}
 .team-ledger-table {min-width:0;display:block}
 .team-ledger-table thead {display:none}
 .team-ledger-table tbody {display:block}
 .team-ledger-table tbody tr {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px;padding:10px 12px;border-bottom:1px solid var(--line)}
 .team-ledger-table tbody tr:last-child {border-bottom:0}
 .team-ledger-table tbody th,.team-ledger-table tbody td {padding:8px 0;border:0;display:grid;gap:4px;min-width:0}
 .team-ledger-table tbody th:first-child {grid-column:1/-1;width:auto;padding-bottom:11px;border-bottom:1px dashed var(--line)}
 .team-ledger-table tbody td:before {content:attr(data-label);display:block;font-size:10px;color:var(--ink-3);font-weight:700}
 .team-ledger-table tbody td:last-child {grid-column:1/-1}
 .team-ledger-table .team-ledger-buttons {flex-wrap:nowrap}
 .team-ledger-table .team-ledger-buttons .button {min-height:36px;justify-content:center}
 .team-ledger-detail>summary {flex-wrap:wrap}
}
@media(prefers-reduced-motion:no-preference){.team-ledger-meter i {transition:width 180ms ease-out}}
