/* ********************************************************************************************************************
 * LAYOUT
 * ********************************************************************************************************************/

/*
 * El footer del tema Falcon usa position: absolute; bottom: 0, por lo que queda fuera del flujo normal
 * y se superpone al último tramo del contenido. Reservamos espacio equivalente a su altura.
 */
.main > .container-fluid {
    padding-bottom: 3.5rem;
}

/* ********************************************************************************************************************
 * BODY
 * *********************************************************************************************************************/

:root {
    --step: 20px;  /* incremento por nivel a partir del 2 */
    --base: 10px;  /* padding de nivel 2 */
    --icon-font-size: 1.25rem;
    --licitae-offcanvas-body-color: #fff;
    --licitae-offcanvas-width: 38%;
    --licitae-navbar-color: #32a2bd;
    --licitae-navy-blue: #03036a;
    --licitae-azure-blue: #2c7be5;
    --licitae-teal: #20c997;
    --licitae-kelly-green: #51a52b;
    --licitae-dartmouth-green: #006633;
    --licitae-charcoal: #344055;
    --licitae-pink: #d63384;
    --licitae-yellow: #e1a900;
    --licitae-form-label-color: #3e3e3e;
    --licitae-form-help-color: #585858;
    --licitae-modal-color: #313944;
    --licitae-hover-background-color-nav-items: #ffffff2e;

    /* Alias de escala de grises de Falcon (--falcon-gray-N no disponible como --falcon-N) */
    --falcon-50:  #fafbfc;
    --falcon-100: #f9fafd;
    --falcon-200: #edf2f9;
    --falcon-400: #b6c1d2;
    --falcon-500: #9da9bb;
    --falcon-600: #748194;
    --falcon-700: #5e6e82;
    --falcon-800: #4d5969;
    --falcon-900: #344050;
}

/* ********************************************************************************************************************
 * NOTIFICACIONES
 * *********************************************************************************************************************/

@keyframes bell-ring-intermittent {
    0%, 20% { transform: rotate(0deg); }
    2% { transform: rotate(-5deg); }
    4% { transform: rotate(5deg); }
    6% { transform: rotate(-5deg); }
    8% { transform: rotate(5deg); }
    10% { transform: rotate(-3deg); }
    12% { transform: rotate(3deg); }
    14% { transform: rotate(-2deg); }
    16% { transform: rotate(2deg); }
    18% { transform: rotate(-1deg); }
    20%, 100% { transform: rotate(0deg); }
}

.notification-bell-ring {
    animation: bell-ring-intermittent 6.5s ease-in-out infinite;
    transform-origin: center top;
}

.notification-bell-indicator::before {
    position: absolute;
    content: "";
    right: -0.175rem;
    top: -0.25rem;
    height: 0.55rem;
    width: 0.55rem;
    border-radius: 50%;
    border: 2px solid var(--falcon-notification-indicator-border-color);
}

/* ********************************************************************************************************************
 * NAV
 * *********************************************************************************************************************/

.navbar {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.navbar-top {
    min-height: min-content;
}

.nav-link.dropdown-toggle:hover,
.navbar-toggler-humburger-icon:hover,
.navbar-toggler-humburger-icon:focus {
    background-color: var(--licitae-hover-background-color-nav-items) !important;
}

.navbar-toggle-icon .toggle-line,
.navbar-toggle-icon:after,
.navbar-toggle-icon:before {
    background-color: var(--falcon-gray-300);
}

.logo {
    height: auto;
}

.logo-small {
    width: 90px;
}

.logo-large {
    width: 180px;
}

.logo:hover {
    opacity: .65;
    transition: opacity .15s ease-in;
}

.navbar-logo {
    width: 90px;
}

@media (min-width: 992px) {
    .navbar-logo {
        width: 180px;
    }
}

.submodule-selector {
    border-top: 2px solid #00000033;
}

.submodule-selector-item {
    color: inherit;
    border: 0 !important;
    padding: 0.3125rem 0.75rem !important;
}

.submodule-selector-item.active {
    background-color: rgba(206, 208, 239, 0.35);
    font-weight: 600;
}

.submodule-selector-item:hover {
    background-color: var(--licitae-hover-background-color-nav-items);
}

.navbar .dropdown-item:not(.active):hover,
.navbar .dropdown-item:not(.active):focus,
.dropdown-item:not(.active):hover,
.dropdown-item:not(.active):focus {
    background-color: #f1f1f1;
}

a.dropdown-item:hover {
    color: black !important;
}

.dropdown-item.active:hover, .dropdown-item.active:focus {
    background-color: #358afb;
}

.nav-link:hover {
    background-color: #0093ff2b;
}

.nav-tabs .nav-link {
    padding: 0.6rem;
}

.nav-tabs.level-nav-tabs {
    border: 0 !important;
}

.nav-tabs.level-nav-tabs > li > a::after {
    content: "|";
    font-weight: normal;
    color: #666;
    margin-inline: 0.05rem;
}

.nav-tabs.level-nav-tabs > li:last-child > a::after {
    content: "";
}

/* ********************************************************************************************************************
 * COLORES
 * ********************************************************************************************************************/

.bg-note {
    background: #fcffd2
}

.bg-purple {
    background-color: var(--falcon-purple) !important;
}

.bg-pink {
    background-color: var(--licitae-pink) !important;
}

.bg-charcoal {
    background-color: var(--licitae-charcoal) !important;
}

.bg-light-gray {
    background-color: #F7F7F7 !important;
}

.bg-orange {
    background-color: var(--falcon-orange) !important;
}

.bg-yellow {
    background-color: var(--licitae-yellow) !important;
}

.bg-licitae-navbar {
    background-color: var(--licitae-navbar-color);
}

.bg-navy-blue {
    background-color: var(--licitae-navy-blue);
}

.bg-teal {
    background-color: var(--licitae-teal) !important;
}

.bg-kelly-green {
    background-color: var(--licitae-kelly-green);
}

.text-dartmouth-green {
    color: var(--licitae-dartmouth-green);
}

.bg-dartmouth-green {
    background-color: var(--licitae-dartmouth-green);
}

.border-dartmouth-green {
    border-color: var(--licitae-dartmouth-green) !important;
}

.obligatorio {
	background-color: lightyellow !important;
}

.text-azure-blue {
    color: var(--licitae-azure-blue);
}

.border-azure-blue {
    border-color: var(--licitae-azure-blue) !important;
}

/* ********************************************************************************************************************
 * LOGIN
 * ********************************************************************************************************************/

.login-panel {
  margin-top: 10% !important;
}

.login-card {
  width: 35%;
}

/* ********************************************************************************************************************
 * Acordeón
 * ********************************************************************************************************************/

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

#accordionAvisosAplicacion .accordion-button::after {
    filter: brightness(0) invert(1); /* Hace el icono blanco */
}

