/* ============================================================
   Mis Pisos: estilos
   ============================================================ */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 200 900; font-display: swap; src: url("fonts/source-sans-3-variable.woff2") format("woff2-variations"), url("fonts/source-sans-3-variable.woff2") format("woff2"); }

:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #1d2433;
    --muted: #707c90;
    --soft: #8b95a7;
    --border: #e1e6ef;
    --primary: #4762e6;
    --primary-dark: #3a52c9;
    --primary-soft: #eef2fd;
    --primary-line: #d5def6;
    --pos: #17804a;
    --neg: #c2392f;
    --warn: #a35a07;
    --radius: 14px;
    --font: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--font); background: var(--bg); color: var(--text); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em; }

/* ---------- Cabecera ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1.5rem; }
.crumbs { display: flex; align-items: center; gap: .7rem; font-size: 1.05rem; white-space: nowrap; }
.crumbs a { color: var(--soft); }
.crumbs .sep { color: var(--soft); font-size: 1.2rem; line-height: 1; }
.crumbs .here { color: #3d475a; font-weight: 600; }
.desk-nav { display: none; gap: .25rem; margin-left: auto; }
.desk-nav a { color: var(--muted); font-weight: 600; padding: .45rem .8rem; border-radius: 9px; }
.desk-nav a:hover { background: var(--bg); text-decoration: none; color: var(--text); }
.desk-nav a.active { background: var(--primary-soft); color: var(--primary); }
.top-link { margin-left: auto; color: var(--text); font-weight: 700; display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }

/* ---------- Barra de pestañas (móvil) ---------- */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: #fff; border-top: 1px solid var(--border);
    display: grid; grid-template-columns: repeat(5, 1fr); gap: .25rem;
    padding: .45rem .5rem calc(.45rem + env(safe-area-inset-bottom));
}
.tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: .3rem;
    padding: .55rem .2rem .45rem; border-radius: 12px;
    color: var(--muted); font-size: .78rem; font-weight: 600;
}
.tabbar a .ic { width: 26px; height: 26px; }
.tabbar a:hover { text-decoration: none; color: var(--text); }
.tabbar a.active { background: var(--primary-soft); color: var(--primary); }
body.with-tabs { padding-bottom: 92px; }

@media (min-width: 960px) {
    .desk-nav { display: flex; }
    .desk-nav + .top-link { margin-left: .5rem; }
    .tabbar { display: none; }
    body.with-tabs { padding-bottom: 0; }
}

