/* Clínica Veterinaria PET · capa de marca y vistas propias del modelo de turnos */
/* Colores estándar de ARALIA (el cliente solo aporta su logo y nombre) */
:root { --pet-700:#17345a; --pet-800:#122946; --pet-900:#0c1c32; --pet-100:#e3edf7; --pet-50:#f3f7fb; }
.portal .sidebar__brand img { height: 30px; width: auto; }
.sidebar__powered { display:flex; align-items:center; gap:6px; padding: 0 20px 14px; font-size:.7rem; color:#8fbfb8; }
.sidebar__powered img { height: 12px; opacity:.85; }
.btn--pet { background: var(--pet-700); color:#fff; border-color: var(--pet-700); }
.btn--pet:hover { background: var(--pet-800); }
.demo-ribbon { display:inline-flex; align-items:center; gap:6px; font-size:.72rem; font-weight:600; color:#8a5a00; background:#fff4d6; border:1px solid #f3dc9b; padding:3px 10px; border-radius:999px; }

/* ---------- Calendario ---------- */
.cal-tools { display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between; padding: 14px 18px; border-bottom:1px solid var(--border); }
.cal-tools .seg button { font-size:.8rem; }
.cal-wrap { overflow:auto; max-height: 70vh; }
table.cal { border-collapse: separate; border-spacing: 2px; font-size: .74rem; min-width: 100%; }
table.cal th, table.cal td { padding:0; text-align:center; }
table.cal thead th { position: sticky; top: 0; z-index: 2; background:#fff; font-weight:600; color: var(--text-muted); height: 38px; min-width: 30px; line-height:1.1; }
table.cal thead th.we { color:#b03a2e; }
table.cal thead th.hol { color:#fff; background:#b03a2e; border-radius:6px; }
table.cal th.who, table.cal td.who { position: sticky; left: 0; z-index: 1; background:#fff; text-align:left; min-width: 190px; padding: 0 10px 0 4px; }
table.cal thead th.who { z-index: 3; }
table.cal td.who b { display:block; font-size:.8rem; color: var(--navy-900); font-weight:600; white-space:nowrap; }
table.cal td.who small { color: var(--text-subtle); font-size:.68rem; }
table.cal td.who button { all:unset; cursor:pointer; display:block; }
table.cal td.who button:hover b { color: var(--pet-700); text-decoration: underline; }
table.cal tr.rol-sep td { text-align:left; font-size:.68rem; text-transform:uppercase; letter-spacing:.08em; color: var(--text-subtle); padding: 10px 4px 2px; font-weight:700; background:transparent; }
.c { display:grid; place-items:center; width:30px; height:28px; border-radius:6px; font-weight:700; font-size:.72rem; cursor:default; }
.c-HM { background:#dbeafe; color:#1e3a5f; } .c-HT { background:#93c5fd; color:#0c2340; } .c-HN { background:#1e3a5f; color:#fff; }
.c-CM { background:#d1fae5; color:#065f46; } .c-CT { background:#6ee7b7; color:#064e3b; }
.c-L { background:#f3f5f8; color:#b8c3cf; font-weight:400; } .c-V { background:#fde7d1; color:#9a4b0c; } .c-B { background:#fce7f3; color:#9d174d; }
.c.is-we { box-shadow: inset 0 0 0 1px #f2c4bf; }
.cal.dim .c:not(.is-hl) { opacity:.18; }
.cal-legend { display:flex; flex-wrap:wrap; gap:8px 14px; font-size:.76rem; color: var(--text-muted); padding: 12px 18px; border-top:1px solid var(--border); }
.cal-legend span { display:inline-flex; align-items:center; gap:6px; }
.cal-legend .c { width:22px; height:18px; font-size:.62rem; }
table.cal tfoot td { font-size:.68rem; color: var(--text-subtle); height: 22px; }
table.cal tfoot td.ok { color: #1f8a63; font-weight:700; }

/* ---------- Barras por persona ---------- */
.pbars { display:grid; gap:8px; }
.pbar { display:grid; grid-template-columns: 150px 1fr 74px; gap:10px; align-items:center; font-size:.8rem; }
.pbar__name { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color: var(--navy-900); }
.pbar__track { position:relative; height:14px; background: var(--bg-sunken); border-radius:999px; overflow:visible; display:flex; }
.pbar__fill { height:100%; border-radius:999px; background: var(--pet-700); }
.pbar__seg { height:100%; } .pbar__seg:first-child { border-radius:999px 0 0 999px; } .pbar__seg:last-child { border-radius:0 999px 999px 0; }
.pbar__target { position:absolute; top:-3px; bottom:-3px; width:2px; background: var(--navy-900); border-radius:2px; }
.pbar__val { text-align:right; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.checks { list-style:none; margin:0; padding:0; display:grid; gap:2px; }
.checks li { display:flex; gap:10px; align-items:flex-start; padding:9px 4px; border-bottom:1px dashed var(--border); font-size:.86rem; }
.checks li:last-child { border-bottom:0; }
.checks li .icon { flex:none; margin-top:2px; }
.checks li small { display:block; color: var(--text-subtle); font-size:.76rem; }
.insight { display:flex; gap:12px; padding:14px; border-radius:12px; background: var(--pet-50); border:1px solid #d6e3f0; font-size:.86rem; }
.insight + .insight { margin-top:10px; }
.insight .icon { color: var(--pet-700); flex:none; margin-top:2px; }

/* ---------- Mi turno ---------- */
.month { display:grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap:6px; }
.month__dow { font-size:.72rem; font-weight:700; color: var(--text-subtle); text-align:center; text-transform:uppercase; letter-spacing:.06em; }
.month__day { min-height: 84px; border:1px solid var(--border); border-radius:12px; padding:8px; background:#fff; display:flex; flex-direction:column; gap:6px; }
.month__day.is-out { visibility:hidden; }
.month__day.is-we { background:#fffafa; }
.month__day b { font-size:.82rem; color: var(--navy-900); }
.month__day .shift { border-radius:8px; padding:5px 7px; font-size:.72rem; font-weight:600; line-height:1.25; }
.month__day .shift small { display:block; font-weight:400; opacity:.85; }
@media (max-width: 640px) { .month { gap:3px; } .month__day { min-height:64px; padding:4px; border-radius:8px; } .month__day .shift { padding:3px; font-size:.62rem; } .month__day .shift small { display:none; } }

/* ---------- Impresión (PDF del calendario) ---------- */
@media print {
  .sidebar, .topbar, .nav-scrim, .no-print, .toast { display:none !important; }
  .app, .main, .content { display:block !important; margin:0 !important; padding:0 !important; }
  .cal-wrap { max-height:none; overflow:visible; }
  table.cal { font-size:7px; } .c { width:17px; height:15px; font-size:6.5px; border-radius:3px; }
  table.cal td.who { min-width:110px; }
  .panel { box-shadow:none; border:0; }
  @page { size: A4 landscape; margin: 10mm; }
}

/* ---------- Portada: plataforma ARALIA con espacio PET ---------- */
.auth__side--aralia { background: linear-gradient(155deg, #08131f 0%, #0c1c32 45%, #16355a 100%) !important; }
.auth__side--aralia::after { background: radial-gradient(circle at 85% 90%, rgba(20,184,166,.18), transparent 55%) !important; }
.auth__side--aralia img.bg { opacity:.05 !important; object-fit:contain; transform: scale(1.5) translate(22%, 20%); }
.auth__brandtop img { height: 34px; }
.auth__welcome { max-width: 520px; }
.auth__eyebrow { display:inline-block; font-size:.78rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:#8fb7e0; margin-bottom:22px; }
.cobrand { display:flex; align-items:center; gap:22px; padding:22px 26px; border-radius:20px; background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); backdrop-filter: blur(4px); margin-bottom:26px; flex-wrap:wrap; }
.cobrand__aralia { height:44px; }
.cobrand__pet { height:62px; }
.cobrand__x { font: 300 2rem/1 var(--font-display); color:#7f98b5; }
.auth__welcome h2 { color:#fff; font-size: clamp(1.6rem, 2.3vw, 2.15rem); margin:0 0 10px; }
.auth__welcome p { color:#c4d4e6; margin:0; max-width:46ch; line-height:1.55; }
.auth__welcome ul { list-style:none; padding:0; margin:22px 0 0; display:grid; gap:12px; color:#d6e3f0; font-size:.95rem; }
.auth__welcome li { display:flex; gap:10px; align-items:center; }
.auth__welcome li .icon { color:#6fd3a5; }
@media (max-width: 1100px) { .cobrand__aralia { height:34px; } .cobrand__pet { height:48px; } }

/* Portada centrada */
.auth__side--aralia { align-items:center; text-align:center; }
.auth__side--aralia .auth__brandtop { align-self:center; }
.auth__welcome { margin: 0 auto; display:flex; flex-direction:column; align-items:center; }
.auth__welcome p { margin-left:auto; margin-right:auto; }
.auth__welcome ul { justify-items:start; text-align:left; }
.cobrand { justify-content:center; }
.auth__legal--center { justify-content:center !important; width:100%; }

/* Recorrido de la demo */
.tour { margin: 22px 0 26px; border-color:#d6e3f0; background: linear-gradient(180deg,#fff,var(--pet-50)); }
.tour .panel__head h3 { display:flex; align-items:center; gap:8px; }
.tour .progress__bar { background: var(--pet-700); }
.tour__steps { list-style:none; margin:0; padding:14px 18px 18px; display:grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap:10px; }
@media (max-width: 1280px) { .tour__steps { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 640px) { .tour__steps { grid-template-columns: 1fr; } }
.tour__steps a { display:flex; gap:10px; align-items:center; padding:10px 12px; border:1px solid var(--border); border-radius:12px; background:#fff; color: var(--navy-900); font-size:.84rem; font-weight:500; text-decoration:none; height:100%; }
.tour__steps a:hover { border-color: var(--pet-700); }
.tour__n { flex:none; width:26px; height:26px; border-radius:50%; display:grid; place-items:center; background: var(--bg-sunken); font-weight:700; font-size:.8rem; }
.tour__steps li.is-done a { background: var(--pet-50); border-color:#d6e3f0; color: var(--text-muted); }
.tour__steps li.is-done .tour__n { background: var(--pet-700); color:#fff; }
.tour__n .icon { width:14px; height:14px; }

/* ---------- Barra lateral ARALIA con espacio del cliente ---------- */
.tenant-chip { display:flex; align-items:center; gap:12px; margin: 4px 4px 18px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.10); }
.tenant-chip img { width: 40px; height: 40px; border-radius: 11px; flex:none; }
.tenant-chip strong { display:block; color:#fff; font-size:.9rem; line-height:1.25; }
.tenant-chip small { color:#8ea4bc; font-size:.76rem; }
.model-head { display:flex; gap:10px; align-items:center; margin: 2px 4px 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); }
.model-head__ico { width:34px; height:34px; border-radius:10px; display:grid; place-items:center; background: rgba(168,195,222,.16); color:#d6e3f0; flex:none; }
.model-head strong { display:block; color:#fff; font-size:.88rem; }
.model-head small { color:#8ea4bc; font-size:.74rem; }
.side-link .step-dot { width:20px; height:20px; border-radius:50%; display:inline-grid; place-items:center; font-size:.7rem; font-weight:700; background: rgba(255,255,255,.10); color:#d6e3f0; flex:none; }
.side-link.is-active .step-dot { background: var(--leaf-500); color:#fff; }
.side-link.is-soon { opacity:.55; cursor:default; }

/* ---------- Barra lateral v3: centrada, limpia ---------- */
.portal .sidebar { background: linear-gradient(180deg, #0c1c32 0%, #091525 100%); padding: 26px 16px 18px; border-right: 1px solid rgba(255,255,255,.04); }
.portal .sidebar__brand { justify-content: center; padding: 0 0 22px; }
.portal .sidebar__brand img { height: 26px; }
.tenant-chip { flex-direction: column; justify-content: center; text-align: center; gap: 8px; margin: 0 0 8px; padding: 18px 12px; border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.07); }
.tenant-chip img { width: 52px; height: 52px; border-radius: 15px; box-shadow: 0 8px 20px -8px rgba(0,0,0,.6); }
.tenant-chip strong { font-size: .92rem; letter-spacing: -.01em; }
.side-search { display:flex; align-items:center; gap:8px; margin: 0 2px 8px; padding: 0 12px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color:#6d84a0; transition: border-color .15s; }
.side-search:focus-within { border-color: rgba(168,195,222,.45); background: rgba(255,255,255,.08); }
.side-search .icon { width:15px; height:15px; flex:none; }
.side-search input { all: unset; flex:1; min-width:0; color:#eaf1f8; font-size:.86rem; }
.side-search input::placeholder { color:#6d84a0; }
.model-list { display:grid; gap:2px; }
.model-link { display:block; padding: 10px 14px; border-radius: 10px; color:#b9c9db; font-size:.9rem; font-weight:500; line-height:1.35; position:relative; }
.model-link:hover { background: rgba(255,255,255,.06); color:#fff; }
.model-link.hide { display:none; }
.model-empty { margin: 6px 14px; font-size:.82rem; color:#6d84a0; }
.model-title { margin: 4px 2px 4px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.04); color:#fff; font-weight:600; font-size:.92rem; }
.model-title small { display:block; color:#8ea4bc; font-weight:400; font-size:.74rem; margin-top:2px; }
.portal .sidebar__back { margin-top: 6px; }
.side-foot { margin-top: auto; padding: 16px 8px 2px; border-top: 1px solid rgba(255,255,255,.07); display:flex; flex-direction:column; align-items:center; gap:2px; text-align:center; font-size:.78rem; }
.side-foot a { color:#8ea4bc; } .side-foot a:hover { color:#fff; }
.side-foot b { color:#d6e3f0; font-weight:600; }
/* ---------- Portada interna limpia ---------- */
.empty-start { min-height: calc(100vh - 180px); display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:10px; }
.empty-start__logo { width:64px; height:64px; border-radius:18px; opacity:.9; margin-bottom:8px; }
.empty-start h1 { font-size: 1.6rem; margin:0; }
.empty-start p { color: var(--text-muted); margin:0; }

/* Ayuda: flujo en pasos */
.help-steps { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.help-steps li { display:flex; gap:12px; align-items:center; font-size:.92rem; color: var(--text); }
.help-steps span { flex:none; width:28px; height:28px; border-radius:50%; display:grid; place-items:center; background: var(--navy-800); color:#fff; font-weight:700; font-size:.82rem; }
.runs-table tr.is-selected td { background: var(--info-100); }

.src-table td { vertical-align: middle; }
.page-head h1 { margin-bottom: 0; }

/* Subir archivo sobre las pestañas */
.upload-panel { margin-bottom: 22px; }
.upload-row { display:grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 18px; align-items:end; }
.upload-row .field { margin:0; }
.upload-row .dropzone { display:flex; align-items:center; justify-content:center; gap:10px; min-height:46px; padding:10px 16px; border:2px dashed var(--border); border-radius:12px; cursor:pointer; color: var(--text-muted); }
.upload-row .dropzone:hover { border-color: var(--steel-300); background: var(--mist-50); }
@media (max-width: 720px) { .upload-row { grid-template-columns: 1fr; } }

/* Lista de fuentes clicable y detalle */
.src-row { cursor: pointer; }
.src-row:hover td { background: var(--mist-50); }
.src-link { color: var(--navy-900); }
.src-link:hover { text-decoration: underline; }
.back-link { display:inline-flex; align-items:center; gap:6px; font-size:.86rem; color: var(--text-muted); margin-bottom: 6px; }
.back-link .icon { transform: rotate(180deg); width:15px; height:15px; }
.back-link:hover { color: var(--navy-900); }

/* Globo de ayuda (al pasar el mouse) */
.tip { position: relative; display: inline-flex; }
.tip::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); right: -8px; transform: translateY(4px); text-align: left; line-height: 1.45;
  white-space: pre;  background: var(--navy-900); color: #fff; font-size: .76rem; font-weight: 500; padding: 7px 10px; border-radius: 8px;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 20; }
.tip::before { content: ""; position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%); border: 6px solid transparent;
  border-top-color: var(--navy-900); opacity: 0; transition: opacity .15s; z-index: 20; }
.tip:hover::after, .tip:focus-within::after { opacity: 1; transform: translateY(0); }
.tip:hover::before, .tip:focus-within::before { opacity: 1; }

/* Tabla editable: todas las celdas */
.table.editable td { cursor: text; }
.table.editable td:hover { background: var(--mist-50); box-shadow: inset 0 0 0 1px var(--steel-200); }
.table.editable td.is-pend { background: #fff7d6; }
.table.editable td.is-adj { background: #eef6ff; }
.table.editable .cell-ed { width: 100%; min-width: 120px; }

/* Pasos listos (barra izquierda) y barra de confirmación */
.side-link.is-done .step-dot { background: var(--leaf-500); color: #fff; }
.side-link.is-done .step-dot .icon { width: 12px; height: 12px; stroke-width: 3; }
.ready-bar { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; padding:16px 20px; border-radius: var(--radius-lg); background:#fff; border:1px solid var(--border); font-size:.9rem; color: var(--text-muted); }
.ready-bar b { color: var(--navy-900); }
.ready-bar.is-warn { background: var(--warn-100); border-color:#f3dc9b; }

/* Ejecutar: parámetros arriba, barra de avance y terminal */
.param-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px 20px; }
.param-grid .field { margin:0; display:flex; flex-direction:column; gap:6px; }
.switch-row { display:flex; align-items:center; gap:10px; min-height:44px; padding: 0 12px; border:1px solid var(--border); border-radius:12px; font-size:.9rem; cursor:pointer; }
.switch-row input { width:18px; height:18px; }
.run-progress { margin-top:20px; padding:16px 20px; background:#fff; border:1px solid var(--border); border-radius: var(--radius-lg); }
.run-progress__top { display:flex; justify-content:space-between; gap:12px; margin-bottom:10px; font-size:.9rem; color: var(--navy-900); }
.run-progress__top span { font-variant-numeric: tabular-nums; font-weight:700; }
.run-progress .progress { height:10px; }
.run-progress .progress__bar { transition: width .35s ease; }
.run-progress.is-ok .progress__bar { background: var(--leaf-500); }
.run-progress.is-error .progress__bar { background: var(--danger-500); }

/* Resultados: ejecuciones en pestañas (de a 5) y reportes */
.runs-strip { display:flex; align-items:stretch; gap:8px; margin-bottom:20px; }
.runs-nav { align-self:center; flex:none; }
.runs-nav:disabled { opacity:.3; cursor:default; }
#prev .icon { transform: rotate(180deg); }
.runs-tabs { flex:1; display:grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap:10px; }
.run-tab { all:unset; cursor:pointer; display:flex; flex-direction:column; gap:4px; padding:12px 14px; border-radius:14px; background:#fff; border:1px solid var(--border); min-width:0; }
.run-tab:hover { border-color: var(--steel-300); }
.run-tab.is-sel { border-color: var(--navy-700); box-shadow: 0 0 0 2px rgba(23,52,90,.15); }
.run-tab__top { display:flex; justify-content:space-between; align-items:center; gap:6px; }
.run-tab__top b { color: var(--navy-900); }
.run-tab__name { font-size:.86rem; font-weight:600; color: var(--navy-900); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.run-tab__meta { font-size:.74rem; color: var(--text-subtle); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.report { overflow:hidden; }
.report-bar { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding:12px 16px; border-bottom:1px solid var(--border); }
.report-frame { display:block; width:100%; border:0; background:#fff; min-height:320px; }
.tb-sep { width:1px; height:22px; background: var(--border); margin: 0 2px; }
@media (max-width: 900px) { .runs-tabs { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* Ejecutar: parámetros en tabla (nombre · valor · descripción · ejemplo) */
.nom-row { max-width: 460px; padding: 16px 20px 18px; margin:0; }
.param-table { width:100%; }
.param-table th:nth-child(1) { width: 26%; } .param-table th:nth-child(2) { width: 20%; } .param-table th:nth-child(4) { width: 22%; }
.param-table td { vertical-align: middle; padding-top:10px; padding-bottom:10px; }
.param-name { font-weight:600; color: var(--navy-900); }
.param-val .input, .param-val .select { width:100%; min-width: 140px; }
.param-val .switch-row { min-height:40px; }
.param-desc { color: var(--text-muted, #51627a); font-size:.86rem; line-height:1.4; }
.param-desc span { display:block; margin-top:2px; }
.param-ej { color: var(--text-subtle); font-size:.84rem; font-style: italic; }
@media (max-width: 900px) { .param-table thead { display:none; } .param-table tr { display:grid; grid-template-columns: 1fr; gap:4px; padding:10px 0; } .param-table td { padding:2px 12px; border:0; } }

/* Resultados: tabla de ejecuciones con paginación */
.runs-table tbody tr.run-row { cursor:pointer; }
.runs-table tbody tr.run-row:hover td { background: #f6f9fc; }
.runs-table tbody tr.run-row.is-sel td { background: #eaf1f9; }
.runs-table tbody tr.run-row.is-sel td:first-child { box-shadow: inset 3px 0 0 var(--navy-700); }
.runs-table td { white-space: nowrap; }
.runs-table td.run-name { white-space: normal; font-weight:600; color: var(--navy-900); }
.pager { display:flex; justify-content:center; gap:6px; padding: 12px 16px 16px; }
.pager .pg { min-width:34px; height:34px; border-radius:10px; border:1px solid var(--border); background:#fff; font: 600 .86rem inherit; color: var(--navy-900); cursor:pointer; }
.pager .pg.is-on { background: var(--navy-900); color:#fff; border-color: var(--navy-900); }
.pager .pg:disabled { opacity:.35; cursor:default; }

/* Enviar resultados */
.envio { display:flex; flex-direction:column; gap:16px; }
.chk-list { display:flex; flex-direction:column; border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.chk-row { display:flex; align-items:center; gap:12px; padding:9px 14px; border-bottom:1px solid var(--border); cursor:pointer; }
.chk-row:last-child { border-bottom:0; }
.chk-row:hover { background:#f6f9fc; }
.chk-row input { width:17px; height:17px; flex:none; }
.chk-row b { font-weight:600; font-size:.88rem; color: var(--navy-900); }
.chk-row small { display:block; color: var(--text-subtle); font-size:.76rem; }
.add-row { display:flex; gap:8px; margin-top:8px; }
.add-row .input { flex:1; }
.add-file { margin-top:8px; align-self:flex-start; cursor:pointer; }
#e-res { margin-right:auto; }

/* Enviar: destinatarios con sus adjuntos */
.dest-table td { vertical-align: middle; }
.dest-table td:last-child { width: 40px; text-align:right; }
.dest { display:flex; align-items:center; gap:10px; min-width: 190px; }
.dest .icon { color: var(--navy-700); flex:none; }
.dest b { display:block; font-size:.88rem; color: var(--navy-900); }
.dest small { color: var(--text-subtle); font-size:.76rem; }
.adj-chips { display:flex; flex-wrap:wrap; gap:6px; }
.adj-chip { display:inline-flex; align-items:center; gap:6px; padding:4px 10px 4px 8px; border:1px solid var(--border); border-radius:999px; font-size:.78rem; cursor:pointer; color: var(--text-muted, #51627a); }
.adj-chip:has(input:checked) { background:#eaf1f9; border-color: var(--steel-300, #9db6d1); color: var(--navy-900); font-weight:600; }
.adj-chip input { width:14px; height:14px; }
.add-row .select { max-width: 280px; }
/* Inicio: Tu empresa */
.empresa { max-width: 880px; margin: 8px auto 0; }
.empresa__t { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-subtle); margin: 0 0 12px; }
.empresa__grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap:14px; }
.empresa-card { display:flex; gap:14px; align-items:flex-start; padding:18px 20px; background:#fff; border:1px solid var(--border); border-radius: var(--radius-lg); text-decoration:none; color:inherit; }
.empresa-card:hover { border-color: var(--steel-300, #9db6d1); box-shadow: 0 2px 10px rgba(12,28,50,.06); }
.empresa-card h3 { margin:0 0 4px; font-size:1rem; color: var(--navy-900); }
.empresa-card p { margin:0; font-size:.86rem; color: var(--text-muted, #51627a); }
.empresa__sub { font-size:.95rem; margin: 24px 0 10px; color: var(--navy-900); }
.form-row { display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
.input--sm { padding: 6px 10px; min-height: 34px; font-size:.86rem; }
.table--compact td, .table--compact th { padding: 6px 8px; }
.empty-start:has(+ .empresa) { min-height: 0; padding: 64px 0 36px; }

/* Créditos */
.credit-chip { display:inline-flex; align-items:center; gap:6px; height:36px; padding:0 12px; border-radius:999px; border:1px solid var(--border); background:#fff; color: var(--navy-900); text-decoration:none; font-size:.84rem; margin-right:4px; }
.credit-chip .icon { width:16px; height:16px; color:#d99a1e; }
.credit-chip span { color: var(--text-subtle); }
.credit-chip.is-low { border-color:#f1b4ab; background:#fdf0ee; }
.credit-chip.is-low .icon, .credit-chip.is-low b { color: var(--danger-500); }
.run-cost { display:inline-flex; align-items:center; gap:3px; margin-left:10px; padding:2px 8px; border-radius:999px; background: rgba(255,255,255,.16); font-size:.8rem; font-weight:600; }
.run-cost .icon { width:13px; height:13px; }
.cred-stats { display:grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap:14px; }
.cred-stat { background:#fff; border:1px solid var(--border); border-radius: var(--radius-lg); padding:16px 18px; }
.cred-stat small { display:block; color: var(--text-subtle); font-size:.72rem; text-transform:uppercase; letter-spacing:.07em; }
.cred-stat b { display:block; font-size:1.7rem; color: var(--navy-900); margin:6px 0 2px; }
.cred-stat b em { font-style:normal; font-size:.9rem; color: var(--text-subtle); font-weight:500; }
.cred-stat span { font-size:.8rem; color: var(--text-muted, #51627a); }
.cupo-edit { display:flex; align-items:center; gap:8px; } .cupo-edit .input { width:110px; }
.paquetes { display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; }
.paquete { display:flex; gap:10px; align-items:flex-start; padding:14px; border:1px solid var(--border); border-radius:14px; cursor:pointer; }
.paquete:has(input:checked) { border-color: var(--navy-700); box-shadow: 0 0 0 2px rgba(23,52,90,.15); }
.paquete b { display:block; color: var(--navy-900); } .paquete em { display:block; font-style:normal; font-weight:700; margin:4px 0; color: var(--navy-900); } .paquete small { color: var(--text-subtle); font-size:.76rem; }
@media (max-width: 700px) { .paquetes { grid-template-columns: 1fr; } .credit-chip span { display:none; } }
.badge--neutral { background:#eef2f6; color:#41536b; }

/* Créditos y plan v2 */
.cred-hero { display:grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); overflow:hidden; }
.cred-hero__main { padding:24px 28px; }
.cred-hero__label { display:inline-flex; align-items:center; gap:6px; font-size:.74rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color: var(--text-subtle); }
.cred-hero__label .icon { width:15px; height:15px; color:#d99a1e; }
.cred-hero__num { font-size:3rem; font-weight:800; line-height:1.05; color: var(--navy-900); margin:8px 0 6px; letter-spacing:-.02em; }
.cred-hero__num span { font-size:1rem; font-weight:500; color: var(--text-subtle); margin-left:8px; letter-spacing:0; }
.cred-hero__main p { margin:0 0 18px; color: var(--text-muted, #51627a); font-size:.9rem; }
.cred-meter__bar { height:8px; background:#eef2f6; border-radius:99px; overflow:hidden; }
.cred-meter__bar i { display:block; height:100%; background: linear-gradient(90deg, #17345a, #3f6ea3); border-radius:99px; }
.cred-meter__legend { display:flex; justify-content:space-between; margin-top:8px; font-size:.8rem; color: var(--text-subtle); }
.cred-meter__legend b { color: var(--navy-900); }
.cred-hero__side { margin:0; padding:20px 24px; background:#f6f9fc; border-left:1px solid var(--border); display:flex; flex-direction:column; justify-content:center; gap:2px; }
.cred-hero__side div { display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px solid #e6edf4; }
.cred-hero__side div:last-child { border-bottom:0; }
.cred-hero__side dt { color: var(--text-subtle); font-size:.84rem; }
.cred-hero__side dd { margin:0; font-weight:600; color: var(--navy-900); font-size:.88rem; text-align:right; }
.cred-hero__side dd small { font-weight:400; color: var(--text-subtle); }
.cred-note { display:flex; align-items:center; gap:8px; margin:12px 2px 0; font-size:.8rem; color: var(--text-subtle); }
.cred-note .icon { width:15px; height:15px; flex:none; }
.cupo-table td, .mov-table td { vertical-align: middle; }
.persona { display:flex; align-items:center; gap:10px; }
.persona b { display:block; font-size:.9rem; color: var(--navy-900); font-weight:600; }
.persona small { display:block; font-size:.76rem; color: var(--text-subtle); }
.uso { display:flex; align-items:center; gap:10px; min-width:170px; }
.uso__bar { flex:1; max-width:120px; height:6px; background:#eef2f6; border-radius:99px; overflow:hidden; }
.uso__bar i { display:block; height:100%; background:#3f6ea3; border-radius:99px; }
.uso__bar i.is-full { background: var(--danger-500); }
.uso span { font-size:.84rem; font-variant-numeric: tabular-nums; white-space:nowrap; color: var(--navy-900); }
.uso em { font-style:normal; color: var(--text-subtle); }
.unit-input { display:inline-flex; align-items:stretch; border:1px solid var(--border); border-radius:10px; overflow:hidden; background:#fff; }
.unit-input:focus-within { border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(23,52,90,.12); }
.unit-input input { width:96px; border:0; padding:7px 10px; font: inherit; font-size:.88rem; outline:none; background:transparent; }
.unit-input span { display:flex; align-items:center; padding:0 10px; background:#f6f9fc; border-left:1px solid var(--border); font-size:.76rem; color: var(--text-subtle); }
.disp { font-size:1rem; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.disp.is-zero { color: var(--danger-500); }
.mov { display:flex; align-items:center; gap:10px; }
.mov b { display:block; font-weight:600; font-size:.88rem; color: var(--navy-900); }
.mov small { display:block; font-size:.74rem; color: var(--text-subtle); }
.mov__dot { width:8px; height:8px; border-radius:50%; flex:none; }
.mov__dot--plan { background:#3f6ea3; } .mov__dot--compra { background:#1f8a63; } .mov__dot--consumo { background:#9aa9bb; } .mov__dot--vence { background:#d99a1e; }
.mov__n { font-variant-numeric: tabular-nums; color: var(--navy-900); }
.mov__n.is-plus { color:#1f8a63; }
.nowrap { white-space:nowrap; }
@media (max-width: 900px) { .cred-hero { grid-template-columns: 1fr; } .cred-hero__side { border-left:0; border-top:1px solid var(--border); } }
