/* Portal del Director de Proyecto (DP). Misma imagen que el Portal del cliente de Nexus (public/css/cliente.css): se copian sus bloques de
   cabecera, banda del contrato, selector, pestañas, tarjetas y acceso, con el mismo prefijo cl-. Lo propio de DP va al final (dp-). */
/* ===== components/layouts/cliente.blade.php ===== */
        *, *::before, *::after { box-sizing: border-box; }
        html { -webkit-text-size-adjust: 100%; }
        /* Sistema visual del portal (marca Autoritas): teal protagonista, tinta para el texto, paper de fondo, neutros con un punto de teal. Toda pantalla usa estas variables, nunca un gris suelto. */
        body.cl {
            --cl-teal: #006363; --cl-teal-osc: #004747; --cl-teal-medio: #0a7c7c; --cl-teal-claro: #7fb5b3; --cl-teal-50: #e8f2f1; --cl-teal-25: #f2f8f7;
            --cl-tinta: #0a1414; --cl-texto: #1b2626; --cl-texto2: #3c4948; --cl-mute: #5d6c6b; --cl-mute2: #91a09e;
            --cl-borde: #d2dbda; --cl-linea: #e2e8e7; --cl-linea-suave: #eef2f1; --cl-hueco: #ecf0ef; --cl-paper: #f7f8f7; --cl-blanco: #fff;
            --cl-r: .75rem; --cl-r-lg: 1rem; --cl-r-sm: .55rem;
            --cl-sombra: 0 1px 2px rgba(10, 20, 20, .04), 0 1px 3px rgba(10, 20, 20, .04);
            --cl-sombra-alta: 0 12px 32px -12px rgba(0, 60, 60, .28);
        }
        body.cl { --cl-lateral: clamp(1rem, 4.5vw, 4rem); margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--cl-paper); color: var(--cl-texto); font-family: 'DM Sans', 'Roboto', system-ui, sans-serif; font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
        [x-cloak] { display: none !important; }
        /* El CSS de utilidades del panel no se carga aquí: los iconos llevan su tamaño por clase y hay que dárselo. */
        .cl svg[class*="w-4"] { width: 1rem; height: 1rem; flex: none; }
        .cl svg[class*="w-3.5"] { width: .875rem; height: .875rem; flex: none; }
        .cl a { color: inherit; }
        .cl-cab { background: #006363; color: #fff; }
        .cl-cab-in { padding: 0 var(--cl-lateral); height: 3.5rem; display: flex; align-items: center; gap: 1rem; }   /* 3,5 rem = 56 px, la altura de la cabecera del Portal del empleado */
        .cl-marca { display: inline-flex; align-items: center; line-height: 0; }
        .cl-marca img { display: block; height: 34px; width: auto; }
        .cl-espacio { flex: 1; }
        .cl-btn { display: inline-flex; align-items: center; gap: .4rem; border: 0; cursor: pointer; font-family: inherit; font-weight: 700; font-size: .8rem; border-radius: .6rem; padding: .45rem .8rem; text-decoration: none; }
        .cl-btn-salir { background: rgba(255, 255, 255, .12); color: #fff; }
        .cl-btn-salir:hover { background: rgba(220, 38, 38, .8); }
        .cl-quien { font-size: .8rem; font-weight: 700; color: rgba(255, 255, 255, .85); max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .cl-main { flex: 1; width: 100%; padding: 1.5rem var(--cl-lateral) 3rem; }   /* todo el ancho de la pantalla: sin franjas a los lados */
        /* Acceso: el bloque, centrado en la pantalla. */
        .cl-centro { display: flex; flex-direction: column; align-items: center; justify-content: center; }
        .cl-centro .cl-acc { width: 100%; margin: 0; }
        /* Móvil: márgenes laterales y verticales generosos para que la tarjeta no toque los bordes. */
        @media (max-width: 30rem) { .cl-centro { padding: 1.5rem 1.5rem 2rem; } .cl-pie { padding: .75rem 1.5rem 1.25rem; } }
        .cl-pie { text-align: center; font-size: .75rem; color: var(--cl-mute2); padding: 1rem; }
        @media (max-width: 40rem) {
            .cl-quien { display: none; }
            .cl-cab-in { gap: .75rem; }
            .cl-main { padding: 1.1rem var(--cl-lateral) 2.5rem; }
        }
    

/* ===== livewire/cliente/proyecto.blade.php ===== */
        /* Título = selector de proyecto (con más de uno) */
        .cl-tit { margin: 0 0 .25rem; font-size: 1.5rem; font-weight: 800; color: var(--cl-tinta); overflow-wrap: break-word; line-height: 1.2; }
        .cl-sub { margin: 0; font-size: .9rem; color: var(--cl-mute); }
        .cl-ts { position: relative; display: block; width: fit-content; max-width: 100%; }
        .cl-ts-btn { display: inline-flex; align-items: center; gap: .6rem; width: max-content; max-width: 100%; border: 0; background: none; padding: .15rem .5rem .15rem .15rem; margin-left: -.15rem; border-radius: .8rem; font: inherit; color: inherit; text-align: left; cursor: pointer; }
        .cl-ts-btn:hover, .cl-ts-btn[aria-expanded="true"] { background: var(--cl-hueco); }
        .cl-ts-btn:focus-visible { outline: 2px solid #006363; outline-offset: 1px; }
        /* En pantalla ancha el nombre va en una línea: con el texto partido «a ojo» por la medida del navegador, un nombre corto salía como «ACM / E». Los muy largos sí pueden partirse (`.multi`) y en móvil siempre. */
        .cl-ts-btn .nom { min-width: 0; white-space: nowrap; padding-right: 4px; }
        .cl-ts-btn .nom.multi { white-space: normal; overflow-wrap: break-word; }
        .cl-ts-btn .fl { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 999px; background: var(--cl-hueco); color: var(--cl-tinta); display: inline-flex; align-items: center; justify-content: center; transition: transform .2s; }
        .cl-ts-btn[aria-expanded="true"] .fl { transform: rotate(180deg); background: #fff; }
        .cl-logo { flex: none; width: 2.2rem; height: 2.2rem; border-radius: .6rem; background: #fff; border: 1px solid var(--cl-linea); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; font-size: .72rem; font-weight: 800; color: var(--cl-tinta); }
        .cl-logo img { width: 100%; height: 100%; object-fit: contain; }
        .cl-menu { position: absolute; z-index: 40; top: calc(100% + .35rem); left: 0; width: 24rem; max-width: calc(100vw - 2rem); max-height: 70vh; overflow-y: auto; background: #fff; color: var(--cl-texto); border-radius: 1rem; box-shadow: 0 18px 44px -12px rgba(0, 60, 59, .4); outline: 1px solid rgba(3, 7, 18, .06); padding: .4rem; }
        .cl-menu .tit { padding: .4rem .6rem .25rem; font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--cl-mute2); }
        .cl-menu .buscar { position: sticky; top: -.4rem; background: #fff; padding: .2rem .2rem .45rem; margin: 0 0 .1rem; }
        .cl-menu .buscar input { width: 100%; border: 1px solid var(--cl-borde); border-radius: .6rem; padding: .5rem .7rem; font: inherit; font-size: 1rem; color: var(--cl-tinta); }
        .cl-menu .buscar input:focus { outline: 2px solid #006363; outline-offset: 1px; border-color: #006363; }
        .cl-menu a { display: flex; align-items: center; gap: .65rem; padding: .5rem .6rem; border-radius: .6rem; text-decoration: none; font-size: .9rem; font-weight: 700; color: var(--cl-tinta); }
        .cl-menu a:hover { background: var(--cl-linea-suave); }
        .cl-menu a.on { background: var(--cl-teal-50); }
        .cl-menu a .logo2 { flex: none; width: 1.8rem; height: 1.8rem; border-radius: .5rem; border: 1px solid var(--cl-linea); background: #fff; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; font-size: .66rem; font-weight: 800; color: var(--cl-tinta); }
        .cl-menu a .logo2 img { width: 100%; height: 100%; object-fit: contain; }
        .cl-menu a .est { margin-left: auto; flex: none; font-size: .66rem; font-weight: 800; padding: .1rem .5rem; border-radius: 999px; background: var(--cl-linea-suave); color: var(--cl-mute); text-transform: capitalize; }
        .cl-menu .nada { padding: .8rem .6rem; font-size: .85rem; color: var(--cl-mute2); }

        /* Secciones: pestañas con subrayado; en móvil se pueden deslizar si no caben. */
        .cl-nav { display: flex; gap: .25rem; margin: 1.1rem 0 .25rem; border-bottom: 1px solid var(--cl-linea); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
        .cl-nav::-webkit-scrollbar { display: none; }
        .cl-nav button { position: relative; flex: none; display: inline-flex; align-items: center; gap: .45rem; border: 0; background: none; padding: .7rem 1rem; font-size: .9rem; font-weight: 800; color: var(--cl-mute); cursor: pointer; font-family: inherit; white-space: nowrap; transition: color .15s; }
        .cl-nav button:hover { color: var(--cl-tinta); }
        .cl-nav button::after { content: ''; position: absolute; left: .6rem; right: .6rem; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: transparent; transition: background .15s; }
        .cl-nav button.on { color: var(--cl-tinta); }
        .cl-nav button.on::after { background: #006363; }
        @media (max-width: 40rem) {
            .cl-tit { font-size: 1.3rem; }
            .cl-ts { width: 100%; }
            .cl-ts-btn { width: 100%; }
            .cl-ts-btn .nom { flex: 1; white-space: normal; overflow-wrap: break-word; }
            .cl-logo { width: 2rem; height: 2rem; }
            .cl-menu { width: 100%; max-width: none; }
            .cl-nav { margin-left: -1rem; margin-right: -1rem; padding: 0 .5rem; gap: 0; }
            .cl-nav button { padding: .75rem .7rem; font-size: .86rem; }
            .cl-nav button svg { display: none; }
        }
        .cl-acc { max-width: 26rem; margin: 3rem auto 0; background: #fff; border-radius: 1.25rem; box-shadow: 0 1px 2px rgba(0, 60, 59, .06), 0 18px 44px -20px rgba(0, 60, 59, .25); outline: 1px solid rgba(3, 7, 18, .05); padding: 2rem 1.75rem; }
        .cl-acc h1 { margin: 0; font-size: 1.4rem; font-weight: 800; color: var(--cl-tinta); }
        .cl-acc p.sub { margin: .35rem 0 1.4rem; font-size: .9rem; color: var(--cl-mute); }
        .cl-acc label { display: block; margin: 1rem 0 .35rem; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--cl-mute); }
        .cl-acc input { width: 100%; border: 1px solid var(--cl-borde); border-radius: .7rem; padding: .7rem .85rem; font-size: 1rem; font-family: inherit; color: var(--cl-tinta); }
        .cl-acc input:focus { outline: 2px solid #006363; outline-offset: 1px; border-color: #006363; }
        .cl-acc .err { margin-top: .4rem; font-size: .8rem; font-weight: 700; color: #b91c1c; }
        .cl-acc .caja-err { margin-top: 1rem; padding: .65rem .85rem; border-radius: .7rem; background: #fef2f2; border: 1px solid #fecaca; font-size: .85rem; font-weight: 700; color: #b91c1c; }
        .cl-acc button.entrar { width: 100%; margin-top: 1.4rem; border: 0; border-radius: .8rem; background: #0a7c7c; color: #fff; padding: .8rem 1rem; font-size: .95rem; font-weight: 800; font-family: inherit; cursor: pointer; }
        .cl-acc button.entrar:hover { background: #006363; }
        .cl-acc button.entrar:disabled { opacity: .6; cursor: default; }
        .cl-acc .o { display: flex; align-items: center; gap: .8rem; margin: 1.2rem 0 0; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--cl-mute2); }
        .cl-acc .o::before, .cl-acc .o::after { content: ''; flex: 1; height: 1px; background: var(--cl-linea); }
        .cl-acc a.google { display: flex; align-items: center; justify-content: center; gap: .65rem; margin-top: 1rem; border: 1px solid var(--cl-borde); border-radius: .8rem; background: #fff; color: var(--cl-texto); padding: .72rem 1rem; font-size: .95rem; font-weight: 700; text-decoration: none; }
        .cl-acc a.google:hover { background: var(--cl-linea-suave); border-color: var(--cl-mute2); }
        .cl-acc a.google:focus-visible { outline: 2px solid #006363; outline-offset: 1px; }
        .cl-acc a.google svg { width: 1.15rem; height: 1.15rem; flex: none; }
        .cl-acc .nota { margin-top: 1.2rem; font-size: .78rem; color: var(--cl-mute2); text-align: center; }
        /* Móvil: tarjeta más compacta y con aire a los lados. Los campos conservan 16 px de letra: por debajo, iOS hace zoom al enfocarlos. */
        @media (max-width: 30rem) {
            .cl-acc { max-width: 21rem; border-radius: 1rem; padding: 1.4rem 1.2rem; }
            .cl-acc h1 { font-size: 1.15rem; }
            .cl-acc p.sub { margin: .3rem 0 1rem; font-size: .82rem; }
            .cl-acc label { margin: .8rem 0 .3rem; font-size: .66rem; }
            .cl-acc input { padding: .6rem .75rem; border-radius: .6rem; }
            .cl-acc .err { font-size: .76rem; }
            .cl-acc .caja-err { margin-top: .8rem; padding: .55rem .7rem; font-size: .8rem; }
            .cl-acc button.entrar { margin-top: 1.1rem; padding: .7rem .9rem; font-size: .9rem; border-radius: .7rem; }
            .cl-acc .nota { margin-top: 1rem; font-size: .74rem; }
        }
.cl-tit-fila { display: flex; align-items: center; gap: .75rem; }
.cl-tit-fila > .cl-ts, .cl-tit-fila > .cl-tit { flex: 1; min-width: 0; }
.cl-pr-combo { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-top: 1rem; padding: .6rem .8rem; background: #fff; border: 1px solid var(--cl-linea); border-radius: .9rem; }
.cl-pr-combo label { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cl-mute); }
.cl-pr-combo label svg { width: 1rem; height: 1rem; color: #006363; }
.cl-pr-combo select { flex: 1 1 18rem; min-width: 0; max-width: 32rem; border: 1px solid var(--cl-borde); border-radius: .6rem; padding: .5rem 2rem .5rem .75rem; font: inherit; font-size: .95rem; font-weight: 700; color: var(--cl-tinta); background: var(--cl-paper); cursor: pointer; }
.cl-pr-combo select:focus { outline: 2px solid #7fb5b3; border-color: #0f766e; }
.cl-pr-combo .n { font-size: .8rem; color: var(--cl-mute); }
.cl-ts-n { display: block; font-size: .72rem; font-weight: 600; color: var(--cl-mute); }
@media (max-width: 40rem) { .cl-pr-combo select { font-size: 16px; flex-basis: 100%; max-width: none; } .cl-pr-combo .n { display: none; } }
.cl-marca-txt { padding-left: .85rem; border-left: 1px solid rgba(255, 255, 255, .28); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); line-height: 1.6; white-space: nowrap; }
.cl-btn { border-radius: var(--cl-r-sm); }
.cl-btn-salir { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-weight: 600; }
.cl-btn-salir:hover { background: rgba(255, 255, 255, .2); }

/* ── Banda del contrato ── */
.cl-main:has(> div > .cl-hero) { padding-top: 0; }
/* Sin overflow: hidden: recortaría el desplegable de contratos, que sale por debajo de la banda. La red ya queda dentro de su caja (::before). */
.cl-hero { position: relative; margin: 0 calc(-1 * var(--cl-lateral)) 1.75rem; padding: 1.6rem var(--cl-lateral) 0; background: linear-gradient(180deg, var(--cl-teal) 0%, #005656 100%); color: #fff; }
.cl-hero::before { content: ''; position: absolute; inset: 0 0 0 auto; width: min(62%, 52rem); background: url('../img/portal/red-autoritas.svg') right bottom / cover no-repeat; opacity: .13; pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); }
.cl-hero-in { position: relative; }
.cl-ceja { margin: 0 0 .45rem; font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.cl-hero .cl-tit { color: #fff; font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin: 0; }
.cl-hero .cl-ts-btn { color: #fff; padding: .2rem .7rem .2rem .2rem; margin-left: -.2rem; }
.cl-hero .cl-ts-btn:hover, .cl-hero .cl-ts-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .1); }
.cl-hero .cl-ts-btn:focus-visible { outline-color: #fff; }
.cl-hero .cl-ts-btn .fl { background: rgba(255, 255, 255, .14); color: #fff; }
.cl-hero .cl-ts-btn[aria-expanded="true"] .fl { background: #fff; color: var(--cl-teal); }
.cl-ts-n { display: block; font-size: .72rem; font-weight: 500; color: var(--cl-mute); }
/* Logo del contrato: las iniciales debajo y, si carga, la imagen encima (si falla, se retira y quedan las iniciales). */
.cl-logo, .cl-menu a .logo2 { position: relative; color: var(--cl-teal); font-weight: 800; letter-spacing: -.02em; }
.cl-logo img, .cl-menu a .logo2 img { position: absolute; inset: 0; background: #fff; padding: 2px; }
.cl-hero .cl-logo { width: 2.6rem; height: 2.6rem; border-radius: .7rem; border: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); font-size: .8rem; }
.cl-menu { z-index: 80; border-radius: var(--cl-r-lg); box-shadow: var(--cl-sombra-alta); outline: 1px solid var(--cl-linea); max-height: min(70vh, calc(100vh - 12rem)); }
.cl-menu a { color: var(--cl-tinta); font-weight: 600; }
.cl-menu a.on { background: var(--cl-teal-50); color: var(--cl-teal); }

/* Secciones: pestañas sobre la banda. */
.cl-hero .cl-nav { margin: 1.4rem 0 0; border-bottom: 0; gap: .15rem; }
.cl-hero .cl-nav button { color: rgba(255, 255, 255, .78); font-weight: 600; padding: .75rem 1.05rem .85rem; border-radius: .7rem .7rem 0 0; }
.cl-hero .cl-nav button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.cl-hero .cl-nav button::after { display: none; }
.cl-hero .cl-nav button.on { color: var(--cl-teal); background: var(--cl-paper); font-weight: 700; }
.cl-hero .cl-nav .cl-nav-imp { margin-left: auto; color: rgba(255, 255, 255, .7); font-weight: 500; }
.cl-hero .cl-nav .cl-nav-imp:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* Combo del proyecto del contrato. */
.cl-pr-combo { border-radius: var(--cl-r); border-color: var(--cl-linea); background: #fff; }

/* ── Tarjetas y titulares de bloque ── */
.cl-card, .cl-ct, .cl-co-menu, .cl-pl-menu, .cl-tk-flujo { background: #fff; border: 1px solid var(--cl-linea); outline: 0; border-radius: var(--cl-r-lg); box-shadow: var(--cl-sombra); }
.cl-card h2, .cl-kpi .et, .cl-resumen .et, .cl-co-menu .tit, .cl-menu .tit { font-size: .68rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--cl-mute); }
.cl-kpi .val { font-weight: 800; letter-spacing: -.03em; color: var(--cl-tinta); }
.cl-resumen .v { font-weight: 800; letter-spacing: -.02em; color: var(--cl-tinta); }
/* El dato destacado: teal con la red de la marca, como las portadas. */
.cl-kpi.dest, .cl-cp-hero, .cl-pl-dossier { position: relative; overflow: hidden; background: linear-gradient(150deg, #005353 0%, var(--cl-teal) 100%); border: 0; }

/* Cabecera, tarjetas y foco del Portal (cliente.css: capa de marca). */
.cl-card { background: #fff; border-radius: 1.25rem; box-shadow: 0 1px 2px rgba(0, 60, 59, .06); outline: 1px solid rgba(3, 7, 18, .05); padding: 1.2rem 1.35rem; }
.cl-cab-in { height: 3.75rem; }
.cl-marca { gap: .85rem; text-decoration: none; color: #fff; }
.cl-marca img { height: 20px; width: auto; }

/* Foco visible y coherente en todo el portal. */
.cl :focus-visible { outline: 2px solid var(--cl-teal); outline-offset: 2px; }
.cl-hero :focus-visible { outline-color: #fff; }
@media (max-width: 40rem) { .cl-cab-in { height: 3.4rem; } .cl-marca-txt { display: none; } .cl-marca img { height: 17px; } .cl-hero { padding: 1rem var(--cl-lateral) 0; margin-bottom: 1rem; } .cl-hero::before { width: 100%; opacity: .1; } .cl-hero .cl-tit { font-size: 1.12rem; } .cl-card { padding: 1rem; border-radius: 1rem; } }

/* KPIs del Panel (cliente.css: panel del Portal). */
        .cl-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
        @media (max-width: 40rem) {
            .cl-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: 1rem; }
            .cl-kpi.dest, .cl-kpi.mes { grid-column: 1 / -1; }   /* destacado y mes, a todo el ancho; los dos «próximos 7 días», lado a lado */
            .cl-card { padding: 1rem; border-radius: 1rem; }
            .cl-kpi .val { font-size: 1.6rem; }
            .cl-kpi .sub { font-size: .74rem; }
            .cl-dos { gap: .7rem; margin-top: .7rem; }
        }
        /* Gráfica: columnas en pantallas anchas; en móvil, barras horizontales (una fila por mes), que se leen a cualquier ancho. */
        .cl-kpi .et { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--cl-mute); }
        .cl-kpi .val { margin-top: .3rem; font-size: 1.9rem; font-weight: 800; color: var(--cl-tinta); font-variant-numeric: tabular-nums; line-height: 1.1; text-align: right; }
        .cl-kpi .sub { margin-top: .25rem; font-size: .8rem; color: var(--cl-mute); font-weight: 600; }
        .cl-kpi.dest { background: linear-gradient(145deg, #004a49 0%, #006363 100%); }
        .cl-kpi.dest .et, .cl-kpi.dest .sub { color: rgba(255, 255, 255, .75); }
        .cl-kpi.dest .val { color: #fff; }
.cl-kpi.dest { position: relative; overflow: hidden; background: linear-gradient(150deg, #005353 0%, var(--cl-teal) 100%); border: 0; }
.cl-kpi.dest::after { content: ''; position: absolute; inset: 0 0 0 auto; width: min(100%, 34rem); background: url('../img/portal/red-autoritas.svg') right bottom / cover no-repeat; opacity: .12; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.cl-kpi.dest > * { position: relative; z-index: 1; }
/* Un nombre en lugar de una cifra: más pequeño y a la izquierda. */
.cl-kpi .val.dp-kpi-txt { font-size: 1.05rem; line-height: 1.3; text-align: left; letter-spacing: -.01em; margin-top: .55rem; }
@media (max-width: 56rem) { .cl-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dp-pr { padding: .9rem 1rem; border: 1px solid var(--cl-linea); border-radius: var(--cl-r); background: var(--cl-paper); }
.cl-i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; width: 1em; height: 1em; }

/* ════════ Propio de DP ════════ */

/* Franja roja de DESARROLLO (como el CRM): sólo fuera de producción, encima de la cabecera. */
.dp-franja-dev { background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .18em; padding: 6px 16px; text-transform: uppercase; text-align: center; line-height: 1.2; }

/* Cabecera: enlaces de la derecha (Configuración) y el nombre de la persona. */
.dp-cab-enl { display: inline-flex; align-items: center; gap: .4rem; color: rgba(255, 255, 255, .85); text-decoration: none; font-size: .8rem; font-weight: 600; padding: .45rem .7rem; border-radius: var(--cl-r-sm); }
.dp-cab-enl:hover, .dp-cab-enl.on { background: rgba(255, 255, 255, .12); color: #fff; }
.dp-cab-enl svg { width: 15px; height: 15px; }

/* Rejilla de proyectos del contrato. */
.dp-proyectos { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }
.dp-pr h3 { margin: 0 0 .35rem; font-size: 1rem; font-weight: 800; color: var(--cl-tinta); line-height: 1.3; }
.dp-pr .meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .8rem; color: var(--cl-mute); }
.dp-pr .meta b { color: var(--cl-texto2); font-weight: 700; }
.dp-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .68rem; font-weight: 700; padding: .12rem .55rem; border-radius: 999px; background: var(--cl-teal-50); color: var(--cl-teal); }
.dp-chip.gris { background: var(--cl-linea-suave); color: var(--cl-mute); }
.dp-vacio { text-align: center; padding: 3rem 1rem; color: var(--cl-mute); }
.dp-vacio h2 { margin: 0 0 .4rem; font-size: 1.1rem; color: var(--cl-tinta); }

/* Configuración (sólo desarrollo). */
.dp-cfg-tit { margin: 0 0 .3rem; font-size: 1.5rem; font-weight: 800; color: var(--cl-tinta); letter-spacing: -.02em; }
.dp-cfg-sub { margin: 0 0 1.5rem; color: var(--cl-mute); font-size: .9rem; }
.dp-cfg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem; align-items: start; }
@media (max-width: 56rem) { .dp-cfg { grid-template-columns: minmax(0, 1fr); } }
.dp-dato { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--cl-linea-suave); font-size: .88rem; }
.dp-dato:last-child { border-bottom: 0; }
.dp-dato span:first-child { color: var(--cl-mute); }
.dp-dato span:last-child { font-weight: 700; color: var(--cl-tinta); text-align: right; overflow-wrap: anywhere; }
.dp-mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; }
.dp-text { width: 100%; min-height: 6rem; border: 1px solid var(--cl-borde); border-radius: .7rem; padding: .7rem .85rem; font: inherit; font-size: .92rem; color: var(--cl-tinta); resize: vertical; }
.dp-text:focus { outline: 2px solid var(--cl-teal); outline-offset: 1px; border-color: var(--cl-teal); }
.dp-btn { display: inline-flex; align-items: center; gap: .45rem; border: 0; border-radius: .7rem; background: var(--cl-teal-medio); color: #fff; padding: .65rem 1.1rem; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.dp-btn:hover { background: var(--cl-teal); }
.dp-btn:disabled { opacity: .55; cursor: default; }
.dp-btn.sec { background: #fff; color: var(--cl-tinta); border: 1px solid var(--cl-borde); }
.dp-btn.sec:hover { background: var(--cl-teal-25); }
.dp-acciones { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; align-items: center; }
.dp-nota { font-size: .8rem; color: var(--cl-mute); }
.dp-aviso { margin: 0 0 1rem; padding: .65rem .85rem; border-radius: .7rem; font-size: .85rem; font-weight: 600; }
.dp-aviso.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.dp-aviso.error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.dp-aviso.info { background: var(--cl-teal-25); border: 1px solid var(--cl-teal-50); color: var(--cl-teal); }
.dp-salida { margin: .8rem 0 0; max-height: 18rem; overflow: auto; background: var(--cl-tinta); color: #d7e4e3; border-radius: .7rem; padding: .8rem 1rem; font-size: .76rem; line-height: 1.5; white-space: pre-wrap; }
.dp-commits { list-style: none; margin: 0; padding: 0; }
.dp-commits li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: .2rem .8rem; padding: .6rem 0; border-bottom: 1px solid var(--cl-linea-suave); font-size: .85rem; }
.dp-commits li:last-child { border-bottom: 0; }
.dp-commits .h { color: var(--cl-teal); font-weight: 700; }
.dp-commits .m { color: var(--cl-tinta); font-weight: 600; overflow-wrap: anywhere; }
.dp-commits .f { grid-column: 2; font-size: .75rem; color: var(--cl-mute); }
.dp-pend { list-style: none; margin: .4rem 0 0; padding: 0; max-height: 12rem; overflow: auto; }
.dp-pend li { font-size: .8rem; padding: .2rem 0; color: var(--cl-texto2); }
.dp-pend li b { display: inline-block; width: 1.6rem; color: var(--cl-teal); }

/* Configuración › Versiones (como Canales Madrid). */
.dp-cfg-cab { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.dp-cfg-cab .dp-cfg-sub { margin-bottom: 0; }
.dp-kpi-dev .val { color: #dc2626; }
.dp-estado { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .75rem; border-radius: .6rem; border: 1px solid; font-size: .82rem; font-weight: 700; }
.dp-estado.en-curso { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.dp-estado.ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.dp-estado.error { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.dp-tabla-caja { overflow-x: auto; margin: 0 -1.35rem; }
.dp-tabla { width: 100%; border-collapse: collapse; font-size: .86rem; }
.dp-tabla th { text-align: left; font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cl-mute); padding: .5rem 1.35rem; border-bottom: 1px solid var(--cl-linea); }
.dp-tabla td { padding: .55rem 1.35rem; border-bottom: 1px solid var(--cl-linea-suave); color: var(--cl-texto2); vertical-align: top; }
.dp-tabla tr:last-child td { border-bottom: 0; }
.dp-tabla .nw { white-space: nowrap; }
.dp-tabla .v { font-weight: 800; color: var(--cl-teal); white-space: nowrap; }
.dp-tabla .mute { color: var(--cl-mute); }
.dp-sinpub { margin: .4rem 0 1.1rem; padding: .9rem 1rem; border: 1px dashed #fcd34d; background: #fffbeb; border-radius: var(--cl-r); }
.dp-sinpub p { margin: 0; font-size: .86rem; color: #92400e; }
.dp-sinpub ul, .dp-ver ul { margin: .4rem 0 0; padding-left: 1.2rem; font-size: .86rem; color: var(--cl-texto2); }
.dp-sinpub li, .dp-ver li { margin: .15rem 0; }
.dp-ver { border-left: 4px solid var(--cl-linea); padding: .1rem 0 .1rem 1rem; margin-top: 1.1rem; }
.dp-ver.on { border-left-color: var(--cl-teal); }
.dp-ver .cab { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; margin: 0; }
.dp-ver .n { font-weight: 800; color: var(--cl-teal); }
.dp-ver .f { font-size: .75rem; color: var(--cl-mute); }
.dp-ver .nota { margin: .3rem 0 0; font-size: .82rem; color: var(--cl-mute); }
.dp-ver .firma { margin: .35rem 0 0; font-size: .75rem; color: var(--cl-mute); }
@media (max-width: 40rem) { .dp-cfg-cab { flex-direction: column; } }
.cl-kpis.dp-kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
@media (max-width: 40rem) { .cl-kpis.dp-kpis-3 { grid-template-columns: minmax(0, 1fr); } }

/* ════ Panel del contrato (editable) ════ */
.dp-panel { position: relative; display: grid; gap: 1rem; }
.dp-panel > .cl-kpis { margin-top: 0; }
.dp-guardando { position: fixed; z-index: 90; right: 1.2rem; bottom: 1.2rem; background: var(--cl-tinta); color: #fff; border-radius: .7rem; padding: .55rem .9rem; font-size: .82rem; font-weight: 700; box-shadow: var(--cl-sombra-alta); }
.dp-aviso { transition: opacity .4s; margin: 0; }
.dp-aviso.fuera { opacity: 0; pointer-events: none; height: 0; padding: 0; border: 0; margin: 0; overflow: hidden; }
.dp-ofertas { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.dp-ofertas .et { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cl-mute); margin-right: .3rem; }
.dp-ofertas button { border: 1px solid var(--cl-linea); background: #fff; border-radius: 999px; padding: .3rem .8rem; font: inherit; font-size: .82rem; font-weight: 700; color: var(--cl-texto2); cursor: pointer; }
.dp-ofertas button.on { background: var(--cl-teal); border-color: var(--cl-teal); color: #fff; }

/* Valor editable en el sitio */
.dp-ed-caja { display: inline-flex; max-width: 100%; }
.dp-ed { display: inline-flex; align-items: center; gap: .4rem; max-width: 100%; border: 0; background: none; padding: .1rem .35rem; margin: -.1rem -.35rem; border-radius: .45rem; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.dp-ed .t { white-space: nowrap; }
.dp-ed .lap { width: .85em; height: .85em; flex: none; opacity: .35; transition: opacity .15s; }
.dp-ed:hover { background: var(--cl-teal-50); }
.dp-ed:hover .lap { opacity: 1; color: var(--cl-teal); }
.dp-ed.bloq { cursor: default; }
.dp-ed-in { display: inline-flex; align-items: center; gap: .3rem; }
.dp-ed-in input { border: 2px solid var(--cl-teal); border-radius: .5rem; padding: .3rem .5rem; font: inherit; font-size: .95rem; color: var(--cl-tinta); background: #fff; min-width: 0; }
.dp-ed-in input:focus { outline: none; box-shadow: 0 0 0 3px var(--cl-teal-50); }
.dp-ed-in button { border: 0; width: 1.9rem; height: 1.9rem; border-radius: .5rem; cursor: pointer; font-weight: 800; flex: none; }
.dp-ed-in .ok { background: var(--cl-teal); color: #fff; }
.dp-ed-in .no { background: var(--cl-hueco); color: var(--cl-mute); }

/* Cabecera del contrato */
.dp-cab-ct { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; }
.dp-cab-ct .izq { min-width: 0; flex: 1 1 24rem; }
.dp-ceja2 { margin: 0 0 .2rem; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cl-mute); }
.cl-card h2.dp-nom { margin: 0 0 .6rem; font-size: 1.35rem; font-weight: 800; color: var(--cl-tinta); letter-spacing: -.01em; text-transform: none; line-height: 1.25; }
.dp-nom .dp-ed .t { white-space: normal; overflow-wrap: anywhere; }
.dp-chips { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.dp-chip.ok { background: #ecfdf5; color: #047857; }
.dp-chip.alerta { background: #fff7ed; color: #c2410c; }
.dp-toggle { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--cl-linea); background: #fff; border-radius: 999px; padding: .18rem .7rem .18rem .25rem; font: inherit; font-size: .74rem; font-weight: 700; color: var(--cl-texto2); cursor: pointer; }
.dp-toggle .sw { position: relative; width: 1.9rem; height: 1.1rem; border-radius: 999px; background: var(--cl-borde); transition: background .2s; }
.dp-toggle .sw::after { content: ''; position: absolute; top: .15rem; left: .15rem; width: .8rem; height: .8rem; border-radius: 50%; background: #fff; transition: transform .2s; }
.dp-toggle.on { border-color: var(--cl-teal-claro); color: var(--cl-teal); }
.dp-toggle.on .sw { background: var(--cl-teal); }
.dp-toggle.on .sw::after { transform: translateX(.8rem); }
.dp-hito { display: grid; gap: .1rem; padding: .8rem 1rem; border-radius: var(--cl-r); background: var(--cl-teal-25); border: 1px solid var(--cl-teal-50); min-width: 14rem; }
.dp-hito .et { font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cl-mute); }
.dp-hito b { color: var(--cl-tinta); font-size: .98rem; }
.dp-hito span:last-child { font-size: .82rem; color: var(--cl-texto2); }
.dp-hito.atencion { background: #fff7ed; border-color: #fed7aa; }
.dp-hito.atencion b { color: #c2410c; }

/* Barras de progreso en los KPIs */
.dp-barra { margin-top: .55rem; height: .45rem; border-radius: 999px; background: var(--cl-hueco); overflow: hidden; }
.dp-barra i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cl-teal-medio), var(--cl-teal)); }
.dp-barra.tiempo i { background: linear-gradient(90deg, #f59e0b, #d97706); }

.dp-dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1rem; }
@media (max-width: 64rem) { .dp-dos { grid-template-columns: minmax(0, 1fr); } }
.dp-dos h2 { margin-bottom: 1rem; }

/* Licitación: tres pasos */
.dp-lic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; margin-bottom: 1.4rem; }
.dp-lic::before { content: ''; position: absolute; left: 16.6%; right: 16.6%; top: .45rem; height: 2px; background: var(--cl-linea); }
.dp-lic .paso { position: relative; display: grid; justify-items: center; gap: .2rem; text-align: center; font-size: .86rem; color: var(--cl-tinta); font-weight: 700; }
.dp-lic .pt { width: .95rem; height: .95rem; border-radius: 50%; background: #fff; border: 2px solid var(--cl-borde); z-index: 1; }
.dp-lic .paso.hecho .pt { background: var(--cl-teal); border-color: var(--cl-teal); }
.dp-lic .et, .dp-rejilla .et, .dp-equipo .et { font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cl-mute); }

/* Línea de tiempo de la ejecución */
.dp-tl { margin-bottom: 1.2rem; }
.dp-tl .pista { position: relative; height: 1.6rem; border-radius: .6rem; background: var(--cl-hueco); margin-top: 1.4rem; }
.dp-tl .tramo { position: absolute; top: 0; bottom: 0; border-radius: .6rem; }
.dp-tl .tramo.inicial, .dp-tl .leyenda i.inicial { background: linear-gradient(90deg, var(--cl-teal-medio), var(--cl-teal)); }
.dp-tl .tramo.prorroga, .dp-tl .leyenda i.prorroga { background: repeating-linear-gradient(135deg, #7fb5b3 0 6px, #a8cfcd 6px 12px); }
.dp-tl .tramo.prorroga.ejecutar, .dp-tl .tramo.prorroga.si, .dp-tl .leyenda i.prorroga.ejecutar, .dp-tl .leyenda i.prorroga.si { background: #0a7c7c; opacity: .75; }
.dp-tl .tramo.prorroga.no, .dp-tl .leyenda i.prorroga.no { background: repeating-linear-gradient(135deg, #e5e7eb 0 6px, #f3f4f6 6px 12px); }
.dp-tl .hoy { position: absolute; top: -1.3rem; bottom: -.35rem; width: 2px; background: #d97706; transform: translateX(-1px); }
.dp-tl .hoy span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); font-size: .66rem; font-weight: 800; color: #d97706; background: #fff; padding: 0 .3rem; border-radius: .3rem; white-space: nowrap; }
.dp-tl .ext { display: flex; justify-content: space-between; margin-top: .35rem; font-size: .74rem; color: var(--cl-mute); font-weight: 600; }
.dp-tl .leyenda { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .25rem; font-size: .78rem; color: var(--cl-texto2); }
.dp-tl .leyenda i { display: inline-block; width: .9rem; height: .6rem; border-radius: .2rem; margin-right: .45rem; vertical-align: middle; }
.dp-rejilla { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.dp-rejilla > div { display: grid; gap: .25rem; padding: .7rem .8rem; border-radius: var(--cl-r); background: var(--cl-paper); border: 1px solid var(--cl-linea-suave); font-weight: 700; color: var(--cl-tinta); font-size: .92rem; }
@media (max-width: 40rem) { .dp-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dp-lic .paso { font-size: .78rem; } }

/* Facturación mes a mes */
.dp-ec-cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .6rem; }
.dp-ec-cab h2 { margin: 0 !important; }
.dp-ec-cab .leyenda, .dp-ec-cab .leyenda i { font-size: .74rem; color: var(--cl-mute); font-weight: 600; }
.dp-ec-cab .leyenda i { display: inline-block; width: .7rem; height: .7rem; border-radius: .2rem; margin: 0 .3rem 0 .7rem; vertical-align: -1px; }
.dp-ec-cab .leyenda i.fac { background: var(--cl-teal); }
.dp-ec-cab .leyenda i.prev { background: #fff; border: 2px dashed var(--cl-teal-claro); }
.dp-meses { display: grid; grid-template-columns: repeat(var(--n), minmax(2.2rem, 1fr)); gap: .35rem; align-items: end; overflow-x: auto; padding: .4rem 0 .2rem; }
.dp-meses .mes { position: relative; display: grid; justify-items: center; gap: .3rem; }
.dp-meses .col { position: relative; width: 100%; height: 11rem; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.dp-meses .col i { display: block; width: 72%; border-radius: .45rem .45rem .2rem .2rem; transition: height .4s; }
.dp-meses .mes.fac .col i { background: linear-gradient(180deg, var(--cl-teal-medio), var(--cl-teal)); }
.dp-meses .mes.prev .col i { background: var(--cl-teal-25); border: 2px dashed var(--cl-teal-claro); border-bottom: 0; }
.dp-meses .mes.actual .col i { box-shadow: 0 0 0 3px #fde68a; }
.dp-meses .imp { font-size: .66rem; font-weight: 700; color: var(--cl-texto2); margin-bottom: .2rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dp-meses .et { font-size: .7rem; font-weight: 700; color: var(--cl-mute); }
.dp-meses .mes.actual .et { color: #b45309; }
.dp-meses .et.ed { border: 0; background: var(--cl-teal-50); color: var(--cl-teal); border-radius: .4rem; padding: .1rem .35rem; font-family: inherit; cursor: pointer; }
.dp-meses .et.ed:hover { background: var(--cl-teal); color: #fff; }
.dp-meses .mes.prev:hover .col i { border-color: var(--cl-teal); }
.dp-totales { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--cl-linea-suave); }
.dp-totales div { display: grid; gap: .1rem; }
.dp-totales span { font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cl-mute); }
.dp-totales b { font-size: 1.1rem; color: var(--cl-tinta); font-variant-numeric: tabular-nums; }
.dp-enlaces { margin: 0; font-size: .78rem; color: var(--cl-mute); display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.dp-enlaces a { color: var(--cl-teal); font-weight: 700; }
.dp-equipo { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 1rem; }
.dp-equipo > div { display: grid; gap: .15rem; }
.dp-equipo b { color: var(--cl-tinta); }
.dp-nom .dp-ed-caja { display: flex; } .dp-nom .dp-ed { max-width: 100%; }

/* Compras al estilo de la facturación: cada mes, dos columnas (ADS teal, ejecución ámbar); lo previsto en discontinuo y lo
   ejecutado relleno por delante. */
.dp-compras .leyenda i.ads { background: var(--cl-teal); }
.dp-compras .leyenda i.ejec { background: #d97706; }
.dp-compras .leyenda i.cprev { background: #fff; border: 2px dashed var(--cl-mute); }
.dp-compras .leyenda i.creal { background: var(--cl-mute); }
.dp-cmp-cols { grid-template-columns: repeat(var(--n), minmax(3.6rem, 1fr)); padding-top: 1.4rem; }
.dp-cmp-cols .mes.anio { border-left: 1px dashed var(--cl-linea); }
.dp-cmp-cols .mes.anio::before { content: attr(data-anio); position: absolute; top: -1.25rem; left: .2rem; font-size: .66rem; font-weight: 800; color: var(--cl-mute); }
.dp-cmp-cols .par { display: flex; gap: 3px; align-items: flex-end; justify-content: center; width: 100%; height: 11rem; cursor: pointer; border-radius: .45rem; padding: 0 .15rem; }
.dp-cmp-cols .par:hover { background: var(--cl-teal-25); }
.dp-cmp-cols .col { height: 100%; width: 46%; }
.dp-cmp-cols .imp { font-size: .6rem; margin-bottom: .15rem; }
.dp-cmp-cols .imp.prev { color: var(--cl-mute); font-weight: 600; font-style: italic; }
.dp-cmp-cols .barra { position: relative; display: block; width: 100%; }
.dp-cmp-cols .col .barra i { position: absolute; left: 0; bottom: 0; width: 100%; border-radius: .35rem .35rem .15rem .15rem; box-shadow: none; transition: height .4s; }
.dp-cmp-cols .col.ads i.real { background: linear-gradient(180deg, var(--cl-teal-medio), var(--cl-teal)); }
.dp-cmp-cols .col.ejec i.real { background: linear-gradient(180deg, #f59e0b, #d97706); }
.dp-cmp-cols .col i.prev { background: transparent; border: 2px dashed; border-bottom: 0; }
.dp-cmp-cols .col.ads i.prev { border-color: var(--cl-teal-claro); }
.dp-cmp-cols .col.ejec i.prev { border-color: #f6c27a; }
.dp-cmp-cols .col.ads i.prev:first-child { background: var(--cl-teal-25); }
.dp-cmp-cols .col.ejec i.prev:first-child { background: #fff7ed; }
.dp-cmp-cols .mes.actual .col .barra i { box-shadow: none; }
.dp-cmp-cols .mes.actual .par { box-shadow: inset 0 -3px 0 #fde68a; }
.dp-cmp-cols .mes.sel .par { box-shadow: 0 0 0 3px var(--cl-teal-claro); }
.dp-cmp-cols .et:not(.ed) { border: 0; background: none; font-family: inherit; cursor: pointer; padding: .1rem .35rem; }
/* Ficha del mes: previsto (editable) y ejecutado de cada tipo, y las facturas de compra de las que sale lo ejecutado. */
.dp-cmp-det .tipo { display: flex; align-items: flex-end; gap: .9rem; padding: .5rem .8rem; border-radius: .6rem; background: #fff; border: 1px solid var(--cl-linea-suave); }
.dp-cmp-det .tipo .nom { align-self: center; font-size: .8rem; font-weight: 800; color: var(--cl-tinta); min-width: 5.5rem; }
.dp-cmp-det .tipo .nom i { display: inline-block; width: .6rem; height: .6rem; border-radius: .15rem; margin-right: .35rem; }
.dp-cmp-det .tipo .nom i.ads { background: var(--cl-teal); }
.dp-cmp-det .tipo .nom i.ejec { background: #d97706; }
.dp-cmp-det .ejecutado { display: grid; gap: .25rem; text-align: right; justify-items: end; }
.dp-cmp-det .ejecutado span { font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cl-mute); }
.dp-cmp-det .ejecutado b { font-size: .95rem; font-weight: 800; color: var(--cl-tinta); padding: .35rem 0; font-variant-numeric: tabular-nums; }
.dp-cmp-det .facturas { flex-basis: 100%; overflow: auto; max-height: 24rem; background: #fff; border-radius: .6rem; border: 1px solid var(--cl-linea-suave); }
.dp-cmp-det .facturas .dp-nota { margin: 0; padding: .6rem .9rem; }
.dp-cmp-det .dp-tabla th, .dp-cmp-det .dp-tabla td { padding: .45rem .9rem; }
.dp-cmp-det .dp-tabla .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dp-cmp-det .dp-tabla td:first-child { white-space: nowrap; }
.dp-cmp-det .dp-tabla .concepto { max-width: 22rem; }
.dp-cmp-det .dp-tabla thead th, .dp-cmp-det .dp-tabla tfoot td { position: sticky; background: #fff; }
.dp-cmp-det .dp-tabla thead th { top: 0; }
.dp-cmp-det .dp-tabla tfoot td { bottom: 0; }
.dp-cmp-det .dp-tabla tfoot td { font-weight: 800; color: var(--cl-tinta); border-top: 1px solid var(--cl-linea); border-bottom: 0; }
.dp-cmp-tipo { display: inline-block; font-size: .7rem; font-weight: 700; padding: .05rem .45rem; border-radius: 1rem; }
.dp-cmp-tipo.ads { background: var(--cl-teal-25); color: var(--cl-teal); }
.dp-cmp-tipo.ejec { background: #fff7ed; color: #b45309; }
.dp-cmp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin: .4rem 0 1.1rem; }
.dp-cmp-kpis > div { display: grid; gap: .1rem; padding: .8rem .9rem; border-radius: var(--cl-r); background: var(--cl-paper); border: 1px solid var(--cl-linea-suave); }
.dp-cmp-kpis .et { font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cl-mute); }
.dp-cmp-kpis b { font-size: 1.25rem; font-weight: 800; color: var(--cl-tinta); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.dp-cmp-kpis small { font-size: .76rem; color: var(--cl-mute); font-weight: 600; }
.dp-cmp-kpis .mg { background: var(--cl-teal-25); border-color: var(--cl-teal-50); }
.dp-cmp-kpis .mg b { color: var(--cl-teal); }
.dp-cmp-kpis .mg.neg { background: #fef2f2; border-color: #fecaca; }
.dp-cmp-kpis .mg.neg b { color: #b91c1c; }
.dp-barra.ads i { background: var(--cl-teal); }
/* Resumen de compras: totales de ADS y ejecución (previsto, ejecutado, queda/pasado), por año y a fecha. */
.dp-cmp-res { margin: .4rem 0 1rem; }
.dp-cmp-fecha { display: flex; justify-content: flex-end; margin-bottom: .6rem; }
.dp-cmp-fecha label { display: flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cl-mute); }
.dp-cmp-fecha select { font: inherit; font-size: .85rem; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--cl-tinta); border: 1px solid var(--cl-linea); border-radius: .5rem; padding: .35rem .6rem; background: #fff; }
.dp-cmp-tots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.dp-cmp-tots .tot { display: grid; gap: .3rem; padding: .85rem 1rem; border-radius: var(--cl-r); background: var(--cl-paper); border: 1px solid var(--cl-linea-suave); text-align: right; }
.dp-cmp-tots .et { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cl-tinta); }
.dp-cmp-tots .et i { display: inline-block; width: .6rem; height: .6rem; border-radius: .15rem; margin-right: .35rem; }
.dp-cmp-tots .et i.ads, .dp-cmp-anios th i.ads { background: var(--cl-teal); }
.dp-cmp-tots .et i.ejec, .dp-cmp-anios th i.ejec { background: #d97706; }
.dp-cmp-tots .tres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.dp-cmp-tots .tres > div { display: grid; justify-items: end; }
.dp-cmp-tots small { font-size: .72rem; color: var(--cl-mute); font-weight: 600; }
.dp-cmp-tots b { font-size: 1.2rem; font-weight: 800; color: var(--cl-tinta); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.dp-cmp-tots .queda b { color: var(--cl-teal); }
.dp-cmp-tots .queda.neg b, .dp-cmp-tots .queda.neg small { color: #b91c1c; }
.dp-cmp-tots .dp-barra { margin-top: .2rem; }
@media (max-width: 56rem) { .dp-cmp-tots { grid-template-columns: minmax(0, 1fr); } }
.dp-cmp-anios { margin-top: .8rem; overflow-x: auto; border: 1px solid var(--cl-linea-suave); border-radius: var(--cl-r); background: #fff; }
.dp-cmp-anios .dp-tabla th, .dp-cmp-anios .dp-tabla td { padding: .45rem .9rem; }
.dp-cmp-anios .dp-tabla th.g { text-align: right; color: var(--cl-tinta); border-bottom: 0; }
.dp-cmp-anios .dp-tabla th.g i { display: inline-block; width: .55rem; height: .55rem; border-radius: .15rem; margin-right: .3rem; }
.dp-cmp-anios .dp-tabla th.g.ejec, .dp-cmp-anios .dp-tabla .sep { border-left: 1px solid var(--cl-linea-suave); }
.dp-cmp-anios .dp-tabla .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dp-cmp-anios .dp-tabla td.q { font-weight: 800; color: var(--cl-teal); }
.dp-cmp-anios .dp-tabla td.q.neg { color: #b91c1c; }
.dp-cmp-anios .dp-tabla tr.fuera td { opacity: .4; }
.dp-cmp-anios .dp-nota { margin: 0; padding: .5rem .9rem; border-top: 1px solid var(--cl-linea-suave); }
.dp-cmp-kpis.dos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dp-barra.ejec i { background: #d97706; }
@media (max-width: 56rem) { .dp-cmp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Editor del mes elegido, debajo de su gráfico */
.dp-meses:not(.dp-cmp-cols) .mes.sel .col i { box-shadow: 0 0 0 3px var(--cl-teal-claro); border-radius: .45rem; }
.dp-mes-ed { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .7rem 1rem; margin-top: .7rem; padding: .8rem 1rem; border-radius: var(--cl-r); background: var(--cl-teal-25); border: 1px solid var(--cl-teal-50); }
.dp-mes-ed .tit { flex-basis: 100%; font-size: .9rem; color: var(--cl-tinta); }
.dp-mes-ed label { display: grid; gap: .25rem; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cl-mute); }
.dp-mes-ed label i { display: inline-block; width: .6rem; height: .6rem; border-radius: .15rem; margin-right: .3rem; }
.dp-mes-ed label i.ads { background: var(--cl-teal); }
.dp-mes-ed label i.ejec { background: #d97706; }
.dp-mes-ed input { width: 9rem; border: 2px solid var(--cl-teal); border-radius: .5rem; padding: .35rem .55rem; font: inherit; font-size: 1rem; text-align: right; color: var(--cl-tinta); background: #fff; }
.dp-mes-ed .fijo { font-size: .95rem; font-weight: 800; color: var(--cl-texto2); text-transform: none; letter-spacing: 0; padding: .35rem 0; }
.dp-mes-ed .real { font-size: .8rem; color: var(--cl-texto2); padding-bottom: .45rem; }
.dp-mes-ed .acc { display: flex; gap: .4rem; margin-left: auto; }
.dp-mes-ed .acc button { border: 0; border-radius: .5rem; padding: .45rem .9rem; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; background: #fff; color: var(--cl-texto2); outline: 1px solid var(--cl-linea); }
.dp-mes-ed .acc .ok { background: var(--cl-teal); color: #fff; outline: 0; }
/* El panel no se ensancha por un gráfico largo: cada gráfico se desplaza dentro de su tarjeta. */
.dp-panel { grid-template-columns: minmax(0, 1fr); }
.dp-panel > *, .dp-dos > * { min-width: 0; }

/* ── KPIs: SIEMPRE alineados a la derecha (etiqueta, cifra y nota), en todas las pantallas ── */
.cl-kpi, .cl-kpi .et, .cl-kpi .val, .cl-kpi .val.dp-kpi-txt, .cl-kpi .sub,
.dp-cmp-kpis > div, .dp-totales div, .dp-rejilla > div { text-align: right; }
.dp-cmp-kpis > div, .dp-totales div, .dp-rejilla > div { justify-items: end; }
.dp-rejilla .dp-ed-caja { justify-content: flex-end; }
.cl-kpi .val small { font-size: .5em; font-weight: 700; color: var(--cl-mute); letter-spacing: 0; }
.cl-kpi.dest .val small { color: rgba(255, 255, 255, .75); }

/* Verificación y equipo */
.dp-dos-igual { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 56rem) { .dp-dos-igual { grid-template-columns: minmax(0, 1fr); } }
.dp-verif .estado { display: flex; align-items: center; gap: .55rem; margin: 0 0 .3rem; font-size: 1.15rem; font-weight: 800; }
.dp-verif .ic { display: inline-flex; align-items: center; justify-content: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; font-size: .95rem; font-weight: 900; }
.dp-verif.si { background: linear-gradient(135deg, #ffffff 55%, #ecfdf5); }
.dp-verif.si .estado { color: #047857; }
.dp-verif.si .ic { background: #10b981; color: #fff; }
.dp-verif.no .estado { color: #c2410c; }
.dp-verif.no .ic { background: #fff7ed; color: #c2410c; border: 2px solid #fdba74; }
.dp-verif .quien { margin: 0 0 .4rem; color: var(--cl-texto2); font-size: .92rem; }
.dp-verif .dp-btn { margin-top: .4rem; }
.dp-resp .fila { display: grid; gap: .3rem; padding: .7rem 0; border-bottom: 1px solid var(--cl-linea-suave); }
.dp-resp .fila:first-of-type { padding-top: 0; }
.dp-resp .et { font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cl-mute); }
.dp-resp .dp-ed { font-size: 1rem; font-weight: 700; color: var(--cl-tinta); }
.dp-resp .av { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--cl-teal-50); color: var(--cl-teal); font-size: .74rem; font-weight: 800; flex: none; }
.dp-resp select { border: 2px solid var(--cl-teal); border-radius: .5rem; padding: .4rem .5rem; font: inherit; font-size: .92rem; color: var(--cl-tinta); background: #fff; max-width: min(26rem, 70vw); }
.dp-resp small.dp-nota { display: block; margin-top: .2rem; }
.dp-tiempos h2 { margin-bottom: 1rem; }

/* Equipo del contrato a lo ancho: DP y consultor lado a lado */
.dp-resp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.dp-resp > h2, .dp-resp > .dp-nota { grid-column: 1 / -1; }
.dp-resp .fila, .dp-resp .fila:first-of-type { padding: .2rem 0 .6rem; border-bottom: 0; }
@media (max-width: 40rem) { .dp-resp { grid-template-columns: minmax(0, 1fr); } }

/* Esquema contrato → proyectos → tableros (modo flujo, como Entidades de Nexus) */
.dp-esquema .leyenda { display: flex; flex-wrap: wrap; gap: .2rem .3rem; justify-content: flex-end; }
.dp-esquema .leyenda i { margin-left: .5rem !important; }
.dp-flujo-caja { overflow-x: auto; margin: .3rem -.4rem 0; padding: .2rem; }
.dp-flujo { position: relative; }
.dp-flujo svg { position: absolute; inset: 0; pointer-events: none; }
.dp-flujo svg path { fill: none; stroke: var(--cl-borde); stroke-width: 2; }
.dp-flujo .nodo { position: absolute; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; border-radius: 1rem; overflow: hidden; text-decoration: none; }
.dp-flujo .nodo .nom { margin: 0; font-weight: 800; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dp-flujo .contrato { justify-content: space-between; padding: .8rem 1rem; color: #fff; background: linear-gradient(150deg, #004a49, var(--cl-teal)); box-shadow: 0 10px 24px -12px rgba(0, 60, 60, .55); }
.dp-flujo .contrato .meta { font-size: .68rem; opacity: .85; display: flex; align-items: center; gap: .35rem; white-space: nowrap; }
.dp-flujo .contrato .meta i { width: .5rem; height: .5rem; border-radius: 50%; background: #9ca3af; }
.dp-flujo .contrato .meta i.vivo { background: #4ade80; }
.dp-flujo .contrato .cod { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.dp-flujo .contrato .cli { font-size: .74rem; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-flujo .proyecto { justify-content: space-between; padding: .7rem .9rem; background: #fff; border: 2px solid var(--cl-linea); box-shadow: var(--cl-sombra); }
.dp-flujo .proyecto.principal { border-color: var(--cl-teal-claro); }
.dp-flujo .proyecto .nom { color: var(--cl-tinta); font-size: .9rem; }
.dp-flujo .proyecto .pie { display: flex; align-items: center; gap: .45rem; font-size: .72rem; color: var(--cl-mute); white-space: nowrap; }
.dp-flujo .proyecto .pie .n { margin-left: auto; font-variant-numeric: tabular-nums; }
.dp-flujo .proyecto .pie .n.aviso { color: #c2410c; font-weight: 800; }
.dp-flujo .tablero { padding: .3rem .75rem; border: 2px solid; border-radius: .8rem; transition: transform .12s, box-shadow .12s; }
.dp-flujo .tablero:hover { transform: translateX(2px); box-shadow: var(--cl-sombra-alta); }
.dp-flujo .tablero.distinto { box-shadow: 0 0 0 2px #fbbf24; }
.dp-flujo .tablero .tipo { font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-flujo .tablero .nom { font-size: .85rem; font-weight: 700; color: var(--cl-texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.dp-flujo .vacio { padding: 0 .8rem; border: 2px dashed #fdba74; color: #c2410c; font-size: .78rem; font-weight: 700; border-radius: .8rem; }

/* Pestañas del contrato como enlaces (cada sección, su dirección): mismo aspecto que los botones del Portal. */
.cl-nav a.cl-nav-a { position: relative; flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1rem; font-size: .9rem; font-weight: 800; color: var(--cl-mute); text-decoration: none; white-space: nowrap; }
.cl-hero .cl-nav a.cl-nav-a { color: rgba(255, 255, 255, .78); font-weight: 600; padding: .75rem 1.05rem .85rem; border-radius: .7rem .7rem 0 0; }
.cl-hero .cl-nav a.cl-nav-a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.cl-hero .cl-nav a.cl-nav-a.on { color: var(--cl-teal); background: var(--cl-paper); font-weight: 700; }

/* Esquema en acordeón */
.dp-esq-acc { display: inline-flex; flex-wrap: wrap; gap: .35rem; }
.dp-esq-acc button { border: 1px solid var(--cl-linea); background: #fff; border-radius: 999px; padding: .25rem .7rem; font: inherit; font-size: .74rem; font-weight: 700; color: var(--cl-texto2); cursor: pointer; }
.dp-esq-acc button:hover { background: var(--cl-teal-25); border-color: var(--cl-teal-claro); color: var(--cl-teal); }
.dp-esq-ley { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: -.2rem 0 .4rem; font-size: .72rem; font-weight: 600; color: var(--cl-mute); }
.dp-esq-ley i { display: inline-block; width: .7rem; height: .7rem; border-radius: .2rem; margin-right: .3rem; vertical-align: -1px; }
.dp-esq-ley .punto-ley { display: inline-flex; align-items: center; justify-content: center; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--cl-tinta); color: #fff; font-size: .6rem; margin-right: .25rem; }
.dp-flujo-caja.cargando { opacity: .6; transition: opacity .15s; }
.dp-flujo .nodo { transition: top .25s ease, left .25s ease; }
.dp-flujo .contrato .pie, .dp-flujo .proyecto .pie { display: flex; align-items: center; gap: .45rem; white-space: nowrap; min-width: 0; }
.dp-flujo .contrato .pie .cli { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: .74rem; opacity: .9; }
.dp-flujo .plegar { margin-left: auto; display: inline-flex; align-items: center; gap: .3rem; border: 0; border-radius: 999px; padding: .15rem .55rem; font: inherit; font-size: .7rem; font-weight: 800; cursor: pointer; }
.dp-flujo .contrato .plegar { background: rgba(255, 255, 255, .16); color: #fff; }
.dp-flujo .contrato .plegar:hover { background: rgba(255, 255, 255, .3); }
.dp-flujo .proyecto .plegar { background: var(--cl-teal-50); color: var(--cl-teal); }
.dp-flujo .proyecto .plegar:hover { background: var(--cl-teal); color: #fff; }
.dp-flujo .proyecto .plegar.aviso { background: #fff7ed; color: #c2410c; }
.dp-flujo .plegar .fl { font-size: .95rem; line-height: 1; }
.dp-flujo .proyecto.plegado { border-style: dashed; }
/* El punto de usuarios, fuera del tablero */
.dp-flujo .punto { position: absolute; z-index: 2; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--c); background: #fff; color: var(--c); font: inherit; font-size: .68rem; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--cl-sombra); transition: transform .12s; }
.dp-flujo .punto:hover { transform: scale(1.12); }
.dp-flujo .punto.on { background: var(--c); color: #fff; }
.dp-flujo .punto.cero { border-style: dashed; opacity: .7; }
/* Tarjeta de usuarios de un tablero */
.dp-flujo .usuarios { justify-content: flex-start; padding: .45rem .7rem; background: #fff; border: 2px solid; border-radius: .8rem; box-shadow: var(--cl-sombra-alta); }
.dp-flujo .usuarios .cab { font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; height: 22px; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-flujo .usuarios .u { display: flex; align-items: center; gap: .45rem; height: 26px; font-size: .8rem; color: var(--cl-texto); min-width: 0; }
.dp-flujo .usuarios .u .av { flex: none; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .56rem; font-weight: 800; }
.dp-flujo .usuarios .u .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.dp-flujo .usuarios .u .r { flex: none; font-size: .66rem; color: var(--cl-mute); }
.dp-flujo .usuarios .u.baja .n { text-decoration: line-through; color: var(--cl-mute2); }
.dp-flujo .usuarios .u.vacio { color: var(--cl-mute); font-style: italic; }
/* Compras: el nombre del mes es el botón para preverlo (como en la facturación); bloqueados, con candado */
.dp-compras .dp-aviso { margin-top: .6rem; }

/* Contabilidad de Holded */
.dp-hd-cuentas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
@media (max-width: 64rem) { .dp-hd-cuentas { grid-template-columns: minmax(0, 1fr); } }
.dp-hd { display: grid; gap: .45rem; padding: .9rem 1rem; border-radius: var(--cl-r); border: 1px solid var(--cl-linea); background: var(--cl-paper); border-top: 4px solid var(--cl-teal); }
.dp-hd.ads { border-top-color: var(--cl-teal-medio); }
.dp-hd.ejecucion { border-top-color: #d97706; }
.dp-hd .cab { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.dp-hd .cab .et { font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cl-mute); }
.dp-hd .cab .num { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .95rem; font-weight: 700; color: var(--cl-tinta); }
.dp-hd .nom { margin: 0; font-size: .8rem; color: var(--cl-texto2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-hd .comp { margin: 0; font-size: .74rem; font-weight: 700; color: #b45309; }
.dp-hd .cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; text-align: right; }
.dp-hd .cifras span { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cl-mute); }
.dp-hd .cifras b { font-size: .92rem; color: var(--cl-tinta); font-variant-numeric: tabular-nums; }
.dp-hd .cifras .saldo b { font-size: 1.1rem; color: var(--cl-teal); }
.dp-hd .cifras .saldo.neg b { color: #b91c1c; }
.dp-hd table { width: 100%; border-collapse: collapse; font-size: .78rem; font-variant-numeric: tabular-nums; }
.dp-hd th { font-size: .6rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cl-mute); text-align: right; padding: .25rem .3rem; border-bottom: 1px solid var(--cl-linea); }
.dp-hd th:first-child, .dp-hd td:first-child { text-align: left; }
.dp-hd td { text-align: right; padding: .25rem .3rem; border-bottom: 1px solid var(--cl-linea-suave); color: var(--cl-texto2); }
.dp-hd .apuntes td:nth-child(2) { text-align: left; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-hd .apuntes { max-height: 22rem; overflow: auto; border-radius: .5rem; background: #fff; border: 1px solid var(--cl-linea-suave); }
.dp-hd .apuntes thead th { position: sticky; top: 0; background: #fff; }
.dp-hd .apuntes .tp { display: inline-block; font-size: .6rem; font-weight: 800; padding: 0 .35rem; border-radius: 999px; background: var(--cl-teal-50); color: var(--cl-teal); margin-right: .2rem; }
.dp-hd .apuntes .nw { white-space: nowrap; }
.dp-hd .ver { justify-self: start; border: 0; background: var(--cl-teal-50); color: var(--cl-teal); border-radius: 999px; padding: .3rem .8rem; font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; }
.dp-hd .ver:hover { background: var(--cl-teal); color: #fff; }
.dp-hd .ver .fl { display: inline-block; transition: transform .2s; }
.dp-hd .ver .fl.on { transform: rotate(90deg); }
.dp-hd .apuntes table { font-size: .72rem; }
.dp-hd .apuntes td.n, .dp-hd .apuntes th:nth-child(n+3) { white-space: nowrap; }
.dp-hd .apuntes td:nth-child(2) { max-width: 9rem; }

/* ADM: en vigor / cerrado y verificación, discretos en la primera fila */
.dp-toggle.dp-vigor:not(.on) { color: #b91c1c; border-color: #fecaca; }
.dp-verif-chip { display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; padding: .2rem .65rem; font: inherit; font-size: .72rem; font-weight: 700; border: 1px solid; }
.dp-verif-chip.si { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.dp-verif-chip.si button { border: 0; background: none; color: #047857; cursor: pointer; font-size: .7rem; padding: 0 .1rem; opacity: .6; }
.dp-verif-chip.si button:hover { opacity: 1; color: #b91c1c; }
.dp-verif-chip.no { background: #fff; color: #c2410c; border-color: #fdba74; border-style: dashed; cursor: pointer; }
.dp-verif-chip.no:hover { background: #fff7ed; }

/* Prórrogas */
.dp-pror-lista { display: grid; gap: .5rem; }
.dp-pror-lista .fila { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .6rem .8rem; border: 1px solid var(--cl-linea); border-radius: var(--cl-r); background: var(--cl-paper); }
.dp-pror-lista .n { flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--cl-teal-50); color: var(--cl-teal); font-weight: 800; font-size: .8rem; }
.dp-pror-lista .info { display: grid; flex: 1 1 14rem; min-width: 0; }
.dp-pror-lista .info b { color: var(--cl-tinta); font-size: .9rem; }
.dp-pror-lista .info span { color: var(--cl-mute); font-size: .78rem; }
.dp-seg { display: inline-flex; background: #fff; border: 1px solid var(--cl-linea); border-radius: .6rem; padding: .15rem; gap: .1rem; }
.dp-seg button { border: 0; background: none; border-radius: .45rem; padding: .25rem .65rem; font: inherit; font-size: .76rem; font-weight: 700; color: var(--cl-texto2); cursor: pointer; }
.dp-seg button:hover { background: var(--cl-teal-25); }
.dp-seg button.on { background: var(--cl-teal); color: #fff; }
.dp-pror-orig { margin-top: .8rem; }
.dp-pror-orig summary { cursor: pointer; font-size: .8rem; font-weight: 700; color: var(--cl-teal); }
.dp-pror-orig table { width: 100%; border-collapse: collapse; font-size: .8rem; margin-top: .5rem; }
.dp-pror-orig th { text-align: left; font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cl-mute); padding: .3rem .4rem; border-bottom: 1px solid var(--cl-linea); }
.dp-pror-orig td { padding: .35rem .4rem; border-bottom: 1px solid var(--cl-linea-suave); color: var(--cl-texto2); }
.dp-pror-orig td.n { text-align: right; font-variant-numeric: tabular-nums; }
.dp-pror-orig td.nw { white-space: nowrap; }
.dp-pror-orig td.notas { font-size: .74rem; color: var(--cl-mute); }
.dp-pror-orig .quitar { border: 1px solid #fecaca; background: #fff; color: #b91c1c; border-radius: .45rem; padding: .15rem .55rem; font: inherit; font-size: .72rem; font-weight: 700; cursor: pointer; }
.dp-pror-nueva { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem .8rem; margin-top: 1rem; padding: .8rem 1rem; border-radius: var(--cl-r); background: var(--cl-teal-25); border: 1px dashed var(--cl-teal-claro); }
.dp-pror-nueva > b { flex-basis: 100%; font-size: .85rem; color: var(--cl-tinta); }
.dp-pror-nueva label { display: grid; gap: .2rem; font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cl-mute); }
.dp-pror-nueva label.ancha { flex: 1 1 14rem; }
.dp-pror-nueva input { border: 1px solid var(--cl-borde); border-radius: .5rem; padding: .4rem .55rem; font: inherit; font-size: .9rem; color: var(--cl-tinta); background: #fff; }
.dp-pror-nueva input:focus { outline: 2px solid var(--cl-teal); border-color: var(--cl-teal); }
/* Línea de tiempo: decisiones de prórroga que faltaban */
.dp-tl .tramo.prorroga.si_vivo, .dp-tl .leyenda i.prorroga.si_vivo { background: #0a7c7c; opacity: .75; }
.dp-tl .tramo.prorroga.caida, .dp-tl .leyenda i.prorroga.caida { background: repeating-linear-gradient(135deg, #e5e7eb 0 6px, #f3f4f6 6px 12px); }

/* ════ Reuniones ════ */
.dp-reu { display: grid; gap: 1rem; }
.dp-reu-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 0; }
@media (max-width: 64rem) { .dp-reu-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .dp-reu-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dp-reu-barra { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.dp-reu-barra select, .dp-reu-barra input[type=search] { border: 1px solid var(--cl-borde); border-radius: .6rem; padding: .45rem .65rem; font: inherit; font-size: .86rem; color: var(--cl-tinta); background: #fff; }
.dp-reu-barra input[type=search] { flex: 1 1 14rem; min-width: 10rem; }
.dp-reu-barra .dp-btn { margin-left: auto; }
.dp-reu-nueva h2 { margin-bottom: .8rem; }
.dp-reu-nueva .campos { display: flex; flex-wrap: wrap; gap: .7rem .9rem; }
.dp-reu-nueva label { display: grid; gap: .25rem; font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cl-mute); }
.dp-reu-nueva label small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.dp-reu-nueva label.ancha { flex: 1 1 20rem; }
.dp-reu-nueva label.entera { flex-basis: 100%; }
.dp-reu-nueva input, .dp-reu-nueva select, .dp-reu-nueva textarea { border: 1px solid var(--cl-borde); border-radius: .55rem; padding: .45rem .6rem; font: inherit; font-size: .92rem; color: var(--cl-tinta); background: #fff; text-transform: none; letter-spacing: 0; }
.dp-reu-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }

.dp-reu-tabla { padding: .4rem 0 .6rem; }
.dp-reu-tabla .caja { overflow-x: auto; }
.dp-reu-tabla table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.dp-reu-tabla th { text-align: left; font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cl-mute); padding: .55rem .6rem; border-bottom: 1px solid var(--cl-linea); white-space: nowrap; }
.dp-reu-tabla th.c, .dp-reu-tabla td.c { text-align: center; }
.dp-reu-tabla td { padding: .5rem .6rem; border-bottom: 1px solid var(--cl-linea-suave); vertical-align: middle; }
.dp-reu-tabla tr:hover td { background: var(--cl-teal-25); }
.dp-reu-tabla tr.sel td { background: var(--cl-teal-50); }
.dp-reu-tabla tr.cerrada td.tit .nom { color: var(--cl-mute); }
.dp-reu-tabla tr.proxima td.fecha input { border-color: var(--cl-teal-claro); }
.dp-reu-tabla td.fecha { white-space: nowrap; }
.dp-reu-tabla td.fecha input { border: 1px solid transparent; background: transparent; border-radius: .4rem; padding: .2rem .25rem; font: inherit; font-size: .82rem; color: var(--cl-tinta); }
.dp-reu-tabla td.fecha input:hover, .dp-reu-tabla td.fecha input:focus { border-color: var(--cl-borde); background: #fff; }
.dp-reu-tabla td.fecha input[type=time] { width: 5.6rem; color: var(--cl-mute); }
.dp-reu-tabla td.tit { min-width: 16rem; }
.dp-reu-tabla td.tit .nom { font-weight: 700; color: var(--cl-tinta); white-space: normal; }
.dp-reu-tabla td.tit .sub { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .7rem; margin-top: .15rem; font-size: .72rem; color: var(--cl-mute); }
.dp-reu-tabla td.tit .pry { font-weight: 700; color: var(--cl-teal); }
.dp-reu-tabla .avs { display: inline-flex; }
.dp-reu-tabla .avs i { display: inline-flex; align-items: center; justify-content: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--cl-teal-50); color: var(--cl-teal); font-style: normal; font-size: .55rem; font-weight: 800; border: 2px solid #fff; margin-left: -.3rem; }
.dp-reu-tabla .avs i:first-child { margin-left: 0; }
.dp-reu-tabla .avs i.mas { background: var(--cl-hueco); color: var(--cl-mute); }
.dp-tipo { border: 1px solid transparent; border-radius: 999px; padding: .2rem .5rem; font: inherit; font-size: .74rem; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 12%, white); cursor: pointer; max-width: 11rem; }
.dp-tipo:hover { border-color: var(--c); }
.dp-sat { border: 1px solid var(--cl-linea); border-radius: .5rem; padding: .2rem .3rem; font: inherit; font-size: .74rem; background: #fff; cursor: pointer; }
.dp-sat.s3 { border-color: #a7f3d0; background: #ecfdf5; }
.dp-sat.s1 { border-color: #fecaca; background: #fef2f2; }
.dp-reu-tabla .ok { color: #047857; font-weight: 800; }
.dp-reu-tabla .no { color: var(--cl-mute2); }
.dp-estado-reu { border: 1px solid #a7f3d0; background: #ecfdf5; color: #047857; border-radius: 999px; padding: .15rem .6rem; font: inherit; font-size: .72rem; font-weight: 700; cursor: pointer; }
.dp-estado-reu.cerrada { border-color: var(--cl-linea); background: var(--cl-hueco); color: var(--cl-mute); }
.dp-abrir { border: 0; background: var(--cl-teal-50); color: var(--cl-teal); border-radius: .5rem; padding: .3rem .6rem; font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.dp-abrir:hover { background: var(--cl-teal); color: #fff; }
.dp-mini { border: 1px solid var(--cl-teal-claro); background: #fff; color: var(--cl-teal); border-radius: .5rem; padding: .25rem .6rem; font: inherit; font-size: .74rem; font-weight: 700; cursor: pointer; }
.dp-mini:hover { background: var(--cl-teal); color: #fff; }
/* Ficha lateral */
.dp-reu-fondo { position: fixed; inset: 0; z-index: 60; background: rgba(10, 20, 20, .28); }
.dp-reu-ficha { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(34rem, 100vw); display: grid; align-content: start; gap: .9rem; overflow-y: auto;
    background: #fff; padding: 1.3rem 1.4rem 2rem; box-shadow: -18px 0 44px -12px rgba(0, 60, 59, .35); animation: dp-entra .18s ease-out; }
@keyframes dp-entra { from { transform: translateX(2rem); } to { transform: none; } }
.dp-reu-ficha .cab { display: flex; justify-content: space-between; align-items: center; }
.dp-reu-ficha .cerrar { border: 0; background: var(--cl-hueco); border-radius: 50%; width: 1.8rem; height: 1.8rem; cursor: pointer; color: var(--cl-mute); }
.dp-reu-ficha h3 { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--cl-tinta); line-height: 1.25; }
.dp-reu-ficha .cuando { margin: -.4rem 0 0; font-size: .8rem; color: var(--cl-mute); }
.dp-reu-ficha .cuando a { color: var(--cl-teal); font-weight: 700; }
.dp-reu-ficha .bloque { display: grid; gap: .5rem; padding-top: .8rem; border-top: 1px solid var(--cl-linea-suave); }
.dp-reu-ficha .tit-b { display: flex; justify-content: space-between; align-items: center; }
.dp-reu-ficha .tit-b b { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cl-mute); }
.dp-reu-ficha .md { font-size: .86rem; color: var(--cl-texto); line-height: 1.5; overflow-wrap: anywhere; }
.dp-reu-ficha .md p { margin: .3rem 0; }
.dp-reu-ficha .md ul, .dp-reu-ficha .md ol { margin: .3rem 0; padding-left: 1.2rem; }
.dp-reu-ficha textarea.acta { min-height: 14rem; font-size: .86rem; }
.dp-reu-ficha .parts { display: flex; flex-wrap: wrap; gap: .35rem; }
.dp-reu-ficha .part { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .25rem .2rem .2rem; border-radius: 999px; background: var(--cl-paper); border: 1px solid var(--cl-linea); font-size: .8rem; font-weight: 600; color: var(--cl-tinta); }
.dp-reu-ficha .part i { display: inline-flex; align-items: center; justify-content: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--cl-teal-50); color: var(--cl-teal); font-style: normal; font-size: .58rem; font-weight: 800; }
.dp-reu-ficha .part small { color: var(--cl-mute); font-weight: 500; }
.dp-reu-ficha .part button { border: 0; background: none; color: var(--cl-mute2); cursor: pointer; font-size: .7rem; }
.dp-reu-ficha .part button:hover { color: #b91c1c; }
.dp-reu-ficha .anadir { display: flex; gap: .4rem; }
.dp-reu-ficha .anadir select, .dp-reu-ficha .anadir input { flex: 1; min-width: 0; border: 1px solid var(--cl-borde); border-radius: .5rem; padding: .35rem .5rem; font: inherit; font-size: .82rem; background: #fff; }
.dp-reu-ficha .com { padding: .55rem .7rem; border-radius: .6rem; background: var(--cl-paper); border: 1px solid var(--cl-linea-suave); }
.dp-reu-ficha .com.interno { background: #fffbeb; border-color: #fde68a; }
.dp-reu-ficha .com .quien { font-size: .72rem; color: var(--cl-mute); display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.dp-reu-ficha .chk { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--cl-texto2); margin-right: auto; }
.dp-reu-ficha .adj { list-style: none; margin: 0; padding: 0; font-size: .82rem; }
.dp-reu-ficha .adj small { color: var(--cl-mute); }

/* ════ Reuniones: calendario anual (al estilo de Google Calendar) ════ */
.dp-vistas button { white-space: nowrap; }
.dp-cal { padding: 1.2rem 1.4rem 1.4rem; }
.dp-cal-cab { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.dp-cal-hoy { border: 1px solid var(--cl-borde); background: #fff; border-radius: 999px; padding: .45rem 1.2rem; font: inherit; font-size: .9rem; font-weight: 600; color: var(--cl-tinta); cursor: pointer; }
.dp-cal-hoy:hover { background: var(--cl-teal-25); }
.dp-cal-fl { position: relative; border: 0; background: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; font: inherit; font-size: 1.5rem; line-height: 1; color: var(--cl-texto2); cursor: pointer; }
.dp-cal-fl:hover { background: var(--cl-hueco); }
.dp-cal-fl i { position: absolute; top: -.1rem; right: -.2rem; min-width: 1rem; height: 1rem; padding: 0 .2rem; border-radius: 999px; background: var(--cl-teal); color: #fff; font-style: normal; font-size: .58rem; font-weight: 800; line-height: 1rem; }
.dp-cal-anio { margin: 0 .3rem 0 .2rem !important; font-size: 1.7rem !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--cl-tinta) !important; }
.dp-cal-n { font-size: .82rem; font-weight: 700; color: var(--cl-teal); background: var(--cl-teal-50); border-radius: 999px; padding: .2rem .65rem; }
.dp-cal-ley { margin-left: auto; display: flex; flex-wrap: wrap; gap: .25rem .8rem; font-size: .72rem; color: var(--cl-mute); font-weight: 600; }
.dp-cal-ley i { display: inline-block; width: .75rem; height: .75rem; border-radius: 50%; margin-right: .3rem; vertical-align: -1px; }
.dp-cal-ley i.varias { width: .95rem; height: .95rem; background: var(--cl-teal); color: #fff; font-style: normal; font-size: .55rem; font-weight: 800; text-align: center; line-height: .95rem; }
.dp-cal-meses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem 2rem; }
@media (max-width: 80rem) { .dp-cal-meses { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 56rem) { .dp-cal-meses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .dp-cal-meses { grid-template-columns: minmax(0, 1fr); } }
.dp-cal-mes h3 { margin: 0 0 .5rem .2rem; font-size: 1.05rem; font-weight: 500; color: var(--cl-tinta); }
.dp-cal-mes table { width: 100%; border-collapse: separate; border-spacing: 0 2px; table-layout: fixed; }
.dp-cal-mes th { font-size: .72rem; font-weight: 500; color: var(--cl-texto2); padding: .25rem 0 .45rem; text-align: center; }
.dp-cal-mes td { text-align: center; padding: 0; height: 2rem; }
.dp-cal-mes .sem { width: 1.9rem; background: var(--cl-hueco); color: var(--cl-texto2); font-size: .74rem; border-radius: .35rem; }
.dp-cal-mes thead .sem { background: none; }
.dp-cal-mes .dia { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 1.85rem; height: 1.85rem; border-radius: 50%; font-size: .78rem; color: var(--cl-tinta); border: 0; background: none; font-family: inherit; padding: 0; }
.dp-cal-mes .dia.fuera { color: var(--cl-mute2); }
.dp-cal-mes .dia.hoy { box-shadow: inset 0 0 0 2px var(--cl-teal-claro); font-weight: 800; }
.dp-cal-mes .dia.con { background: var(--c); color: #fff; font-weight: 800; cursor: pointer; box-shadow: 0 2px 6px -2px var(--c); transition: transform .1s; }
.dp-cal-mes .dia.con:hover { transform: scale(1.12); }
.dp-cal-mes .dia.con.hoy { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c); }
.dp-cal-mes .dia.con.sel { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--cl-tinta); }
.dp-cal-mes .dia i { position: absolute; top: -.35rem; right: -.4rem; min-width: .95rem; height: .95rem; padding: 0 .15rem; border-radius: 999px; background: var(--cl-tinta); color: #fff; font-style: normal; font-size: .55rem; line-height: .95rem; }
.dp-cal-dia { margin-top: 1.2rem; padding: .9rem 1rem; border-radius: var(--cl-r); background: var(--cl-teal-25); border: 1px solid var(--cl-teal-50); display: grid; gap: .45rem; }
.dp-cal-dia .cab { display: flex; justify-content: space-between; align-items: center; color: var(--cl-tinta); }
.dp-cal-dia .fila { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; padding: .5rem .7rem; background: #fff; border-radius: .6rem; border: 1px solid var(--cl-linea); }
.dp-cal-dia .hora { font-weight: 800; color: var(--cl-tinta); min-width: 4.5rem; font-variant-numeric: tabular-nums; }
.dp-cal-dia .tit { flex: 1 1 14rem; font-weight: 700; color: var(--cl-tinta); }
.dp-cal-dia .tit small { display: block; font-weight: 600; color: var(--cl-teal); font-size: .72rem; }
.dp-cal-dia .est { font-size: .72rem; font-weight: 700; color: #047857; }
.dp-cal-dia .est.cerrada { color: var(--cl-mute); }

/* ════ Operaciones (vista de tareas del Portal del cliente; estilos en dp-operaciones.css) ════ */
.dp-ope .dp-ope-pry { border: 1px solid var(--cl-borde); border-radius: .6rem; padding: .4rem .6rem; font: inherit; font-size: .84rem; color: var(--cl-tinta); background: #fff; }
.dp-ope .dp-interno { background: #fffbeb; border-radius: .5rem; }
.dp-ope .dp-tk-kb { margin: -.2rem 0 .4rem; font-size: .78rem; }
.dp-ope .dp-tk-kb a { display: inline-flex; align-items: center; gap: .3rem; color: var(--cl-teal); font-weight: 700; text-decoration: none; }
.dp-ope .dp-tk-kb a:hover { text-decoration: underline; }
.dp-ficha-dia { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: .55rem .65rem; border-radius: .6rem; background: var(--cl-teal-25); border: 1px solid var(--cl-teal-50); font-size: .74rem; color: var(--cl-texto2); }
.dp-ficha-dia span { font-weight: 700; margin-right: .2rem; }
.dp-ficha-dia button { border: 1px solid var(--cl-linea); background: #fff; border-radius: 999px; padding: .2rem .6rem; font: inherit; font-size: .72rem; font-weight: 700; color: var(--cl-texto2); cursor: pointer; }
.dp-ficha-dia button.on { background: var(--cl-teal); border-color: var(--cl-teal); color: #fff; }
/* Operaciones: agenda de todas las tareas (cabecera de mes) y calendario anual en la columna izquierda */
.dp-ope .dp-ope-mes { display: flex; align-items: baseline; gap: .5rem; margin: 1.4rem 0 .2rem; padding-bottom: .3rem; border-bottom: 2px solid var(--cl-linea); font-size: 1rem; font-weight: 800; color: var(--cl-tinta); }
.dp-ope .dp-ope-mes:first-child { margin-top: .2rem; }
.dp-ope .dp-ope-mes span { font-size: .72rem; font-weight: 700; color: var(--cl-teal); background: var(--cl-teal-50); border-radius: 999px; padding: .05rem .5rem; }
.dp-ope-cal { background: #fff; border: 1px solid var(--cl-linea); border-radius: var(--cl-r-lg); box-shadow: var(--cl-sombra); }
.dp-ope-cal .dp-cal-meses { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem 1.4rem; }
@media (max-width: 90rem) { .dp-ope-cal .dp-cal-meses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .dp-ope-cal .dp-cal-meses { grid-template-columns: minmax(0, 1fr); } }
.dp-ope-cal .dp-cal-mes .dia { width: 1.7rem; height: 1.7rem; font-size: .74rem; }

/* «Mis Apps» de la cabecera (como en Nexus y el resto de aplicaciones) */
.dp-apps { position: relative; }
.dp-apps-boton { display: inline-flex; align-items: center; gap: .375rem; padding: .375rem .75rem; border-radius: .5rem; font: inherit; font-size: .75rem; font-weight: 700; border: 0; cursor: pointer; background: #fbbf24; color: #0F1B3D; white-space: nowrap; }
.dp-apps-boton:hover { background: #f59e0b; }
.dp-apps-menu { position: absolute; z-index: 90; top: calc(100% + .5rem); right: 0; width: 17rem; max-width: calc(100vw - 2rem); background: #fff; color: #1f2937; border: 1px solid #e5e7eb; border-radius: .8rem; padding: .35rem; box-shadow: 0 10px 28px -10px rgba(15, 27, 61, .35); }
.dp-app { display: flex; align-items: center; gap: .65rem; padding: .5rem .65rem; border-radius: .55rem; font-size: .875rem; font-weight: 600; color: #1f2937; text-decoration: none; }
.dp-app:hover, .dp-app:focus-visible { background: #f3f4f6; outline: none; }
.dp-app img, .dp-app .dp-app-ini { width: 1.5rem; height: 1.5rem; flex: none; border-radius: .3rem; object-fit: contain; }
.dp-app .dp-app-ini { display: inline-flex; align-items: center; justify-content: center; background: #f3f4f6; color: #6b7280; font-size: .7rem; font-weight: 800; }
.dp-app .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-app svg { color: #9ca3af; flex: none; }

/* ════ Gastos y Compras (tarjetas) ════ */
.dp-gas-intro { margin: 0 0 1rem; font-size: .88rem; color: var(--cl-texto2); max-width: 60rem; }
.dp-gas-bandejas { margin-top: 0; }
.dp-gas-b { text-decoration: none; }
.dp-gas-b .et { display: inline-flex; align-items: center; gap: .35rem; justify-content: flex-end; width: 100%; }
.dp-gas-b.mal .et svg { color: #b91c1c; }
.dp-gas-b.bien .et svg { color: #047857; }
.dp-gas-b.dest .et svg { color: #fff; }
.dp-gas-b:hover { box-shadow: var(--cl-sombra-alta); }
.dp-gas-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1rem; }
.dp-gas-filtros .dp-seg a { border-radius: .45rem; padding: .25rem .65rem; font-size: .76rem; font-weight: 700; color: var(--cl-texto2); text-decoration: none; }
.dp-gas-filtros .dp-seg a.on { background: var(--cl-teal); color: #fff; }
.dp-gas-filtros select { margin-left: auto; border: 1px solid var(--cl-borde); border-radius: .6rem; padding: .4rem .6rem; font: inherit; font-size: .84rem; background: #fff; }
.dp-gas-bloques { display: grid; gap: 1rem; margin-top: 1rem; }
.dp-gas-bloque { padding: 0; overflow: hidden; }
.dp-gas-bloque .cab { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1.1rem; background: var(--cl-paper); border-bottom: 1px solid var(--cl-linea); }
.dp-gas-bloque .cab b { color: var(--cl-tinta); }
.dp-gas-bloque .cab span { font-weight: 800; color: var(--cl-tinta); font-variant-numeric: tabular-nums; }
.dp-gas-bloque .caja { overflow-x: auto; }
.dp-gas-bloque table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.dp-gas-bloque th { text-align: left; font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cl-mute); padding: .6rem 1.1rem; border-bottom: 1px solid var(--cl-linea); }
.dp-gas-bloque td { padding: .65rem 1.1rem; border-bottom: 1px solid var(--cl-linea-suave); vertical-align: top; color: var(--cl-texto); }
.dp-gas-bloque tr:last-child td { border-bottom: 0; }
.dp-gas-bloque td small { display: block; font-size: .72rem; color: var(--cl-mute); }
.dp-gas-bloque td small.rojo { color: #b91c1c; }
.dp-gas-bloque td b { color: var(--cl-tinta); }
.dp-gas-bloque td b.imp { font-size: .8rem; }
.dp-gas-bloque .nw { white-space: nowrap; }
.dp-gas-bloque .n { text-align: right; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--cl-tinta); }
.dp-gas-bloque .fich { display: inline-flex; align-items: center; gap: .25rem; margin-right: .4rem; font-size: .76rem; font-weight: 700; color: var(--cl-teal); text-decoration: none; }
.dp-gas-bloque .fich a { color: var(--cl-teal); text-decoration: none; display: inline-flex; align-items: center; gap: .25rem; }
.dp-gas-bloque .fich button { border: 0; background: none; color: var(--cl-mute2); cursor: pointer; font-size: .7rem; }
.dp-gas-bloque .fich button:hover { color: #b91c1c; }
.dp-chip.rojo { background: #fef2f2; color: #b91c1c; }
.dp-chip .cl-i { width: .8em; height: .8em; }
.dp-gas-link { display: inline-flex; align-items: center; gap: .3rem; margin-top: .3rem; border: 0; background: none; padding: 0; font: inherit; font-size: .76rem; font-weight: 700; color: var(--cl-teal); cursor: pointer; }
.dp-gas-link:hover { text-decoration: underline; }
.dp-gas-toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; background: #fff; border: 1px solid var(--cl-linea); border-radius: .7rem; padding: .7rem 1rem; box-shadow: var(--cl-sombra-alta); font-size: .86rem; display: flex; gap: .6rem; align-items: center; }
.dp-gas-toast.error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.dp-gas-toast button { border: 0; background: none; cursor: pointer; color: inherit; }
.dp-gas-fondo { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; background: rgba(10, 20, 20, .35); padding: 1rem; }
.dp-gas-modal { width: 100%; max-width: 32rem; background: #fff; border-radius: var(--cl-r-lg); padding: 1.3rem 1.4rem; box-shadow: var(--cl-sombra-alta); display: grid; gap: .6rem; }
.dp-gas-modal h2 { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--cl-tinta); }
.dp-gas-modal select { border: 1px solid var(--cl-borde); border-radius: .6rem; padding: .55rem .65rem; font: inherit; font-size: .9rem; background: #fff; }
.dp-gas-error { margin: 0; color: #b91c1c; font-size: .84rem; font-weight: 600; }

/* Pestañas Gastos y Compras del contrato (16/11/2026): todas las funciones del Portal del empleado, con el estilo DP */
.dp-gas-ct { display: grid; gap: 1rem; }
.dp-gas-ct > .dp-panel { margin-top: 0; }
.dp-gas-cabecera { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .8rem 1.5rem; margin-top: .25rem; }
.dp-gas-cabecera .txt { flex: 1 1 28rem; min-width: 0; }
.dp-gas-cabecera .dp-gas-intro { margin: 0; }
.dp-gas-cabecera .dp-seg { flex: none; }
.dp-gas-ct .dp-gas-bandejas { margin-top: 0; }
button.dp-gas-b { font: inherit; text-align: right; cursor: pointer; width: 100%; border: 1px solid var(--cl-linea); transition: box-shadow .15s, transform .15s; }
button.dp-gas-b:hover { transform: translateY(-1px); }
button.dp-gas-b:focus-visible { outline: 3px solid var(--cl-teal-claro); outline-offset: 2px; }
button.dp-gas-b.dest { border: 0; }
.dp-gas-pendiente { display: flex; align-items: flex-start; gap: .6rem; padding: .7rem .95rem; border-radius: .8rem; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: .86rem; }
.dp-gas-pendiente .cl-i { width: 1.1rem; height: 1.1rem; flex: none; margin-top: .1rem; }
.dp-gas-ct .dp-gas-filtros { margin-top: 0; }
.dp-gas-meses { max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
.dp-gas-meses button { white-space: nowrap; }
.dp-gas-ct .dp-gas-bloques { margin-top: 0; }
.dp-gas-bloque.sin .cab { background: #fff7ed; }
.dp-gas-bloque.este .cab { background: var(--cl-teal-25); }
.dp-gas-bloque.este .cab b { color: var(--cl-teal); }
.dp-gas-bloque .cab b { display: inline-flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.dp-gas-bloque tbody tr:hover td { background: var(--cl-paper); }
.dp-gas-bloque td.dp-gas-imp { min-width: 15rem; }
.dp-gas-bloque td small.tit { color: var(--cl-texto2); font-weight: 600; }
.dp-gas-imp .acc { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; margin-top: .35rem; }
.dp-gas-imp .acc .dp-gas-link { margin-top: 0; }
.dp-gas-imp b.imp .dp-chip { font-size: .62rem; padding: .05rem .45rem; vertical-align: middle; }
.dp-gas-nada { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 2rem 1rem; text-align: center; color: var(--cl-mute); }
.dp-gas-nada .cl-i { width: 1.6rem; height: 1.6rem; color: var(--cl-teal-claro); }
.dp-gas-nada p { margin: 0; font-size: .9rem; }
.dp-btn.mini { padding: .3rem .7rem; font-size: .76rem; border-radius: .5rem; white-space: nowrap; }
.dp-chip.neutro { background: var(--cl-linea-suave); color: var(--cl-texto2); }
@media (max-width: 40rem) {
    .dp-gas-cabecera .dp-seg { width: 100%; }
    .dp-gas-cabecera .dp-seg button { flex: 1; }
    .dp-gas-filtros select { margin-left: 0; width: 100%; }
}
.dp-gas-ct .dp-gas-bloque table { table-layout: fixed; min-width: 50rem; }
.dp-gas-ct .dp-gas-bloque th:nth-child(1) { width: 8.5rem; }
.dp-gas-ct .dp-gas-bloque th:nth-child(2) { width: 24%; }
.dp-gas-ct .dp-gas-bloque th:nth-child(3) { width: 30%; }
.dp-gas-ct .dp-gas-bloque th:nth-child(5) { width: 8.5rem; }
.dp-gas-ct .dp-gas-bloque td { overflow-wrap: anywhere; }
.dp-gas-sel { width: 100%; max-width: 22rem; border: 1px solid var(--cl-borde); border-radius: .55rem; padding: .4rem .5rem; font: inherit; font-size: .8rem; font-weight: 600; color: var(--cl-tinta); background: #fff; cursor: pointer; }
.dp-gas-sel:hover, .dp-gas-sel:focus { border-color: var(--cl-teal); outline: none; box-shadow: 0 0 0 3px var(--cl-teal-50); }
.dp-gas-sel.vacio { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.dp-gas-imp > small { margin-top: .25rem; }
.dp-gas-modal { grid-template-columns: minmax(0, 1fr); }
.dp-gas-modal > * { min-width: 0; }
.dp-gas-modal select { width: 100%; max-width: 100%; text-overflow: ellipsis; }
.dp-gas-modal .dp-acciones { display: flex; flex-wrap: wrap; gap: .5rem; }
