.wiki-header { background-color:#deebff; height:70px; }
.logo-cloud2eu { height:45px; width:auto; display:block; object-fit:contain; }
.ar-user { align-items:center; gap:.45rem; padding:.3rem .8rem; background:rgba(255,255,255,.75); border:1px solid #c9dcf5; border-radius:999px; color:#1e4e7e; font-size:.82rem; }
.ar-logout { width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; border-radius:10px; color:#475569; transition:background .15s,color .15s; }
.ar-logout:hover { background:#fff; color:#e53e3e; }
/* ===== Cabecera (logo + usuario) ===== */
.mn-header { position:sticky; top:0; z-index:1030; display:flex; align-items:center; justify-content:space-between; height:70px; padding:0 1.5rem; background:linear-gradient(90deg, #1b3fe0 0%, #2b6ef2 45%, #86d8f2 100%); box-shadow:0 4px 18px rgba(27,63,224,.25); }
.mn-logo { display:flex; align-items:center; }
.mn-logo img { height:46px; width:auto; display:block; object-fit:contain; filter:brightness(0) invert(1); }
.mn-right { display:flex; align-items:center; gap:.7rem; }

.mn-pill { display:inline-flex; align-items:center; gap:.5rem; height:40px; padding:0 .9rem 0 .35rem; border-radius:999px; background:rgba(255,255,255,.14); border:1.5px solid rgba(255,255,255,.75); color:#fff; font-size:.85rem; font-weight:500; text-decoration:none; white-space:nowrap; transition:background .15s; }
.mn-pill:hover, .mn-pill.show { background:rgba(255,255,255,.26); color:#fff; }
.mn-pill.dropdown-toggle::after { margin-left:.2rem; }
.mn-avatar { width:28px; height:28px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background:#fff; color:#1f4fd8; font-size:.68rem; font-weight:800; }

.mn-burger { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border:1.5px solid rgba(255,255,255,.75); border-radius:12px; background:rgba(255,255,255,.14); color:#fff; }

.mn-drop { min-width:220px; margin-top:.6rem !important; padding:.5rem; border:1px solid #e2e8f0; border-radius:14px; box-shadow:0 16px 40px rgba(15,23,42,.18); }
.mn-drop .dropdown-item { padding:.55rem .8rem; border-radius:9px; color:#334155; font-size:.85rem; font-weight:500; }
.mn-drop .dropdown-item:hover { background:#e8f0ff; color:#1f66ff; }
.mn-drop .dropdown-item.danger { color:#c53030; }
.mn-drop .dropdown-item.danger:hover { background:#fee2e2; }
.mn-drop-head { margin-bottom:.35rem; padding:.4rem .8rem .6rem; border-bottom:1px solid #eef2f7; }
.mn-drop-head strong { display:block; font-size:.88rem; color:#1e293b; }
.mn-drop-head small { font-size:.72rem; color:#64748b; }

/* ===== Menú lateral ===== */
.mn-sidebar { padding:1rem .75rem 1rem 1rem; background:#f5f8fc; }
.mn-card { display:flex; flex-direction:column; gap:.15rem; padding:.9rem .75rem; background:#fff; border:1px solid #e2e8f0; border-radius:18px; box-shadow:0 8px 28px rgba(31,41,55,.07); }

.mn-panel { display:flex; align-items:center; gap:.7rem; margin-bottom:.5rem; padding:.75rem .85rem; border-radius:14px; background:linear-gradient(135deg, #1f66ff 0%, #5cdaf6 100%); color:#fff; text-decoration:none; box-shadow:0 8px 20px rgba(31,102,255,.28); }
a.mn-panel { transition:transform .1s, box-shadow .15s; }
a.mn-panel:hover { transform:translateY(-1px); color:#fff; box-shadow:0 10px 24px rgba(31,102,255,.38); }
.mn-panel .mn-tile { background:rgba(255,255,255,.22); color:#fff; }
.mn-panel strong { display:block; font-size:.86rem; line-height:1.2; }
.mn-panel small { font-size:.7rem; opacity:.85; }

.mn-label { margin:.7rem .6rem .25rem; font-size:.62rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#94a3b8; }

.mn-item { display:flex; align-items:center; gap:.7rem; width:100%; padding:.4rem .55rem; border:0; border-radius:12px; background:transparent; color:#334155; font-size:.86rem; font-weight:600; text-align:left; text-decoration:none; cursor:pointer; transition:background .15s, color .15s; }
.mn-item:hover { background:#f1f5f9; color:#1e293b; }
.mn-item.has-active { background:#e8f0ff; color:#1f66ff; }
.mn-item.active { background:linear-gradient(135deg, #1f66ff 0%, #3b82f6 100%); color:#fff; box-shadow:0 6px 16px rgba(31,102,255,.3); }
.mn-item.active .mn-tile { background:rgba(255,255,255,.22); color:#fff; }

.mn-tile { width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; border-radius:10px; flex-shrink:0; }
.mn-tile--blue   { background:#e4edff; color:#1f66ff; }
.mn-tile--orange { background:#fff1dc; color:#f59e0b; }
.mn-tile--green  { background:#e3f7ea; color:#16a34a; }
.mn-tile--purple { background:#efe9ff; color:#8b5cf6; }
.mn-tile--pink   { background:#ffe6f1; color:#ec4899; }
.mn-tile--teal   { background:#dcf7f3; color:#0d9488; }

.mn-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mn-chev { flex-shrink:0; color:#94a3b8; transition:transform .2s; }
.mn-item.collapsed .mn-chev { transform:rotate(-90deg); }
.mn-item.active .mn-chev { color:#fff; }

.mn-sub-list { margin:.1rem 0 .3rem 1.4rem; padding:0 0 0 .8rem; border-left:2px solid #e8eef8; list-style:none; }
.mn-sub { display:flex; align-items:center; gap:.55rem; padding:.36rem .6rem; border-radius:9px; color:#64748b; font-size:.8rem; font-weight:500; text-decoration:none; transition:background .15s, color .15s; }
.mn-sub::before { content:""; width:6px; height:6px; border-radius:50%; background:#cbd5e1; flex-shrink:0; }
.mn-sub:hover { background:#f1f5f9; color:#1e293b; }
.mn-sub.active { background:#e8f0ff; color:#1f66ff; font-weight:700; }
.mn-sub.active::before { background:#1f66ff; }
.mn-empty { padding:.35rem .6rem; color:#94a3b8; font-size:.78rem; font-style:italic; }

/* ===== Reparto de ancho ===== */
@media (min-width:768px) {
   .mn-sidebar { flex:0 0 270px; width:270px; max-width:270px; min-height:calc(100vh - 70px); }
.mn-card { position:sticky; top:86px; max-height:calc(100vh - 102px); overflow-y:auto; }
    .mn-sidebar ~ main { flex:1 1 0; width:auto; max-width:none; min-width:0; }
}
@media (min-width:1200px) {
    .mn-sidebar { flex-basis:290px; width:290px; max-width:290px; }
}
@media (max-width:767.98px) {
    .mn-header { padding:0 1rem; }
    .mn-sidebar { position:fixed; top:70px; left:0; bottom:0; width:300px; max-width:88vw; overflow-y:auto; z-index:1040; box-shadow:8px 0 24px rgba(15,23,42,.18); }
    .mn-sidebar.collapsing { transition:none;.mn-card { position:static; max-height:none; overflow:visible; } }
}
@media (max-width:575.98px) {
    .mn-user-name { display:none; }
    .mn-pill { padding:0 .6rem 0 .35rem; }
}

@media (min-width:768px)  { .c2-sidebar { flex:0 0 260px; width:260px; max-width:260px; } .c2-sidebar ~ main { flex:1 1 0; width:auto; max-width:none; min-width:0; } }
@media (min-width:992px)  { .c2-sidebar { flex-basis:290px; width:290px; max-width:290px; } }
.sl-main { background:#f5f8fc; min-height:calc(100vh - 70px); }
.sl-title h2 { font-size:1.5rem; font-weight:700; color:#1e293b; margin:0; }
.sl-title p { color:#64748b; font-size:.88rem; margin:0; }
.sl-info { background:#ebf4ff; border:1px solid #c9dcf5; border-radius:12px; color:#1e4e7e; padding:.75rem 1rem; font-size:.8rem; }

.sl-tab { padding:.5rem 1.1rem; border:1px solid #e2e8f0; border-radius:10px; background:#fff; color:#475569; font-weight:600; font-size:.82rem; text-decoration:none; }
.sl-tab:hover { background:#f1f5f9; color:#1e293b; }
.sl-tab.active { background:#2b6cb0; border-color:#2b6cb0; color:#fff; }
.sl-search { max-width:340px; border-radius:10px; font-size:.82rem; }

.sl-card { background:#fff; border:1px solid #e2e8f0; border-radius:14px; box-shadow:0 6px 24px rgba(33,37,41,.06); overflow:hidden; }
.sl-table { margin:0; font-size:.8rem; }
.sl-table th { font-size:.65rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#64748b; background:#f8fafc; }
.sl-table td { vertical-align:middle; }
.sl-table tbody tr { cursor:pointer; }
.sl-table tbody tr:hover, .sl-table tbody tr.selected { background:#ebf4ff; }

.sl-avatar { width:34px; height:34px; border-radius:50%; background:#e0e7ff; color:#4338ca; font-weight:700; font-size:.75rem; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }
.sl-avatar--lg { width:48px; height:48px; font-size:.95rem; }
.sl-badge { display:inline-block; padding:.2rem .6rem; border-radius:6px; font-size:.7rem; font-weight:600; }
.sl-badge--pendiente { background:#fef3c7; color:#b45309; }
.sl-badge--aceptada  { background:#e8f7ee; color:#2f855a; }
.sl-badge--rechazada { background:#fee2e2; color:#c53030; }

.sl-btn { display:inline-flex; align-items:center; gap:.35rem; padding:.45rem .9rem; border-radius:8px; color:#fff; font-size:.78rem; font-weight:600; text-decoration:none; }
.sl-btn:hover { color:#fff; opacity:.9; }
.sl-btn--ok { background:#2f855a; }
.sl-btn--ko { background:#e53e3e; }

.sl-close { width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; margin-left:.5rem; border:1px solid #e2e8f0; border-radius:10px; background:#fff; color:#64748b; cursor:pointer; transition:background .15s, color .15s, border-color .15s; }



.sl-close:hover { background:#fee2e2; border-color:#fecaca; color:#c53030; }
.sl-close:focus-visible { outline:0; box-shadow:0 0 0 .2rem rgba(43,108,176,.25); }



.sl-badge--oculto { background:#e2e8f0; color:#475569; }

.lf-group { background:#fff; border:1px solid #e2e8f0; border-radius:14px; box-shadow:0 6px 24px rgba(33,37,41,.06); margin-bottom:.9rem; overflow:hidden; }
.lf-group-head { display:flex; align-items:center; gap:.75rem; padding:.85rem 1rem; background:#f8fbff; cursor:pointer; user-select:none; }
.lf-group-title { font-size:.9rem; font-weight:700; color:#1f66ff; }
.lf-group-count { font-size:.72rem; color:#64748b; }
.lf-group-date { margin-left:auto; font-size:.72rem; color:#64748b; }
.lf-chev { color:#94a3b8; transition:transform .2s; flex-shrink:0; }
.lf-group-head[aria-expanded="true"] .lf-chev { transform:rotate(90deg); }

.lf-table { margin:0; font-size:.8rem; }
.lf-table th { padding:.7rem 1rem; font-size:.62rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#64748b; background:#fff; border-bottom:1px solid #e2e8f0; }
.lf-table td { padding:.65rem 1rem; vertical-align:middle; border-bottom:1px solid #eef2f7; }
.lf-table tbody tr:last-child td { border-bottom:0; }
.lf-table tbody tr:hover > td { background:#f8fafc; }
.lf-file { display:flex; align-items:center; gap:.6rem; min-width:0; }
.lf-fname { max-width:340px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; color:#1e293b; }
.lf-type { display:inline-block; padding:.15rem .55rem; border-radius:6px; background:#eef2f7; color:#475569; font-size:.68rem; font-weight:700; }
.lf-link { display:inline-flex; align-items:center; gap:.3rem; padding:.3rem .55rem; border-radius:8px; color:#1f66ff; font-weight:500; text-decoration:none; }
.lf-link:hover { background:#e4edfc; color:#1555e0; }
.lf-kebab { width:30px; height:30px; display:inline-flex; align-items:center; justify-content:center; border:0; border-radius:8px; background:transparent; color:#94a3b8; }
.lf-kebab:hover, .lf-kebab[aria-expanded="true"] { background:#eef2f7; color:#1e293b; }

.lf-search, .lf-select { height:38px; padding:0 .9rem; border:1px solid #e2e8f0; border-radius:10px; background-color:#fff; color:#1e293b; font-size:.82rem; transition:border-color .15s, box-shadow .15s, background-color .15s; }
.lf-search:focus, .lf-select:focus { outline:0; border-color:#2b6cb0; box-shadow:0 0 0 .2rem rgba(43,108,176,.15); }

.lf-search { width:240px; padding-left:2.4rem; background-repeat:no-repeat; background-position:.8rem center; background-size:16px;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E"); }

.lf-select { -webkit-appearance:none; appearance:none; padding-right:2.2rem; cursor:pointer; background-repeat:no-repeat; background-position:right .8rem center; background-size:14px;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); }
.lf-select:hover { border-color:#c9d6e6; }
.lf-select.is-active { border-color:#1f66ff; background-color:#ebf4ff; color:#1f66ff; font-weight:600; }

.lf-resumen { display:flex; flex-wrap:wrap; gap:.6rem; margin-bottom:1rem; }
.lf-chip { display:inline-flex; align-items:center; gap:.5rem; padding:.45rem .9rem; border:1px solid #e2e8f0; border-radius:10px; background:#fff; color:#334155; font-size:.8rem; text-decoration:none; transition:border-color .15s, background .15s, color .15s; }
.lf-chip:hover { border-color:#c9d6e6; background:#f8fafc; color:#1f66ff; }
.lf-chip strong { color:#1e293b; }


.lf-btn { display:inline-flex; align-items:center; gap:.4rem; height:38px; padding:0 1rem; border:0; border-radius:10px; background:#2b6cb0; color:#fff; font-size:.82rem; font-weight:600; cursor:pointer; box-shadow:0 3px 10px rgba(43,108,176,.25); transition:background .15s, transform .1s; }
.lf-btn:hover { background:#225a96; transform:translateY(-1px); }
.lf-btn:focus-visible { outline:0; box-shadow:0 0 0 .2rem rgba(43,108,176,.25); }



/* Cabecera fija para que el menú móvil quede justo debajo */
.wiki-header { position: sticky; top: 0; z-index: 1030; }




.sl-scroll { max-height: 420px; overflow-y: auto; }
.sl-scroll thead th { position: sticky; top: 0; z-index: 1; box-shadow: inset 0 -1px 0 #e2e8f0; }

/* ===== Modales ===== */
.mdl .modal-dialog { max-width:480px; }
.mdl .modal-content { border:0; border-radius:20px; overflow:hidden; box-shadow:0 24px 60px rgba(15,23,42,.22); }
.mdl .modal-header { display:flex; align-items:center; gap:.8rem; padding:1.15rem 1.4rem; border-bottom:1px solid #eef2f7; }
.mdl .modal-title { margin:0; font-size:1.1rem; font-weight:700; color:#1e293b; }
.mdl .modal-body { padding:1.3rem 1.4rem; }
.mdl .modal-footer { display:flex; justify-content:flex-end; gap:.5rem; padding:.2rem 1.4rem 1.3rem; border:0; }

.mdl-ico { width:42px; height:42px; display:flex; align-items:center; justify-content:center; flex-shrink:0; border-radius:12px; }
.mdl-ico--blue   { background:#e4edff; color:#1f66ff; }
.mdl-ico--orange { background:#fff1dc; color:#f59e0b; }
.mdl-close { margin-left:auto; width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; border:1px solid #e2e8f0; border-radius:10px; background:#fff; color:#64748b; cursor:pointer; transition:background .15s, color .15s; }
.mdl-close:hover { background:#f1f5f9; color:#1e293b; }

/* Campos */
.mdl-field { margin-bottom:1.1rem; }
.mdl-label { display:flex; align-items:center; justify-content:space-between; margin-bottom:.4rem; font-size:.8rem; font-weight:600; color:#475569; }
.mdl-input { display:block; width:100%; height:44px; padding:0 .9rem; border:1.5px solid transparent; border-radius:12px; background:#f3f6fb; color:#1e293b; font-size:.9rem; transition:background .15s, border-color .15s, box-shadow .15s; }
.mdl-input:hover { background:#edf2fa; }
.mdl-input:focus { outline:0; background:#fff; border-color:#1f66ff; box-shadow:0 0 0 .25rem rgba(31,102,255,.14); }
.mdl-input.is-mono { font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:.85rem; }
.mdl-file { padding:0; color:#475569; cursor:pointer; overflow:hidden; }
.mdl-file::file-selector-button { height:44px; margin:0 .9rem 0 0; padding:0 1.1rem; border:0; border-right:1px solid #dbe4f0; background:#e4edff; color:#1f66ff; font-size:.85rem; font-weight:600; cursor:pointer; transition:background .15s; }
.mdl-file:hover::file-selector-button { background:#d4e3ff; }
.mdl-hint { margin-top:.4rem; color:#64748b; font-size:.74rem; }

/* Estado de la subida */
.mdl-status { margin-top:1.1rem; }
.mdl-status .progress { height:10px; border-radius:999px; background:#e2e8f0; overflow:hidden; }
.mdl-status .progress-bar { border-radius:999px; background-color:#1f66ff; }
.mdl-status .progress-bar.bg-success { background-color:#1f66ff !important; }
.mdl-status .progress-bar.bg-danger  { background-color:#ef4444 !important; }
.mdl-detail { margin-top:.4rem; color:#64748b; font-size:.76rem; }
#uploadStatusText { font-size:.84rem; }
#uploadStatusText.text-success, #uploadStatusText.text-danger { display:inline-flex; align-items:center; gap:.5rem; font-weight:600; }
#uploadStatusText.text-success { color:#16a34a !important; }
#uploadStatusText.text-danger  { color:#dc2626 !important; }
#uploadStatusText.text-success::before, #uploadStatusText.text-danger::before { width:18px; height:18px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; color:#fff; font-size:11px; line-height:1; }
#uploadStatusText.text-success::before { content:"✓"; background:#16a34a; }
#uploadStatusText.text-danger::before  { content:"!"; background:#dc2626; }

/* Botones */
.mdl-btn { display:inline-flex; align-items:center; justify-content:center; gap:.4rem; padding:.62rem 1.25rem; border:1px solid transparent; border-radius:11px; font-size:.85rem; font-weight:600; cursor:pointer; transition:transform .1s, box-shadow .15s, background .15s; }
.mdl-btn:disabled { opacity:.6; cursor:not-allowed; transform:none; }
.mdl-btn--primary { background:linear-gradient(135deg, #1f66ff 0%, #3b82f6 100%); color:#fff; box-shadow:0 6px 16px rgba(31,102,255,.3); }
.mdl-btn--primary:hover:not(:disabled) { transform:translateY(-1px); color:#fff; }
.mdl-btn--ghost { background:#fff; border-color:#dbe4f0; color:#475569; }
.mdl-btn--ghost:hover { background:#f1f5f9; color:#1e293b; }




