/* Paleta tomada del logo de la UEMAS: azul vivo (#247AF0) e índigo (#3C46BA).
   --accent es el azul un poco más oscuro que usan botones y enlaces para que el texto blanco se lea bien. */
:root {
  --brand: #247AF0; --accent: #1E66D0; --accent-dark: #174FA3; --accent-light: #EAF2FE;
  --indigo: #3C46BA; --indigo-900: #232A73;
  --text: #141B2D; --muted: #586377;
  --border: #E2E7F0; --input-border: #CBD3E1; --bg: #F5F7FB; --panel: #FFFFFF;

  /* Estados: texto sobre fondo (pagada/cobrado, pendiente, vencida). --warn-dot es solo para los puntos y barras. */
  --ok: #157A3E; --ok-bg: #E7F5EC;
  --warn: #8A4A00; --warn-bg: #FDF1DF; --warn-dot: #D97706;
  --bad: #B42318; --bad-bg: #FDECEA;

  --radius: 12px; --shadow: 0 1px 2px rgba(35, 42, 115, .04);
  --font-sans: "IBM Plex Sans", "Segoe UI", -apple-system, system-ui, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  /* Alias de los nombres anteriores, para que nada que los use se rompa. */
  --navy-900: var(--indigo-900); --navy-700: var(--indigo);
  --green: var(--ok); --green-light: var(--ok-bg);
  --amber: var(--warn-dot); --amber-light: var(--warn-bg);
  --red: var(--bad); --red-light: var(--bad-bg);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; font: 14px/1.5 var(--font-sans); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, .btn:focus-visible, .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono, .code { font-family: var(--font-mono); font-weight: 500; font-size: .93em; letter-spacing: 0; }
.code { color: var(--muted); max-width: 420px; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }

.shell { display: flex; min-height: 100vh; }

/* ---- Barra lateral clara con el logo de la UEMAS ---- */
.sidebar { width: 264px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { padding: 18px 22px 12px; border-bottom: 1px solid var(--border); }
.brand img { display: block; width: 100%; max-width: 210px; height: auto; }
.brand-sub { margin-top: 12px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.brand-sub strong { display: block; color: var(--indigo-900); font-size: 13px; font-weight: 600; }

.nav { display: flex; flex-direction: column; padding: 6px 12px 14px; gap: 2px; flex: 1; overflow-y: auto; }
.nav-grupo { display: flex; flex-direction: column; gap: 2px; }
/* Si todos los links de un grupo están ocultos (rol desarrollista), el rótulo tampoco se muestra. */
.nav-grupo:not(:has(.nav-link[data-nav]:not([style*="none"]))) { display: none; }
.nav-seccion { padding: 12px 12px 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #5F6A7E; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 8px; color: #3A4660; font-size: 14px; }
.nav-link:hover { background: #F3F7FE; color: var(--accent-dark); text-decoration: none; }
.nav-link.active { background: var(--accent-light); color: var(--accent-dark); font-weight: 600; }
.nav-link.disabled { color: #8590A6; cursor: default; }
.nav-link.disabled:hover { background: none; color: #8590A6; }
.nav-link em { margin-left: auto; font-style: normal; font-size: 10.5px; border: 1px solid #D5DCE8; color: #66728A; border-radius: 999px; padding: 1px 8px; }
.nav-link svg { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sidebar-foot { padding: 12px 16px 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--muted); }
.proyecto-estado { background: var(--accent-light); border-radius: 8px; padding: 10px 12px; line-height: 1.5; color: #2D4A7A; }
.proyecto-estado strong { color: var(--indigo-900); font-size: 14px; font-weight: 600; }
.sesion-info { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; line-height: 1.5; background: #fff; }
.sesion-info strong { color: var(--indigo-900); font-weight: 600; }
.sesion-info .btn { margin-top: 8px; width: 100%; min-height: 38px; padding: 8px 14px; }

/* ---- Pantalla de login: dividida en dos ---- */
.login-pantalla { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--bg); }
.login-lado { background: var(--indigo-900); color: #fff; display: flex; align-items: center; padding: 48px 56px; }
.login-lado-contenido { max-width: 440px; }
.login-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #B9C2F2; }
.login-lado h2 { margin: 0 0 16px; font-size: 36px; line-height: 1.15; font-weight: 600; }
.login-desc { margin: 0; font-size: 15px; line-height: 1.6; color: #D5DAF5; }
.login-form-lado { display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.login-caja { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 30px; text-align: center; }
.login-caja img { width: 190px; margin-bottom: 18px; }
.login-caja h1 { font-size: 18px; font-weight: 600; color: var(--indigo-900); margin: 0 0 22px; }
.login-caja .f { text-align: left; margin-bottom: 14px; }
.login-caja .btn.primary { width: 100%; margin-top: 6px; }

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--panel); border-bottom: 1px solid var(--border); padding: 20px 32px 18px; }
.topbar-titulos { min-width: 0; }
.topbar h1 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 600; color: var(--indigo-900); }
.topbar-sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.topbar-acciones { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.vista { flex: 1; width: 100%; padding: 28px 32px 48px; max-width: 1440px; margin: 0 auto; }
.pie { padding: 16px 32px 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; text-align: center; background: var(--panel); }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 20px; min-width: 0; }
.card h2 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.card h3 { margin: 18px 0 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.muted { color: var(--muted); font-size: 13px; }
.card > .muted { margin: 2px 0 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.row.tight { justify-content: flex-start; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }

/* Ficha del desarrollista: dos columnas (compras a la izquierda, expediente y acceso a la derecha). */
.dos-col { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dos-col > .col { min-width: 0; }

/* Tarjetas de resumen. Flex (no grid) para que las de la última fila se repartan el ancho; el valor no se parte
   en dos líneas (antes el "$" quedaba solo arriba). */
.kpis { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.kpi { flex: 1 1 260px; min-width: 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.kpi .k { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 500; margin-bottom: 6px; }
.kpi.verde .k::before, .kpi.ambar .k::before, .kpi.rojo .k::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.kpi.verde .k::before { background: var(--ok); } .kpi.ambar .k::before { background: var(--warn-dot); } .kpi.rojo .k::before { background: var(--bad); }
.kpi .v { font-size: 22px; font-weight: 600; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kpi.cobrado .v { color: var(--ok); }
.kpi .s { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.bar { height: 6px; background: #E8ECF3; border-radius: 99px; margin-top: 8px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); }

form.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; align-items: end; margin-top: 14px; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
input, select { background: #fff; border: 1px solid var(--input-border); color: var(--text); padding: 10px 12px; min-height: 44px; border-radius: 8px; font: inherit; width: 100%; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; background: #fff; border: 1px solid #D5DCE8; color: var(--text); padding: 11px 16px; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.btn:hover { border-color: var(--accent); color: var(--accent-dark); background: #F8FAFD; text-decoration: none; }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.danger { color: var(--bad); border-color: #F1C4BF; }
.btn.danger:hover { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.btn.sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.tabla { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
th, td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
th.l, td.l { text-align: left; }
thead th { color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; background: #F8FAFD; }
tbody tr:hover { background: #F8FAFD; }
tr.vencida { background: #FDF6F5; } tr.vencida:hover { background: #FBEDEB; }
tr.clic, .clic { cursor: pointer; }
td.acciones { text-align: right; }
td.acciones > .pill { display: block; max-width: 150px; margin: 0 0 6px auto; text-align: center; white-space: normal; }
td input { padding: 6px 8px; min-height: 0; }
.vacio { text-align: center; color: var(--muted); padding: 30px 10px; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; }
.pill-pendiente { background: var(--warn-bg); color: var(--warn); }
.pill-pagada { background: var(--ok-bg); color: var(--ok); }
.pill-vencida { background: var(--bad-bg); color: var(--bad); }
/* "Estimada" = punteado índigo, sin fondo. "Definitiva" = solo texto, sin pill. */
.pill-estimada { background: none; border: 1px dotted var(--indigo); color: var(--indigo); padding: 2px 9px; }
.pill-definitiva { background: none; padding: 0; border-radius: 0; font-size: 12px; font-weight: 600; color: #3F4A5E; }
.rojo-txt { color: var(--bad); font-weight: 600; }

.aviso { border-radius: var(--radius); padding: 13px 18px; margin-bottom: 18px; border: 1px solid; font-size: 14px; }
.aviso.rojo { background: var(--bad-bg); border-color: #F1C4BF; color: var(--bad); }
.aviso.ambar { background: var(--warn-bg); border-color: #F0D4A3; color: var(--warn); }
.aviso.info { background: var(--accent-light); border-color: #C5D9FA; color: var(--accent-dark); }
.aviso-fila { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.aviso-fila .muted { color: inherit; opacity: .75; margin-left: 4px; }
.avisos-previos summary { cursor: pointer; font-weight: 600; }
.avisos-previos ul { margin: 12px 0 0; padding-left: 18px; }
.avisos-previos li { margin-bottom: 8px; }

.timeline { display: flex; height: 54px; border-radius: 8px; overflow: hidden; margin-top: 12px; }
.tl-wrap { position: relative; }
.tl-seg { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 600; }
.tl-seg small { font-weight: 400; opacity: .9; font-size: 10.5px; }
.tl-seg.construccion { background: var(--accent); } .tl-seg.gracia { background: var(--warn-dot); } .tl-seg.repago { background: var(--ok); }
.tl-marker { position: absolute; top: 4px; bottom: -8px; width: 3px; background: var(--indigo-900); border-radius: 2px; }
.tl-marker::after { content: attr(data-l); position: absolute; top: 100%; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; white-space: nowrap; margin-top: 2px; }

.preview { background: #F8FAFD; border: 1px dashed #C9D6EA; border-radius: 10px; padding: 14px 16px; margin-top: 16px; }
.preview dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 20px; margin: 8px 0 0; }
.preview dt { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.preview dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.error-txt { color: var(--bad); font-size: 13px; }

dialog { border: none; border-radius: var(--radius); padding: 22px 24px; width: min(440px, 92vw); box-shadow: 0 20px 60px rgba(16, 24, 40, .3); }
dialog::backdrop { background: rgba(11, 18, 32, .5); }
dialog h2 { margin: 0 0 14px; font-size: 16px; font-weight: 600; }
dialog form { display: flex; flex-direction: column; gap: 14px; }
dialog .botones { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }

.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 50; }
.toast { background: var(--indigo-900); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); max-width: 380px; font-size: 14px; }
.toast.error { background: #991B1B; }

/* ---- Parametros: celdas como en el Excel (amarillo = editable, verde = calculado), suavizadas ---- */
.param th, .param td { padding: 8px 16px; }
.param td.nota { color: var(--muted); font-size: 13px; white-space: normal; min-width: 180px; }
.celda { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 140px; padding: 4px 10px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.celda-editable { background: #FFF6BF; border: 1px solid #E8D46A; color: #1A3FD6; font-weight: 600; }
.celda-editable input { background: transparent; border: 0; box-shadow: none; padding: 2px 0; min-height: 0; text-align: right; color: inherit; font-weight: 600; width: 100%; min-width: 90px; }
.celda-editable input:focus { box-shadow: none; outline: 2px solid rgba(26, 63, 214, .35); border-radius: 3px; }
.celda-editable select { background: transparent; border: 0; box-shadow: none; padding: 2px 0; min-height: 0; color: inherit; font-weight: 600; width: 100%; min-width: 150px; cursor: pointer; text-align-last: right; }
.celda-editable select:focus { box-shadow: none; outline: 2px solid rgba(26, 63, 214, .35); border-radius: 3px; }
.celda-editable.modificado { background: #FFE3B8; border-color: var(--warn-dot); }
.celda-calculada { background: #E2EFDA; color: #1F3864; }
.celda-clave { background: #C6EFCE; color: #375623; font-weight: 700; }
.ejemplo { display: inline-block; padding: 1px 8px; border-radius: 4px; min-width: 0; }
tr.total td { font-weight: 700; border-top: 2px solid var(--border); }
.cambios { font-size: 13px; white-space: normal; }
.barra-cambios { position: sticky; bottom: 14px; margin-top: 8px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--indigo-900); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.barra-cambios > div { flex: 1; min-width: 200px; }
.barra-cambios .muted { color: #A9B4D6; }
.barra-cambios input { width: 260px; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }

/* ---- Calculador ---- */
.celda-dgo { background: #FFE699; color: #000; }
.celda-neutra { background: #F2F2F2; color: #000; }
.negrita { font-weight: 700; }
tr.cebra td { background: #F8FAFD; }
.valor-simple { padding: 9px 11px; font-weight: 600; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { border: 1px solid #D5DCE8; background: #fff; padding: 6px 12px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); }
.chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.tl-marker.izq::after { left: 0; transform: none; }
.tl-marker.der::after { left: auto; right: 0; transform: none; }

/* ---- Cuentas / ICC ---- */
tr.inicio-trimestre td { border-top: 2px solid #C9D6EA; }
.celda-editable.vacia { background: #FFFBDF; }
.diferencia { font-size: 12px; color: var(--muted); }

/* ---- Notebooks (14 pulgadas): más lugar para las tablas, así no hace falta mover la pantalla hacia el costado ---- */
@media (max-width: 1500px) {
  .sidebar { width: 232px; }
  .vista { padding: 24px 22px 40px; }
  th, td { padding: 10px 11px; }
  td.l { white-space: normal; }
  /* Los botones de cada fila (cobrar / revertir) van uno debajo del otro, para no ensanchar la tabla. */
  td.acciones > .btn { display: flex; width: 100%; max-width: 150px; margin: 0 0 6px auto; white-space: normal; text-align: center; min-height: 36px; padding: 6px 10px; }
  td.acciones > .btn:last-child { margin-bottom: 0; }
  .grid-2, .dos-col { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Pantallas angostas ---- */
@media (max-width: 1100px) {
  .grid-2, .dos-col { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  /* El menú pasa arriba: logo y links en fila, y el contenido debajo. */
  .shell { flex-direction: column; }
  .sidebar { position: static; width: 100%; height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .brand { padding: 12px 16px 8px; border-bottom: 0; }
  .brand img { max-width: 130px; }
  .brand-sub { display: none; } /* ya figura en el subtítulo de la barra superior */
  .nav { flex-direction: row; flex-wrap: nowrap; gap: 6px; padding: 0 16px 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; flex: none; }
  .nav:not(:has(.nav-link[data-nav]:not([style*="none"]))) { display: none; }
  .nav-grupo { display: contents; }
  .nav-grupo:not(:has(.nav-link[data-nav]:not([style*="none"]))) { display: none; }
  .nav-seccion { display: none; }
  .nav-link { flex-shrink: 0; white-space: nowrap; padding: 10px 14px; border: 1px solid var(--border); border-radius: 999px; }
  .nav-link.active { border-color: #C5D9FA; }
  .sidebar-foot { flex-direction: row; flex-wrap: wrap; padding: 10px 16px 12px; border-top: 1px solid var(--border); }
  .proyecto-estado, .sesion-info { flex: 1 1 150px; padding: 8px 10px; }
  .topbar { position: static; padding: 18px 16px 16px; }
  .topbar h1 { font-size: 22px; }
  .vista { padding: 20px 16px 36px; }
  .pie { padding: 14px 16px 20px; }
  .btn, .btn.sm, .sesion-info .btn { min-height: 44px; }
  .kpi { flex-basis: 100%; }
  .login-pantalla { grid-template-columns: minmax(0, 1fr); }
  .login-lado { padding: 32px 24px; }
  .login-lado h2 { font-size: 28px; }
}

/* Escenarios */
.grilla-supuestos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 20px; margin-top: 16px; }
.grilla-supuestos .celda { width: 100%; justify-content: flex-end; }
table.sens th, table.sens td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.sens th.l { text-align: left; }
table.sens th.base { color: var(--accent-dark); }
table.sens td.celda-base { outline: 2px solid var(--accent); outline-offset: -2px; font-weight: 700; }
table.sens td.mal { color: var(--bad); }
table.sens td.bien { color: var(--ok); }

/* Resumen: conexiones vendidas vs. punto de equilibrio del precio fijo */
.card.equilibrio { border-left: 4px solid var(--warn-dot); }
.card.equilibrio.verde { border-left-color: var(--ok); }
.card.equilibrio.rojo { border-left-color: var(--bad); }
.eq-cifra { font-size: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.eq-barra { position: relative; height: 14px; margin: 26px 0 8px; background: #E6EBF3; border-radius: 7px; }
.eq-barra i { display: block; height: 100%; background: var(--accent); border-radius: 7px; }
.eq-marca { position: absolute; top: -6px; bottom: -6px; width: 3px; margin-left: -1.5px; background: var(--text); border-radius: 2px; }
.eq-marca::after { content: attr(data-l); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 3px; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--text); }
.eq-texto { margin: 8px 0 0; font-size: 13.5px; }

/* Credenciales iniciales (se muestran una sola vez) */
.credenciales { display: grid; gap: 8px; margin: 12px 0 4px; padding: 14px 16px; background: #F3F6FB; border: 1px dashed var(--border); border-radius: 8px; }
.credenciales div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.credenciales span { color: var(--muted); font-size: 13px; }
.credenciales strong { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 16px; letter-spacing: .02em; user-select: all; }

/* Parámetro bloqueado (mes 0 con compras registradas) */
.celda-bloqueada { background: #EEF1F6; border: 1px solid var(--border); color: var(--muted); font-weight: 600; }
.celda-bloqueada select { background: transparent; border: 0; box-shadow: none; padding: 2px 0; min-height: 0; color: inherit; font-weight: 600; width: 100%; min-width: 150px; text-align-last: right; cursor: not-allowed; }
table.param td.nota.nota-bloqueo { color: var(--bad); }

/* Cobro parcial */
.pill-parcial { background: #FFF1D6; color: #9A5B00; }
.falta { color: var(--bad); font-weight: 600; font-size: 12.5px; }

/* Avisos de pagos atrasados */
.lista-atrasos { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.texto-recordatorio { width: 100%; font: inherit; font-size: 13px; line-height: 1.45; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; resize: vertical; margin-top: 8px; }

/* Equivalente en pesos de la fecha de compra */
.kpi .s.equivalente { color: var(--text); }

/* Proyecto y expediente */
.proyecto + .proyecto { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.proyecto h3 { margin: 0; font-size: 16px; }
.datos-proyecto { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 20px; margin: 12px 0 16px; }
.datos-proyecto dt { font-size: 12px; color: var(--muted); font-weight: 500; }
.datos-proyecto dd { margin: 2px 0 0; font-size: 14px; }
label.f.check { flex-direction: row; align-items: center; gap: 8px; }
.proyecto .acc { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 220px; margin-left: auto; }
