/* odontOS · Inicio web V1 "Acción del día" (solo escritorio). Solo aspecto + widgets de lectura. */
#iniV1{display:none}
@media (min-width: 835px) {
  html body #inicio{--v1-line:rgba(0,0,0,.055);--v1-muted:#6B7586;--v1-sh:0 0 0 .5px rgba(0,0,0,.04),0 1px 2px rgba(0,0,0,.04),0 4px 14px rgba(0,0,0,.035)}
  /* indicadores en una sola tarjeta */
  html body #inicio .summary{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:0!important;background:#fff!important;border-radius:14px!important;box-shadow:var(--v1-sh)!important;padding:0!important;margin:0 0 16px!important;overflow:hidden;border:0!important}
  html body #inicio .summary .mini-card{background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;border-right:1px solid var(--v1-line)!important;padding:16px 22px!important;min-height:0!important}
  html body #inicio .summary .mini-card:last-child{border-right:0!important}
  html body #inicio .summary .mini-card:hover{background:#FAFAFB!important}
  html body #inicio .ini-sub{white-space:nowrap}
  /* widgets V1 · opción A "Línea del día" */
  html body #inicio{--v1-card:#fff;--v1-ink:#0F172A;--v1-soft:#F0F9FF;--v1-gap:#F7FBFE;--v1-gapl:#B9D5E6;--v1-chip-b:#E3F1FB;--v1-chip-bt:#0A6CA8;--v1-chip-g:#E4F6EA;--v1-chip-gt:#15803D;--v1-chip-a:#FFF1DD;--v1-chip-at:#9A5B05;--v1-chip-r:#FEE9E9;--v1-chip-rt:#B42323;--v1-chip-k:#ECEFF4;--v1-chip-kt:#4B5565;--v1-tile:#F0F9FF}
  #iniV1{display:grid;grid-template-columns:1.18fr 1fr;gap:12px;margin:0 0 14px;align-items:start}
  #iniV1 .v1-col{display:flex;flex-direction:column;gap:12px;min-width:0}
  #iniV1 .v1-wide{grid-column:1/-1;min-width:0}
  #iniV1 svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
  #iniV1 .v1-card{background:var(--v1-card);border-radius:16px;box-shadow:var(--v1-sh);overflow:hidden;padding:0 0 8px}
  #iniV1 .v1-ch{display:flex;align-items:baseline;justify-content:space-between;padding:14px 16px 8px}
  #iniV1 .v1-ch h3{font-size:16px;font-weight:800;margin:0;color:var(--v1-ink);text-transform:none;letter-spacing:-.01em}
  #iniV1 .v1-ch span{color:var(--v1-muted);font-size:12.5px;font-weight:600}
  #iniV1 a[data-v1]{color:#0369A1;font-weight:700;font-size:13px;cursor:pointer;margin-left:10px}
  #iniV1 .v1-b{height:36px;padding:0 14px;border-radius:10px;border:0;background:var(--v1-chip-b);color:var(--v1-chip-bt);font-weight:700;font-size:13px;cursor:pointer;display:inline-flex;align-items:center}
  #iniV1 .v1-row{padding:6px 16px 10px}
  /* línea del día */
  #iniV1 .v1-rw{display:flex;align-items:center;gap:12px;min-height:54px;padding:0 12px 0 8px;margin:0 8px;border-radius:12px}
  #iniV1 .v1-rw.past{opacity:.55}
  #iniV1 .v1-rw.next{background:var(--v1-soft)}
  #iniV1 .v1-tm{width:56px;text-align:right;white-space:nowrap;flex:none;font-weight:800;font-size:13.5px;color:var(--v1-ink)}
  #iniV1 .v1-tm small{display:block;color:var(--v1-muted);font-weight:600;font-size:11px}
  #iniV1 .v1-bar{width:5px;height:34px;border-radius:5px;background:#0284C7;flex:none}
  #iniV1 .v1-rw.blk .v1-bar{background:repeating-linear-gradient(45deg,#c5ccd8 0 4px,#e4e8ef 4px 8px)}
  #iniV1 .v1-rw.blk .v1-who b{color:var(--v1-muted)}
  #iniV1 .v1-who{flex:1;min-width:0}
  #iniV1 .v1-who b{display:block;font-weight:700;font-size:14.5px;line-height:1.2;color:var(--v1-ink)}
  #iniV1 .v1-who small{color:var(--v1-muted);font-size:12.5px;font-weight:500}
  #iniV1 .v1-al{display:inline-flex;align-items:center;gap:4px;color:#B42323;font-weight:700}#iniV1 .v1-al svg{width:13px;height:13px}
  #iniV1 .v1-ed{width:36px;height:36px;border-radius:10px;background:var(--v1-chip-b);color:#0284C7;border:0;display:grid;place-items:center;cursor:pointer;padding:0;flex:none}
  #iniV1 .v1-pill{display:inline-flex;align-items:center;gap:5px;height:24px;font-size:12px;font-weight:700;padding:0 10px;border-radius:99px;white-space:nowrap}
  #iniV1 .v1-pill svg{width:13px;height:13px}
  #iniV1 .v1-pill.g{background:var(--v1-chip-g);color:var(--v1-chip-gt)}#iniV1 .v1-pill.b{background:var(--v1-chip-b);color:var(--v1-chip-bt)}
  #iniV1 .v1-pill.a{background:var(--v1-chip-a);color:var(--v1-chip-at)}#iniV1 .v1-pill.r{background:var(--v1-chip-r);color:var(--v1-chip-rt)}#iniV1 .v1-pill.k{background:var(--v1-chip-k);color:var(--v1-chip-kt)}
  #iniV1 .v1-gap{height:30px;margin:3px 8px 3px 74px;display:flex;align-items:center}
  #iniV1 .v1-gl{flex:1;height:24px;display:flex;align-items:center;padding:0 10px;border:1.5px dashed var(--v1-gapl);border-radius:9px;background:var(--v1-gap);color:#0369A1;font-size:12px;font-weight:700}
  #iniV1 .v1-now{display:flex;align-items:center;gap:8px;height:18px;margin:1px 8px 1px 0}
  #iniV1 .v1-now span{width:64px;text-align:right;font-weight:800;color:#DC2626;font-size:12px}
  #iniV1 .v1-now i{flex:1;height:2px;background:#DC2626;border-radius:2px;position:relative}
  #iniV1 .v1-now i:before{content:"";position:absolute;left:-4px;top:-3px;width:8px;height:8px;border-radius:50%;background:#DC2626}
  /* por resolver */
  #iniV1 .v1-cl{display:flex;align-items:center;gap:12px;min-height:58px;padding:0 16px;border-top:1px solid var(--v1-line);cursor:pointer}
  #iniV1 .v1-ch + .v1-cl{border-top:0}
  #iniV1 .v1-cl:hover,#iniV1 .v1-deb:hover{background:rgba(2,132,199,.04)}
  #iniV1 .v1-cl>div,#iniV1 .v1-deb>div:nth-child(2){flex:1;min-width:0}
  #iniV1 .v1-cl b,#iniV1 .v1-deb b{font-weight:700;font-size:14px;display:block;line-height:1.2;color:var(--v1-ink)}
  #iniV1 .v1-cl small,#iniV1 .v1-deb small{display:block;color:var(--v1-muted);font-size:12.5px}
  #iniV1 .v1-tile{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;flex:none}
  #iniV1 .v1-tile.a{background:#FFF4DD;color:#D97706}#iniV1 .v1-tile.r{background:#FEE9E9;color:#DC2626}#iniV1 .v1-tile.b{background:var(--v1-tile);color:#0284C7}#iniV1 .v1-tile.g{background:#E4F6EA;color:#15803D}
  #iniV1 .v1-btn{height:36px;padding:0 14px;border-radius:10px;font-weight:700;font-size:13px;display:inline-flex;align-items:center;background:var(--v1-chip-b);color:var(--v1-chip-bt);flex:none}
  /* saldos */
  #iniV1 .v1-big{font-size:34px;font-weight:800;letter-spacing:-.03em;line-height:1;padding:0 16px;color:var(--v1-ink)}
  #iniV1 .v1-age{display:flex;gap:3px;height:14px;margin:12px 16px 6px;border-radius:8px;overflow:hidden}
  #iniV1 .v1-age i{display:block}#iniV1 .v1-age i.o,#iniV1 .v1-leg em.o{background:linear-gradient(90deg,#F59E0B,#DC2626)}#iniV1 .v1-age i.a,#iniV1 .v1-leg em.a{background:#38BDF8}
  #iniV1 .v1-leg{display:flex;justify-content:space-between;padding:0 16px 6px;font-size:12.5px;font-weight:700;color:var(--v1-ink)}
  #iniV1 .v1-leg span{display:flex;align-items:center;gap:6px}#iniV1 .v1-leg em{width:9px;height:9px;border-radius:3px;display:inline-block}
  #iniV1 .v1-deb{display:flex;align-items:center;gap:11px;min-height:58px;padding:0 16px;border-top:1px solid var(--v1-line);cursor:pointer}
  #iniV1 .v1-av{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:800;font-size:12px;flex:none;background-color:#94A3B8}
  #iniV1 .v1-av.sm{width:32px;height:32px;font-size:11px}
  #iniV1 .v1-av.k{background:var(--v1-chip-k);color:var(--v1-chip-kt)}#iniV1 .v1-av.k svg{width:15px;height:15px}
  #iniV1 .v1-m{margin-left:auto;font-weight:800;font-size:15px;text-align:right;color:var(--v1-ink)}
  #iniV1 .v1-dd{min-width:64px;justify-content:center}
  /* Saldos y Actividad en estilo Nueva atención (maqueta inicio_saldos_actividad_A) */
  #iniV1 .v1-nxh{display:flex;align-items:center;gap:12px;padding:16px 18px 10px}
  #iniV1 .v1-nxi{width:34px;height:34px;border-radius:10px;background:#E0F2FE;color:#0284C7;display:grid;place-items:center;flex:none}#iniV1 .v1-nxi svg{width:18px;height:18px}
  #iniV1 .v1-nxh h3{font-size:15px;font-weight:800;margin:0;letter-spacing:-.2px;color:var(--v1-ink);text-transform:none}
  #iniV1 .v1-nxh small{display:block;font-size:12px;color:var(--v1-muted);margin-top:1px}
  #iniV1 .v1-nxl{margin-left:auto;font-size:12px;font-weight:700;color:#0369A1}#iniV1 .v1-nxl a{cursor:pointer}
  #iniV1 .v1-ini{width:36px;height:36px;border-radius:50%;background:#E0F2FE;color:#075985;font-size:12px;font-weight:800;display:grid;place-items:center;flex:none}
  #iniV1 .v1-sal .v1-m small{display:block;margin-top:3px}
  #iniV1 .v1-more{display:flex;justify-content:space-between;align-items:center;min-height:40px;padding:0 16px;border-top:1px solid var(--v1-line);font-size:13px;color:var(--v1-muted);font-weight:600}
  #iniV1 .v1-empty{padding:14px 16px 12px;color:var(--v1-muted);font-size:13.5px}
  #iniV1 .v1-wide .v1-deb .v1-m small{display:block;margin-top:3px}
  #iniV1 .v1-wide .v1-m{color:var(--v1-ink)}
  /* encabezado, franja de pendientes e indicadores = maqueta A */
  html body #inicio .ini-top{margin:0 0 12px!important;align-items:center!important}
  html body #inicio .ini-greet .panel-title{font-size:25px!important;font-weight:800!important;letter-spacing:-.02em!important;line-height:1.05!important}
  html body #inicio .ini-sub{font-size:13px!important;margin:3px 0 0!important}
  html body #inicio .ini-qa{align-items:center!important;gap:8px!important}
  html body #inicio .ini-qa #iniAccExtra{display:flex!important;align-items:center;height:40px;background:#fff;border-radius:12px;box-shadow:var(--v1-sh);overflow:hidden}
  html body #inicio .ini-qa #iniAccExtra:empty{display:none!important}
  html body #inicio .ini-qa-btn{margin:0!important;height:40px!important;min-height:40px!important;border-radius:12px!important;font-size:13px!important;font-weight:600!important;padding:0 15px 0 13px!important;gap:8px!important;background:#fff!important;border:0!important;box-shadow:none!important;color:#1E293B!important;transition:background .15s,color .15s}
  html body #inicio .ini-qa #iniAccExtra .ini-qa-btn{border-radius:0!important;background:transparent!important;border-right:1px solid var(--v1-line)!important}
  html body #inicio .ini-qa #iniAccExtra .ini-qa-btn:last-child{border-right:0!important}
  html body #inicio .ini-qa #iniAccExtra .ini-qa-btn:hover{background:#F1F3F6!important}
  html body #inicio .ini-qa-btn:focus-visible{outline:2px solid #0284C7!important;outline-offset:-2px}
  html body #inicio .ini-qa-btn .ic{width:17px!important;height:17px!important;border-radius:0!important;background:none!important;color:#475569!important}
  html body #inicio .ini-qa-btn .ic svg{width:17px!important;height:17px!important}
  html body #inicio .ini-qa-btn.main{background:#0284C7!important;color:#fff!important;box-shadow:0 1px 2px rgba(2,132,199,.25)!important}
  html body #inicio .ini-qa-btn.main:hover{background:#0275B0!important}
  html body #inicio .ini-qa-btn.main .ic{color:#fff!important}
  html body #inicio .ini-qa-btn.ini-qa-cfg{width:40px!important;min-width:40px!important;padding:0!important;justify-content:center!important;border:1px dashed rgba(15,23,42,.22)!important;background:transparent!important;color:var(--v1-muted)!important}
  html body #inicio .ini-qa-btn.ini-qa-cfg:hover{background:#ECEEF2!important;color:#1E293B!important}
  html body #inicio .ini-qa-btn.ini-qa-cfg svg{width:17px!important;height:17px!important}
  html body #inicio .ini-greet{flex:0 0 auto!important;min-width:max-content!important}
  html body #inicio .ini-greet .panel-title{white-space:nowrap!important}
  html body #inicio .ini-qa{flex:0 1 auto!important;margin-left:auto!important}
  html body #inicio .ini-qa #iniAccExtra{flex:0 0 auto!important}
  html body #inicio .ini-top{gap:12px 20px!important}
  @media (max-width:1279px){
    html body #inicio .ini-qa #iniAccExtra .ini-qa-btn{width:40px!important;padding:0!important;justify-content:center!important}
    html body #inicio .ini-qa #iniAccExtra .ini-qa-btn .lbl{display:none!important}
  }
  html body #inicio .summary{margin:0 0 10px!important;border-radius:16px!important}
  html body #inicio .summary .mini-card{display:flex!important;align-items:center!important;gap:10px!important;height:46px!important;min-height:46px!important;padding:0 16px!important}
  html body #inicio .summary .mini-card .mi-ic{width:18px!important;height:18px!important;min-width:0!important;padding:0!important;background:none!important;color:#0284C7!important;box-shadow:none!important}
  html body #inicio .summary .mini-card .mi-ic svg{width:18px!important;height:18px!important}
  html body #inicio .summary .mini-card .mi-tx{display:flex!important;flex-direction:row-reverse!important;justify-content:flex-end!important;align-items:center!important;gap:10px!important}
  html body #inicio .summary .mini-card .mi-tx strong{font-size:19px!important;font-weight:800!important;line-height:1!important;color:var(--v1-ink)!important}
  html body #inicio .summary .mini-card .mi-tx span{font-size:13px!important;font-weight:600!important;text-transform:none!important;letter-spacing:0!important;color:var(--v1-muted)!important}
  html body #inicio .pl-home{background:var(--v1-card);border:0;border-radius:14px;box-shadow:var(--v1-sh);padding:0 10px 0 14px;margin:0 0 10px}
  html body #inicio .pl-home:has(.d.vencido){background:#FEE9E9}
  html body #inicio .pl-home-h{min-height:34px;padding:4px 0 0}
  html body #inicio .pl-home:has(.d.vencido) .pl-home-h b,html body #inicio .pl-home:has(.d.vencido) .pl-home-row b{color:#7F1D1D}
  html body #inicio .pl-home-row{min-height:54px;padding:0;gap:12px}
  html body #inicio .pl-home-row+.pl-home-row{border-top:1px solid rgba(180,35,35,.14)}
  html body #inicio .pl-home-row .d{width:18px;height:18px;border-radius:0;background:#DC2626;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.7 18-8-14a2 2 0 0 0-3.4 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.7-3ZM12 9v4M12 17h.01'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.7 18-8-14a2 2 0 0 0-3.4 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.7-3ZM12 9v4M12 17h.01'/%3E%3C/svg%3E") center/contain no-repeat}
  html body #inicio .pl-home-row .d:not(.vencido){background:#94A3B8}
  html body #inicio .pl-home-row .n b{font-size:14.5px;font-weight:800}
  html body #inicio .pl-home-row .n .t{font-size:13px}
  html body #inicio .pl-home:has(.d.vencido) .pl-home-row .n .t{color:#7a2a2a}
  html body #inicio .pl-home-row button{height:36px;min-height:36px;border-radius:10px;padding:0 14px;font-size:13px;font-weight:700;background:#fff;color:#B42323;border:0;box-shadow:none}
  html body #inicio .pl-home:not(:has(.d.vencido)) .pl-home-row button{background:var(--v1-chip-b);color:var(--v1-chip-bt)}
  html body #inicio .pl-home:not(:has(.pl-home-row + .pl-home-row)) .pl-home-h{display:none}
  html body #inicio .pl-home-row .n{display:flex;align-items:center;flex-wrap:wrap;gap:2px 10px}
  html body #inicio .pl-home-row .n .w{margin:0}
  html body #inicio:has(#iniV1:not(:empty)) .grid-2{display:none!important}
  /* se reemplaza la tarjeta "Citas de hoy" original; actividad reciente queda a todo el ancho */
  html body #inicio .dashboard-compact table td,html body #inicio .dashboard-compact table th{white-space:nowrap}
}
/* Modo oscuro: la franja de KPIs ya no es blanca (las reglas de arriba forzaban #fff) */
:root[data-theme="dark"] body #inicio{--v1-line:rgba(255,255,255,.08);--v1-sh:none}
:root[data-theme="dark"] body #inicio .summary{background:var(--card)!important;box-shadow:none!important}
:root[data-theme="dark"] body #inicio .summary .mini-card:hover{background:var(--card-2)!important}
:root[data-theme="dark"] body #iniV1 .v1-card{box-shadow:none}
:root[data-theme="dark"] body #inicio{--v1-card:var(--card,#16202e);--v1-ink:#E8EEF7;--v1-soft:rgba(56,189,248,.12);--v1-gap:rgba(56,189,248,.06);--v1-gapl:rgba(125,211,252,.35);--v1-chip-b:rgba(56,189,248,.16);--v1-chip-bt:#7DD3FC;--v1-chip-g:rgba(34,197,94,.16);--v1-chip-gt:#86EFAC;--v1-chip-a:rgba(245,158,11,.18);--v1-chip-at:#FCD34D;--v1-chip-r:rgba(248,113,113,.18);--v1-chip-rt:#FCA5A5;--v1-chip-k:rgba(255,255,255,.08);--v1-chip-kt:#B6C0D0;--v1-tile:rgba(56,189,248,.16);--v1-muted:#9AA7BB}
:root[data-theme="dark"] body #iniV1 a[data-v1]{color:#7DD3FC}
:root[data-theme="dark"] body #iniV1 .v1-gl{color:#7DD3FC}
  /* N° de ficha (FC) junto al nombre en citas de hoy */
  #iniV1 .v1-who b .ff-chip{min-width:48px;margin-right:8px;font-size:.68rem}
