/* Pantallas: Inicio, Clientes, Seguimiento, Facturación, Renovaciones y Seguridad. */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.page-title { font: 800 22px/1.15 var(--display); font-stretch: 104%; letter-spacing: -.015em; }
.page-sub { margin-top: 3px; color: var(--fg2); font-size: 13.5px; max-width: 92ch; }
.page-date { display: none; color: var(--fg3); font-size: 12.5px; white-space: nowrap; }
.page-head.slim { margin-bottom: 12px; }
@media (min-width: 760px) { .page-date { display: block; } .page-title { font-size: 24px; } }
.view.fill .page-head { padding: 14px 14px 0; flex: none; }
@media (min-width: 960px) { .view.fill .page-head { padding: 20px 24px 0; } }

/* ---------- Indicadores ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; }
.kpi { position: relative; display: grid; align-content: start; gap: 3px; padding: 13px 14px; text-align: left; transition: background-color .15s; }
.kpi:nth-child(even) { box-shadow: inset 1px 0 0 var(--line); }
.kpi:nth-child(n + 3) { border-top: 1px solid var(--line); }
.kpi:hover { background: rgba(255, 255, 255, .025); }
.kpi:focus-visible { outline-offset: -3px; }
.kpi-l { font-size: 12.5px; font-weight: 500; color: var(--fg2); line-height: 1.3; min-height: 2.6em; padding-right: 14px; }
.kpi-v { display: flex; align-items: center; gap: 8px; min-height: 38px; }
.kpi-v b { font: 850 32px/1 var(--display); font-stretch: 108%; letter-spacing: -.01em; font-variant-numeric: tabular-nums; transition: transform .2s var(--ease-out); }
.kpi.hot .kpi-v b { color: var(--accent); }
.kpi:hover .kpi-v b { transform: translateY(-1px); }
.kpi-s { font-size: 12px; color: var(--fg3); line-height: 1.35; }
.kpi-go { position: absolute; top: 12px; right: 12px; width: 13px; height: 13px; color: var(--fg3); opacity: 0; transition: opacity .15s, transform .18s var(--ease-out); transform: translate(-2px, 2px); }
.kpi:hover .kpi-go { opacity: 1; transform: none; }
@media (min-width: 760px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpi { padding: 15px 18px 16px; }
  .kpi:nth-child(n + 3) { border-top: 0; }
  .kpi + .kpi { box-shadow: inset 1px 0 0 var(--line); }
  .kpi-l { min-height: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .kpi-v b { font-size: 36px; }
}

.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
@media (min-width: 1100px) {
  .cols { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
  .cols.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 0; }
  .cols.one { grid-template-columns: minmax(0, 1fr); }
}
.cols.even + .panel, .panel + .panel { margin-top: 12px; }
.cols > .panel + .panel { margin-top: 0; }

/* ---------- Hoy tienes que… ---------- */
.tasks { margin-top: 8px; }
.task {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 6px 11px; align-items: center;
  padding: 9px 16px; border-top: 1px solid var(--line); transition: background-color .12s; animation: row-in .28s var(--ease-out);
}
@keyframes row-in { from { opacity: 0; transform: translateY(4px); } }
.task:hover { background: rgba(255, 255, 255, .02); }
.task-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-m); background: var(--n3); color: var(--fg2); }
.task-ico.k-send { background: var(--accent-soft); color: var(--accent); }
.task-ico.k-review { background: rgba(240, 113, 122, .13); color: var(--red); }
.task-ico.k-pay { background: rgba(240, 113, 122, .13); color: var(--red); }
.task-ico.k-renew { background: rgba(63, 208, 201, .12); color: var(--teal); }
.task-ico.k-call { background: rgba(110, 168, 255, .13); color: var(--blue); }
.task-t { text-align: left; min-width: 0; }
.task-t b { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.task-t small { display: block; color: var(--fg3); font-size: 12.5px; line-height: 1.35; }
.task-t:hover b { color: #fff; }
.task > .btn { grid-column: 2; justify-self: start; }
@media (min-width: 600px) {
  .task { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .task > .btn { grid-column: auto; }
}

/* ---------- Ritmo ---------- */
.cols > .panel { display: flex; flex-direction: column; }
.rates { margin-top: 8px; flex: 1; display: grid; grid-auto-rows: 1fr; }
.rate { display: flex; align-items: center; gap: 13px; padding: 10px 16px; border-top: 1px solid var(--line); }
.rate-t { flex: 1; min-width: 0; }
.rate-t b { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.rate-t small { display: block; color: var(--fg3); font-size: 12.5px; line-height: 1.35; }

/* ---------- Gráfico ---------- */
.chart-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 6px 16px 0; }
.chart-head small { color: var(--fg3); }
.plot { position: relative; margin: 16px 72px 0 16px; padding-left: 40px; height: 170px; }
.plot-y span { position: absolute; left: 0; transform: translateY(-50%); font: 500 11px/1 var(--mono); color: var(--fg3); }
.plot-area { position: relative; height: 100%; touch-action: pan-y; }
.grid-line { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.plot-area svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plot-line { fill: none; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.plot-g { transform-origin: 50% 100%; transform-box: view-box; }
.pt { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--n2); border: 1.5px solid var(--accent); transform: translate(-50%, -50%); pointer-events: none; }
.pt.last { width: 12px; height: 12px; background: var(--accent-hi); border: 2px solid var(--n2); box-shadow: 0 0 0 1.5px var(--accent), 0 4px 10px rgba(46, 155, 255, .35); }
.pt-val { position: absolute; left: calc(100% + 12px); transform: translateY(-50%); font-size: 12px; font-weight: 600; color: var(--accent-hi); white-space: nowrap; pointer-events: none; }
.cross { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .12s; }
.cross.on { opacity: 1; }
.cross-line { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.cross-tip { position: absolute; left: 0; top: 0; padding: 4px 8px; border-radius: var(--r-s); background: var(--n4); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 11.5px; white-space: nowrap; }
.plot-x { position: relative; height: 14px; margin: 8px 72px 14px 56px; font: 500 11.5px/1 var(--mono); color: var(--fg3); }
.plot-x span { position: absolute; top: 0; transform: translateX(-50%); }
.plot-x span:last-child { color: var(--fg1); }

/* ---------- Embudo ---------- */
.funnel { flex: 1; display: grid; align-content: space-between; gap: 11px; padding: 12px 16px 16px; }
.f-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; gap: 5px 10px; align-items: baseline; }
.f-l { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; white-space: nowrap; align-self: center; }
.f-s { font-size: 12.5px; color: var(--fg3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.f-n { font: 600 13.5px/1 var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.f-bar { grid-column: 1 / -1; position: relative; height: 6px; border-radius: 3px; background: rgba(150, 182, 228, .07); overflow: hidden; }
.f-bar i { position: absolute; inset: 0; border-radius: 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 58%, transparent), var(--c)); transform-origin: left; transition: transform .55s var(--ease-out); }

/* ---------- Actividad ---------- */
.feed { margin-top: 8px; }
.feed li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 16px; border-top: 1px solid var(--line); }
.feed .glyph { margin-top: 2px; }
.feed-t { text-align: left; min-width: 0; }
.feed-t b { display: block; font-weight: 600; font-size: 13px; line-height: 1.3; }
.feed-t span { display: block; color: var(--fg3); font-size: 12.5px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.feed time { color: var(--fg3); font-size: 12px; white-space: nowrap; }

/* ---------- Clientes ---------- */
.grid-head { flex: none; }
.grid-head .tabs { padding: 4px 8px 0; }
.grid-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 14px; }
.search { position: relative; display: flex; align-items: center; flex: 1 1 100%; min-width: 0; }
.search > .i { position: absolute; left: 9px; width: 15px; height: 15px; color: var(--fg3); pointer-events: none; }
.search input {
  width: 100%; height: 30px; padding: 0 30px 0 30px; border-radius: var(--r-m); background: var(--n2); border: 1px solid var(--line-2); color: var(--fg1); font-size: 13px;
  appearance: none; -webkit-appearance: none;
}
.search input::-webkit-search-cancel-button { display: none; }
.search input::placeholder { color: var(--fg3); }
.search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.search kbd { position: absolute; right: 6px; display: none; }
.tool {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px; border-radius: var(--r-m);
  border: 1px solid var(--line-2); background: var(--n2); color: var(--fg2); font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: background-color .12s, color .12s, transform .16s var(--ease-out);
}
.tool .i { width: 14px; height: 14px; }
.tool:hover { background: var(--n3); color: var(--fg1); }
.tool:active { transform: scale(.97); }
.tool.on { color: var(--fg1); border-color: rgba(46, 155, 255, .4); background: var(--accent-soft); }
.tool-n { font-size: 11.5px; color: var(--accent); font-weight: 600; }
@media (min-width: 760px) {
  .grid-head .tabs { padding: 6px 14px 0; }
  .grid-tools { padding: 10px 24px; }
  .search { flex: 0 1 300px; }
  .search kbd { display: inline-grid; }
}
.grid-wrap { flex: 1; min-height: 0; overflow: auto; border-top: 1px solid var(--line); background: var(--n1); outline: none; }
.grid { min-width: 960px; }
.grid th { position: sticky; top: 0; z-index: 2; background: var(--n1); padding: 0; }
.grid th .th-btn { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px; width: 100%; font-weight: 600; color: var(--fg3); }
.grid th.r .th-btn { justify-content: flex-end; }
.grid th .th-btn:hover { color: var(--fg1); }
.grid th[aria-sort="ascending"] .th-btn, .grid th[aria-sort="descending"] .th-btn { color: var(--fg1); }
.grid th .i { width: 11px; height: 11px; }
.grid td { background: var(--n1); transition: background-color .1s; }
.grid tbody tr:hover td { background: #0a1c38; }
.grid tr.is-cursor td { background: var(--n3); }
.grid tr.is-selected td { background: #171f2f; }
.grid .c-check { width: 48px; padding: 0 0 0 24px; }
.grid th.c-check { padding-left: 24px; }
.grid .sticky { position: sticky; left: 0; z-index: 1; }
.grid th.sticky { z-index: 3; }
.grid .c-acts { width: 76px; padding-right: 24px; text-align: right; }
.grid .c-acts .btn { opacity: 0; transition: opacity .12s, background-color .15s; }
.grid tr:hover .c-acts .btn, .grid tr.is-cursor .c-acts .btn, .grid .c-acts .btn:focus-visible { opacity: 1; }
.grid .row-name small { font-size: 12px; }
.grid.compact td { padding-block: 5px; }
.grid.compact .row-name small, .grid.compact .cell-sub { display: inline; margin-left: 6px; }
@media (hover: none) { .grid .c-acts .btn { opacity: 1; } }
@media (max-width: 759px) {
  .grid { min-width: 860px; }
  .grid .c-check { display: none; }
}
@media (min-width: 760px) { .grid .sticky { left: 48px; } }
.grid-empty { display: grid; justify-items: center; gap: 10px; padding: 56px 20px; color: var(--fg2); text-align: center; }
.grid-empty > .i { width: 24px; height: 24px; color: var(--fg3); }
.grid-foot { flex: none; display: flex; align-items: center; gap: 16px; height: 34px; padding: 0 14px; border-top: 1px solid var(--line); color: var(--fg3); font-size: 12px; white-space: nowrap; overflow: hidden; }
.grid-hints { display: none; align-items: center; gap: 6px; }
.grid-hints .keys { margin-left: 8px; }
.grid-foot .num { font-size: 12px; }
@media (min-width: 760px) { .grid-foot { padding: 0 24px; } .grid-hints { display: inline-flex; } }
.bulk-bar {
  position: absolute; left: 50%; bottom: 46px; z-index: 4; display: flex; align-items: center; gap: 6px; max-width: calc(100% - 20px);
  padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--n4); box-shadow: var(--shadow-pop), inset 0 0 0 1px var(--line-2);
  transform: translate(-50%, 14px); opacity: 0; pointer-events: none; transition: transform .24s var(--ease-drawer), opacity .16s;
}
.bulk-bar.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.bulk-n { margin-right: 6px; font-size: 12.5px; white-space: nowrap; }
.bulk-bar .btn { border-radius: 999px; }
@media (max-width: 759px) { .bulk-bar .btn:not(.btn-accent) { display: none; } }

/* ---------- Seguimiento ---------- */
.board {
  flex: 1; min-height: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 82vw); gap: 8px;
  overflow-x: auto; padding: 0 14px 14px; scroll-snap-type: x proximity; scroll-padding-inline: 14px;
}
@media (min-width: 760px) { .board { grid-auto-columns: minmax(216px, 1fr); padding: 0 24px 20px; scroll-padding-inline: 24px; } }
@media (min-width: 1280px) { .board { grid-auto-columns: minmax(168px, 1fr); } }
.kcol {
  min-height: 0; display: flex; flex-direction: column; scroll-snap-align: start;
  background: rgba(11, 30, 59, .55); border: 1px solid var(--line); border-radius: var(--r-l); transition: border-color .12s, background-color .12s;
}
.kcol.over { border-color: var(--accent); background: rgba(46, 155, 255, .05); }
.kcol-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px 2px; }
.kcol-h > .num { font-size: 12.5px; color: var(--fg2); font-weight: 600; }
.kcol-s { padding: 0 10px 8px; font-size: 11.5px; color: var(--fg3); }
.kcol-list { flex: 1; min-height: 40px; overflow-y: auto; display: grid; align-content: start; gap: 6px; padding: 0 7px 8px; scrollbar-width: none; }
.kcol-list::-webkit-scrollbar { display: none; }
.kcard {
  position: relative; display: grid; gap: 4px; padding: 10px 10px 9px; border-radius: var(--r-m); cursor: pointer;
  background: var(--n3); border: 1px solid var(--line); user-select: none; -webkit-user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  transition: transform .18s var(--ease-out), border-color .15s;
}
.kcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .8); opacity: 0; transition: opacity .18s; pointer-events: none; }
@media (hover: hover) {
  .kcard:hover { transform: translateY(-1px); border-color: var(--line-2); }
  .kcard:hover::after { opacity: 1; }
}
.kcard.lifted { opacity: .35; }
.kcard.landed { border-color: var(--accent); transition: border-color 1.4s ease .25s; }
.kcard.ghost { position: fixed; z-index: 500; margin: 0; pointer-events: none; border-color: var(--accent); box-shadow: 0 24px 44px -12px rgba(0, 0, 0, .75); will-change: transform; display: grid; }
html.dragging, html.dragging * { cursor: grabbing !important; }
.kcol-empty { padding: 12px 4px; color: var(--fg3); font-size: 12.5px; text-align: center; }
.k-name { text-align: left; font-weight: 600; font-size: 13.5px; line-height: 1.28; color: var(--fg1); }
.k-place { font-size: 12px; color: var(--fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-place .num { font-size: 11.5px; }
.k-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 3px; }
.k-amount { font-size: 12.5px; font-weight: 600; }
.k-amount.none { font-family: var(--body); font-weight: 500; font-size: 12px; color: var(--fg3); }
.k-note { font-size: 12px; color: var(--fg3); line-height: 1.3; }
.k-note.late { color: var(--red); font-weight: 600; }
.k-move { margin-top: 5px; }
.k-move .select { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .k-move { position: absolute; right: 8px; bottom: 8px; margin: 0; opacity: 0; transition: opacity .12s; }
  .k-move .select { width: auto; background-color: var(--n4); }
  .kcard:hover .k-move, .k-move:focus-within { opacity: 1; }
}

/* ---------- Facturación ---------- */
.bill-sum { display: grid; gap: 14px; padding: 16px; margin-bottom: 12px; }
.bill-top { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: flex-start; }
.stat-l { display: block; font-size: 12.5px; color: var(--fg2); margin-bottom: 2px; }
.stat-v { display: block; font: 850 28px/1.1 var(--display); font-stretch: 106%; font-variant-numeric: tabular-nums; }
.stat-v.green { color: var(--green); }
.stack { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--n4); transform-origin: left; gap: 2px; }
.stack i { display: block; height: 100%; }
.paid { background: linear-gradient(90deg, #2fb56c, var(--green)); }
.pending { background: linear-gradient(90deg, #1B6FC4, var(--accent)); }
.overdue { background: linear-gradient(90deg, #d85a64, var(--red)); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--fg2); font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; }
.legend b { color: var(--fg1); font-weight: 600; }
.panel.flush .data td { background: var(--n2); }
.panel.flush .data th { background: var(--n2); }
.panel.flush .data .sticky { position: sticky; left: 0; z-index: 1; }
.panel.flush .data { min-width: 780px; }
.panel.flush .data tbody tr[data-act]:hover td { background: #0e2342; }

/* ---------- Renovaciones ---------- */
.renew { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--line); }
.renew:first-child { border-top: 0; }
.renew-t { text-align: left; min-width: 0; }
.renew-t b { display: block; font-weight: 600; font-size: 14px; }
.renew-t small { color: var(--fg3); }
.renew-days { grid-column: 1 / -1; grid-row: 2; display: grid; gap: 6px; }
.renew-num { display: flex; align-items: baseline; gap: 5px; }
.renew-num b { font: 850 22px/1 var(--display); font-stretch: 106%; font-variant-numeric: tabular-nums; }
.renew-num span { font-size: 12.5px; font-weight: 600; color: var(--fg2); }
.renew-num small { margin-left: auto; color: var(--fg3); }
.renew-bar { position: relative; height: 6px; border-radius: 3px; background: var(--n4); overflow: hidden; }
.renew-bar i { position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--blue) 58%, transparent), var(--blue)); border-radius: 3px; transform-origin: left; transition: transform .5s var(--ease-out); }
.renew-days.soon .renew-num b { color: var(--accent); }
.renew-days.soon .renew-bar i { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 58%, transparent), var(--accent)); }
.renew-act { grid-column: 2; grid-row: 1; }
.renew > .av { display: none; }
@media (min-width: 860px) {
  .renew { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) 22px 170px; gap: 24px; padding: 14px 20px; }
  .renew-days { grid-column: auto; grid-row: auto; }
  .renew-act { grid-column: auto; grid-row: auto; text-align: right; }
  .renew > .av { display: inline-grid; }
}

/* ---------- Seguridad ---------- */
.mfa { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.mfa-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: var(--r-m); background: rgba(69, 212, 131, .12); color: var(--green); }
.mfa-ico .i { width: 22px; height: 22px; }
.mfa b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; font-size: 14px; }
.mfa small { display: block; color: var(--fg3); margin-top: 1px; }
.sessions { margin-top: 8px; }
.sessions li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.sessions li:first-child { border-top: 0; }
.dev { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-m); background: var(--n3); color: var(--fg2); }
.dev .i { width: 18px; height: 18px; }
.session-t b { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-weight: 600; }
.session-t small { color: var(--fg3); }
.this { font: 500 11.5px/1 var(--body); color: var(--accent); padding: 3px 6px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(46, 155, 255, .35); white-space: nowrap; }
.users { margin-top: 8px; }
.user { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 6px 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.user:first-child { border-top: 0; }
.user-av { display: flex; align-items: center; }
.user-av .av + .av { margin-left: -6px; box-shadow: 0 0 0 2px var(--n2); }
.org-av { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--n4); color: var(--fg2); font: 700 9.5px/1 var(--body); }
.user .user-t b { font-size: 13.5px; white-space: normal; }
.user .user-t small { white-space: normal; }
.user-tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.user > .btn, .user-self { grid-column: 2; justify-self: start; }
@media (min-width: 860px) {
  .user { grid-template-columns: 62px minmax(0, 1fr) auto 104px; gap: 12px; }
  .user-tags { grid-column: auto; }
  .user > .btn, .user-self { grid-column: auto; justify-self: end; }
}
.perm { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-m); }
.perm .data { min-width: 560px; }
.perm .data td { white-space: normal; }
.audit { margin-top: 8px; }
.audit li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); animation: row-in .28s var(--ease-out); }
.audit li:first-child { border-top: 0; }
.audit-ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--n3); color: var(--fg2); }
.audit-ico .i { width: 14px; height: 14px; }
.audit .k-block .audit-ico { background: rgba(240, 113, 122, .13); color: var(--red); }
.audit .k-login .audit-ico { background: rgba(69, 212, 131, .1); color: var(--green); }
.audit-t { padding-top: 3px; }
.audit-t b { font-weight: 600; }
.audit time { padding-top: 3px; color: var(--fg3); font-size: 12px; white-space: nowrap; }