/* ********************************************************************************************************************
 * MODAL
 * ********************************************************************************************************************/

@media (min-width: 1024px) {
    .modal-lg {
        max-width: 100ch;
    }
}

@media (max-width: 1022px) {
    .modal-lg {
        max-width: 98%;
    }
}

.modal-header .btn-close {
    padding: 0.1rem !important;
}

.modal-body {
    max-height: 60vh;
}

.modal-footer {
    padding-top: 0.25rem !important;
    padding-inline: 1rem !important;
}

.modal-content {
    color: var(--licitae-modal-color);
}

.tox-editor-container {
    background-color: white !important;
}

/* Garantizar altura mínima usable para editores TinyMCE en modales */
.modal-body .tox-tinymce {
    min-height: 220px;
}

/* ********************************************************************************************************************
 * MODAL de SUGERIR
 * ********************************************************************************************************************/

.suggestion-card {
    flex: 0 0 49%;
    max-width: 49%;
    overflow: hidden;
    transition:
            max-width 0.5s ease-in-out,
            flex-basis 0.5s ease-in-out,
            transform 0.3s ease-out,
            opacity 0.3s ease-out,
            box-shadow 0.3s ease-out;
    will-change: transform, opacity;
}

.suggestion-card.is-active {
    z-index: 2;
    flex-basis: 100%;
    max-width: 100%;
    opacity: 1;
}

