.tgd-documents,
.tgd-reader{
    --tgd-primary:#001c54;
    --tgd-primary-dark:#000a1d;
    --tgd-accent:#ed1c24;
    --tgd-text:#242424;
    --tgd-muted:#5b6269;
    --tgd-border:#ced4da;
    --tgd-bg:#f1f3f2;
    --tgd-soft:#eef3f8;
    --tgd-table-head:#001c54;
    --tgd-table-head-text:#ffffff;
    --tgd-table-soft:#eef3f8;
    --tgd-table-filter-bg:#ffffff;
    --tgd-white:#ffffff;
    --tgd-shadow:0 14px 32px rgba(0,28,84,.12);
    --tgd-font:Montserrat,var(--bs-body-font-family,system-ui,-apple-system,"Segoe UI",Arial,sans-serif);
    --tgd-header-bg:var(--tgd-primary);
    --tgd-header-text:var(--tgd-white);
    --tgd-header-accent:var(--tgd-accent);
    --tgd-header-title-size:clamp(24px,3vw,38px);
    --tgd-header-padding:24px 26px;
    --tgd-header-min-height:0px;
    --tgd-header-margin-bottom:22px;
    --tgd-widget-max-width:100%;
    font-family:var(--tgd-font);
    color:var(--tgd-text);
    line-height:1.5;
    width:100%;
    max-width:var(--tgd-widget-max-width);
}
.tgd-documents.tgd-align-left{margin-left:0;margin-right:auto}
.tgd-documents.tgd-align-center{margin-left:auto;margin-right:auto}
.tgd-documents.tgd-align-right{margin-left:auto;margin-right:0}
.tgd-documents *,
.tgd-reader *{box-sizing:border-box}
.tgd-icon{display:block;flex:0 0 auto}
.tgd-button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.tgd-header,
.tgd-reader-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:22px;
    margin:0 0 var(--tgd-header-margin-bottom);
    padding:var(--tgd-header-padding);
    min-height:var(--tgd-header-min-height);
    border-radius:8px;
    border-top:5px solid var(--tgd-header-accent);
    background:var(--tgd-header-bg);
    color:var(--tgd-header-text);
    box-shadow:var(--tgd-shadow);
    position:relative;
    overflow:hidden;
}
.tgd-header::after,
.tgd-reader-header::after{
    content:'';
    position:absolute;
    right:0;
    bottom:0;
    width:38%;
    height:5px;
    background:var(--tgd-header-accent);
}
.tgd-header>div,
.tgd-reader-header>div{position:relative;z-index:1;min-width:0}
.tgd-header h2,
.tgd-reader-header h1{
    margin:4px 0 8px;
    color:var(--tgd-header-text)!important;
    font-family:var(--tgd-font);
    font-size:var(--tgd-header-title-size);
    line-height:1.1;
    font-weight:700;
    letter-spacing:0;
    overflow-wrap:anywhere;
}
.tgd-header p{max-width:760px;margin:0;color:var(--tgd-header-text)!important;opacity:.94;font-size:16px;line-height:1.55}
.tgd-kicker{
    display:inline-flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    max-width:100%;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:0;
    font-weight:700;
    color:var(--tgd-header-text);
    overflow-wrap:anywhere;
}
.tgd-kicker::before{content:'';width:28px;height:3px;background:currentColor}
.tgd-elementor-safe-preview-wrap{width:100%;max-width:100%}
.tgd-elementor-safe-preview{display:flex;flex-direction:column;gap:6px;padding:16px 18px;border:1px solid #d7dee8;border-left:4px solid var(--tgd-header-accent,var(--tgd-accent));border-radius:8px;background:#fff;color:#172033}
.tgd-elementor-safe-preview strong{font-size:15px}
.tgd-elementor-safe-preview span{font-weight:700}
.tgd-elementor-safe-preview small{color:#5f6b7a;line-height:1.45}

.tgd-toolbar{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:14px;
    margin:0 0 18px;
}
.tgd-filter{
    flex:1 1 auto;
    display:grid;
    grid-template-columns:minmax(260px,1fr) minmax(180px,260px) auto;
    gap:10px;
    align-items:end;
    margin:0;
    padding:14px;
    border:1px solid #dfe6f1;
    border-radius:8px;
    background:var(--tgd-table-filter-bg);
    box-shadow:0 8px 20px rgba(0,28,84,.06);
}
.tgd-filter-field{display:grid;gap:6px;margin:0;min-width:0}
.tgd-filter-field span{
    color:#334155;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.05em;
    line-height:1.1;
}
.tgd-filter-search{min-width:min(420px,100%)}
.tgd-filter input,
.tgd-filter select{
    width:100%;
    height:44px;
    min-height:44px;
    border:1px solid #cfd7e6!important;
    border-radius:8px!important;
    padding:0 12px!important;
    background:var(--tgd-white)!important;
    color:var(--tgd-text)!important;
    outline:none;
    font-family:var(--tgd-font);
    line-height:44px;
}
.tgd-filter input:focus,
.tgd-filter select:focus{
    border-color:var(--tgd-primary)!important;
    box-shadow:0 0 0 3px rgba(0,28,84,.14)!important;
}
.tgd-filter button,
.tgd-button{
    appearance:none;
    height:44px;
    min-height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    border:1px solid transparent;
    border-radius:8px;
    padding:0 16px;
    background:var(--tgd-primary);
    color:var(--tgd-table-head-text)!important;
    text-decoration:none!important;
    font-family:var(--tgd-font);
    font-size:14px;
    font-weight:800;
    line-height:1;
    cursor:pointer;
    transition:background .18s ease,border-color .18s ease,box-shadow .18s ease;
    align-self:end;
    white-space:nowrap;
}
.tgd-filter button{margin:0}
.tgd-filter button:hover,
.tgd-button:hover{background:var(--tgd-primary);color:var(--tgd-table-head-text)!important;filter:brightness(.92);box-shadow:0 8px 18px rgba(0,28,84,.15)}
.tgd-button-secondary{background:var(--tgd-white)!important;color:var(--tgd-primary)!important;border-color:var(--tgd-border)!important}
.tgd-button-secondary:hover{background:var(--tgd-table-soft)!important;color:var(--tgd-primary)!important;border-color:var(--tgd-primary)!important;box-shadow:0 8px 18px rgba(0,28,84,.08)}
.tgd-button-disabled{opacity:.62;cursor:not-allowed!important;pointer-events:none}
.tgd-counter{
    flex:0 0 auto;
    min-height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 14px;
    border:1px solid #dce3ef;
    border-radius:8px;
    background:var(--tgd-white);
    color:var(--tgd-primary);
    font-size:13px;
    font-weight:900;
    box-shadow:0 8px 20px rgba(0,28,84,.06);
    white-space:nowrap;
}

.tgd-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.tgd-view-list .tgd-grid{grid-template-columns:1fr}
.tgd-card{
    display:grid;
    grid-template-columns:106px 1fr;
    gap:16px;
    background:var(--tgd-white);
    border:1px solid #dfe6f1;
    border-radius:8px;
    padding:14px;
    box-shadow:0 10px 24px rgba(0,28,84,.06);
    overflow:hidden;
}
.tgd-card-card{grid-template-columns:1fr;align-content:start}
.tgd-thumb{
    min-height:138px;
    border-radius:8px;
    overflow:hidden;
    background:var(--tgd-soft);
    border:1px solid #dce3ef;
    display:grid;
    place-items:center;
    text-decoration:none!important;
}
.tgd-card-list .tgd-thumb{min-height:124px}
.tgd-thumb img{width:100%;height:100%;display:block;object-fit:cover}
.tgd-pdf-icon,
.tgd-mini-pdf{
    flex:0 0 auto;
    display:inline-grid;
    place-items:center;
    background:var(--tgd-white);
    color:var(--tgd-accent);
    border:1px solid rgba(237,28,36,.28);
    box-shadow:0 6px 14px rgba(0,28,84,.08);
}
.tgd-pdf-icon{width:62px;height:72px;border-radius:8px}
.tgd-pdf-icon .tgd-icon{width:34px;height:34px}
.tgd-mini-pdf{width:42px;height:48px;border-radius:8px}
.tgd-mini-pdf .tgd-icon{width:24px;height:24px}
.tgd-card h3{font-size:18px;line-height:1.25;margin:8px 0 8px;color:var(--tgd-primary);font-weight:800}
.tgd-card h3 a{color:var(--tgd-primary)!important;text-decoration:none!important}
.tgd-card h3 a:hover{text-decoration:underline!important}
.tgd-badges{display:flex;flex-wrap:wrap;gap:6px}
.tgd-badges span{
    display:inline-flex;
    align-items:center;
    border-radius:999px;
    padding:3px 8px;
    background:var(--tgd-soft);
    color:var(--tgd-primary);
    font-size:12px;
    font-weight:800;
}
.tgd-meta{display:flex;flex-wrap:wrap;gap:6px 12px;color:var(--tgd-muted);font-size:13px;font-weight:600}
.tgd-meta span{display:inline-flex;align-items:center;gap:5px}
.tgd-card p{color:#566174;margin:10px 0 0}
.tgd-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.tgd-actions .tgd-button{min-height:38px;height:38px;font-size:13px;padding:0 12px}
.tgd-empty{padding:22px;border-radius:8px;background:var(--tgd-white);border:1px dashed #bbc6d8;color:#4e5b70;font-weight:700}
.tgd-empty-warning{border-color:#f1c6cb;background:#fff6f7;color:#8a2424}

/* Vista tabla institucional */
.tgd-view-table .tgd-header{margin-bottom:var(--tgd-header-margin-bottom)}
.tgd-table-wrap{
    width:100%;
    overflow:auto;
    border:1px solid #dfe6f1;
    border-radius:8px;
    background:var(--tgd-white);
    box-shadow:0 14px 32px rgba(0,28,84,.08);
}
.tgd-table{width:100%;border-collapse:separate;border-spacing:0;min-width:860px;background:var(--tgd-white)}
.tgd-table thead th{
    position:sticky;
    top:0;
    z-index:1;
    padding:15px 16px;
    background:var(--tgd-table-head);
    color:var(--tgd-table-head-text);
    font-size:12px;
    line-height:1.2;
    text-align:left;
    text-transform:uppercase;
    letter-spacing:.06em;
    font-weight:900;
    border-bottom:4px solid var(--tgd-accent);
    white-space:nowrap;
}
.tgd-table tbody td{padding:15px 16px;border-bottom:1px solid #edf1f7;color:#374151;font-size:14px;vertical-align:middle}
.tgd-table tbody tr:nth-child(even){background:#f8fafd}
.tgd-table tbody tr:hover{background:var(--tgd-table-soft)}
.tgd-table tbody tr:last-child td{border-bottom:0}
.tgd-table-title{display:flex;gap:12px;align-items:center;min-width:260px}
.tgd-table-title a{display:inline-block;color:var(--tgd-primary)!important;font-weight:900;text-decoration:none!important;line-height:1.25}
.tgd-table-title a:hover{text-decoration:underline!important}
.tgd-table-title small{display:block;margin-top:4px;color:#64748b;font-size:12px;line-height:1.35;font-weight:600}
.tgd-table-actions-head{text-align:right!important}
.tgd-table-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;white-space:nowrap}
.tgd-table-actions .tgd-button{min-height:34px;height:34px;padding:0 11px;font-size:12px;border-radius:8px}
.tgd-sort{width:100%;display:inline-flex;align-items:center;gap:7px;border:0;padding:0;background:transparent;color:inherit;font:inherit;text-align:left;text-transform:inherit;letter-spacing:inherit;cursor:pointer}
.tgd-sort::after{content:'↕';font-size:12px;opacity:.72}
.tgd-sort[data-tgd-direction="asc"]::after{content:'↑'}
.tgd-sort[data-tgd-direction="desc"]::after{content:'↓'}
.tgd-no-results{margin-top:14px}

/* Lector individual */
.tgd-reader{max-width:1180px;margin:0 auto 32px}
.tgd-reader-header{align-items:center}
.tgd-reader-meta{margin-top:10px;color:rgba(255,255,255,.9)}
.tgd-reader-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;position:relative;z-index:1}
.tgd-reader-description{background:var(--tgd-white);border:1px solid #e2e6ef;border-radius:8px;padding:18px 22px;margin:0 0 18px}
.tgd-frame-wrap{background:#0f172a;border-radius:8px;overflow:hidden;box-shadow:0 18px 45px rgba(0,0,0,.18);min-height:72vh}
.tgd-frame{display:block;width:100%;height:72vh;min-height:620px;border:0;background:var(--tgd-white)}

/* Modal lector PDF */
.tgd-modal-open{overflow:hidden!important}
.tgd-modal{position:fixed;inset:0;z-index:999999;display:none;color:#172033;font-family:var(--tgd-font)}
.tgd-modal.is-open{display:block}
.tgd-modal-backdrop{position:absolute;inset:0;background:rgba(5,12,28,.72);backdrop-filter:blur(4px)}
.tgd-modal-panel{position:absolute;inset:28px;display:flex;flex-direction:column;overflow:hidden;border-radius:10px;background:var(--tgd-white);box-shadow:0 30px 90px rgba(0,0,0,.38)}
.tgd-modal-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 14px 13px 20px;background:var(--tgd-table-head);border-bottom:4px solid var(--tgd-accent);color:var(--tgd-table-head-text)}
.tgd-modal-title-wrap{min-width:0}
.tgd-modal-kicker{display:block;margin-bottom:4px;font-size:11px;font-weight:900;letter-spacing:.09em;text-transform:uppercase;color:var(--tgd-table-head-text);opacity:.78}
.tgd-modal-title{margin:0;color:var(--tgd-table-head-text)!important;font-size:clamp(16px,2vw,22px);font-weight:800;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tgd-modal-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.tgd-modal-close{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:1px solid currentColor;border-radius:8px;background:transparent;color:var(--tgd-table-head-text);padding:0;cursor:pointer;transition:background .18s ease,border-color .18s ease;opacity:.92}
.tgd-modal-close:hover{background:rgba(255,255,255,.12);opacity:1}
.tgd-modal-close .tgd-icon{width:18px;height:18px}
.tgd-modal-body{flex:1;min-height:0;background:#111827}
.tgd-modal-frame{width:100%;height:100%;min-height:70vh;display:block;border:0;background:var(--tgd-white)}
.tgd-modal-link{color:var(--tgd-primary);text-decoration:none;font-weight:900}
.tgd-modal-link:hover{text-decoration:underline}

@media(max-width:1100px){.tgd-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.tgd-toolbar{display:block}.tgd-counter{margin-top:10px;width:100%}}
@media(max-width:760px){
    .tgd-header,.tgd-reader-header{display:block;padding:var(--tgd-header-padding);border-radius:8px}
    .tgd-reader-actions{justify-content:flex-start;margin-top:16px}
    .tgd-filter{grid-template-columns:1fr;border-radius:8px}
    .tgd-grid{grid-template-columns:1fr}
    .tgd-card,.tgd-card-card,.tgd-card-list{grid-template-columns:1fr}
    .tgd-frame,.tgd-frame-wrap{min-height:68vh;height:68vh}
    .tgd-table-wrap{overflow:visible;border:0;box-shadow:none;background:transparent}
    .tgd-table{display:block;min-width:0;background:transparent}
    .tgd-table thead{display:none}
    .tgd-table tbody{display:grid;gap:12px}
    .tgd-table tbody tr{display:block;border:1px solid #dfe6f1;border-radius:8px;background:var(--tgd-white)!important;box-shadow:0 10px 24px rgba(0,28,84,.06);overflow:hidden}
    .tgd-table tbody td{display:flex;justify-content:space-between;gap:14px;padding:11px 14px;border-bottom:1px solid #edf1f7;text-align:right}
    .tgd-table tbody td::before{content:attr(data-label);font-weight:900;color:var(--tgd-primary);text-align:left}
    .tgd-table-title{align-items:flex-start;min-width:0;text-align:left}
    .tgd-table tbody td:first-child{display:block;text-align:left}
    .tgd-table tbody td:first-child::before{display:none}
    .tgd-table-actions{justify-content:flex-start;white-space:normal}
    .tgd-table-actions::before{display:none}
    .tgd-modal-panel{inset:8px;border-radius:8px}
    .tgd-modal-header{padding:10px 10px 10px 14px;align-items:flex-start}
    .tgd-modal-title{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
    .tgd-modal-close{width:32px;height:32px;border-radius:8px}
    .tgd-modal-frame{min-height:78vh}
}
@media(max-width:520px){.tgd-table-actions .tgd-button{flex:1}.tgd-actions .tgd-button{flex:1}}

/* Vista por carpetas navegables */
.tgd-view-folders .tgd-toolbar{margin-bottom:18px}
.tgd-folder-explorer{border:1px solid rgba(0,0,0,.08);border-radius:18px;background:#fff;box-shadow:0 14px 35px rgba(0,0,0,.06);overflow:hidden}
.tgd-folder-topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;background:var(--tgd-table-head);color:var(--tgd-table-head-text);padding:18px 20px;border-bottom:4px solid var(--tgd-accent)}
.tgd-folder-topbar strong{display:block;font-size:18px;line-height:1.2;margin-top:2px}
.tgd-folder-label{display:block;text-transform:uppercase;letter-spacing:.08em;font-size:11px;font-weight:700;opacity:.85}
.tgd-folder-reset{appearance:none;border:1px solid rgba(255,255,255,.45);background:transparent;color:var(--tgd-table-head-text);border-radius:999px;padding:8px 13px;font-weight:700;cursor:pointer}
.tgd-folder-reset:hover{background:rgba(255,255,255,.12)}
.tgd-folder-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:12px 20px;background:var(--tgd-table-soft);border-bottom:1px solid rgba(0,0,0,.06)}
.tgd-folder-breadcrumb button{appearance:none;border:0;background:transparent;color:var(--tgd-primary);font-weight:700;cursor:pointer;padding:4px 2px}
.tgd-folder-breadcrumb button:hover{text-decoration:underline}
.tgd-folder-breadcrumb span{opacity:.45}
.tgd-folder-content{padding:20px}
.tgd-folder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px;margin-bottom:18px}
.tgd-folder-card{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:1px solid rgba(0,0,0,.08);background:#fff;border-radius:16px;padding:16px;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.tgd-folder-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.08);border-color:var(--tgd-accent)}
.tgd-folder-card-icon{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:13px;background:var(--tgd-table-soft);color:var(--tgd-primary);font-size:22px;line-height:1}
.tgd-folder-card strong{display:block;color:#172033;font-size:15px;line-height:1.25}
.tgd-folder-card small{display:block;color:#617086;margin-top:3px;font-size:12px}
.tgd-folder-files{display:grid;gap:10px}
.tgd-folder-file{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid rgba(0,0,0,.08);border-radius:15px;padding:14px;background:#fff}
.tgd-folder-file-main{display:flex;align-items:center;gap:12px;min-width:0}
.tgd-folder-file h3{margin:0 0 5px;font-size:15px;color:#172033;line-height:1.3}
.tgd-folder-file .tgd-meta{margin:0}
.tgd-folder-empty{margin:0 20px 20px}
@media (max-width: 760px){
  .tgd-folder-topbar{align-items:flex-start;flex-direction:column}
  .tgd-folder-reset{width:100%}
  .tgd-folder-content{padding:14px}
  .tgd-folder-grid{grid-template-columns:1fr}
  .tgd-folder-file{align-items:flex-start;flex-direction:column}
  .tgd-folder-file .tgd-actions{width:100%}
  .tgd-folder-file .tgd-button{flex:1;justify-content:center}
}

/* v1.0.9 - Explorador de carpetas más ordenado */
.tgd-view-folders .tgd-header{margin-bottom:var(--tgd-header-margin-bottom)}
.tgd-view-folders .tgd-toolbar{margin-bottom:16px}
.tgd-folder-explorer{border-radius:10px;box-shadow:0 12px 28px rgba(0,28,84,.08);border:1px solid #dfe6f1;background:#fff;overflow:hidden}
.tgd-folder-topbar{border-bottom:0;padding:16px 18px;background:var(--tgd-table-head);color:var(--tgd-table-head-text)}
.tgd-folder-topbar small{display:block;margin-top:4px;font-size:12px;font-weight:600;opacity:.85}
.tgd-folder-top-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.tgd-folder-reset,.tgd-folder-up{appearance:none;border:1px solid rgba(255,255,255,.55);background:transparent;color:var(--tgd-table-head-text);border-radius:7px;padding:7px 10px;font-size:12px;font-weight:800;line-height:1;cursor:pointer}
.tgd-folder-reset:hover,.tgd-folder-up:hover{background:rgba(255,255,255,.14)}
.tgd-folder-breadcrumb{padding:10px 18px;background:#f5f7fb;border-bottom:1px solid #e4eaf3;gap:6px}
.tgd-folder-breadcrumb button{font-size:13px;color:var(--tgd-primary);font-weight:800}
.tgd-folder-current{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 18px;background:#fff;border-bottom:1px solid #edf1f7}
.tgd-folder-current strong{display:block;color:#172033;font-size:15px;font-weight:900;overflow-wrap:anywhere}
.tgd-folder-current span{display:block;color:#617086;font-size:12px;font-weight:700}
.tgd-folder-content{padding:16px 18px 18px;background:#fafbfd}
.tgd-folder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:10px;margin-bottom:14px}
.tgd-folder-card{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:11px;border:1px solid #dde6f0;background:#fff;border-radius:9px;padding:12px;box-shadow:none;min-height:68px}
.tgd-folder-card:hover{transform:none;box-shadow:0 8px 18px rgba(0,28,84,.08);border-color:var(--tgd-primary)}
.tgd-folder-card-icon{width:42px;height:42px;border-radius:8px;background:var(--tgd-table-soft);color:var(--tgd-primary)}
.tgd-folder-card-text{min-width:0}
.tgd-folder-card strong{display:block;font-size:14px;font-weight:900;line-height:1.25;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;color:#172033}
.tgd-folder-card small{font-size:12px;color:#617086;font-weight:700}
.tgd-folder-card-arrow{font-size:24px;line-height:1;color:#7b8798;font-weight:300}
.tgd-folder-files-title{font-size:12px;font-weight:900;color:#617086;text-transform:uppercase;letter-spacing:.06em;margin:6px 0 8px}
.tgd-folder-files{display:grid;gap:8px}
.tgd-folder-file{border-radius:9px;border:1px solid #dde6f0;background:#fff;padding:11px 12px;box-shadow:none}
.tgd-folder-file:hover{border-color:var(--tgd-primary)}
.tgd-folder-file h3{font-size:14px;font-weight:900;color:#172033;margin:0 0 3px;word-break:break-word}
.tgd-folder-file .tgd-meta{gap:5px}
.tgd-folder-file .tgd-actions{gap:6px;flex-wrap:nowrap}
.tgd-folder-file .tgd-button{padding:8px 10px;border-radius:7px;font-size:12px}
.tgd-folder-empty{margin:14px 18px 18px}
@media (max-width: 760px){
  .tgd-folder-topbar{gap:10px}
  .tgd-folder-top-actions{width:100%;justify-content:stretch}
  .tgd-folder-reset,.tgd-folder-up{flex:1;text-align:center;padding:9px 10px}
  .tgd-folder-current{display:block}
  .tgd-folder-current span{margin-top:3px}
  .tgd-folder-content{padding:12px}
  .tgd-folder-grid{grid-template-columns:1fr}
  .tgd-folder-file{gap:10px}
  .tgd-folder-file .tgd-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .tgd-folder-file .tgd-actions .tgd-button{justify-content:center;width:100%}
}


/* v1.0.10 - Búsqueda profunda y encabezado configurable */
.tgd-folder-search-panel{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:14px 16px;
    margin:0 0 14px;
    border:1px solid rgba(0,28,84,.12);
    border-left:4px solid var(--tgd-accent);
    border-radius:12px;
    background:var(--tgd-table-filter-bg);
    color:#263238;
}
.tgd-folder-search-panel strong{
    font-size:15px;
    color:var(--tgd-primary);
}
.tgd-folder-search-panel span{
    font-size:13px;
    color:#5e6b76;
}
.tgd-folder-search-results{
    display:grid;
    gap:12px;
}
.tgd-folder-search-item{
    border:1px solid rgba(0,28,84,.10);
    border-radius:14px;
    background:#fff;
    overflow:hidden;
}
.tgd-folder-route{
    padding:9px 14px;
    font-size:12px;
    font-weight:700;
    color:var(--tgd-primary);
    background:var(--tgd-table-soft);
    border-bottom:1px solid rgba(0,28,84,.08);
}
.tgd-folder-search-item .tgd-folder-file{
    border:0;
    border-radius:0;
    margin:0;
}
@media (max-width: 720px){
    .tgd-folder-search-panel{
        align-items:flex-start;
        flex-direction:column;
    }
}

/* v1.0.11 - Encabezado configurable desde Elementor */
.tgd-header{min-height:var(--tgd-header-min-height)}

/* v1.2.0 - Explorador configurable */
.tgd-folder-size-compact .tgd-folder-card{padding:12px 14px;min-height:58px}.tgd-folder-size-compact .tgd-folder-card-icon{width:34px;height:34px}.tgd-folder-size-compact .tgd-folder-card-text strong{font-size:14px}.tgd-folder-size-compact .tgd-folder-card-text small{font-size:12px}.tgd-folder-size-compact .tgd-folder-file{padding:12px 14px}.tgd-folder-size-compact .tgd-folder-file h3{font-size:14px}.tgd-folder-size-compact .tgd-meta{font-size:12px}

/* v2.0.0 — carga bajo demanda */
.tgd-folder-explorer-remote .tgd-folder-content{min-height:120px}.tgd-v2-loading{display:flex;align-items:center;justify-content:center;gap:12px;min-height:120px;color:#526071;font-weight:600}.tgd-v2-loading span{width:22px;height:22px;border:3px solid #d7dee8;border-top-color:var(--tgd-primary,#001c54);border-radius:50%;animation:tgdV2Spin .8s linear infinite}@keyframes tgdV2Spin{to{transform:rotate(360deg)}}.tgd-v2-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin:22px 0 4px}.tgd-v2-pagination button{border:1px solid var(--tgd-primary,#001c54);background:#fff;color:var(--tgd-primary,#001c54);border-radius:6px;padding:8px 14px;font:inherit;font-weight:700;cursor:pointer}.tgd-v2-pagination button:hover:not(:disabled){background:var(--tgd-primary,#001c54);color:#fff}.tgd-v2-pagination button:disabled{opacity:.45;cursor:not-allowed}.tgd-v2-pagination span{font-size:14px;color:#526071}.tgd-folder-explorer-remote.is-loading{opacity:.86}.tgd-folder-explorer-remote .tgd-folder-search-item{margin-bottom:12px}

.tgd-v2-index-pending{padding:18px 20px;border:1px solid #d9e1eb;border-left:4px solid var(--tgd-primary,#001c54);border-radius:8px;background:#fff;color:#263238}