/* ---------- Contenido ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 1.75rem 1.25rem; }
.footer { text-align: center; color: var(--soft); font-size: .85rem; padding: 1rem 1rem 2rem; }
.footer a { color: var(--soft); }

.eyebrow { margin: 0 0 .6rem; font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; line-height: 1; margin: 0 0 .9rem; }
.hero { padding: 1rem 0 1.75rem; }
.hero .display { font-size: clamp(3rem, 11vw, 4.75rem); }
.page-title { padding: .5rem 0 1.25rem; }
.page-title .display { font-size: clamp(2.5rem, 8vw, 3.6rem); }
.lead { margin: 0 0 1.5rem; font-size: 1.2rem; color: var(--muted); max-width: 40ch; }
.page-title .lead { margin-bottom: 0; }
h2 { font-size: 1.1rem; margin: 0; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    background: var(--primary); color: #fff; border: 0; border-radius: 10px;
    padding: .6rem 1.1rem; font: inherit; font-weight: 700; cursor: pointer;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.15rem; border-radius: 12px; box-shadow: 0 6px 18px rgba(71, 98, 230, .28); }
.btn-lg .ic { width: 1.4em; height: 1.4em; }
.btn-light { background: #eceff5; color: var(--text); }
.btn-light:hover { background: #e2e6ee; }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-soft:hover { background: var(--primary-line); }
.btn-danger { background: #fdecea; color: var(--neg); }
.btn-danger:hover { background: #fadad6; }
.btn-sm { padding: .3rem .7rem; font-size: .88rem; border-radius: 8px; }
.link-arrow { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: #3c56c4; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Aviso ---------- */
.notice { background: var(--primary-soft); border: 1px solid var(--primary-line); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 1.5rem; }
.notice-body { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.notice-body p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.pill { background: #dfe6fa; color: #3c56c4; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 6px; white-space: nowrap; }

/* ---------- Tarjetas ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; margin-bottom: 1.25rem; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .9rem; }
.card > h2 { margin-bottom: .9rem; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-bottom: 1.25rem; }
.cards .card { margin: 0; }
.stat span { display: block; color: var(--muted); font-size: .9rem; }
.stat strong { font-family: var(--display); font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 700; line-height: 1.15; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 1.25rem; align-items: start; }
@media (min-width: 960px) { .grid-2 { grid-template-columns: minmax(340px, 1fr) minmax(340px, 1.35fr); } }

.page-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }

/* ---------- Filtros ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }
.filter-bar select, .filter-bar input { flex: 1 1 140px; }
.filter-bar .wide { flex-basis: 100%; }
@media (min-width: 760px) { .filter-bar .wide { flex-basis: 260px; } }
.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.filters label { flex-direction: row; align-items: center; }

/* ---------- Formularios ---------- */
form.inline { display: inline; }
label { display: flex; flex-direction: column; font-size: .9rem; color: var(--muted); gap: .3rem; font-weight: 600; }
label.check { flex-direction: row; align-items: center; gap: .55rem; color: var(--text); font-weight: 400; }
input, select, textarea {
    font: inherit; font-size: 1rem; padding: .7rem .9rem;
    border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text);
}
select {
    appearance: none; -webkit-appearance: none; padding-right: 2.4rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231d2433' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 9l5-5 5 5M7 15l5 5 5-5'/%3E%3C/svg%3E") no-repeat right .9rem center;
}
input[type=checkbox] { width: 1.1rem; height: 1.1rem; accent-color: var(--primary); padding: 0; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--primary-soft); border-color: var(--primary); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.form-grid > * { min-width: 0; }
.form-grid input:not([type=checkbox]), .form-grid select, .form-grid textarea { width: 100%; min-width: 0; }
.form-grid .span-2, .form-grid .actions { grid-column: span 2; }
.form-grid .actions { display: flex; gap: .6rem; }
label.check { align-self: end; padding-bottom: .7rem; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2, .form-grid .actions { grid-column: auto; } }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary h2 { display: inline; }
details[open] summary { margin-bottom: 1rem; }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -.3rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .65rem .6rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); font-weight: 700; }
tbody tr:hover { background: #fafbfd; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.muted, tr.muted td { color: var(--muted); }
.small { font-size: .88rem; }
tr.vencido td:first-child { color: var(--neg); font-weight: 600; }
.scroll-x { overflow-x: auto; }
.report td, .report th { font-size: .9rem; padding: .45rem .5rem; }
.report tr.section td { background: var(--bg); font-weight: 700; }
.report tr.total td { font-weight: 700; border-top: 2px solid var(--border); }
.report tr.balance td { background: var(--primary-soft); }

/* ---------- Lista de pendientes ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.list li:last-child { border-bottom: 0; }
.list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list li.vencido .list-main .small { color: var(--neg); }

/* ---------- Etiquetas ---------- */
.badge { border: 0; border-radius: 999px; padding: .2rem .65rem; font: inherit; font-size: .78rem; cursor: pointer; font-weight: 700; }
.badge-ok { background: #e3f4ea; color: var(--pos); }
.badge-warn { background: #fdf0d9; color: var(--warn); }
.badge-neg { background: #fdecea; color: var(--neg); }
.tag { background: var(--primary-soft); color: #3c56c4; border-radius: 6px; padding: .05rem .45rem; font-size: .75rem; font-weight: 700; margin-left: .3rem; white-space: nowrap; }

/* ---------- Mensajes ---------- */
.flash { padding: .85rem 1.1rem; border-radius: 12px; margin-bottom: 1.25rem; }
.flash-ok { background: #e3f4ea; color: #145c37; }
.flash-error { background: #fdecea; color: #82231c; }
.flash-warn { background: #fdf0d9; color: #74400a; }

/* ---------- Gráfica ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart text { font-size: 11px; fill: var(--soft); font-family: var(--font); }
.chart .grid { stroke: var(--border); }
.chart .bar-ing { fill: var(--primary); }
.chart .bar-gas { fill: #f0a29a; }
.chart .dim { opacity: .25; }
.legend { font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; justify-content: center; margin-top: .5rem; }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-left: .7rem; }
.legend .ing { background: var(--primary); } .legend .gas { background: #f0a29a; }

/* ---------- Acceso ---------- */
.login { max-width: 420px; margin: 3rem auto; padding: 2rem; }
.login .display { font-size: 3rem; }
.login form { display: flex; flex-direction: column; gap: 1rem; }
.login .btn { padding: .9rem; font-size: 1.05rem; }

@media print {
    .topbar, .tabbar, .filter-bar, .footer, .btn, .page-title .lead { display: none !important; }
    body { background: #fff; padding: 0 !important; }
    .card { border: 0; padding: 0; }
}

/* Evita que tablas anchas ensanchen la página en móvil */
.grid-2 > *, .card { min-width: 0; }
body { overflow-x: hidden; }

/* Tabla "Por inmueble" como fichas en móvil */
@media (max-width: 600px) {
    table.stack thead { display: none; }
    table.stack tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: .2rem .5rem; padding: .85rem 0; border-bottom: 1px solid var(--border); }
    table.stack tbody tr:last-child { border-bottom: 0; }
    table.stack td { border: 0; padding: 0; }
    table.stack td:first-child { grid-column: 1 / -1; margin-bottom: .35rem; font-weight: 600; }
    table.stack td.num { text-align: left; font-size: .95rem; }
    table.stack td.num::before { content: attr(data-label); display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); font-weight: 700; }
}

/* Movimientos como fichas en móvil */
.m-only { display: none; }
@media (max-width: 700px) {
    table.movs thead { display: none; }
    table.movs tr {
        display: grid; grid-template-columns: 1fr auto; gap: .15rem .75rem;
        grid-template-areas: "con imp" "meta meta" "est acc";
        padding: .9rem 0; border-bottom: 1px solid var(--border);
    }
    table.movs tbody tr:last-child { border-bottom: 0; }
    table.movs td { border: 0; padding: 0; }
    table.movs .c-con { grid-area: con; min-width: 0; }
    table.movs .c-con .con { font-weight: 700; }
    table.movs .c-imp { grid-area: imp; font-weight: 700; }
    table.movs .c-fecha, table.movs .c-inm, table.movs .c-cat { grid-row: 2; font-size: .88rem; color: var(--muted); display: inline; }
    table.movs tr > .c-fecha { grid-area: meta; }
    table.movs .c-inm, table.movs .c-cat { display: none; }
    table.movs .m-only { display: inline; }
    table.movs .c-est { grid-area: est; margin-top: .4rem; }
    table.movs .c-acc { grid-area: acc; margin-top: .4rem; text-align: right; }
    table.movs td[colspan] { grid-column: 1 / -1; }
}

/* Informe: primera columna fija al desplazar */
.report th:first-child, .report td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; min-width: 150px; }
.report tr.section td:first-child { background: var(--bg); }
.report tr.balance td:first-child { background: var(--primary-soft); }
.report td.num { white-space: nowrap; }

/* ============================================================
   Componentes v3: tarjetas de cifras, secciones, fichas, filas
   ============================================================ */
:root { --blue: #2f5fe6; --blue-soft: #edf2fe; --green-soft: #e6f5ee; --orange: #c2643a; --orange-soft: #fcefe8; }

.sec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.1rem; }
.sec-head h2 { font-size: 1.35rem; font-weight: 700; display: flex; align-items: center; gap: .6rem; }
.sec-head p { margin: .3rem 0 0; color: var(--soft); font-size: .98rem; }
.sec-head .eyebrow { margin: .5rem 0 0; font-size: .72rem; white-space: nowrap; }
.sec-head .link-arrow, .sec-head .link-add { margin-top: .35rem; white-space: nowrap; }
.count { background: #eef1f6; color: var(--muted); font-size: .9rem; font-weight: 600; border-radius: 8px; padding: .15rem .6rem; }
.link-add { color: var(--blue); font-weight: 700; display: inline-flex; align-items: center; gap: .45rem; }
.link-add .ic { width: 1.3em; height: 1.3em; }
.link-arrow { color: var(--blue); }

/* Tarjetas de cifras */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; margin-bottom: 1.25rem; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.kpi { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.1rem 1.15rem; min-width: 0; }
.kpi-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; color: var(--muted); font-size: .95rem; }
.kpi-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #eef1f6; color: #6a7891; flex-shrink: 0; }
.kpi-ic .ic { width: 18px; height: 18px; }
.kpi-ic.in { background: var(--green-soft); color: #1f8a5a; }
.kpi-ic.out { background: var(--orange-soft); color: var(--orange); }
.kpi-ic.bal { background: #dfe7fd; color: var(--blue); }
.kpi strong { display: block; font-size: clamp(1.45rem, 6.2vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 1.1rem 0 .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi small { color: var(--soft); font-size: .85rem; display: block; }
.kpi-hl { background: var(--blue-soft); border-color: #d8e2fb; }
.kpi-hl strong { color: var(--blue); }
.kpi-hl strong.neg { color: var(--neg); }
.kpi-note { margin: -.4rem 0 1.25rem; }

/* Gráfica */
.legend { justify-content: flex-end; gap: 1.2rem; margin: 0 0 .5rem; }
.legend span { display: inline-flex; align-items: center; gap: .45rem; }
.legend .sw { width: 11px; height: 11px; border-radius: 3px; margin: 0; display: inline-block; }
.legend .sw.ing, .chart .bar-ing { background: var(--blue); fill: var(--blue); }
.legend .sw.gas, .chart .bar-gas { background: #a9b9e0; fill: #a9b9e0; }
.chart .grid { stroke: #e9edf3; }
.chart text { font-size: 11.5px; }

/* Fichas de inmuebles */
.props { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 700px) { .props { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .props { grid-template-columns: repeat(3, 1fr); } }
.prop { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.prop-off { opacity: .6; }
.prop-media {
    position: relative; height: 150px; overflow: hidden;
    background-color: #eef1f7;
    background-image: radial-gradient(#d3dae6 1px, transparent 1px);
    background-size: 12px 12px;
    border-bottom: 1px solid var(--border);
}
.ilus { position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%); width: 240px; height: 150px; }
.ilus rect { fill: #d8e1ee; stroke: #7f9cc6; stroke-width: 4; }
.ilus-lines line { stroke: #7f9cc6; stroke-width: 4; stroke-linecap: round; }
.prop-num { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-family: var(--display); font-weight: 700; font-size: 3.6rem; color: #d3dae6; line-height: 1; }
.status { position: absolute; left: .9rem; top: .9rem; z-index: 1; background: #fff; border-radius: 7px; padding: .3rem .7rem .3rem .6rem; font-size: .88rem; display: inline-flex; align-items: center; gap: .45rem; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-ok { color: #1f8a5a; }
.status-free { color: var(--warn); }
.status-home { color: var(--blue); }
.status-off { color: var(--soft); }
.prop-body { padding: 1.1rem 1.2rem 1.15rem; }
.prop-title { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.prop-title h3 { margin: 0; font-size: 1.3rem; line-height: 1.25; }
.prop-title h3 a { color: var(--text); }
.icon-btn { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; color: var(--blue); background: transparent; border: 0; cursor: pointer; flex-shrink: 0; }
.icon-btn:hover { background: var(--blue-soft); text-decoration: none; }
.prop:first-child .icon-btn { background: var(--blue-soft); }
.icon-btn .ic { width: 20px; height: 20px; }
.prop-addr { margin: .55rem 0 0; color: var(--soft); display: flex; align-items: center; gap: .45rem; }
.prop-addr .ic { width: 18px; height: 18px; }
.prop-data { margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--border); display: grid; gap: .45rem; }
.prop-data div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.prop-data dt { color: var(--soft); }
.prop-data dd { margin: 0; font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prop-data div + div dd { font-size: .98rem; }
.prop-data div:first-child dd { color: var(--text); }

/* Filas de movimientos */
.card.flush { padding: 0; overflow: hidden; }
.sec-head.pad { padding: 1.3rem 1.3rem 0; }
.mov-head { display: grid; grid-template-columns: 1fr minmax(120px, 38%); padding: .75rem 1.3rem; background: #f8fafd; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); font-weight: 600; }
.mov-head span:first-child { padding-left: 0; }
.movs-list { list-style: none; margin: 0; padding: 0; }
.mov-row { display: grid; grid-template-columns: 44px 1fr minmax(120px, 38%) auto; align-items: center; gap: 0 .9rem; padding: .85rem 1.3rem; border-bottom: 1px solid var(--border); }
.mov-row:last-child { border-bottom: 0; }
.mov-ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; }
.mov-ic .ic { width: 20px; height: 20px; }
.mov-ic.in { background: var(--green-soft); color: #1f8a5a; }
.mov-ic.out { background: var(--orange-soft); color: var(--orange); }
.mov-main { min-width: 0; display: flex; flex-direction: column; }
.mov-main strong { font-weight: 600; color: #2b3445; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mov-main span { color: var(--soft); font-size: .88rem; }
.mov-side { display: flex; flex-direction: column; min-width: 0; }
.mov-inm { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mov-imp { font-weight: 700; font-size: .92rem; font-variant-numeric: tabular-nums; }
.mov-act .icon-btn { background: var(--blue-soft); }
.grid-2.even { grid-template-columns: 1fr; }
@media (min-width: 960px) { .grid-2.even { grid-template-columns: 1fr 1fr; } }

.danger-zone { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px dashed var(--border); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.danger-zone p { margin: 0; }

.footer { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.foot-brand { display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; }
.foot-brand .ic { width: 20px; height: 20px; }

@media (max-width: 600px) {
    .kpi { padding: .95rem .9rem 1rem; }
    .kpi-top { font-size: .88rem; line-height: 1.3; }
    .kpi-ic { width: 30px; height: 30px; }
    .kpi strong { margin: .85rem 0 .6rem; }
    .kpi small { font-size: .78rem; line-height: 1.35; }
    .chart text { font-size: 21px; }
    .mov-row { grid-template-columns: 40px 1fr 40%; padding: .8rem 1.1rem; gap: 0 .75rem; }
    .mov-row:has(.mov-act) { grid-template-columns: 40px 1fr 34% auto; }
    .mov-head { grid-template-columns: 1fr 40%; padding: .7rem 1.1rem; }
    .mov-ic { width: 40px; height: 40px; }
    .mov-main strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
    .mov-main span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mov-act .icon-btn { width: 34px; height: 34px; }
    .sec-head h2 { font-size: 1.2rem; }
}
@media (min-width: 960px) { .chart text { font-size: 7.5px; } }
.sec-head { flex-wrap: wrap; }
.sec-head h2 { white-space: nowrap; }
.sec-head > div:first-child { flex: 1 1 auto; }