.suggestion-card.is-inactive {
    flex-basis: 0;
    max-width: 0;
    max-height: 0;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.modal-dialog {
    transition: max-width 0.3s ease-in-out !important;
}

/* ********************************************************************************************************************
 * TABLAS
 * ********************************************************************************************************************/

.table>:not(caption)>*>* {
    padding: 0.35rem;
    vertical-align: middle;
}

th {
    padding: 0.5rem !important;
}

.table-hover > tbody > tr:hover > * {
    --falcon-table-color-state: #484848;
    --falcon-table-bg-state: #0093ff1c;
}

.offcanvas,
.table > :not(caption) > * > *,
.table a.link-unstyled {
    color: var(--falcon-table-color-state, var(--falcon-table-color-type, #4f5863));
}

.table a:hover {
    color: rgba(var(--falcon-link-color-rgb), var(--falcon-link-opacity, 1));
}

.borderless-top {
    border-top: 0px solid white !important;
}

table th.th-acciones,
table td.td-acciones {
    width: 40px;
}

.no-margin tr td:first-child {
    padding-left: 0.35rem !important;
}

table tr td:last-child {
    padding-right: 0.35rem !important;
}

.table-with-status tr.tr-status--EN_PREPARACION,
.table-with-status tr.tr-status--CONTRATO,
.table-with-status tr.tr-status--LICITACION {
    border-left: 2px solid var(--licitae-navy-blue);
}

.table-with-status tr.tr-status--CANCELADO,
.table-with-status tr.tr-status--DENEGADA,
.table-with-status tr.tr-status--CERRADO,
.table-with-status tr.tr-status--ANULADO,
.table-with-status tr.tr-status--DESIERTO,
.table-with-status tr.tr-status--RENUNCIA,
.table-with-status tr.tr-status--RESCINDIDO,
.table-with-status tr.tr-status--ERROR_ANULADO,
.table-with-status tr.tr-status--ERROR_DENEGADO,
.table-with-status tr.tr-status--ERROR_GENERADA,
.table-with-status tr.tr-status--RECHAZADA,
.table-with-status tr.tr-status--RECHAZADO,
.table-with-status tr.tr-status--RECHAZADO_PORTAFIRMAS,
.table-with-status tr.tr-status--ANULADA {
    border-left: 2px solid var(--falcon-danger);
}

.table-with-status tr.tr-status--PTE_APROBACION,
.table-with-status tr.tr-status--APROBADO,
.table-with-status tr.tr-status--APROBADO_PTE_PUBLICACION,
.table-with-status tr.tr-status--PUBLICADO,
.table-with-status tr.tr-status--EN_VALORACION_OFERTAS,
.table-with-status tr.tr-status--VALORADO_PTE_ADJUDICACION,
.table-with-status tr.tr-status--ADJUDICADO_PTE_FORMALIZACION,
.table-with-status tr.tr-status--FORMALIZADO {
    border-left: 2px solid var(--falcon-primary);
}

.table-with-status tr.tr-status--EN_EJECUCION,
.table-with-status tr.tr-status--ADJUDICADO,
.table-with-status tr.tr-status--REVISADA_CONTABILIDAD,
.table-with-status tr.tr-status--CONFIRMADO_RESERVA_CREDITO,
.table-with-status tr.tr-status--GENERADA,
.table-with-status tr.tr-status--RESUELTO,
.table-with-status tr.tr-status--RECIBIDA_DESTINO,
.table-with-status tr.tr-status--CONFORMADA,
.table-with-status tr.tr-status--CONTABILIZADA_OBLIGACION {
    border-left: 2px solid var(--licitae-kelly-green);
}

.table-with-status tr.tr-status--DESISTIDO,
.table-with-status tr.tr-status--DESIERTO,
.table-with-status tr.tr-status--RENUNCIADO {
    border-left: 2px solid black;
}

.table-with-status tr.tr-status--RETIRADO_PORTAFIRMAS,
.table-with-status tr.tr-status--ESPERANDO_REVISION,
.table-with-status tr.tr-status--DESLICITAR,
.table-with-status tr.tr-status--ESPERANDO_OFERTAS_Y_VALORACION {
    border-left: 2px solid var(--falcon-orange);
}

.table-with-status tr.tr-status--PENDIENTE_PORTAFIRMAS,
.table-with-status tr.tr-status--REGISTRADA,
.table-with-status tr.tr-status--REGISTRADA_EN_RCF {
    border-left: 2px solid var(--falcon-info);
}

.table-with-status tr.tr-status--FIRMADO_PORTAFIRMAS,
.table-with-status tr.tr-status--VERIFICADA_EN_RCF,
.table-with-status tr.tr-status--PAGADA {
    border-left: 2px solid var(--licitae-dartmouth-green);
}

.table-with-status tr.tr-status--SUSPENDIDO {
    border-left: 2px solid var(--falcon-orange);
}

.table-with-status tr.tr-status--ADJUDICADO_PTE_FORMALIZACION_EXP_SIN_LOTES,
.table-with-status tr.tr-status--FORMALIZADO_EXP_SIN_LOTES,
.table-with-status tr.tr-status--ADJUDICADO_PTE_FORMALIZACION_EXP_CON_LOTES {
    border-left: 2px solid var(--falcon-primary);
}

.table-with-status tr.tr-status--PARCIALMENTE_ADJUDICADO {
    border-left: 2px solid var(--falcon-info);
}

.table-with-status tr.tr-status--PARCIALMENTE_RESUELTO {
    border-left: 2px solid var(--licitae-teal);
}

.table-with-status tr.tr-status--PENDIENTE_CESION,
.table-with-status tr.tr-status--ACEPTADA_CESION,
.table-with-status tr.tr-status--RECHAZADA_CESION {
    border-left: 2px solid var(--falcon-purple);
}

tr.tarea-child-hidden {
    display: none !important;
}

tr.total-amounts {
    border-left: 0;
    border-top: 2px solid rgba(var(--falcon-dark-rgb), 1) !important;
    border-right: 0;
    border-bottom: 0;
    font-weight: 700 !important;
    text-align: right !important;
}

tr.total-amounts > td {
    border-left: 0;
    border-right: 0;
}

/* *************************
 * NIVELES
 * **************************/

.nivel-0 { --nivel: 0; }
.nivel-1 { --nivel: 1; }
.nivel-2 { --nivel: 2; }
.nivel-3 { --nivel: 3; }
.nivel-4 { --nivel: 4; }

td.nivel-2 > *:first-child::before,
td.nivel-3 > *:first-child::before,
td.nivel-4 > *:first-child::before {
    content: '⤷';
    color: #666;
    margin-left: -5px;
    padding-right: 5px;
}

td:is(.nivel-2, .nivel-3, .nivel-4) > *:first-child {
    padding-left: calc((var(--nivel) - 2) * var(--step) + var(--base));
}

/* ********************************************************************************************************************
 * TIMELINE
 * ********************************************************************************************************************/

.timeline-vertical .timeline-item {
    position: relative;
    height: 2.5em;
}

.timeline-vertical .timeline-item:not(:last-child)::before {
    left: 4% !important;
}

.timeline-vertical .timeline-icon {
    left: 4% !important;
}

.timeline-vertical .timeline-item-start .timeline-item-time {
    padding-left: 10rem;
}

.timeline-vertical .timeline-item-time {
    margin-top: 0 !important;
}

.help-block-timeline {
    color: var(--licitae-form-help-color);
    font-size: 0.9rem;
    margin-left: 1.5rem;
}

/* ********************************************************************************************************************
 * ICONOS
 * ********************************************************************************************************************/

.icon-item-estado {
    align-items: start;
    border: none !important;
}

.rotated-icon-fijar-cabeceras {
  transform: rotate(35deg);
}

.icon-width-1em {
    width: 1em !important;
}

.icon-xxs {
    font-size: calc(0.6 * var(--icon-font-size));
}

.icon-xs {
    font-size: calc(0.7 * var(--icon-font-size));
}

.icon-sm {
    font-size: calc(0.8 * var(--icon-font-size));
}

.icon-md {
    font-size: calc(1 * var(--icon-font-size));
}

.icon-yellow {
    color: var(--licitae-yellow);
}

.icon-blue {
    color: var(--falcon-link-color);
}

a.animated-icon-hover {
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

a.animated-icon-hover .animated-icon {
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

a.animated-icon-hover:hover .animated-icon {
    opacity: 1;
    transform: translateX(0);
}

a.animated-icon-hover:hover {
    color: var(--falcon-primary);
}

.icon-place-mb {
    margin-bottom: 0.06rem !important;
}

/* ********************************************************************************************************************
 * OFFCANVAS
 * ********************************************************************************************************************/

.offcanvas {
    --licitae-offcanvas-bg-opacity: 1;
    background-color: var(--licitae-offcanvas-body-color), var(--licitae-offcanvas-bg-opacity);
}

.offcanvas-title {
    font-weight: 500;
}

.offcanvas-header-color {
    background-color: var(--licitae-navbar-color);
}

.offcanvas-body {
  background-color: white;
  height: 100%;
}

.offcanvas.offcanvas-end {
 	width: var(--licitae-offcanvas-width);
}

.offcanvas-open {
    padding-right: 38%;
    transition: padding 350ms;
}

.offcanvas-close {
    transition: padding 350ms;
}

.element-with-offcanvas-open {
    background-color: #9fd0ff91 !important;
}

.element-with-offcanvas-open .btn-link {
    color: #000000
}

.offcanvas-header .btn-close-falcon:after,
.offcanvas-header .btn-close-falcon:before {
    background-color: white !important;
}

@media (width <= 1400px) {
    .offcanvas.offcanvas-end {
        width: clamp(320px, 90vw, 420px);
        max-width: 100vw;
    }

    .offcanvas-open {
        padding-right: 0 !important;
    }

    .offcanvas-close {
        transition: none;
    }
}

/* ********************************************************************************************************************
 * CARD
 * *********************************************************************************************************************/

.card-header,
.card-body {
    color: var(--licitae-modal-color);
}

.detail-card {
    width: 100%;
    max-width: 1500px;
}

/* ********************************************************************************************************************
 * BOTONES WELCOME
 * ********************************************************************************************************************/

.button-welcome {
    border-radius: 1rem;
    width: 220px;
    height: 220px;
}

.button-welcome:hover {
    opacity: 0.85;
    transition: opacity .15s ease-in;
}

.button-welcome > img {
    height: 110px;
}

/* ********************************************************************************************************************
 * BOTONES IA
 * ********************************************************************************************************************/

.buttonIaStyle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    background: linear-gradient(60deg, #32A2BD, #32A2BD, #33c7da, #32A2BD, #32A2BD);
    background-size: 200% 100%;
    animation: gradient-move 12s ease infinite;
    box-shadow: 0 0 6px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.buttonIaStyle:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.6);
    text-decoration: none;
    color: #fff;
}

@keyframes gradient-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.buttonIaStyle .logoLicitaeIa {
    height: 22px;
    filter: brightness(0) invert(1); /* asegura contraste sobre fondo */
}

/* ********************************************************************************************************************
 * FORMULARIOS
 * ********************************************************************************************************************/

.help-block {
    color: var(--licitae-form-help-color);
    font-size: 0.9rem;    
}

.form-label {
    color: var(--licitae-form-label-color);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.form-file-dropzone {
    position: relative;
    width: 100%;
    min-height: 8rem;
    padding: 1.5rem;
    border: 2px dashed var(--falcon-gray-400, #cbd5e1);
    background-color: #fff;
    color: var(--falcon-gray-700, #495057);
    text-align: center;
    cursor: pointer;
    border-radius: var(--falcon-border-radius);
    height: auto;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-file-dropzone-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    pointer-events: none;
    max-width: 100%;
}

.form-file-dropzone-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    background-color: var(--falcon-blue, #0d6efd);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0.35rem 0.8rem rgba(13, 110, 253, 0.2);
    white-space: nowrap;
    pointer-events: none;
}

.form-file-dropzone-text {
    font-size: 0.95rem;
    color: var(--falcon-gray-600, #5c636a);
    max-width: 100%;
    word-break: break-word;
}

.form-file-dropzone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.form-file-dropzone-input:focus {
    outline: none;
}

.form-file-dropzone--required {
    border-color: lightgray;
    background-color: lightyellow;
}

.form-file-dropzone:hover,
.form-file-dropzone:focus-within,
.form-file-dropzone--dragging {
    border-color: var(--falcon-blue, #0d6efd);
    background-color: #f0f7ff;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-file-dropzone:hover .form-file-dropzone-button,
.form-file-dropzone:focus-within .form-file-dropzone-button,
.form-file-dropzone--dragging .form-file-dropzone-button {
    background-color: #0b5ed7;
}

.form-file-dropzone--has-file .form-file-dropzone-text {
    color: var(--falcon-gray-800, #343a40);
    font-weight: 600;
}

textarea.field-sizing-content {
    field-sizing: content;
}

.icono-card {
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
    border-radius: 8px;
}

.icono-card:hover {
    border-color: #ccc;
}

input[type="radio"]:checked + .icono-card {
    border-color: #007bff;
    background-color: #e9f3ff;
    box-shadow: 0 0 0 2px #007bff33;
}

/* ********************************************************************************************************************
 * Select2
 * ********************************************************************************************************************/

span.select2-selection.obligatorio {
    background-color: lightyellow !important;
}

span.select2-selection.obligatorio > .select2-selection__rendered {
    background-color: lightyellow !important;
}

span.select2-selection.obligatorio > .select2-search > .select2-search__field {
    background-color: lightyellow !important;
}

/* ********************************************************************************************************************
 * CHARTS
 * ********************************************************************************************************************/

.echart {
    width: 100%;
}

/* ********************************************************************************************************************
 * VARIOS
 * ********************************************************************************************************************/

.dropzone {
    border: none;
}

.striped:nth-child(odd) {
    background: #d8e2ef33;
}

.link-disabled {
    pointer-events: none;
    color: grey
}

.breadcrumb-text > a {
    color: inherit;
}

.sangriaConFlecha:before {
    content: "⤷";
}

.loading-screen {
    margin: 0;
    z-index: 9999;
    position: fixed;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background: rgba(0,0,0,0.25)
}

.tabular-nums {
    font-variant: tabular-nums;
}

.zindex-one {
    z-index: 1;
}

.overflow-unset {
    overflow: unset !important;
}

.firefox .overflow-unset {
    overflow: unset !important;
}

.spinner-proyecto {
    --falcon-spinner-width: 3rem;
    --falcon-spinner-height: 3rem;
    background-color: transparent;
    opacity: 0;
}

.spinner-grow {
    --falcon-spinner-width: 2rem;
    --falcon-spinner-height: 2rem;
    --falcon-spinner-vertical-align: -0.125em;
    --falcon-spinner-animation-speed: 0.75s;
    --falcon-spinner-animation-name: spinner-grow;
    background-color: currentcolor;
    opacity: 0;
}

.hr-border-like {
    margin-bottom: 1rem;
    color: var(--falcon-border-color);
    border: 0;
    border-bottom: 1px solid;
    opacity: 1;
}

.w-fit-content {
    width: fit-content;
}

.hidden {
    display: none !important;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #e8f0fe;
    color: #111827;
    border: 1px solid #e8e8ef;
    border-radius: 999px;
    padding: .4rem .8rem;
    margin-left: 10px;
    font-size: .875rem;
}

.clickable {
    cursor: pointer;
}

.text-xs {
    font-size: 0.5rem;
}

.text-s {
    font-size: 0.75rem;
}

.text-l {
    font-size: 1.25rem;
}

.text-xl {
    font-size: 1.25rem;
}

.letter-spacing-normal {
    letter-spacing: normal;
}

/* ********************************************************************************************************************
 * MENÚ DE ACCIONES - BOTÓN PRINCIPAL + DROPDOWN
 * ********************************************************************************************************************/

td.td-acciones .btn-group .btn {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.dropdown-separator {
    border-left: 1px solid rgba(0, 0, 0, 0.15);
}

/* Mantener estilos de botón en hover dentro de tablas */
.table a.btn:hover,
.table a.btn:focus {
    color: var(--falcon-btn-hover-color) !important;
    background-color: var(--falcon-btn-hover-bg);
    border-color: var(--falcon-btn-hover-border-color);
}

/* ********************************************************************************************************************
 * Cuadro características
 * ********************************************************************************************************************/

.apartado-vacio {
    padding: 0 5em 1.5em 1.5em;
    font-style: italic;
    color: #AAA !important;
    text-shadow: 1px 1px white;
    margin-bottom: 3em;
}

.cuadro-caracteristicas-index {
    border-radius: 12px;
    padding: 10px 14px;
}

.cuadro-caracteristicas-index .nav-link {
    border-radius: 10px;
    color: #1f1f2d;
    font-weight: 700;
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.cuadro-caracteristicas-index .nav-link:hover,
.cuadro-caracteristicas-index .nav-link:focus {
    background: #2c7be5;
    color: #000;
    transform: scale(1.12);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.25);
}

/* ********************************************************************************************************************
 * INFO COLLAPSIBLE - Componente para mostrar información adicional colapsable
 * ********************************************************************************************************************/

.info-collapsible {
    margin-top: 0.5rem;
}

.info-collapsible-trigger {
    cursor: pointer;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 0;
    text-decoration: none;
}

.info-collapsible-trigger:hover {
    color: var(--falcon-primary) !important;
}

.info-collapsible-trigger:focus {
    outline: none;
    box-shadow: none;
    text-decoration: none;
}

.info-collapsible-chevron {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.info-collapsible-chevron.rotated {
    transform: rotate(180deg);
}

.info-collapsible-content {
    padding-left: 1rem;
}

.info-collapsible-content.collapsing {
    transition: height 0.3s ease;
}

/* ********************************************************************************************************************
 * DOCUMENTACIÓN - Layout de dos columnas: sidebar + contenido
 * ********************************************************************************************************************/

.doc-wrapper {
    display: flex;
    align-items: stretch;
}

/* -- Sidebar: base (compartido desktop y drawer móvil) -- */
.doc-sidebar {
    background-color: #fff;
}

/* -- Sidebar: desktop (inline, dentro del flex) -- */
@media (min-width: 992px) {
    .doc-sidebar {
        width: 240px;
        flex-shrink: 0;
        border-right: 1px solid var(--falcon-border-color, #e3e6ef);
    }

    .doc-sidebar-inner {
        position: sticky;
        top: 1rem;
        max-height: calc(100vh - 6rem);
        overflow-y: auto;
        padding: 0.5rem 0.25rem;
    }
}

/* -- Barra top sticky en móvil -- */
@media (max-width: 991.98px) {
    .doc-mobile-topbar {
        position: sticky;
        top: 0;
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        background: #fff;
        border-bottom: 1px solid var(--falcon-border-color, #e3e6ef);
        padding: 0.55rem 0.75rem;
        margin-bottom: 0.75rem;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
    }

    .doc-mobile-topbar-title {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--falcon-700, #4d5969);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        flex: 1;
    }

    .doc-mobile-topbar-btn {
        flex-shrink: 0;
        background: none;
        border: 1px solid var(--falcon-border-color, #e3e6ef);
        border-radius: 0.25rem;
        padding: 0.25rem 0.6rem;
        font-size: 0.8rem;
        font-weight: 500;
        color: var(--falcon-700, #4d5969);
        cursor: pointer;
        white-space: nowrap;
        transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    }

    .doc-mobile-topbar-btn:hover {
        background-color: var(--falcon-soft-primary, #e8f0fd);
        color: var(--falcon-primary, #2c7be5);
        border-color: var(--falcon-primary, #2c7be5);
    }
}

/* -- Sidebar: drawer en móvil -- */
@media (max-width: 991.98px) {
    .doc-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 280px;
        z-index: 1045;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.12);
    }

    .doc-sidebar.doc-sidebar--open {
        transform: translateX(0);
    }

    .doc-sidebar-inner {
        padding: 0.5rem 0.25rem;
    }

    .doc-content {
        padding: 0.5rem 0.25rem 1rem;
    }
}

/* -- Backdrop (solo móvil) -- */
.doc-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1040;
    cursor: pointer;
}

.doc-sidebar-backdrop.doc-sidebar-backdrop--show {
    display: block;
}

/* -- Títulos de grupo -- */
.doc-sidebar-group-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--falcon-600, #6e7891);
    padding: 0.9rem 0.75rem 0.3rem;
}

.doc-sidebar-group-title:not(:first-child) {
    border-top: 1px solid var(--falcon-border-color, #e3e6ef);
    margin-top: 0.5rem;
}

.doc-sidebar-group-title span {
    background: var(--falcon-100, #f9fafd);
    border: 1px solid var(--falcon-border-color, #e3e6ef);
    border-radius: 0.25rem;
    padding: 0.1rem 0.45rem;
    line-height: 1.6;
}

.doc-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.25rem;
}

.doc-sidebar-item {
    margin: 0;
}

.doc-sidebar-link {
    display: block;
    padding: 0.3rem 0.75rem;
    font-size: 0.85rem;
    color: var(--falcon-700, #4d5969);
    text-decoration: none;
    border-radius: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.doc-sidebar-link:hover {
    background-color: var(--falcon-100, #f9fafd);
    color: var(--falcon-primary, #2c7be5);
    text-decoration: none;
}

.doc-sidebar-link.active {
    background-color: var(--falcon-soft-primary, #e8f0fd);
    color: var(--falcon-primary, #2c7be5);
    font-weight: 600;
}

/* -- Contenido -- */
.doc-content {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 1.5rem 1rem;
}

/* -- Markdown content typography -- */
.doc-markdown-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4d5969;
}

.doc-markdown-content h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--falcon-border-color, #e3e6ef);
    padding-bottom: 0.4rem;
    color: #060606;
}

.doc-markdown-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    color: #1e2e45;
}

.doc-markdown-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
    color: #1e2e45;
}

.doc-markdown-content h4,
.doc-markdown-content h5,
.doc-markdown-content h6 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.35rem;
    color: #1e2e45;
}

.doc-markdown-content p {
    margin-bottom: 0.85rem;
}

.doc-markdown-content ul,
.doc-markdown-content ol {
    padding-left: 1.5rem;
    margin-bottom: 0.85rem;
}

.doc-markdown-content li {
    margin-bottom: 0.25rem;
}

.doc-markdown-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--falcon-border-color, #e3e6ef);
    border-radius: 0.375rem;
    margin: 0.75rem 0;
    display: block;
    cursor: zoom-in;
}

.doc-markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.doc-markdown-content table th,
.doc-markdown-content table td {
    border: 1px solid var(--falcon-border-color, #e3e6ef);
    padding: 0.45rem 0.75rem;
    text-align: left;
    vertical-align: top;
}

.doc-markdown-content table th {
    background-color: var(--falcon-100, #f9fafd);
    font-weight: 600;
    color: #1e2e45;
}

.doc-markdown-content table tr:nth-child(even) {
    background-color: var(--falcon-50, #fafbfc);
}

.doc-markdown-content code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85em;
    background-color: var(--falcon-100, #f9fafd);
    color: #e83e8c;
    padding: 0.15em 0.4em;
    border-radius: 0.25rem;
}

.doc-markdown-content pre {
    background-color: var(--falcon-100, #f9fafd);
    border: 1px solid var(--falcon-border-color, #e3e6ef);
    border-radius: 0.375rem;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
    position: relative;
}

.doc-markdown-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: 0.875rem;
}

.doc-markdown-content blockquote {
    border-left: 4px solid var(--falcon-primary, #2c7be5);
    margin: 0.75rem 0 0.75rem 0;
    padding: 0.5rem 1rem;
    background-color: var(--falcon-soft-primary, #e8f0fd);
    border-radius: 0 0.25rem 0.25rem 0;
    color: var(--falcon-700, #4d5969);
}

.doc-markdown-content a {
    color: var(--falcon-primary, #2c7be5);
    text-decoration: none;
}

.doc-markdown-content a:hover {
    text-decoration: underline;
}

.doc-markdown-content hr {
    border: none;
    border-top: 1px solid var(--falcon-border-color, #e3e6ef);
    margin: 1.5rem 0;
}

/* -- Heading anchor links -- */
.doc-heading-anchor {
    margin-left: 0.4em;
    font-size: 0.85em;
    color: var(--falcon-400, #b6bfc8);
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    font-weight: 400;
}

.doc-markdown-content h2:hover .doc-heading-anchor,
.doc-markdown-content h3:hover .doc-heading-anchor,
.doc-markdown-content h4:hover .doc-heading-anchor {
    opacity: 1;
}

.doc-heading-anchor:hover {
    color: var(--falcon-primary, #2c7be5);
    text-decoration: none;
}

/* -- Copy button en pre -- */
.doc-copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--falcon-100, #f9fafd);
    border: 1px solid var(--falcon-border-color, #e3e6ef);
    border-radius: 0.25rem;
    padding: 0.2rem 0.45rem;
    font-size: 0.75rem;
    color: var(--falcon-600, #6e7891);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, color 0.15s ease;
    line-height: 1.4;
}

.doc-markdown-content pre:hover .doc-copy-btn {
    opacity: 1;
}

.doc-copy-btn:hover {
    color: var(--falcon-primary, #2c7be5);
    border-color: var(--falcon-primary, #2c7be5);
}

/* -- Navegación prev/next -- */
.doc-nav-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--falcon-border-color, #e3e6ef);
}

.doc-nav-card {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    border: 1px solid var(--falcon-border-color, #e3e6ef);
    border-radius: 0.375rem;
    text-decoration: none;
    min-width: 0;
    flex: 1;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    max-width: 48%;
}

.doc-nav-card:hover {
    border-color: var(--falcon-primary, #2c7be5);
    background-color: var(--falcon-soft-primary, #e8f0fd);
    text-decoration: none;
}

.doc-nav-prev {
    align-items: flex-start;
}

.doc-nav-next {
    align-items: flex-end;
    margin-left: auto;
}

.doc-nav-direction {
    font-size: 0.75rem;
    color: var(--falcon-600, #6e7891);
    font-weight: 500;
}

.doc-nav-title {
    font-size: 0.9rem;
    color: var(--falcon-primary, #2c7be5);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* -- h6: bloque "Última revisión" -- */
.doc-markdown-content h6 {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--falcon-400, #b6bfc8);
    margin-top: 2.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--falcon-border-color, #e3e6ef);
}

.doc-markdown-content h6 + p {
    font-size: 0.8rem;
    color: var(--falcon-400, #b6bfc8);
    margin-bottom: 0;
}

/* ********************************************************************************************************************
 * BREADCRUMB
 * ********************************************************************************************************************/

.lc-breadcrumb-nav {
    padding: 0.375rem 1rem 0;
}

.lc-breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 0;
}

/* Separador chevron entre ítems */
.lc-breadcrumb-item + .lc-breadcrumb-item::before {
    content: '';
    display: inline-flex;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23b0b8c4' d='M6.22 3.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L9.94 8 6.22 4.28a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px 11px;
    margin: 0 1px;
}

.lc-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    font-size: 0.8125rem;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 0;
}

.lc-bc-link {
    display: inline-block;
    padding: 0.2rem 0.45rem;
    border-radius: 5px;
    color: #5e6e82;
    text-decoration: none;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.lc-bc-link:hover {
    background-color: rgba(44, 123, 229, 0.09);
    color: var(--licitae-azure-blue);
}

.lc-breadcrumb-item--active {
    color: var(--licitae-charcoal);
    font-weight: 500;
}

.lc-bc-label {
    display: inline-block;
    padding: 0.2rem 0.45rem;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lc-breadcrumb--collapsed .lc-breadcrumb-item:first-child {
    flex: 0 1 auto;
}

.lc-breadcrumb--collapsed .lc-breadcrumb-item:last-child {
    flex: 1 1 auto;
}

.lc-breadcrumb--collapsed .lc-breadcrumb-item:first-child .lc-bc-link,
.lc-breadcrumb--collapsed .lc-breadcrumb-item:last-child .lc-bc-link,
.lc-breadcrumb--collapsed .lc-breadcrumb-item:last-child .lc-bc-label {
    display: block;
}

.lc-breadcrumb--collapsed .lc-breadcrumb-item:first-child .lc-bc-link,
.lc-breadcrumb--collapsed .lc-breadcrumb-item:first-child .lc-bc-label {
    width: auto;
    max-width: 100%;
}

.lc-breadcrumb--collapsed .lc-breadcrumb-item:last-child .lc-bc-link,
.lc-breadcrumb--collapsed .lc-breadcrumb-item:last-child .lc-bc-label {
    width: 100%;
    max-width: none;
}

/* Botón de elipsis (···) */
.lc-bc-ellipsis {
    position: relative;
}

.lc-bc-ellipsis-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.55rem 0.2rem;
    border: 1px solid #d4dae3;
    border-radius: 5px;
    background-color: transparent;
    color: #7f8fa4;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.lc-bc-ellipsis-btn:hover,
.lc-bc-ellipsis-btn--active {
    background-color: rgba(44, 123, 229, 0.09);
    border-color: #a8b8cc;
    color: var(--licitae-azure-blue);
}

/* Dropdown de ítems ocultos */
.lc-bc-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    min-width: 180px;
    max-width: 300px;
    background-color: #fff;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(50, 65, 90, 0.14);
    padding: 0.3rem 0;
    list-style: none;
    z-index: 1050;
}

.lc-bc-dropdown[hidden] {
    display: none;
}

.lc-bc-dropdown--open {
    display: block;
    animation: lc-bc-fade-in 0.12s ease;
}

@keyframes lc-bc-fade-in {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lc-bc-dd-item {
    display: block;
    padding: 0.4rem 0.9rem;
    font-size: 0.8125rem;
    color: var(--licitae-charcoal);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.lc-bc-dd-item:hover {
    background-color: rgba(44, 123, 229, 0.07);
    color: var(--licitae-azure-blue);
}

span.lc-bc-dd-item {
    color: #9aa5b1;
    font-style: italic;
    cursor: default;
}

/* ********************************************************************************************************************
 * ÁRBOL DE EXPEDIENTES Y CONTRATOS RELACIONADOS - Cuadro de mando de objeto de negocio
 * ********************************************************************************************************************/

.relacionado-tree {
    padding-left: 0;
}

.relacionado-tree-toggler {
    min-width: 1.25rem;
    min-height: 1.25rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
    padding: 0;
    color: var(--falcon-500);
}

.relacionado-tree-toggler-spacer {
    width: 1.25rem;
    min-width: 1.25rem;
    display: inline-block;
    flex-shrink: 0;
}

.relacionado-tree-nodo {
    flex-grow: 1;
    min-width: 0;
    padding: 0.4rem 0.25rem;
    border-radius: 0.25rem;
    transition: background-color 0.1s ease;
}

.relacionado-tree-nodo:hover {
    background-color: var(--falcon-100);
}

.relacionado-tree-root .relacionado-tree-nodo {
    border-left: 2px solid var(--falcon-primary);
    padding-left: 0.4rem;
    border-radius: 0 0.25rem 0.25rem 0;
}

.relacionado-tree-numero {
    font-size: 0.8125rem;
    font-weight: 600;
    flex-shrink: 0;
}

.relacionado-tree-titulo {
    font-size: 0.75rem;
    color: var(--falcon-800);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.relacionado-tree-progress-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.relacionado-tree-progress-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.relacionado-tree-progress-label {
    width: 4.75rem;
    flex: 0 0 4.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--falcon-800);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.relacionado-tree-progress-track {
    flex-grow: 1;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
}

.relacionado-tree-progress-track .progress-bar {
    border-width: 0 !important;
}

.relacionado-tree-progress-pct {
    flex: 0 0 2.75rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.relacionado-tree-nodo .relacionado-tree-link {
    color: inherit;
    text-decoration: none;
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
}

.relacionado-tree-nodo .relacionado-tree-link:hover {
    color: var(--falcon-primary) !important;
    text-decoration: underline;
}

.relacionado-tree .badge {
    font-size: 0.7rem;
}

.relacionado-tree-metricas {
    font-size: 0.6875rem;
    color: var(--falcon-800);
    white-space: nowrap;
    flex-shrink: 0;
}

.relacionado-tree .treeview-list-item + .treeview-list-item {
    border-top: 1px solid var(--falcon-border-color);
    margin-top: 0.125rem;
    padding-top: 0.125rem;
}

.relacionado-tree .treeview-border {
    margin-left: 0.625rem;
    padding-left: 1.125rem !important;
}

.relacionado-tree-detail-button {
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--falcon-primary);
    text-decoration: none;
}

.relacionado-tree .relacionado-tree-detail-button:after {
    content: none;
    display: none;
}

.relacionado-tree-detail-button:hover {
    text-decoration: underline;
}

.relacionado-tree-detail-button-icon {
    transition: transform 0.15s ease;
    font-size: 0.6875rem;
}

.relacionado-tree-detail-button[aria-expanded='true'] .relacionado-tree-detail-button-icon {
    transform: rotate(180deg);
}

.relacionado-tree-detail-summary {
    color: var(--falcon-600);
}

.relacionado-tree-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background-color: var(--falcon-200);
    color: var(--falcon-600);
    font-size: 0.65rem;
    font-weight: 600;
}

.relacionado-tree-detail {
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: linear-gradient(180deg, var(--falcon-100) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.relacionado-tree-detail-tabs {
    border-bottom-color: var(--falcon-border-color);
    gap: 0.25rem;
}

.relacionado-tree-detail-tabs .nav-link {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    border-top-left-radius: 0.4rem;
    border-top-right-radius: 0.4rem;
}

.relacionado-tree-detail-content {
    padding-top: 0.75rem;
}

.relacionado-tree-detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.relacionado-tree-detail-item {
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--falcon-border-color);
    border-radius: 0.5rem;
    background-color: var(--falcon-white);
}

.relacionado-tree-detail-importes {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0.15rem 0.75rem;
    align-self: flex-start;
    font-size: 0.75rem;
    white-space: nowrap;
}

.relacionado-tree-importe-total {
    border-top: 1px solid var(--falcon-border-color);
    padding-top: 0.3rem;
    margin-top: 0.15rem;
}

.relacionado-tree-detail-empty {
    padding: 0.75rem;
    border: 1px dashed var(--falcon-border-color);
    border-radius: 0.5rem;
    color: var(--falcon-600);
    background-color: rgba(255, 255, 255, 0.75);
    font-size: 0.75rem;
}

@media (max-width: 767.98px) {
    .relacionado-tree-nodo .d-flex.flex-nowrap {
        flex-wrap: wrap !important;
    }

    .relacionado-tree-metricas {
        width: 100%;
        padding-left: 0;
        white-space: normal;
    }

    .relacionado-tree-detail-importes {
        width: 100%;
        grid-template-columns: auto 1fr;
    }
}

/* JERARQUÍA RELACIONADO — badge en cabecera */
.relacionado-badge {
    font-size: .78rem;
    font-weight: normal;
    padding: .25em .6em;
    transition: box-shadow .15s;
    max-width: 20rem;
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
}

.relacionado-badge:hover {
    box-shadow: 0 0 0 2px rgba(0,0,0,.12);
}

.relacionado-badge span:first-child {
    flex-shrink: 0;
}

.relacionado-badge span:last-child {
    flex: 1 1 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* JERARQUÍA RELACIONADO — árbol git-log en offcanvas */
.jerarquia-tree {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jerarquia-tree .jerarquia-hijos {
    list-style: none;
    padding-left: 1.25rem;
    border-left: 2px solid #d0d9e6;
    margin-left: 11px;
    margin-top: 2px;
    padding-top: 0;
    padding-bottom: 0;
}

.jerarquia-tree .jerarquia-hijos > .jerarquia-nodo {
    position: relative;
    padding-top: 2px;
    padding-bottom: 2px;
}

.jerarquia-tree .jerarquia-hijos > .jerarquia-nodo::before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 0.88rem;
    width: 1rem;
    height: 2px;
    background: #d0d9e6;
}

.jerarquia-nodo-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.5rem 0.3rem 0.4rem;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: background-color 0.12s;
    text-decoration: none;
    color: inherit;
}

.jerarquia-nodo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #9aacbe;
    background: #fff;
    flex-shrink: 0;
    transition: border-color 0.12s, box-shadow 0.12s;
}

.jerarquia-nodo-row--actual {
    background: rgba(44, 123, 229, 0.08);
    border-radius: 6px;
}

.jerarquia-nodo-row--actual .jerarquia-nodo-dot {
    background: #2c7be5;
    border-color: #2c7be5;
    width: 12px;
    height: 12px;
    box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.2);
}

.jerarquia-nodo-row--actual .jerarquia-nodo-numero {
    font-weight: 700;
    color: #1a2e4a;
}

.jerarquia-nodo-row--actual .jerarquia-nodo-titulo {
    color: #3e4b5b;
}

.jerarquia-nodo-link:hover {
    background: #f0f4fa;
    color: #2c7be5;
    text-decoration: none;
}

.jerarquia-nodo-link:hover .jerarquia-nodo-dot {
    border-color: #2c7be5;
}

.jerarquia-nodo-icon {
    font-size: 0.78rem;
    opacity: 0.6;
    flex-shrink: 0;
}

.jerarquia-nodo-numero {
    font-weight: 600;
    color: #3e4b5b;
    white-space: nowrap;
    font-size: 0.82rem;
}

.jerarquia-nodo-titulo {
    color: #6b7a8d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.82rem;
}

/* ********************************************************************************************************************
 * LAZY SKELETON
 * *********************************************************************************************************************/
.lazy-skeleton {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.lazy-skeleton__line {
    height: 0.85rem;
    border-radius: 4px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: lazy-shimmer 1.4s infinite;
    width: 100%;
}

.lazy-skeleton__line--short {
    width: 40%;
}

.lazy-skeleton__line--medium {
    width: 70%;
}

@keyframes lazy-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
