/* ==========================================================================
   views/documentos.css — Estilos exclusivos de Documentos (documentos.html)
   Prefijo de clases: dm-
   ========================================================================== */

/* Por vencer: tarjetas destacadas */
.dm-due {
    position: relative;
    overflow: hidden;
    width: 190px;
    padding: 16px;
    border-radius: 20px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: var(--app-shadow);
}
.dm-due::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 18px solid rgba(255, 255, 255, .1);
}
.dm-due:hover { color: var(--white); }
.dm-due-red    { background: linear-gradient(140deg, #F87171 0%, #DC2626 60%, #7F1D1D 100%); }
.dm-due-orange { background: linear-gradient(140deg, #FDBA74 0%, #EA580C 60%, #7C2D12 100%); }
.dm-due-teal   { background: linear-gradient(140deg, #5EEAD4 0%, #0F766E 60%, #134E4A 100%); }
.dm-due-ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .2);
}
.dm-due p { font-size: 14.5px; font-weight: 700; color: var(--white); line-height: 1.25; }
.dm-due span { font-size: 12px; color: rgba(255, 255, 255, .8); }
.dm-due strong { font-size: 22px; font-weight: 800; color: var(--white); margin-top: 8px; }
.dm-due .dm-due-hint {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    font-size: 11.5px;
}

/* Chips de filtro: anula el estilo global de <button> de la plantilla (width:100%, padding, colores) */
.dm-filter .ui-chip {
    width: auto;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--greyscale-700);
    background: var(--white);
    border: 1px solid var(--greyscale-200);
}
.dm-filter .ui-chip:hover { color: var(--greyscale-700); background: var(--white); border-color: var(--greyscale-200); }
.dm-filter .ui-chip.active,
.dm-filter .ui-chip.active:hover { color: var(--white); background: var(--primary-base); border-color: var(--primary-base); }

/* Tarjeta de documento */
.dm-doc { position: relative; }
.dm-doc > span:nth-of-type(3) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dm-doc .ui-status { align-self: flex-start; margin-top: 6px; font-size: 11px; }
.dm-doc .ui-status.is-ok      { color: var(--c-green); }
.dm-doc .ui-status.is-warning { color: var(--c-orange); }
.dm-doc .ui-status.is-danger  { color: var(--c-red); }
.dm-type {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 10px !important;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--c-red) !important;
    background: var(--c-red-bg);
}
.dm-type.is-img { color: var(--c-blue) !important; background: var(--c-blue-bg); }
.dm-type.is-key { color: var(--c-slate) !important; background: var(--c-slate-bg); }

/* Número enmascarable en el formulario */
.dm-secret { position: relative; }
.dm-secret .mod-input { padding-right: 52px; }
.dm-secret-btn {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--greyscale-500);
}
.dm-secret-btn:hover,
.dm-secret-btn.is-on { background: var(--greyscale-100); color: var(--primary-base); border: 0; }

/* Adjuntar frente y reverso */
.dm-upload { flex-direction: column; text-align: center; gap: 6px !important; padding: 16px 10px !important; }
