/* Base de datos (propuesta aprobada, estética Rótulo con el color de su tarjeta). Solo pantalla. */
@media screen{
/* Tarjetas de elección más compactas: cuatro por fila, ícono a la izquierda */
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database .dbv-bar{padding:14px 18px 16px;margin-bottom:12px}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database .dbv-head h3{font-size:17px;margin:2px 0 0}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database .dbv-group-title{margin:12px 0 7px;font-size:11.5px;letter-spacing:.06em}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database .dbv-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database .dbv-card{padding:10px 30px 10px 10px!important;gap:10px;min-height:0!important;align-items:center;border-top-width:3px}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database .dbv-card .vl-type-symbol{min-width:36px;width:36px;height:36px;font-size:13px;border-radius:10px}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database .dbv-card strong{font-size:14px}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database .dbv-card small{font-size:11.5px;margin-top:2px;line-height:1.35}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database .dbv-card[aria-pressed=true]::after{top:7px;right:8px;width:18px;height:18px;font-size:11px}
/* El índice original queda como fuente; se muestra el «Ir a» fijo */
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database .dbv-bar .dbv-index{display:none!important}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database > .r105-db-goto{order:1!important;position:sticky;top:100px;z-index:6;display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 14px;padding:8px 12px;background:color-mix(in srgb,var(--module-glow,#9cc3ff) 16%,#fff);border:2px solid var(--module-ink,#354252);border-radius:12px;box-shadow:0 6px 18px #12334b1f}
#section-database > .r105-db-goto[hidden]{display:none!important}
#section-database .r105-goto-lead{font:700 13px Arial,Helvetica,sans-serif;color:var(--module-ink,#354252)}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database .r105-goto-chip{border:2px solid var(--module-ink,#354252);background:#fff;color:var(--module-ink,#354252);border-radius:999px;padding:4px 12px;font:700 12.5px Arial,Helvetica,sans-serif;cursor:pointer}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database .r105-goto-chip.is-first{background:var(--module-accent,#53647d);border-color:var(--module-accent,#53647d);color:#fff}
#section-database .r105-goto-chip:focus-visible{outline:3px solid var(--module-glow,#9cc3ff);outline-offset:2px}
/* Búsqueda, Limpiar y paginación en una línea */
#section-database .r105-db-search{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 14px;margin:6px 0 12px}
#section-database .r105-db-search > form{flex:1 1 520px;margin:0!important}
#section-database .r105-db-search > #databasePagination{margin:0!important;flex:1 1 auto;max-width:100%;flex-wrap:wrap;align-items:center;font-size:12.5px}
/* Botones de cabecera (Excel / CSV) más chicos */
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database #vpDatabase .card-title-row .btn{padding:6px 12px!important;font-size:13px!important;min-height:0!important}
/* Tabla agrupada */
#section-database table.r105-db-table{font-size:12.5px;border-collapse:separate;border-spacing:0}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database table.r105-db-table th,html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database table.r105-db-table td{padding:7px 9px;vertical-align:middle}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database table.r105-db-table thead th{font-size:11.5px;line-height:1.25;white-space:normal;min-width:70px}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database table.r105-db-table tr.r105-groups td{padding:6px 10px;font:700 10.5px Arial,Helvetica,sans-serif;letter-spacing:.07em;text-transform:uppercase;color:var(--module-ink,#354252);background:color-mix(in srgb,var(--module-glow,#9cc3ff) 20%,#fff);border-bottom:2px solid var(--module-ink,#354252);text-align:center}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database table.r105-db-table tr.r105-groups td + td{border-left:2px solid #fff}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database table.r105-db-table thead tr:not(.r105-groups) th{background:#f6f9fc!important}
#section-database td.r105-val .method-summary{display:none}
#section-database table.r105-db-table td:nth-child(20) > br{display:none}
/* Carga y Producto fijos al desplazar a la derecha */
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database table.r105-db-table :is(tbody td,thead tr:not(.r105-groups) th):nth-child(1){position:sticky;left:0;z-index:2;min-width:64px}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database table.r105-db-table tbody td:is(:nth-child(1),:nth-child(2)){background:#fff}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database table.r105-db-table :is(tbody td,thead tr:not(.r105-groups) th):nth-child(2){position:sticky;left:var(--r105-c1,64px);z-index:2;min-width:190px;max-width:220px;box-shadow:inset -2px 0 0 color-mix(in srgb,var(--module-ink,#354252) 35%,#fff)}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database table.r105-db-table tbody tr:is(.row-closed,.row-not-closed) td:is(:nth-child(1),:nth-child(2)){background:inherit}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database table.r105-db-table tbody td:nth-child(1){white-space:nowrap;font-weight:700}
/* Botones chicos con ícono */
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database table.r105-db-table .btn.r105-btn-icon{font-size:0!important;padding:4px!important;min-height:0!important;width:28px;height:28px;display:inline-grid;place-items:center;border-radius:8px!important;margin:1px 2px;vertical-align:middle;box-shadow:none!important}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database table.r105-db-table .btn.r105-btn-icon svg{width:15px;height:15px;margin:0!important}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database table.r105-db-table .btn.r105-btn-short{font-size:0!important;padding:4px 9px!important;min-height:0!important;border-radius:8px!important;display:inline-flex;align-items:center;gap:0;white-space:nowrap;margin:1px 2px;box-shadow:none!important}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database table.r105-db-table .btn.r105-btn-short::after{content:attr(data-r105-short);font-size:12px;font-weight:700}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database table.r105-db-table .btn.r105-btn-short svg{width:14px;height:14px;margin:0 5px 0 0!important}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database table.r105-db-table .btn.danger.r105-btn-icon{background:#fff!important;color:#b42318!important;border:2px solid #b42318!important}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database table.r105-db-table td:nth-child(1) [data-load-number]{width:24px;height:24px;margin-left:6px}
#section-database table.r105-db-table td:nth-child(15){white-space:nowrap}
#section-database table.r105-db-table td:nth-child(16) b{margin-right:4px}
/* Producto: riesgo y «Cambiar riesgo» en una línea */
#section-database .r105-risk > small:not(.r105-risk-line),#section-database .r105-risk > br{display:none}
#section-database .r105-risk{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:2px}
#section-database .r105-risk-line{font-size:11.5px;color:#4b5c6c}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database table.r105-db-table .r105-risk [data-product-risk]{background:none!important;border:0!important;padding:0!important;color:var(--module-accent,#53647d)!important;text-decoration:underline;box-shadow:none!important}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database table.r105-db-table .r105-risk [data-product-risk]::after{font-size:11.5px}
#section-database .r105-risk [data-product-risk] svg{display:none}
/* Dosis · forma en una línea */
#section-database td.r105-dose{white-space:nowrap}
#section-database td.r105-dose .db-dosage-form{display:inline;font-size:inherit}
#section-database td.r105-dose .db-dosage-form::before{content:" · "}
#section-database td.r105-dose .vp-composition-summary{display:none}
/* Estados con color, una línea por carga (el detalle queda en la ayuda emergente) */
#section-database td.r105-line{font-size:0!important;line-height:0;white-space:nowrap}
#section-database td.r105-line > :is(small,.help,div:not(.tag)){display:none!important}
#section-database td.r105-line > br{display:none}
#section-database td.r105-line .tag{font-size:11.5px;line-height:1.5;display:inline-block}
#section-database td.r105-line .btn{line-height:1}
#section-database table.r105-db-table td:nth-child(13) > small.help{font-size:12px}
#section-database td.r105-intake .intake-database-item > :not(a){display:none}
#section-database td.r105-intake .intake-database-item{display:inline}
/* Antecedentes y revalidaciones: plegado */
.r105-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database .lifecycle-card.r105-fold{padding:12px 18px!important}
#section-database .lifecycle-card.r105-fold .card-title-row{margin:0;align-items:center}
#section-database .lifecycle-card.r105-fold .card-title-row .subtitle,#section-database .lifecycle-card.r105-fold .lifecycle-icon{display:none}
#section-database .r105-fold-btn{display:flex;align-items:center;gap:8px;border:0;background:none;padding:4px 0;font:700 15px Arial,Helvetica,sans-serif;color:var(--module-ink,#354252);cursor:pointer;text-align:left}
#section-database .r105-fold-btn small{font-weight:400;color:#5c6b78;font-size:12.5px}
#section-database .r105-caret{width:0;height:0;border-left:7px solid currentColor;border-top:5px solid transparent;border-bottom:5px solid transparent;transition:transform .15s}
#section-database .r105-open .r105-caret{transform:rotate(90deg)}
#section-database .r105-fold-btn:focus-visible{outline:3px solid var(--module-glow,#9cc3ff);outline-offset:3px;border-radius:6px}
#section-database .lifecycle-card.r105-fold:not(.r105-open) .r105-fold-body{display:none}
#section-database .lifecycle-card.r105-open .r105-fold-body{margin-top:10px}
@media (max-width:900px){html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database .dbv-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database > .r105-db-goto{top:84px}
 html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database table.r105-db-table :is(tbody td,thead tr:not(.r105-groups) th):nth-child(2){position:static;box-shadow:none;min-width:150px}}
}
@media screen{
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database table.r105-db-table td:last-child{white-space:nowrap}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database table.r105-db-table .btn:is(.r105-btn-icon,.r105-btn-short){min-width:0!important;width:auto;flex:none}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database table.r105-db-table .btn.r105-btn-icon{width:28px!important;display:inline-grid!important}
html body.vp-workspace.authenticated:not(#r105):not(#r105b) #section-database table.r105-db-table .btn.r105-btn-short{display:inline-flex!important}
}
