/* Por defecto: mostrar nombre completo, ocultar inicial */
.company-card .label-full { display: inline; }
.company-card .label-initial { display: none; }

/* Cuando el contenedor es estrecho (≈ col-1), mostramos inicial y ocultamos el texto largo.
   Ajusta el breakpoint si tu layout difiere. */
@media (max-width: 1200px) {
    .sidebar-col-compact .company-card .label-full { display: none; }
    .sidebar-col-compact .company-card .label-initial {
        display: inline-block;
        width: 1.2ch; 
    }
}
/* Asegura capitalización */
.company-card .label-initial { text-transform: uppercase; }

.pdf-table{border-collapse:collapse;width:100%;font:14px system-ui;}
.pdf-table th,.pdf-table td{border:1px solid #ccc;padding:6px 8px;vertical-align:top;}
.pdf-table th{background:#f7f7f7;font-weight:600;}



.cols-tools { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.board-wrap { border: 1px solid var(--border); border-radius:12px; background:#fff; padding:8px; }


.kanban-wrapper {
    position: relative;
    min-height: 200px; /* por si está vacío */
}

.kanban-loading-inside {
    position: absolute;
    inset: 0;                   /* ocupa solo el área del board */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.35); /* solo sobre el kanban */
    z-index: 10;
    pointer-events: none;       /* no bloquea scroll/click si no quieres */
}
.table-scroll-x {
    overflow-x: auto;
    width: 100%;
}

.table-scroll-x table {
    min-width: max-content; /* fuerza ancho por columnas */
}
/* modla imagens ,files, video previe tree*/
/* Overlay base */
#lbx {
  position: fixed;   /* ← NO absolute, NO relative */
  inset: 0;
  z-index: 9999;
}
.lbx-overlay {
    position: fixed;
    inset: 0;
    z-index: 1060;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.lbx-overlay--open {
    opacity: 1;
    pointer-events: all;
}

/* Barra superior */
.lbx-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
}
.lbx-title {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lbx-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lbx-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
    backdrop-filter: blur(4px);
}
.lbx-btn:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
    transform: scale(1.05);
}
.lbx-close:hover {
    background: rgba(220, 50, 50, 0.6);
}

/* Contenedor del media */
.lbx-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 24px 48px;
    box-sizing: border-box;
}
.lbx-media-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    animation: lbx-fade-scale 0.3s ease forwards;
}

/* Imagen */
.lbx-img {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}
.lbx-img:active {
    cursor: zoom-out;
}

/* PDF */
.lbx-pdf-wrap {
    width: 100%;
    height: calc(100vh - 140px);
}
.lbx-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Video */
.lbx-video-wrap {
    max-width: min(900px, 90vw);
    width: 100%;
}
.lbx-video {
    width: 100%;
    max-height: calc(100vh - 140px);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    display: block;
}

/* Hint ESC */
.lbx-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.35);
    font-size: 12px;
    letter-spacing: 0.03em;
    pointer-events: none;
}
.lbx-hint kbd {
    font-family: inherit;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 11px;
}

/* Animación entrada */
@keyframes lbx-fade-scale {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}