/* ---------- Resumen de la bandeja en Inicio ---------- */
.inv-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; width: 100%; margin-top: 12px; padding: 10px 16px; text-align: left; font-size: 13px; color: var(--fg2); transition: background-color .15s; }
.inv-strip:hover { background: #0e2342; }
.inv-strip > .i:first-child { color: var(--accent); }
.inv-strip b { color: var(--fg1); font-weight: 600; }
.inv-strip .accent, .inv-strip .red { font-weight: 600; }
.inv-strip > .i:last-child { margin-left: auto; width: 14px; height: 14px; color: var(--fg3); transition: transform .16s var(--ease-out); }
.inv-strip:hover > .i:last-child { transform: translateX(2px); }

/* ---------- En móvil, las tablas se leen como lista ---------- */
@media (max-width: 759px) {
  .grid { min-width: 0; display: block; }
  .grid thead { display: none; }
  .grid tbody { display: block; }
  .grid tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); }
  .grid td, .grid.compact td { display: none; padding: 0; border: 0; background: none; white-space: normal; }
  .grid td.c-name { display: block; grid-column: 1; grid-row: 1; position: static; }
  .grid td.c-save { display: block; grid-column: 2; grid-row: 1; text-align: right; }
  .grid td.c-st { display: block; grid-column: 1; grid-row: 2; }
  .grid td.c-acts { display: block; grid-column: 2; grid-row: 2; width: auto; padding: 0; }
  .grid td.c-acts .btn { height: 34px; padding: 0 14px; font-size: 13px; }
  .grid .row-name { white-space: normal; }

  .panel.flush .bill-table { min-width: 0; display: block; }
  .bill-table thead { display: none; }
  .bill-table tbody { display: block; }
  .bill-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); }
  .bill-table tr:last-child { border-bottom: 0; }
  .panel .bill-table td, .panel .bill-table td:first-child, .panel .bill-table td:last-child { display: block; padding: 0; border: 0; background: none; white-space: normal; }
  .panel.flush .bill-table .sticky { position: static; }
  .panel .bill-table td:nth-child(3), .panel .bill-table td:nth-child(4) { display: none; }
  .bill-table td:nth-child(6):empty { display: none; }
}
@media (max-width: 559px) {
  .team-table th:nth-child(2), .team-table td:nth-child(2),
  .team-table th:nth-child(4), .team-table td:nth-child(4),
  .team-table th:nth-child(5), .team-table td:nth-child(5) { display: none; }
}
