@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
:root{
    --atlasgrt-viewport-height: 100vh;
    --atlasgrt-bg: #f5f7fb;
    --atlasgrt-white: #ffffff;
    --atlasgrt-border: #e5e7eb;
    --atlasgrt-text: #1f2937;
    --atlasgrt-text-soft: #6b7280;
    --atlasgrt-sidebar: #1f2937;
    --atlasgrt-sidebar-hover: #374151;
    --atlasgrt-primary: #111827;
    --atlasgrt-ok: #2e8b57;
    --atlasgrt-warn: #f59e0b;
    --atlasgrt-danger: #dc2626;
    /* AtlasGRT1370 · contrato transversal de superficies. Los módulos no deben asumir blanco. */
    --atlasgrt-surface: var(--atlasgrt-white);
    --atlasgrt-surface-2: #f6f8fb;
    --atlasgrt-surface-3: #eef2f7;
    --atlasgrt-surface-soft: #f8fafc;
    --atlasgrt-surface-border: var(--atlasgrt-border);
    --atlasgrt-text-muted: var(--atlasgrt-text-soft);
    --atlasgrt-success: var(--atlasgrt-ok);
    --atlasgrt-warning: var(--atlasgrt-warn);
}


/* Altura visible: las barras del navegador móvil no forman parte del área de trabajo. */
@supports (height: 100dvh){
    :root{ --atlasgrt-viewport-height: 100dvh; }
}


html,
body{
    height: 100%;
}

body{
    margin: 0;
    background: var(--atlasgrt-bg);
    color: var(--atlasgrt-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow: hidden;
}

.atlasgrt-app{
    display: flex;
    height: var(--atlasgrt-viewport-height);
    min-height: var(--atlasgrt-viewport-height);
    overflow: hidden;
}

.atlasgrt-sidebar{
    width: 280px;
    height: var(--atlasgrt-viewport-height);
    background: var(--atlasgrt-sidebar);
    color: #fff;
    padding: 20px 16px;
    flex-shrink: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.sidebar-brand{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 8px;
}

.sidebar-logo{
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sidebar-logo img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-title{
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.1;
}

.brand-subtitle{
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
}

.sidebar-group-title{
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    margin: 20px 8px 8px 8px;
}

.sidebar-link{
    display: block;
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    padding: 11px 14px;
    border-radius: 14px;
    margin-bottom: 4px;
    transition: background 0.2s ease, color 0.2s ease;
    font-size: 0.95rem;
}

.sidebar-link:hover{
    background: var(--atlasgrt-sidebar-hover);
    color: #fff;
}

.sidebar-link.active{
    background: #fff;
    color: var(--atlasgrt-sidebar);
    font-weight: 600;
}


.atlasgrt-main{
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: var(--atlasgrt-viewport-height);
    overflow: hidden;
}

.atlasgrt-topbar{
    background: var(--atlasgrt-white);
    border-bottom: 1px solid var(--atlasgrt-border);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-left{
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-title{
    font-size: 1.6rem;
    margin: 0;
    font-weight: 600;
}

.topbar-subtitle{
    margin: 4px 0 0 0;
    color: var(--atlasgrt-text-soft);
    font-size: 0.95rem;
}

.topbar-right{
    display: flex;
    align-items: center;
    gap: 12px;
}

.atlasgrt-search{
    width: 260px;
    border-radius: 12px;
}


.atlasgrt-content{
    flex: 1;
    min-height: 0;
    padding: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}


.atlasgrt-card{
    background: #fff;
    border: 1px solid var(--atlasgrt-border);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.atlasgrt-user-box{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 180px;
}

.atlasgrt-user-name{
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--atlasgrt-text);
}

.atlasgrt-user-role{
    font-size: 0.82rem;
    color: var(--atlasgrt-text-soft);
    margin-top: 2px;
}







.atlasgrt-sort-link{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.atlasgrt-sort-link:hover{
    color: var(--atlasgrt-primary);
}


.atlasgrt-toolbar-action-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    width:6rem;
    min-width:6rem;
    height:38px;
    padding:0 12px;
    font-size:.875rem;
    line-height:1.5;
    white-space:nowrap;
    flex:0 0 6rem;
}

.atlasgrt-icon-action-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:40px;
    min-width:40px;
    height:40px;
    padding:0!important;
    border-radius:12px;
    line-height:1;
    font-weight:900;
    transition:opacity .16s ease,transform .16s ease,background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease;
}
.atlasgrt-icon-action-btn:hover,
.atlasgrt-icon-action-btn:focus{
    transform:translateY(-1px);
}
.atlasgrt-icon-action-btn:disabled{
    opacity:.42;
    cursor:not-allowed;
    transform:none;
    box-shadow:none;
}
.atlasgrt-icon-action-danger{
    border:1px solid rgba(220,38,38,.34);
    background:rgba(254,226,226,.68);
    color:#991b1b;
}
.atlasgrt-icon-action-danger:hover,
.atlasgrt-icon-action-danger:focus{
    background:#fecaca;
    border-color:#dc2626;
    color:#7f1d1d;
}

.atlasgrt-config-trigger{
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.atlasgrt-config-trigger .atlasgrt-toolbar-action-icon{
    font-size:1rem;
    line-height:1;
}

.atlasgrt-sort-indicator{
    font-size: 0.78rem;
    color: var(--atlasgrt-text-soft);
    letter-spacing: -0.08em;
}

.atlasgrt-sort-link.active .atlasgrt-sort-indicator{
    color: var(--atlasgrt-primary);
}


.atlasgrt-dropzone{
    position:relative;
    border:2px dashed #c9d3e4;
    border-radius:1.25rem;
    padding:.85rem;
    background:linear-gradient(180deg,#f8fbff 0%,#ffffff 100%);
    transition:.2s ease-in-out;
    cursor:pointer;
    min-height:150px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
}

.atlasgrt-dropzone:hover,
.atlasgrt-dropzone.dragover,
.atlasgrt-dropzone.is-dragover{
    border-color:#2F3A5F;
    box-shadow:0 0 0 3px rgba(47,58,95,.08);
    transform:translateY(-1px);
}

.atlasgrt-dropzone.is-ready{
    border-color:#1f7a5a;
    background:linear-gradient(180deg,#f2fbf7 0%,#ffffff 100%);
}

.atlasgrt-dropzone-input{
    position:absolute;
    inset:0;
    opacity:0;
    cursor:pointer;
}

.atlasgrt-dropzone-icon{
    width:56px;
    height:56px;
    flex:0 0 56px;
    overflow:hidden;
    border-radius:999px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#2F3A5F;
    color:#fff;
    margin-bottom:.65rem;
    box-shadow:0 10px 24px rgba(47,58,95,.18);
}

.atlasgrt-dropzone-icon svg{
    display:block;
    width:26px !important;
    height:26px !important;
    max-width:26px;
    max-height:26px;
    flex:0 0 26px;
}

.atlasgrt-dropzone-title{
    font-size:1rem;
    font-weight:700;
    color:#1e2b4a;
}

.atlasgrt-dropzone-subtitle{
    color:#66768f;
    max-width:420px;
    font-size:.95rem;
}

.atlasgrt-dropzone-file{
    margin-top:.45rem;
    font-size:.9rem;
    color:#2F3A5F;
    font-weight:600;
}

.atlasgrt-dropzone--compact{
    min-height:150px;
    padding:.85rem;
}

.atlasgrt-dropzone--image{
    min-height:150px;
}

.atlasgrt-filter-actions{
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 991.98px){
    .atlasgrt-sidebar{
        position: fixed;
        top: 0;
        left: -280px;
        height: var(--atlasgrt-viewport-height);
        z-index: 1050;
        transition: left 0.25s ease;
    }

    .atlasgrt-sidebar.open{
        left: 0;
    }

    .atlasgrt-topbar{
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-right{
        flex-direction: column;
        align-items: stretch;
    }

    .atlasgrt-search{
        width: 100%;
    }

    .atlasgrt-content{
        padding: 16px;
    }

.atlasgrt-user-box{
        align-items: flex-start;
        min-width: auto;
    }

    
}

.atlasgrt-card-title{
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.atlasgrt-card-value{
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 8px;
}

.atlasgrt-card-note{
    color: var(--atlasgrt-text-soft);
    font-size: 0.98rem;
}

.atlasgrt-section-title{
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.2;
}

.atlasgrt-section-subtitle{
    color: var(--atlasgrt-text-soft);
    font-size: 0.94rem;
    margin-top: 4px;
}

.atlasgrt-block-header{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.atlasgrt-bars{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bar-chip{
    width: 22px;
    height: 10px;
    border-radius: 4px;
    display: inline-block;
}

.chip-ok{
    background: #10b981;
}

.chip-warn{
    background: #f59e0b;
}

.chip-danger{
    background: #ef4444;
}

.chip-empty{
    background: #cbd5e1;
}

.chip-pulse{
    animation: atlasgrtPulse 1.2s infinite;
}

@keyframes atlasgrtPulse{
    0%{ opacity: 1; }
    50%{ opacity: 0.35; }
    100%{ opacity: 1; }
}

.atlasgrt-legend{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.86rem;
    color: var(--atlasgrt-text-soft);
}

.legend-dot{
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.dot-ok{ background: #10b981; }
.dot-warn{ background: #f59e0b; }
.dot-danger{ background: #ef4444; }
.dot-empty{ background: #cbd5e1; }

.atlasgrt-list{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.atlasgrt-list-item{
    border: 1px solid var(--atlasgrt-border);
    border-radius: 16px;
    padding: 14px 16px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.atlasgrt-list-item.active{
    border-color:#2F3A5F;
    background:#f8fafc;
    box-shadow:0 0 0 1px rgba(47,58,95,0.14) inset,0 10px 24px rgba(17,24,39,0.06);
}

.atlasgrt-list-item:hover{
    border-color:#cfd5df;
    color:inherit;
}

.atlasgrt-list-title{
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.atlasgrt-list-subtitle{
    margin-top: 4px;
    color: var(--atlasgrt-text-soft);
    font-size: 0.92rem;
}

.atlasgrt-list-right{
    text-align: right;
    flex-shrink: 0;
}

.atlasgrt-list-date{
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.badge-atlasgrt{
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-ok{
    background: #dcfce7;
    color: #166534;
}

.badge-warn{
    background: #fef3c7;
    color: #92400e;
}

.badge-danger{
    background: #fee2e2;
    color: #991b1b;
}

.badge-neutral{
    background: #e5e7eb;
    color: #374151;
}

.atlasgrt-quick-btn{
    width: 100%;
    border: 1px solid var(--atlasgrt-border);
    border-radius: 16px;
    background: #f8fafc;
    padding: 16px 14px;
    text-align: left;
    font-weight: 600;
    transition: 0.2s ease;
}

.atlasgrt-quick-btn:hover{
    background: #eef2f7;
}

.atlasgrt-table thead th{
    font-size: 0.86rem;
    color: var(--atlasgrt-text-soft);
    font-weight: 600;
    border-bottom: 1px solid var(--atlasgrt-border);
}

.atlasgrt-table tbody td{
    vertical-align: middle;
    border-bottom: 1px solid #eef2f7;
    font-size: 0.94rem;
}

.atlasgrt-company-list{
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.atlasgrt-company-item{
    border: 1px solid var(--atlasgrt-border);
    border-radius: 16px;
    padding: 14px 16px;
    background: #fff;
}

.atlasgrt-mini-label{
    color: var(--atlasgrt-text-soft);
    font-size: 0.8rem;
}

.atlasgrt-mini-value{
    font-size: 1.05rem;
    font-weight: 700;
}

.atlasgrt-progress{
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.atlasgrt-progress-bar{
    height: 100%;
    background: var(--atlasgrt-sidebar);
    border-radius: 999px;
}






@media (max-width: 767.98px){
    .atlasgrt-block-header{
        flex-direction: column;
        align-items: stretch;
    }

    .atlasgrt-list-item{
        flex-direction: column;
        align-items: flex-start;
    }

    .atlasgrt-list-right{
        text-align: left;
    }
}

.badge-atlasgrt{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    white-space: nowrap;
}

.badge-ok{
    background: rgba(46,139,87,0.12);
    color: var(--atlasgrt-ok);
    border-color: rgba(46,139,87,0.18);
}

.badge-warn{
    background: rgba(245,158,11,0.12);
    color: #b45309;
    border-color: rgba(245,158,11,0.18);
}

.badge-danger{
    background: rgba(220,38,38,0.10);
    color: var(--atlasgrt-danger);
    border-color: rgba(220,38,38,0.16);
}

.badge-neutral{
    background: rgba(17,24,39,0.06);
    color: var(--atlasgrt-primary);
    border-color: rgba(17,24,39,0.10);
}

.atlasgrt-role-pills{
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 991.98px){
    .atlasgrt-role-pills{
        width: 100%;
    }
}

.atlasgrt-table .btn{
    border-radius: 10px;
}

.table-permisos{
    white-space: nowrap;
}

.table-permisos th,
.table-permisos td{
    vertical-align: middle;
}

.sticky-col{
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 4px 0 6px -4px rgba(0,0,0,.10);
}

.perm-badge{
    border-radius: 999px;
    font-weight: 600;
    padding: .25rem .55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    line-height: 1;
}

.perm-acceso{
    background: rgba(46,139,87,0.12);
    color: var(--atlasgrt-ok);
    border: 1px solid rgba(46,139,87,0.18);
}

.perm-vista{
    background: rgba(245,158,11,0.12);
    color: #b45309;
    border: 1px solid rgba(245,158,11,0.18);
}

.perm-no{
    background: rgba(17,24,39,0.06);
    color: var(--atlasgrt-primary);
    border: 1px solid rgba(17,24,39,0.10);
}

.legend-perms{
    display: flex;
    gap: .6rem;
    align-items: center;
    flex-wrap: wrap;
}

.legend-dot{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot-acceso{
    background: #2E8B57;
}

.legend-dot-vista{
    background: #f59e0b;
}

.legend-dot-no{
    background: #6b7280;
}

.atlasgrt-table .btn{
    border-radius: 10px;
}

@media (max-width: 991.98px){
    .table-permisos{
        font-size: .92rem;
    }
}
.atlasgrt-card-code{
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.35rem;
    letter-spacing: 0.06em;
}

.atlasgrt-inline-code{
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.atlasgrt-context-pills{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.atlasgrt-context-pill{
    display:flex;
    flex-direction:column;
    gap:2px;
    min-width:170px;
    padding:10px 14px;
    border:1px solid var(--atlasgrt-border);
    border-radius:14px;
    text-decoration:none;
    background:#fff;
    color:var(--atlasgrt-text);
}

.atlasgrt-context-pill:hover{
    border-color:#cfd5df;
    color:var(--atlasgrt-primary);
}

.atlasgrt-context-pill.active{
    border-color:rgba(17,24,39,0.18);
    box-shadow:0 6px 18px rgba(17,24,39,0.08);
}

.atlasgrt-context-label{
    font-size:0.74rem;
    text-transform:uppercase;
    letter-spacing:0.06em;
    color:var(--atlasgrt-text-soft);
}

.atlasgrt-context-value{
    font-size:0.92rem;
    font-weight:600;
    line-height:1.2;
}

.atlasgrt-org-switcher{
    position:relative;
}

.atlasgrt-org-switcher-toggle{
    appearance:none;
    text-align:left;
    cursor:pointer;
    min-width:220px;
}

.atlasgrt-org-switcher-panel{
    position:absolute;
    top:calc(100% + 10px);
    right:0;
    width:min(460px, calc(100vw - 40px));
    max-height:min(78vh, 720px);
    overflow:hidden;
    background:#fff;
    border:1px solid var(--atlasgrt-border);
    border-radius:20px;
    box-shadow:0 22px 50px rgba(15,23,42,0.18);
    z-index:1200;
    display:flex;
    flex-direction:column;
}

.atlasgrt-org-switcher-panel[hidden]{
    display:none !important;
}

.atlasgrt-org-switcher-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    padding:16px 18px 12px 18px;
    border-bottom:1px solid var(--atlasgrt-border);
}

.atlasgrt-org-switcher-title{
    font-size:1rem;
    font-weight:700;
    color:var(--atlasgrt-text);
}

.atlasgrt-org-switcher-subtitle{
    font-size:0.82rem;
    color:var(--atlasgrt-text-soft);
    margin-top:3px;
}

.atlasgrt-org-switcher-header-state{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:32px;
    padding:0 12px;
    border-radius:999px;
    border:1px solid var(--atlasgrt-border);
    background:#f8fafc;
    color:var(--atlasgrt-text-soft);
    font-size:0.78rem;
    font-weight:700;
}

.atlasgrt-org-switcher-search-wrap{
    padding:12px 18px 10px 18px;
}

.atlasgrt-org-switcher-scope-note{
    margin:0 18px 12px 18px;
    padding:10px 12px;
    border:1px solid rgba(17,24,39,0.08);
    border-radius:14px;
    background:#f8fafc;
    color:var(--atlasgrt-text-soft);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    font-size:0.8rem;
    line-height:1.25;
}

.atlasgrt-org-switcher-scope-note a{
    flex:0 0 auto;
    font-weight:700;
    color:var(--atlasgrt-primary);
    text-decoration:none;
}

.atlasgrt-org-switcher-scope-note a:hover{
    text-decoration:underline;
}

.atlasgrt-org-switcher-section{
    padding:0 18px 14px 18px;
}

.atlasgrt-org-switcher-section-all{
    flex:1 1 auto;
    min-height:0;
    display:flex;
    flex-direction:column;
}

.atlasgrt-org-switcher-section-title{
    font-size:0.72rem;
    text-transform:uppercase;
    letter-spacing:0.08em;
    color:var(--atlasgrt-text-soft);
    margin-bottom:8px;
}

.atlasgrt-org-switcher-list{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.atlasgrt-org-switcher-list-all{
    overflow:auto;
    min-height:0;
    padding-right:2px;
}

.atlasgrt-org-switcher-form{
    margin:0;
}

.atlasgrt-org-switcher-item{
    width:100%;
    border:1px solid var(--atlasgrt-border);
    border-radius:14px;
    background:#fff;
    color:var(--atlasgrt-text);
    padding:12px 14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    text-align:left;
    text-decoration:none;
    cursor:pointer;
    transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.atlasgrt-org-switcher-item:hover,
.atlasgrt-org-switcher-item:focus{
    border-color:#cfd5df;
    box-shadow:0 8px 18px rgba(15,23,42,0.08);
    transform:translateY(-1px);
}

.atlasgrt-org-switcher-item.is-active{
    border-color:rgba(17,24,39,0.18);
    background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
}

.atlasgrt-org-switcher-item-main{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:4px;
}

.atlasgrt-org-switcher-item-title{
    font-size:0.94rem;
    font-weight:600;
    line-height:1.15;
}

.atlasgrt-org-switcher-item-subtitle{
    font-size:0.78rem;
    color:var(--atlasgrt-text-soft);
    line-height:1.2;
}

.atlasgrt-org-switcher-item-meta{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    gap:8px;
}

.atlasgrt-org-switcher-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:24px;
    padding:0 9px;
    border-radius:999px;
    background:#111827;
    color:#fff;
    font-size:0.72rem;
    font-weight:700;
}

.atlasgrt-org-switcher-star{
    color:#d97706;
    font-size:0.96rem;
    line-height:1;
}

.atlasgrt-org-switcher-chevron{
    color:var(--atlasgrt-text-soft);
    font-size:0.92rem;
}

.atlasgrt-org-switcher-empty{
    border:1px dashed var(--atlasgrt-border);
    border-radius:14px;
    padding:14px;
    color:var(--atlasgrt-text-soft);
    background:#fff;
    font-size:0.88rem;
}

.atlasgrt-mini-section-title{
    font-size:0.82rem;
    text-transform:uppercase;
    letter-spacing:0.06em;
    color:var(--atlasgrt-text-soft);
    margin-bottom:10px;
}

.atlasgrt-compact-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.atlasgrt-compact-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:10px 12px;
    border:1px solid var(--atlasgrt-border);
    border-radius:16px;
}

.atlasgrt-org-card{
    background:#fff;
    border:1px solid var(--atlasgrt-border);
    border-radius:20px;
    padding:16px;
    box-shadow:0 8px 20px rgba(17,24,39,0.04);
}

.atlasgrt-org-card.active{
    border-color:rgba(46,139,87,0.4);
    box-shadow:0 10px 24px rgba(46,139,87,0.12);
}

.atlasgrt-org-card-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
}

.atlasgrt-org-card-title{
    font-size:1rem;
    font-weight:600;
    line-height:1.2;
}

.atlasgrt-org-card-subtitle{
    font-size:0.86rem;
    color:var(--atlasgrt-text-soft);
    margin-top:4px;
}

.atlasgrt-org-card-meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:12px;
}

.atlasgrt-org-card-meta span{
    font-size:0.78rem;
    padding:6px 10px;
    border-radius:999px;
    background:#f6f8fb;
    color:var(--atlasgrt-text-soft);
}

.atlasgrt-star-btn{
    min-width:42px;
}

.atlasgrt-picker-list{
    max-height:420px;
    overflow:auto;
    display:flex;
    flex-direction:column;
    gap:10px;
    padding:4px;
    border:1px solid var(--atlasgrt-border);
    border-radius:18px;
    background:#fafbfd;
}

.atlasgrt-picker-item{
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:12px 14px;
    border-radius:14px;
    background:#fff;
    border:1px solid transparent;
    cursor:pointer;
}

.atlasgrt-picker-item:hover{
    border-color:#d6dbe5;
}

.atlasgrt-picker-item input[type="checkbox"]{
    margin-top:4px;
}

.atlasgrt-picker-body{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.atlasgrt-picker-title{
    font-size:0.95rem;
    font-weight:600;
}

.atlasgrt-picker-subtitle{
    font-size:0.85rem;
    color:var(--atlasgrt-text-soft);
}

.atlasgrt-quick-card-form{
    display:block;
}

.atlasgrt-quick-card{
    width:100%;
    min-height:110px;
    padding:16px;
    border-radius:20px;
    border:1px solid var(--atlasgrt-border);
    background:#fff;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:space-between;
    text-align:left;
}

.atlasgrt-quick-card.active{
    border-color:rgba(17,24,39,0.18);
    box-shadow:0 10px 24px rgba(17,24,39,0.08);
}

.atlasgrt-quick-card-title{
    font-size:1rem;
    font-weight:600;
    color:var(--atlasgrt-text);
}

.atlasgrt-quick-card-subtitle{
    font-size:0.84rem;
    color:var(--atlasgrt-text-soft);
}

@media (max-width: 991.98px){
    .atlasgrt-context-pills{
        width:100%;
        flex-direction:column;
        align-items:stretch;
    }

    .atlasgrt-context-pill{
        width:100%;
    }

    .atlasgrt-org-switcher{
        width:100%;
    }

    .atlasgrt-org-switcher-toggle{
        width:100%;
        min-width:0;
    }

    .atlasgrt-org-switcher-panel{
        position:fixed;
        top:88px;
        right:16px;
        left:16px;
        width:auto;
        max-height:calc(var(--atlasgrt-viewport-height) - 120px);
    }
}


.atlasgrt-admin-table-wrap{
    overflow-x:auto;
}

.atlasgrt-admin-modules-table th,
.atlasgrt-admin-modules-table td{
    vertical-align: top;
    white-space: nowrap;
}

.atlasgrt-admin-modules-table .atlasgrt-admin-module-name,
.atlasgrt-admin-modules-table .atlasgrt-admin-module-route{
    white-space: normal;
    min-width: 220px;
}

.atlasgrt-admin-modules-table .atlasgrt-admin-module-route{
    max-width: 240px;
    word-break: break-word;
}

.atlasgrt-col-action{
    min-width: 96px;
    text-align: right;
    position: sticky;
    right: 0;
    background: #fff;
}

.atlasgrt-admin-modules-table tbody .atlasgrt-col-action{
    box-shadow: -8px 0 12px -12px rgba(0,0,0,.35);
}

.atlasgrt-focus-toolbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}

.atlasgrt-focus-chips{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.atlasgrt-company-hero{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    flex-wrap:wrap;
}

.atlasgrt-company-hero-title{
    font-size:1.35rem;
    font-weight:700;
    color:var(--atlasgrt-text);
}

.atlasgrt-company-hero-subtitle{
    color:var(--atlasgrt-text-soft);
    font-size:0.95rem;
}

.atlasgrt-company-logo{
    max-height:72px;
    max-width:180px;
    object-fit:contain;
}

.atlasgrt-company-logo-large{
    max-height:140px;
    max-width:100%;
}

@media (max-width: 991.98px){
    .atlasgrt-focus-toolbar{
        align-items:flex-start;
    }
}

.atlasgrt-inbox-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.atlasgrt-inbox-item{
    display:block;
    text-decoration:none;
    color:inherit;
    border:1px solid var(--atlasgrt-border);
    border-radius:18px;
    padding:14px 16px;
    background:#fff;
    transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.atlasgrt-inbox-item:hover{
    border-color:#cfd5df;
    box-shadow:0 10px 24px rgba(17,24,39,0.06);
    color:inherit;
}

.atlasgrt-inbox-item.active{
    border-color:rgba(17,24,39,0.18);
    box-shadow:0 10px 24px rgba(17,24,39,0.08);
}

.atlasgrt-inbox-title{
    font-size:1rem;
    font-weight:600;
    line-height:1.2;
}

.atlasgrt-inbox-meta{
    margin-top:4px;
    font-size:0.88rem;
    color:var(--atlasgrt-text-soft);
}

.atlasgrt-action-check{
    display:flex;
    gap:12px;
    align-items:flex-start;
    border:1px solid var(--atlasgrt-border);
    border-radius:16px;
    padding:12px 14px;
    background:#fff;
    width:100%;
    cursor:pointer;
}

.atlasgrt-action-check input{
    margin-top:4px;
}

.atlasgrt-action-check strong{
    display:block;
    font-size:0.95rem;
    line-height:1.2;
}

.atlasgrt-action-check small{
    display:block;
    color:var(--atlasgrt-text-soft);
    margin-top:4px;
    font-size:0.84rem;
    line-height:1.35;
}

.compact-list{
    gap:10px;
}

.compact-list .atlasgrt-list-item{
    padding:12px 14px;
    border-radius:14px;
}


/* AtlasGRT403 · Status chips normalizados (opt-in). No reemplaza todos los badges del sistema. */
.atlas-status-chip{
    display:inline-flex;
    align-items:center;
    gap:8px;
    width:max-content;
    max-width:100%;
    padding:4px 10px;
    border-radius:999px;
    border:1px solid rgba(15,23,42,.08);
    background:#fff;
    color:var(--atlasgrt-text, #0f172a);
    font-size:.82rem;
    font-weight:800;
    line-height:1.12;
    white-space:nowrap;
    box-shadow:0 6px 14px rgba(15,23,42,.045);
}
.atlas-status-dot{
    position:relative;
    width:14px;
    height:14px;
    border-radius:50%;
    border:2px solid rgba(255,255,255,.96);
    box-shadow:0 6px 14px rgba(15,23,42,.18);
    display:inline-block;
    flex:0 0 auto;
    background:#cbd5e1;
    color:#cbd5e1;
}
.atlas-status-dot::after{
    content:'';
    position:absolute;
    inset:-4px;
    border-radius:50%;
    border:1px solid currentColor;
    opacity:.24;
}
.atlas-status-chip.is-ok .atlas-status-dot{background:#1f8b4c;color:#1f8b4c;}
.atlas-status-chip.is-alert .atlas-status-dot,.atlas-status-chip.is-danger .atlas-status-dot{background:#d92d20;color:#d92d20;}
.atlas-status-chip.is-warn .atlas-status-dot{background:#f6ad1b;color:#f6ad1b;}
.atlas-status-chip.is-na .atlas-status-dot,.atlas-status-chip.is-empty .atlas-status-dot{background:#98a2b3;color:#98a2b3;}
.atlas-status-chip.is-ok .atlas-status-label{color:#166534;}
.atlas-status-chip.is-alert .atlas-status-label,.atlas-status-chip.is-danger .atlas-status-label{color:#b42318;}
.atlas-status-chip.is-warn .atlas-status-label{color:#9a3412;}
.atlas-status-chip.is-na .atlas-status-label,.atlas-status-chip.is-empty .atlas-status-label{color:#475467;}
.atlas-status-chip.is-pulse .atlas-status-dot{animation:atlasStatusPulse 1.5s infinite;}
@keyframes atlasStatusPulse{
    0%{box-shadow:0 0 0 0 rgba(217,45,32,.42),0 6px 14px rgba(15,23,42,.18);}
    70%{box-shadow:0 0 0 12px rgba(217,45,32,0),0 6px 14px rgba(15,23,42,.18);}
    100%{box-shadow:0 0 0 0 rgba(217,45,32,0),0 6px 14px rgba(15,23,42,.18);}
}

/* AtlasGRT411 · Tooltips negros globales + dashboard empresa compacto. */
.tooltip .tooltip-inner,
.tooltip.atlas-lv-tooltip .tooltip-inner,
.tooltip.atlas-tooltip-dark .tooltip-inner{
    background:#111827 !important;
    color:#fff !important;
    border-radius:10px;
    padding:7px 10px;
    font-size:12px;
    font-weight:700;
    line-height:1.25;
    box-shadow:0 10px 22px rgba(15,23,42,.26);
    max-width:340px;
    text-align:left;
    white-space:pre-line;
}
.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before,
.tooltip.atlas-lv-tooltip.bs-tooltip-top .tooltip-arrow::before{border-top-color:#111827 !important;}
.bs-tooltip-bottom .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before,
.tooltip.atlas-lv-tooltip.bs-tooltip-bottom .tooltip-arrow::before{border-bottom-color:#111827 !important;}
.bs-tooltip-start .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before,
.tooltip.atlas-lv-tooltip.bs-tooltip-start .tooltip-arrow::before{border-left-color:#111827 !important;}
.bs-tooltip-end .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before,
.tooltip.atlas-lv-tooltip.bs-tooltip-end .tooltip-arrow::before{border-right-color:#111827 !important;}

.atlasgrt-company-dashboard-shell{
    height:100%;
    min-height:0;
    display:grid;
    grid-template-rows:auto auto minmax(0,1fr);
    gap:12px;
}
body:has(.atlasgrt-company-dashboard-shell) .atlasgrt-content{
    overflow:hidden;
    padding:18px;
}
.atlas-company-hero-panel{
    position:relative;
    overflow:hidden;
    border-radius:22px;
    padding:14px 16px;
    background:linear-gradient(135deg,#111827 0%,#24314f 58%,#2f4668 100%);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    box-shadow:0 14px 34px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.08);
    min-height:92px;
}
.atlas-company-hero-bg{
    position:absolute;
    inset:0;
    z-index:0;
    background:#111827;
}
.atlas-company-hero-bg img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    object-position:center;
    filter:saturate(.94) contrast(1.03) brightness(.72);
}
.atlas-company-hero-panel.has-company-bg::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:1;
    pointer-events:none;
    background:linear-gradient(90deg,rgba(2,6,23,.88) 0%,rgba(15,23,42,.70) 46%,rgba(15,23,42,.42) 100%),linear-gradient(0deg,rgba(2,6,23,.58),rgba(2,6,23,.12));
}
.atlas-company-hero-panel.has-company-bg{
    color:#fff !important;
    background:#111827 !important;
}
.atlas-company-hero-main{
    position:relative;
    z-index:2;
    min-width:0;
    display:flex;
    align-items:center;
    gap:13px;
}
.atlas-company-logo-tile{
    width:58px;
    height:58px;
    border-radius:17px;
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.18);
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    flex:0 0 58px;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.atlas-company-logo-tile img{width:100%;height:100%;object-fit:contain;background:#fff;padding:6px;}
.atlas-company-logo-tile span{font-size:1.4rem;font-weight:900;color:#fff;}
.atlas-company-hero-copy{min-width:0;}
.atlas-company-eyebrow{font-size:.72rem;text-transform:uppercase;letter-spacing:.09em;font-weight:900;color:rgba(255,255,255,.58);margin-bottom:2px;}
.atlas-company-hero-copy h2{font-size:1.28rem;line-height:1.12;margin:0;font-weight:850;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;}
.atlas-company-meta-line{margin-top:7px;display:flex;gap:7px;align-items:center;flex-wrap:wrap;color:rgba(255,255,255,.72);font-size:.8rem;font-weight:700;}
.atlas-company-meta-line .badge-atlasgrt{box-shadow:none;border-color:rgba(255,255,255,.14);}
.atlas-company-hero-panel.has-company-bg .atlas-company-eyebrow,
.atlas-company-hero-panel.has-company-bg .atlas-company-meta-line{
    color:rgba(255,255,255,.78) !important;
}
.atlas-company-hero-panel.has-company-bg .atlas-company-hero-copy h2,
.atlas-company-hero-panel.has-company-bg .atlas-company-logo-tile span{
    color:#fff !important;
}
.atlas-company-hero-panel.has-company-bg .atlas-company-logo-tile{
    background:rgba(255,255,255,.16);
    border-color:rgba(255,255,255,.26);
    box-shadow:0 10px 26px rgba(2,6,23,.24), inset 0 1px 0 rgba(255,255,255,.12);
}

.atlas-company-action-strip{position:relative;z-index:2;display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap;flex:0 0 auto;}
.atlas-company-top-btn{min-height:35px;border-radius:12px;padding:7px 10px;font-weight:800;}
.atlasgrt-radar-cta,
.atlasgrt-radar-cta[disabled]{
    display:inline-flex;
    align-items:center;
    gap:.45rem;
    min-height:35px;
    padding:.38rem .74rem;
    border-radius:12px;
    font-size:.82rem;
    font-weight:850;
    line-height:1;
    text-decoration:none;
    border:1px solid transparent;
    transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease;
}
.atlasgrt-radar-cta{color:#fff;background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.08);}
.atlasgrt-radar-cta:hover,.atlasgrt-radar-cta:focus{color:#fff;background:rgba(255,255,255,.17);border-color:rgba(255,255,255,.32);}
.atlasgrt-radar-cta-icon{width:9px;height:9px;border-radius:999px;background:radial-gradient(circle at 35% 35%,#7cf0b2 0%,#2eb872 62%,#1f7b55 100%);box-shadow:0 0 0 3px rgba(124,240,178,.16);flex:0 0 auto;}
.atlasgrt-radar-cta-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 .34rem;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font-size:.7rem;font-weight:900;line-height:1;}
.atlasgrt-control-cta .atlasgrt-radar-cta-icon{background:radial-gradient(circle at 35% 35%,#9ed8ff 0%,#4d89d8 58%,#1e3f75 100%);box-shadow:0 0 0 3px rgba(77,137,216,.18),0 0 18px rgba(77,137,216,.22);}
.atlasgrt-radar-cta[disabled]{color:#d1d7e4;background:rgba(255,255,255,.04);border:1px dashed rgba(255,255,255,.22);box-shadow:none;cursor:not-allowed;opacity:.78;pointer-events:auto;}
.atlasgrt-radar-cta[disabled] .atlasgrt-radar-cta-icon{background:#98a2b3;box-shadow:0 0 0 3px rgba(152,162,179,.12);}
.atlasgrt-radar-cta[disabled] .atlasgrt-radar-cta-count{background:rgba(255,255,255,.10);color:#d1d7e4;}

.atlas-company-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.atlas-company-kpi-card{
    position:relative;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    gap:4px;
    min-height:92px;
    padding:13px 14px 12px;
    border-radius:18px;
    border:1px solid rgba(47,58,95,.12);
    background:#fff;
    color:#111827;
    text-decoration:none;
    box-shadow:0 8px 20px rgba(15,23,42,.045);
}
.atlas-company-kpi-card:before{content:'';position:absolute;left:0;right:0;top:0;height:3px;background:#94a3b8;}
.atlas-company-kpi-card.is-ok:before{background:#1f8b4c;}
.atlas-company-kpi-card.is-warn:before{background:#f59e0b;}
.atlas-company-kpi-card.is-danger:before{background:#dc2626;}
.atlas-company-kpi-card:hover{color:#111827;border-color:#c8d2e8;box-shadow:0 12px 26px rgba(15,23,42,.08);transform:translateY(-1px);}
.atlas-kpi-label{font-size:.72rem;text-transform:uppercase;letter-spacing:.07em;color:#647087;font-weight:900;}
.atlas-company-kpi-card strong{font-size:1.85rem;line-height:1;font-weight:900;color:#111827;}
.atlas-company-kpi-card small{font-size:.78rem;color:#647087;font-weight:700;line-height:1.2;}
.atlas-company-health-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px;}
.atlas-company-health-card{min-width:0;display:flex;flex-direction:column;gap:10px;text-decoration:none;color:#111827;border:1px solid rgba(47,58,95,.12);border-radius:20px;background:#fff;padding:13px 14px;box-shadow:0 8px 20px rgba(15,23,42,.045);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background-color .18s ease,color .18s ease;}
.atlas-company-health-card:hover{color:#111827;border-color:#c8d2e8;box-shadow:0 12px 26px rgba(15,23,42,.08);transform:translateY(-1px);}
.atlas-company-health-card.is-program{display:block;}
.atlasgrt-program-visual{display:grid;gap:10px;min-width:0;color:var(--atlasgrt-text,#172033);}
.atlasgrt-program-visual-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;}
.atlasgrt-program-visual-head>div{display:grid;gap:2px;min-width:0}.atlasgrt-program-visual-head span{font-size:.68rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--atlasgrt-text-soft,#667085)}
.atlasgrt-program-visual-head strong{font-size:.94rem;line-height:1.2;color:inherit}.atlasgrt-program-visual-head>b{font-size:1.34rem;line-height:1;color:inherit}
.atlasgrt-program-visual-bar{display:flex;overflow:hidden;width:100%;height:18px;border-radius:999px;background:rgba(148,163,184,.18);box-shadow:inset 0 1px 2px rgba(15,23,42,.09)}
.atlasgrt-program-visual-bar>span{display:block;min-width:2px;height:100%}.atlasgrt-program-visual-bar .is-cumplidos{background:#16a36a}.atlasgrt-program-visual-bar .is-pendientes{background:#f2b84b}.atlasgrt-program-visual-bar .is-vencidos{background:#dc4b45}
.atlasgrt-program-visual-legend{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;font-size:.72rem;color:var(--atlasgrt-text-soft,#667085)}.atlasgrt-program-visual-legend span{display:inline-flex;align-items:center;gap:5px}.atlasgrt-program-visual-legend i{width:8px;height:8px;border-radius:50%;background:#94a3b8}.atlasgrt-program-visual-legend .is-cumplidos i{background:#16a36a}.atlasgrt-program-visual-legend .is-pendientes i{background:#f2b84b}.atlasgrt-program-visual-legend .is-vencidos i{background:#dc4b45}.atlasgrt-program-visual-legend b{color:var(--atlasgrt-text,#172033)}
.atlasgrt-program-visual-empty{display:flex;align-items:center;min-height:42px;padding:8px 10px;border:1px dashed var(--atlasgrt-border,#d0d5dd);border-radius:12px;color:var(--atlasgrt-text-soft,#667085);font-size:.78rem}
.atlas-company-health-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
.atlas-company-health-head div{min-width:0;display:flex;flex-direction:column;gap:2px;}
.atlas-company-health-head span{font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;color:#647087;font-weight:950;line-height:1.05;}
.atlas-company-health-head strong{font-size:.95rem;font-weight:950;line-height:1.12;color:#111827;}
.atlas-company-health-head small{flex:0 0 auto;border:1px solid #e2e8f0;border-radius:999px;background:#f8fafc;color:#647087;padding:4px 8px;font-size:.68rem;font-weight:900;line-height:1.05;white-space:nowrap;}
.atlas-company-health-meta{display:flex;gap:7px;flex-wrap:wrap;}
.atlas-company-health-meta span{display:inline-flex;align-items:center;min-height:22px;border:1px solid #e2e8f0;border-radius:999px;background:#f8fafc;color:#647087;padding:3px 8px;font-size:.68rem;font-weight:900;line-height:1.05;}
.atlas-company-health-empty{display:flex;align-items:center;justify-content:center;min-height:48px;border:1px dashed #dbe3ef;border-radius:14px;background:#f8fafc;color:#647087;font-size:.78rem;font-weight:800;}
.atlas-company-iper-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-radius:20px;overflow:hidden;min-height:48px;padding:8px 10px;border:1px solid rgba(47,58,95,.12);background:#f8fafc;box-sizing:border-box;box-shadow:inset 0 1px 0 rgba(255,255,255,.72);align-content:center;align-items:center;}
.atlas-company-iper-segment{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:18px;color:#111827;font-size:.84rem;font-weight:950;line-height:1;cursor:help;clip-path:polygon(0 0,calc(100% - 9px) 0,100% 50%,calc(100% - 9px) 100%,0 100%,9px 50%);margin-left:-7px;padding:0 9px;border-radius:10px;text-shadow:0 1px 0 rgba(255,255,255,.38);}
.atlas-company-iper-segment:first-child{margin-left:0;clip-path:polygon(0 0,calc(100% - 9px) 0,100% 50%,calc(100% - 9px) 100%,0 100%);border-radius:10px 0 0 10px;}
.atlas-company-iper-segment:last-child{clip-path:polygon(0 0,100% 0,100% 100%,0 100%,9px 50%);border-radius:0 10px 10px 0;}
.atlas-company-iper-segment.is-bajo{background:#84cc16;}
.atlas-company-iper-segment.is-medio{background:#facc15;}
.atlas-company-iper-segment.is-alto{background:#f97316;}
.atlas-company-iper-segment.is-critico{background:#dc2626;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.34);}
.atlas-company-iper-segment::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,0) 48%,rgba(0,0,0,.05));pointer-events:none;}
.atlas-company-iper-segment span{position:relative;z-index:2;}
.atlas-company-legal-timeline{border:1px solid rgba(47,58,95,.10);border-radius:16px;background:#f8fafc;padding:9px 10px 8px;min-height:56px;}
.atlas-company-legal-timeline-canvas{position:relative;height:38px;min-height:38px;}
.atlas-company-legal-timeline-weekbar{position:absolute;left:16%;right:4%;top:17px;height:10px;display:grid;grid-template-columns:repeat(var(--legal-timeline-weeks,13),minmax(0,1fr));border-radius:999px;overflow:hidden;background:rgba(148,163,184,.24);border:1px solid rgba(148,163,184,.42);}
.atlas-company-legal-timeline-week{border-right:1px solid rgba(15,23,42,.10);min-width:0;}
.atlas-company-legal-timeline-week:last-child{border-right:0;}
.atlas-company-legal-timeline-today{position:absolute;left:16%;top:6px;height:31px;border-left:2px solid #111827;z-index:4;}
.atlas-company-legal-timeline-today span{position:absolute;top:-7px;left:-9px;border-radius:999px;background:#111827;color:#fff;font-size:.55rem;font-weight:950;line-height:1;padding:2px 5px;white-space:nowrap;}
.atlas-company-legal-timeline-alerts{position:absolute;left:1px;top:14px;width:calc(16% - 8px);display:flex;gap:3px;flex-wrap:wrap;align-items:center;z-index:5;}
.atlas-company-legal-timeline-alert{width:8px;height:8px;border-radius:999px;background:#ef4444;border:1px solid #fff;box-shadow:0 0 0 1px rgba(239,68,68,.45),0 4px 9px rgba(239,68,68,.18);cursor:help;}
.atlas-company-legal-timeline-alert-more{display:inline-flex;align-items:center;justify-content:center;width:13px;height:13px;border-radius:999px;background:rgba(239,68,68,.16);border:1px solid rgba(239,68,68,.34);color:#b91c1c;font-size:.55rem;font-weight:950;cursor:help;}
.atlas-company-legal-timeline-event{position:absolute;top:13px;left:var(--left,16%);transform:translateX(-6px);z-index:6;cursor:help;}
.atlas-company-legal-timeline-event:hover{transform:translateX(-6px) translateY(-1px);z-index:20;}
.atlas-company-legal-timeline-pin{display:block;width:12px;height:12px;border-radius:999px;background:#00FFA5;border:2px solid #fff;box-shadow:0 0 0 1px rgba(15,23,42,.18),0 5px 11px rgba(15,23,42,.16);}
.atlas-company-legal-timeline-event.is-proximo .atlas-company-legal-timeline-pin{background:#f59e0b;}
.atlas-company-legal-timeline-event.is-planificado .atlas-company-legal-timeline-pin{background:#315b8a;}
.atlas-company-legal-timeline-event.is-vencido .atlas-company-legal-timeline-pin{background:#ef4444;}
.atlas-company-legal-timeline-event.is-parcial .atlas-company-legal-timeline-pin,.atlas-company-legal-timeline-event.is-revision .atlas-company-legal-timeline-pin,.atlas-company-legal-timeline-event.is-pendiente .atlas-company-legal-timeline-pin{background:#f59e0b;}
.atlas-company-workgrid{min-height:0;display:grid;grid-template-columns:1.05fr .95fr 1.25fr;gap:10px;}
.atlas-company-panel{
    min-height:0;
    overflow:hidden;
    border:1px solid rgba(47,58,95,.12);
    border-radius:20px;
    background:#fff;
    padding:14px;
    box-shadow:0 8px 20px rgba(15,23,42,.045);
    display:flex;
    flex-direction:column;
    gap:12px;
}
.atlas-company-panel-dark{background:linear-gradient(180deg,#182033 0%,#24314f 100%);color:#fff;border-color:rgba(255,255,255,.12);box-shadow:0 14px 30px rgba(15,23,42,.16);}
.atlas-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;}
.atlas-panel-title{font-size:.98rem;font-weight:900;color:inherit;line-height:1.15;}
.atlas-panel-subtitle{font-size:.78rem;color:#647087;font-weight:700;margin-top:3px;line-height:1.25;}
.atlas-company-panel-dark .atlas-panel-subtitle{color:rgba(255,255,255,.62);}
.atlas-company-signal-list{display:flex;flex-direction:column;gap:9px;min-height:0;}
.atlas-company-signal{display:flex;gap:10px;align-items:flex-start;text-decoration:none;color:#fff;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.06);border-radius:15px;padding:10px 11px;min-height:54px;}
.atlas-company-signal:hover{color:#fff;background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.18);}
.atlas-signal-dot{width:12px;height:12px;border-radius:50%;margin-top:3px;background:#98a2b3;box-shadow:0 0 0 4px rgba(152,162,179,.13);flex:0 0 12px;}
.atlas-company-signal.is-ok .atlas-signal-dot{background:#1f8b4c;box-shadow:0 0 0 4px rgba(31,139,76,.16);}
.atlas-company-signal.is-warn .atlas-signal-dot{background:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.16);}
.atlas-company-signal.is-danger .atlas-signal-dot{background:#dc2626;box-shadow:0 0 0 4px rgba(220,38,38,.18);}
.atlas-signal-copy{min-width:0;display:flex;flex-direction:column;gap:2px;}
.atlas-signal-copy strong{font-size:.82rem;font-weight:900;line-height:1.12;}
.atlas-signal-copy small{font-size:.76rem;line-height:1.25;color:rgba(255,255,255,.68);font-weight:650;}
.atlas-company-mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
.atlas-company-mini-card{display:flex;flex-direction:column;gap:2px;text-decoration:none;border:1px solid #e2e8f0;border-radius:16px;background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);padding:12px;color:#111827;min-height:78px;}
.atlas-company-mini-card:hover{color:#111827;border-color:#c8d2e8;box-shadow:0 10px 22px rgba(15,23,42,.07);}
.atlas-company-mini-card strong{font-size:1.48rem;font-weight:900;line-height:1;}
.atlas-company-mini-card span{font-size:.76rem;color:#647087;font-weight:800;line-height:1.18;}
.atlas-company-secondary-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto;}
.atlas-company-secondary-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:30px;border-radius:999px;border:1px solid #dbe3ef;padding:4px 10px;text-decoration:none;color:#2F3A5F;background:#fff;font-size:.76rem;font-weight:850;}
.atlas-company-secondary-actions a:hover{background:#f8fafc;color:#111827;border-color:#c8d2e8;}
.atlas-company-modules-panel{gap:10px;}
.atlas-company-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;min-height:0;align-content:start;}
.atlas-company-module-chip{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:6px;text-decoration:none;color:#111827;border:1px solid #e2e8f0;border-radius:13px;background:#fff;padding:8px 9px;min-height:34px;}
.atlas-company-module-chip span{font-size:.78rem;font-weight:850;line-height:1.05;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.atlas-company-module-chip small{font-size:.64rem;font-weight:900;color:#647087;text-transform:uppercase;letter-spacing:.04em;flex:0 0 auto;}
.atlas-company-module-chip:hover{color:#111827;background:#f8fafc;border-color:#c8d2e8;box-shadow:0 8px 18px rgba(15,23,42,.05);}
.atlas-company-empty{font-size:.86rem;color:#647087;font-weight:700;padding:10px;}
@media (hover:hover) and (pointer:fine){.atlasgrt-radar-cta:hover{transform:translateY(-1px);}}
@media (max-width: 1199.98px){
    body:has(.atlasgrt-company-dashboard-shell) .atlasgrt-content{overflow-y:auto;}
    .atlasgrt-company-dashboard-shell{height:auto;}
    .atlas-company-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
    .atlas-company-health-grid{grid-template-columns:1fr;}
    .atlas-company-workgrid{grid-template-columns:1fr;}
}
@media (max-width: 767.98px){
    .atlas-company-hero-panel{align-items:flex-start;flex-direction:column;}
    .atlas-company-action-strip{justify-content:flex-start;}
    .atlas-company-kpi-grid,.atlas-company-mini-grid,.atlas-company-module-grid{grid-template-columns:1fr;}
}

/* AtlasGRT483 · Skins globales de plataforma.
   Modo Base conserva el comportamiento visual actual. Los otros skins actúan por variables
   y capas transversales para no obligar a reescribir cada módulo. */
body.atlasgrt-skin-base{
    --atlasgrt-skin-accent:#111827;
    --atlasgrt-skin-button-contrast:#ffffff;
    --atlasgrt-skin-accent-soft:#f3f4f6;
    --atlasgrt-vigencia-ok:#00FFA5;
    --atlasgrt-vigencia-danger:rgb(255,50,27);
    --atlasgrt-surface: #ffffff;
    --atlasgrt-surface-2: #f6f8fb;
    --atlasgrt-surface-3: #eef2f7;
    --atlasgrt-surface-soft: #f8fafc;
}

body.atlasgrt-skin-claro{
    --atlasgrt-bg:#f4f8fc;
    --atlasgrt-white:#ffffff;
    --atlasgrt-border:#d8e2ef;
    --atlasgrt-text:#102033;
    --atlasgrt-text-soft:#526174;
    --atlasgrt-sidebar:#ffffff;
    --atlasgrt-sidebar-hover:#eaf5f1;
    --atlasgrt-primary:#007a54;
    --atlasgrt-ok:#007a54;
    --atlasgrt-warn:#b97700;
    --atlasgrt-danger:#c91e1e;
    --atlasgrt-skin-accent:#00FFA5;
    --atlasgrt-skin-accent-contrast:#006b4e;
    --atlasgrt-skin-button-contrast:#006b4e;
    --atlasgrt-skin-accent-soft:rgba(0,255,165,.16);
    --atlasgrt-vigencia-ok:#00FFA5;
    --atlasgrt-vigencia-danger:rgb(255,50,27);
    --atlasgrt-surface: #ffffff;
    --atlasgrt-surface-2: #f5faf8;
    --atlasgrt-surface-3: #eaf5f1;
    --atlasgrt-surface-soft: #f8fcfa;
}

body.atlasgrt-skin-atlas{
    --atlasgrt-bg:#071225;
    --atlasgrt-white:#0b172b;
    --atlasgrt-border:rgba(169,189,222,.22);
    --atlasgrt-text:#edf5ff;
    --atlasgrt-text-soft:#aab5c7;
    --atlasgrt-sidebar:#0a1424;
    --atlasgrt-sidebar-hover:#14233a;
    --atlasgrt-primary:#00FFA5;
    --atlasgrt-ok:#00FFA5;
    --atlasgrt-warn:#f7a900;
    --atlasgrt-danger:#ff3448;
    --atlasgrt-skin-accent:#00FFA5;
    --atlasgrt-skin-accent-contrast:#00FFA5;
    --atlasgrt-skin-button-contrast:#062019;
    --atlasgrt-skin-accent-soft:rgba(0,255,165,.12);
    --atlasgrt-vigencia-ok:#00FFA5;
    --atlasgrt-vigencia-danger:rgb(255,50,27);
    --atlasgrt-surface: #0b172b;
    --atlasgrt-surface-2: #111f35;
    --atlasgrt-surface-3: #172942;
    --atlasgrt-surface-soft: rgba(255,255,255,.045);
}

body.atlasgrt-skin-hst{
    --atlasgrt-bg:#10151c;
    --atlasgrt-white:#171f2a;
    --atlasgrt-border:rgba(247,169,0,.26);
    --atlasgrt-text:#fff8e7;
    --atlasgrt-text-soft:#d9c69a;
    --atlasgrt-sidebar:#121820;
    --atlasgrt-sidebar-hover:#24201a;
    --atlasgrt-primary:#f7a900;
    --atlasgrt-ok:#00FFA5;
    --atlasgrt-warn:#f7a900;
    --atlasgrt-danger:#ff3448;
    --atlasgrt-skin-accent:#f7a900;
    --atlasgrt-skin-accent-contrast:#4d3400;
    --atlasgrt-skin-button-contrast:#1d1400;
    --atlasgrt-skin-accent-soft:rgba(247,169,0,.13);
    --atlasgrt-vigencia-ok:#00FFA5;
    --atlasgrt-vigencia-danger:rgb(255,50,27);
    --atlasgrt-surface: #171f2a;
    --atlasgrt-surface-2: #1d2632;
    --atlasgrt-surface-3: #27313e;
    --atlasgrt-surface-soft: rgba(255,255,255,.045);
}

body.atlasgrt-skin-claro .atlasgrt-sidebar{
    color:#172033;
    border-right:1px solid var(--atlasgrt-border);
    box-shadow:8px 0 28px rgba(15,23,42,.05);
}
body.atlasgrt-skin-claro .brand-title,
body.atlasgrt-skin-claro .sidebar-link{color:#172033;}
body.atlasgrt-skin-claro .brand-subtitle,
body.atlasgrt-skin-claro .sidebar-group-title{color:#66758a;}
body.atlasgrt-skin-claro .sidebar-link:hover{background:#edf8f4;color:#053d2d;}
body.atlasgrt-skin-claro .sidebar-link.active{
    background:linear-gradient(180deg,rgba(0,255,165,.24),rgba(0,255,165,.12));
    color:#053d2d;
    box-shadow:inset 0 0 0 1px rgba(0,122,84,.18);
}

body.atlasgrt-skin-atlas .atlasgrt-content{
    background:radial-gradient(circle at 75% 0%,rgba(0,255,165,.08),transparent 34%),linear-gradient(180deg,#071225 0%,#060d1b 100%);
}
body.atlasgrt-skin-hst .atlasgrt-content{
    background:repeating-linear-gradient(135deg,rgba(247,169,0,.055) 0 10px,transparent 10px 28px),linear-gradient(180deg,#10151c 0%,#0a0f16 100%);
}

body.atlasgrt-skin-atlas .atlasgrt-sidebar,
body.atlasgrt-skin-hst .atlasgrt-sidebar{
    border-right:1px solid var(--atlasgrt-border);
    box-shadow:8px 0 30px rgba(0,0,0,.26);
}
body.atlasgrt-skin-atlas .sidebar-link.active,
body.atlasgrt-skin-hst .sidebar-link.active{
    background:rgba(255,255,255,.08);
    color:#fff;
    box-shadow:inset 3px 0 0 var(--atlasgrt-skin-accent), inset 0 0 0 1px var(--atlasgrt-border);
}
body.atlasgrt-skin-hst .sidebar-link.active{color:#fff3cf;}

body.atlasgrt-skin-atlas .atlasgrt-topbar,
body.atlasgrt-skin-hst .atlasgrt-topbar{
    background:linear-gradient(180deg,rgba(11,23,43,.96),rgba(7,18,37,.94));
    border-bottom:1px solid var(--atlasgrt-border);
    color:var(--atlasgrt-text);
}
body.atlasgrt-skin-hst .atlasgrt-topbar{
    background:linear-gradient(180deg,rgba(23,31,42,.98),rgba(16,21,28,.96));
}
body.atlasgrt-skin-claro .atlasgrt-topbar{
    background:rgba(255,255,255,.92);
    box-shadow:0 8px 26px rgba(15,23,42,.04);
}

body.atlasgrt-skin-atlas .atlasgrt-card,
body.atlasgrt-skin-atlas .atlasgrt-list-item,
body.atlasgrt-skin-atlas .atlasgrt-company-item,
body.atlasgrt-skin-atlas .modal-content,
body.atlasgrt-skin-atlas .dropdown-menu,
body.atlasgrt-skin-atlas .atlasgrt-advisor-account-card,
body.atlasgrt-skin-atlas .atlasgrt-company-account-card{
    background:linear-gradient(145deg,#0b172b,#111f35);
    border-color:var(--atlasgrt-border);
    color:var(--atlasgrt-text);
    box-shadow:0 18px 44px rgba(0,0,0,.24);
}
body.atlasgrt-skin-hst .atlasgrt-card,
body.atlasgrt-skin-hst .atlasgrt-list-item,
body.atlasgrt-skin-hst .atlasgrt-company-item,
body.atlasgrt-skin-hst .modal-content,
body.atlasgrt-skin-hst .dropdown-menu,
body.atlasgrt-skin-hst .atlasgrt-advisor-account-card,
body.atlasgrt-skin-hst .atlasgrt-company-account-card{
    background:linear-gradient(145deg,#171f2a,#10151c);
    border-color:var(--atlasgrt-border);
    color:var(--atlasgrt-text);
    box-shadow:0 18px 44px rgba(0,0,0,.22);
}
body.atlasgrt-skin-claro .atlasgrt-card,
body.atlasgrt-skin-claro .atlasgrt-list-item,
body.atlasgrt-skin-claro .atlasgrt-company-item,
body.atlasgrt-skin-claro .modal-content,
body.atlasgrt-skin-claro .dropdown-menu,
body.atlasgrt-skin-claro .atlasgrt-advisor-account-card,
body.atlasgrt-skin-claro .atlasgrt-company-account-card{
    background:#fff;
    border-color:var(--atlasgrt-border);
    box-shadow:0 12px 32px rgba(15,23,42,.06);
}

body.atlasgrt-skin-atlas .card-head,
body.atlasgrt-skin-atlas .modal-header,
body.atlasgrt-skin-atlas .modal-footer,
body.atlasgrt-skin-atlas .atlasgrt-advisor-account-actions,
body.atlasgrt-skin-atlas .atlasgrt-company-account-actions{
    background:rgba(255,255,255,.035) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text);
}
body.atlasgrt-skin-hst .card-head,
body.atlasgrt-skin-hst .modal-header,
body.atlasgrt-skin-hst .modal-footer,
body.atlasgrt-skin-hst .atlasgrt-advisor-account-actions,
body.atlasgrt-skin-hst .atlasgrt-company-account-actions{
    background:rgba(247,169,0,.05) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text);
}
body.atlasgrt-skin-atlas .card-title,
body.atlasgrt-skin-atlas .atlasgrt-card-title,
body.atlasgrt-skin-atlas .atlasgrt-section-title,
body.atlasgrt-skin-atlas .topbar-title,
body.atlasgrt-skin-hst .card-title,
body.atlasgrt-skin-hst .atlasgrt-card-title,
body.atlasgrt-skin-hst .atlasgrt-section-title,
body.atlasgrt-skin-hst .topbar-title{color:var(--atlasgrt-text) !important;}
body.atlasgrt-skin-atlas .card-subtitle,
body.atlasgrt-skin-atlas .atlasgrt-card-note,
body.atlasgrt-skin-atlas .atlasgrt-section-subtitle,
body.atlasgrt-skin-atlas .topbar-subtitle,
body.atlasgrt-skin-atlas .text-muted,
body.atlasgrt-skin-hst .card-subtitle,
body.atlasgrt-skin-hst .atlasgrt-card-note,
body.atlasgrt-skin-hst .atlasgrt-section-subtitle,
body.atlasgrt-skin-hst .topbar-subtitle,
body.atlasgrt-skin-hst .text-muted{color:var(--atlasgrt-text-soft) !important;}

body.atlasgrt-skin-atlas .form-control,
body.atlasgrt-skin-atlas .form-select,
body.atlasgrt-skin-hst .form-control,
body.atlasgrt-skin-hst .form-select{
    background:rgba(255,255,255,.055);
    color:var(--atlasgrt-text);
    border-color:var(--atlasgrt-border);
}
body.atlasgrt-skin-atlas .form-control:focus,
body.atlasgrt-skin-atlas .form-select:focus,
body.atlasgrt-skin-hst .form-control:focus,
body.atlasgrt-skin-hst .form-select:focus{
    background:rgba(255,255,255,.075);
    color:var(--atlasgrt-text);
    border-color:var(--atlasgrt-skin-accent);
    box-shadow:0 0 0 .2rem var(--atlasgrt-skin-accent-soft);
}
body.atlasgrt-skin-atlas .form-control::placeholder,
body.atlasgrt-skin-hst .form-control::placeholder{color:rgba(234,242,255,.55);}
body.atlasgrt-skin-claro .form-control:focus,
body.atlasgrt-skin-claro .form-select:focus{
    border-color:#00b77b;
    box-shadow:0 0 0 .2rem rgba(0,255,165,.20);
}

/* AtlasGRT1475 · Botones canónicos gobernados por el skin.
   El módulo no define colores propios: primary y outline-primary consumen
   los mismos tokens visuales que la navegación y los estados de foco. */
body.atlasgrt-skin-base .btn-primary,
body.atlasgrt-skin-claro .btn-primary,
body.atlasgrt-skin-atlas .btn-primary,
body.atlasgrt-skin-hst .btn-primary{
    background:var(--atlasgrt-skin-accent);
    border-color:var(--atlasgrt-skin-accent);
    color:var(--atlasgrt-skin-button-contrast,#fff);
    font-weight:700;
}
body.atlasgrt-skin-base .btn-primary:hover,
body.atlasgrt-skin-base .btn-primary:focus,
body.atlasgrt-skin-claro .btn-primary:hover,
body.atlasgrt-skin-claro .btn-primary:focus,
body.atlasgrt-skin-atlas .btn-primary:hover,
body.atlasgrt-skin-atlas .btn-primary:focus,
body.atlasgrt-skin-hst .btn-primary:hover,
body.atlasgrt-skin-hst .btn-primary:focus{
    background:var(--atlasgrt-primary,var(--atlasgrt-skin-accent));
    border-color:var(--atlasgrt-primary,var(--atlasgrt-skin-accent));
    color:var(--atlasgrt-skin-button-contrast,#fff);
    box-shadow:0 0 0 .2rem var(--atlasgrt-skin-accent-soft);
}
body.atlasgrt-skin-base .btn-outline-primary,
body.atlasgrt-skin-claro .btn-outline-primary,
body.atlasgrt-skin-atlas .btn-outline-primary,
body.atlasgrt-skin-hst .btn-outline-primary{
    background:transparent;
    border-color:var(--atlasgrt-skin-accent);
    color:var(--atlasgrt-primary,var(--atlasgrt-skin-accent-contrast,#fff));
}
body.atlasgrt-skin-base .btn-outline-primary:hover,
body.atlasgrt-skin-base .btn-outline-primary:focus,
body.atlasgrt-skin-claro .btn-outline-primary:hover,
body.atlasgrt-skin-claro .btn-outline-primary:focus,
body.atlasgrt-skin-atlas .btn-outline-primary:hover,
body.atlasgrt-skin-atlas .btn-outline-primary:focus,
body.atlasgrt-skin-hst .btn-outline-primary:hover,
body.atlasgrt-skin-hst .btn-outline-primary:focus{
    background:var(--atlasgrt-skin-accent-soft);
    border-color:var(--atlasgrt-skin-accent);
    color:var(--atlasgrt-primary,var(--atlasgrt-skin-accent-contrast,#fff));
    box-shadow:0 0 0 .2rem var(--atlasgrt-skin-accent-soft);
}

body.atlasgrt-skin-atlas .btn-dark,
body.atlasgrt-skin-claro .btn-dark{
    background:linear-gradient(180deg,#00FFA5,#0fcf8a);
    border-color:#00d98d;
    color:#062019;
    font-weight:700;
}
body.atlasgrt-skin-hst .btn-dark{
    background:linear-gradient(180deg,#f7a900,#c77c00);
    border-color:#d99000;
    color:#1d1400;
    font-weight:700;
}
body.atlasgrt-skin-atlas .btn-outline-secondary,
body.atlasgrt-skin-hst .btn-outline-secondary{
    color:var(--atlasgrt-text);
    border-color:var(--atlasgrt-border);
    background:rgba(255,255,255,.035);
}
body.atlasgrt-skin-atlas .btn-outline-secondary:hover,
body.atlasgrt-skin-hst .btn-outline-secondary:hover{
    color:#fff;
    border-color:var(--atlasgrt-skin-accent);
    background:var(--atlasgrt-skin-accent-soft);
}

body.atlasgrt-skin-atlas .badge-neutral,
body.atlasgrt-skin-hst .badge-neutral{background:rgba(148,163,184,.14);color:var(--atlasgrt-text-soft);}
body.atlasgrt-skin-claro .badge-ok{background:rgba(0,255,165,.18);color:#006b4e;border:1px solid rgba(0,122,84,.20);}
body.atlasgrt-skin-atlas .badge-ok{background:rgba(0,255,165,.12);color:#7ee8c2;border:1px solid rgba(0,255,165,.25);}
body.atlasgrt-skin-hst .badge-ok{background:rgba(0,255,165,.12);color:#7ee8c2;border:1px solid rgba(0,255,165,.22);}

body.atlasgrt-skin-atlas .atlasgrt-topbar-visual-btn,
body.atlasgrt-skin-atlas .atlasgrt-topbar-visual-btn[disabled],
body.atlasgrt-skin-atlas .atlasgrt-topbar-visual-btn.is-current{
    background:linear-gradient(135deg,#0b172b,#142842);
    border-color:rgba(0,255,165,.24);
    color:#f8fafc;
}
body.atlasgrt-skin-hst .atlasgrt-topbar-visual-btn,
body.atlasgrt-skin-hst .atlasgrt-topbar-visual-btn[disabled],
body.atlasgrt-skin-hst .atlasgrt-topbar-visual-btn.is-current{
    background:linear-gradient(135deg,#171f2a,#231b0d);
    border-color:rgba(247,169,0,.34);
    color:#fff3cf;
}
body.atlasgrt-skin-claro .atlasgrt-topbar-visual-btn,
body.atlasgrt-skin-claro .atlasgrt-topbar-visual-btn[disabled],
body.atlasgrt-skin-claro .atlasgrt-topbar-visual-btn.is-current{
    background:#ffffff;
    border-color:rgba(0,122,84,.24);
    color:#053d2d;
}

body.atlasgrt-skin-atlas .table,
body.atlasgrt-skin-hst .table{color:var(--atlasgrt-text);}
body.atlasgrt-skin-atlas .table > :not(caption) > * > *,
body.atlasgrt-skin-hst .table > :not(caption) > * > *{border-color:var(--atlasgrt-border);}

/* Recurso canónico: borde superior Global simétrico + vigencia inferior ultra delgada. */
.atlasgrt-global-top-edge{
    position:relative;
    overflow:hidden;
}
.atlasgrt-global-top-edge::before{
    content:"";
    position:absolute;
    left:0;right:0;top:0;height:3px;
    background:linear-gradient(90deg,rgba(7,18,37,.72) 0%,var(--atlasgrt-vigencia-ok) 50%,rgba(7,18,37,.72) 100%);
}
.atlasgrt-vigencia-edge,
.atlas-lv-vigencia-flat,
.atlasgrt-legal-card-vigencia,
.atlasgrt-evidence-card-vigencia{
    height:2px !important;
    min-height:2px !important;
    max-height:2px !important;
    background:var(--atlasgrt-vigencia-danger) !important;
    overflow:hidden;
}
.atlasgrt-vigencia-edge > span,
.atlas-lv-vigencia-flat > span,
.atlasgrt-legal-card-vigencia > span,
.atlasgrt-evidence-card-vigencia > span{
    display:block;
    height:100%;
    background:var(--atlasgrt-vigencia-ok) !important;
}

.atlasgrt-skin-selector-card{border:1px solid var(--atlasgrt-border);border-radius:18px;padding:1rem;background:var(--atlasgrt-white);box-shadow:0 10px 24px rgba(15,23,42,.05);}
.atlasgrt-skin-selector-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;margin-top:.8rem;}
.atlasgrt-skin-option{position:relative;display:block;}
.atlasgrt-skin-option input{position:absolute;opacity:0;pointer-events:none;}
.atlasgrt-skin-option span{display:block;border:1px solid var(--atlasgrt-border);border-radius:16px;padding:.75rem .8rem;background:rgba(255,255,255,.04);cursor:pointer;transition:.18s ease;}
.atlasgrt-skin-option strong{display:block;font-size:.88rem;color:var(--atlasgrt-text);}
.atlasgrt-skin-option small{display:block;margin-top:.2rem;color:var(--atlasgrt-text-soft);font-size:.76rem;line-height:1.25;}
.atlasgrt-skin-option input:checked + span{border-color:var(--atlasgrt-skin-accent);box-shadow:0 0 0 3px var(--atlasgrt-skin-accent-soft);}
.atlasgrt-skin-option input:checked + span::after{content:"✓";position:absolute;right:.75rem;top:.65rem;width:22px;height:22px;border-radius:999px;background:var(--atlasgrt-skin-accent);color:var(--atlasgrt-skin-accent-contrast,#062019);display:flex;align-items:center;justify-content:center;font-weight:900;font-size:.8rem;}
.atlasgrt-skin-preview-row{display:flex;align-items:center;gap:.35rem;margin-top:.5rem;}
.atlasgrt-skin-preview-dot{width:18px;height:18px;border-radius:999px;display:inline-block;border:1px solid rgba(0,0,0,.12);}
.atlasgrt-skin-preview-dot.base-1{background:#1f2937}.atlasgrt-skin-preview-dot.base-2{background:#fff}.atlasgrt-skin-preview-dot.base-3{background:#111827}
.atlasgrt-skin-preview-dot.atlas-1{background:#071225}.atlasgrt-skin-preview-dot.atlas-2{background:#00FFA5}.atlasgrt-skin-preview-dot.atlas-3{background:#142842}
.atlasgrt-skin-preview-dot.claro-1{background:#ffffff}.atlasgrt-skin-preview-dot.claro-2{background:#00FFA5}.atlasgrt-skin-preview-dot.claro-3{background:#f4f8fc}
.atlasgrt-skin-preview-dot.hst-1{background:#10151c}.atlasgrt-skin-preview-dot.hst-2{background:#f7a900}.atlasgrt-skin-preview-dot.hst-3{background:#00FFA5}
@media(max-width:575.98px){.atlasgrt-skin-selector-grid{grid-template-columns:1fr;}}

/* AtlasGRT485 · Selector de empresa como recurso de navegación central.
   La empresa activa / entrada a empresa es un atajo operativo de alto uso: debe leerse con más jerarquía que un badge,
   pero sin competir con el título del módulo ni con acciones técnicas. */
.atlasgrt-company-switcher-toggle{
    min-width:260px;
    padding:10px 14px 11px 14px;
    border-radius:18px;
    border-color:rgba(17,24,39,.13);
    background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
    box-shadow:0 10px 28px rgba(15,23,42,.07);
}
.atlasgrt-company-switcher-toggle:hover,
.atlasgrt-org-switcher.is-open .atlasgrt-company-switcher-toggle{
    border-color:rgba(0,122,84,.28);
    box-shadow:0 14px 34px rgba(15,23,42,.11), 0 0 0 3px rgba(0,255,165,.08);
}
.atlasgrt-company-switcher-kicker{
    display:flex;
    align-items:center;
    gap:.42rem;
    min-width:0;
}
.atlasgrt-company-switcher-dot{
    width:9px;
    height:9px;
    border-radius:999px;
    flex:0 0 auto;
    background:radial-gradient(circle at 35% 35%,#85ffd6 0%,#00FFA5 58%,#00895e 100%);
    box-shadow:0 0 0 4px rgba(0,255,165,.14);
}
.atlasgrt-company-switcher-count{
    margin-left:auto;
    min-width:24px;
    height:22px;
    padding:0 7px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    background:rgba(17,24,39,.06);
    color:var(--atlasgrt-text-soft);
    font-size:.72rem;
    font-weight:700;
}
.atlasgrt-company-switcher-mainline{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:.75rem;
    min-width:0;
}
.atlasgrt-company-switcher-mainline .atlasgrt-context-value{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.atlasgrt-company-switcher-action{
    flex:0 0 auto;
    font-size:.74rem;
    font-weight:800;
    color:#007a54;
    letter-spacing:.015em;
}
.atlasgrt-org-switcher-mini-meta{
    margin-top:.35rem;
    display:inline-flex;
    align-items:center;
    min-height:24px;
    padding:0 .55rem;
    border-radius:999px;
    background:rgba(0,255,165,.12);
    color:#007a54;
    font-size:.74rem;
    font-weight:700;
}
.atlasgrt-org-switcher-search{
    min-height:42px;
    border-radius:14px;
}
.atlasgrt-org-switcher-panel{
    width:min(520px, calc(100vw - 40px));
}
.atlasgrt-org-switcher-item{
    min-height:64px;
}
.atlasgrt-org-switcher-item.is-active{
    border-color:rgba(0,122,84,.24);
    box-shadow:inset 3px 0 0 #00FFA5;
}
.atlasgrt-org-switcher-badge{
    background:linear-gradient(180deg,#00FFA5,#0fcf8a);
    color:#062019;
}

body.atlasgrt-skin-atlas .atlasgrt-context-pill,
body.atlasgrt-skin-hst .atlasgrt-context-pill{
    background:rgba(255,255,255,.045);
    border-color:var(--atlasgrt-border);
    color:var(--atlasgrt-text);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
body.atlasgrt-skin-atlas .atlasgrt-context-pill:hover,
body.atlasgrt-skin-atlas .atlasgrt-context-pill.active,
body.atlasgrt-skin-hst .atlasgrt-context-pill:hover,
body.atlasgrt-skin-hst .atlasgrt-context-pill.active{
    color:var(--atlasgrt-text);
    border-color:var(--atlasgrt-skin-accent);
    box-shadow:0 0 0 3px var(--atlasgrt-skin-accent-soft), inset 0 1px 0 rgba(255,255,255,.06);
}
body.atlasgrt-skin-atlas .atlasgrt-company-switcher-toggle{
    background:linear-gradient(145deg,rgba(0,255,165,.10),rgba(11,23,43,.96) 42%,rgba(20,40,66,.94));
    border-color:rgba(0,255,165,.28);
    box-shadow:0 16px 34px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.05);
}
body.atlasgrt-skin-hst .atlasgrt-company-switcher-toggle{
    background:linear-gradient(145deg,rgba(247,169,0,.16),rgba(23,31,42,.98) 42%,rgba(35,27,13,.94));
    border-color:rgba(247,169,0,.38);
    box-shadow:0 16px 34px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.05);
}
body.atlasgrt-skin-claro .atlasgrt-company-switcher-toggle{
    border-color:rgba(0,122,84,.20);
    box-shadow:0 12px 30px rgba(0,122,84,.08), inset 0 1px 0 rgba(255,255,255,.80);
}
body.atlasgrt-skin-atlas .atlasgrt-company-switcher-action,
body.atlasgrt-skin-atlas .atlasgrt-org-switcher-mini-meta{color:#7ee8c2;}
body.atlasgrt-skin-hst .atlasgrt-company-switcher-action,
body.atlasgrt-skin-hst .atlasgrt-org-switcher-mini-meta{color:#ffd26b;}
body.atlasgrt-skin-atlas .atlasgrt-company-switcher-count,
body.atlasgrt-skin-hst .atlasgrt-company-switcher-count{
    background:rgba(255,255,255,.08);
    color:var(--atlasgrt-text-soft);
}
body.atlasgrt-skin-atlas .atlasgrt-org-switcher-panel,
body.atlasgrt-skin-hst .atlasgrt-org-switcher-panel{
    background:linear-gradient(145deg,var(--atlasgrt-white),rgba(7,18,37,.98));
    border-color:var(--atlasgrt-border);
    box-shadow:0 30px 70px rgba(0,0,0,.34);
    color:var(--atlasgrt-text);
}
body.atlasgrt-skin-hst .atlasgrt-org-switcher-panel{
    background:linear-gradient(145deg,var(--atlasgrt-white),rgba(16,21,28,.98));
}
body.atlasgrt-skin-atlas .atlasgrt-org-switcher-header,
body.atlasgrt-skin-hst .atlasgrt-org-switcher-header{
    border-color:var(--atlasgrt-border);
    background:rgba(255,255,255,.025);
}
body.atlasgrt-skin-atlas .atlasgrt-org-switcher-title,
body.atlasgrt-skin-hst .atlasgrt-org-switcher-title,
body.atlasgrt-skin-atlas .atlasgrt-org-switcher-item-title,
body.atlasgrt-skin-hst .atlasgrt-org-switcher-item-title{color:var(--atlasgrt-text);}
body.atlasgrt-skin-atlas .atlasgrt-org-switcher-subtitle,
body.atlasgrt-skin-atlas .atlasgrt-org-switcher-section-title,
body.atlasgrt-skin-atlas .atlasgrt-org-switcher-item-subtitle,
body.atlasgrt-skin-hst .atlasgrt-org-switcher-subtitle,
body.atlasgrt-skin-hst .atlasgrt-org-switcher-section-title,
body.atlasgrt-skin-hst .atlasgrt-org-switcher-item-subtitle{color:var(--atlasgrt-text-soft);}
body.atlasgrt-skin-atlas .atlasgrt-org-switcher-scope-note,
body.atlasgrt-skin-hst .atlasgrt-org-switcher-scope-note{
    background:rgba(255,255,255,.045);
    border-color:var(--atlasgrt-border);
    color:var(--atlasgrt-text-soft);
}
body.atlasgrt-skin-atlas .atlasgrt-org-switcher-item,
body.atlasgrt-skin-hst .atlasgrt-org-switcher-item,
body.atlasgrt-skin-atlas .atlasgrt-org-switcher-empty,
body.atlasgrt-skin-hst .atlasgrt-org-switcher-empty{
    background:rgba(255,255,255,.045);
    border-color:var(--atlasgrt-border);
    color:var(--atlasgrt-text);
}
body.atlasgrt-skin-atlas .atlasgrt-org-switcher-item:hover,
body.atlasgrt-skin-atlas .atlasgrt-org-switcher-item:focus,
body.atlasgrt-skin-hst .atlasgrt-org-switcher-item:hover,
body.atlasgrt-skin-hst .atlasgrt-org-switcher-item:focus{
    border-color:var(--atlasgrt-skin-accent);
    box-shadow:0 10px 22px rgba(0,0,0,.20), 0 0 0 3px var(--atlasgrt-skin-accent-soft);
}
body.atlasgrt-skin-atlas .atlasgrt-org-switcher-item.is-active,
body.atlasgrt-skin-hst .atlasgrt-org-switcher-item.is-active{
    background:rgba(255,255,255,.065);
    border-color:var(--atlasgrt-skin-accent);
}
body.atlasgrt-skin-atlas .atlasgrt-org-switcher-scope-note a{color:#7ee8c2;}
body.atlasgrt-skin-hst .atlasgrt-org-switcher-scope-note a{color:#ffd26b;}
body.atlasgrt-skin-hst .atlasgrt-org-switcher-badge{
    background:linear-gradient(180deg,#f7a900,#d99000);
    color:#1d1400;
}
body.atlasgrt-skin-claro .atlasgrt-org-switcher-panel{
    border-color:rgba(0,122,84,.18);
    box-shadow:0 28px 64px rgba(15,23,42,.14);
}
body.atlasgrt-skin-claro .atlasgrt-org-switcher-item.is-active{
    border-color:rgba(0,122,84,.24);
    background:linear-gradient(180deg,#ffffff,#f4fff9);
}
@media(max-width:575.98px){
    .atlasgrt-company-switcher-toggle{min-width:0;}
    .atlasgrt-company-switcher-mainline{align-items:flex-start;flex-direction:column;gap:.25rem;}
}

/* AtlasGRT487 · Corrección transversal de skins oscuros para Gestión preventiva / Gestión HST.
   Objetivo: evitar tarjetas blancas con texto de bajo contraste cuando el módulo define fondos locales (#fff)
   y mantener la barra de submódulos legible en Modo Atlas y HST operativo. */
body.atlasgrt-skin-atlas .pg-submodule-bar,
body.atlasgrt-skin-hst .pg-submodule-bar,
body.atlasgrt-skin-atlas .pp-switcher,
body.atlasgrt-skin-hst .pp-switcher,
body.atlasgrt-skin-atlas .ml-submodule-bar,
body.atlasgrt-skin-hst .ml-submodule-bar,
body.atlasgrt-skin-atlas .lv-submodule-bar,
body.atlasgrt-skin-hst .lv-submodule-bar{
    color:var(--atlasgrt-text) !important;
}

body.atlasgrt-skin-atlas .pg-switcher .btn,
body.atlasgrt-skin-atlas .pp-switcher .btn,
body.atlasgrt-skin-atlas .ml-submodule-bar .btn,
body.atlasgrt-skin-atlas .lv-submodule-bar .btn,
body.atlasgrt-skin-atlas .btn-outline-dark,
body.atlasgrt-skin-hst .pg-switcher .btn,
body.atlasgrt-skin-hst .pp-switcher .btn,
body.atlasgrt-skin-hst .ml-submodule-bar .btn,
body.atlasgrt-skin-hst .lv-submodule-bar .btn,
body.atlasgrt-skin-hst .btn-outline-dark{
    color:var(--atlasgrt-text-soft) !important;
    border-color:var(--atlasgrt-border) !important;
    background:rgba(255,255,255,.035) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.045) !important;
}
body.atlasgrt-skin-atlas .pg-switcher .btn.btn-dark,
body.atlasgrt-skin-atlas .pp-switcher .btn.btn-dark,
body.atlasgrt-skin-atlas .ml-submodule-bar .btn.btn-dark,
body.atlasgrt-skin-atlas .lv-submodule-bar .btn.btn-dark,
body.atlasgrt-skin-atlas .btn-outline-dark.is-active,
body.atlasgrt-skin-atlas .btn-outline-dark.active,
body.atlasgrt-skin-atlas .btn-outline-dark:hover,
body.atlasgrt-skin-hst .pg-switcher .btn.btn-dark,
body.atlasgrt-skin-hst .pp-switcher .btn.btn-dark,
body.atlasgrt-skin-hst .ml-submodule-bar .btn.btn-dark,
body.atlasgrt-skin-hst .lv-submodule-bar .btn.btn-dark,
body.atlasgrt-skin-hst .btn-outline-dark.is-active,
body.atlasgrt-skin-hst .btn-outline-dark.active,
body.atlasgrt-skin-hst .btn-outline-dark:hover{
    color:var(--atlasgrt-skin-accent-contrast,#062019) !important;
    border-color:var(--atlasgrt-skin-accent) !important;
    background:linear-gradient(180deg,var(--atlasgrt-skin-accent),color-mix(in srgb,var(--atlasgrt-skin-accent) 76%,#000 24%)) !important;
    box-shadow:0 10px 24px var(--atlasgrt-skin-accent-soft), inset 0 1px 0 rgba(255,255,255,.18) !important;
}
body.atlasgrt-skin-atlas .pg-switcher .btn:not(.btn-dark):hover,
body.atlasgrt-skin-atlas .pp-switcher .btn:not(.btn-dark):hover,
body.atlasgrt-skin-hst .pg-switcher .btn:not(.btn-dark):hover,
body.atlasgrt-skin-hst .pp-switcher .btn:not(.btn-dark):hover{
    color:var(--atlasgrt-text) !important;
    border-color:var(--atlasgrt-skin-accent) !important;
    background:var(--atlasgrt-skin-accent-soft) !important;
}

body.atlasgrt-skin-atlas .pg-catalog-item,
body.atlasgrt-skin-atlas .pg-item,
body.atlasgrt-skin-atlas .pg-form-note,
body.atlasgrt-skin-atlas .pg-photo-item,
body.atlasgrt-skin-atlas .pg-ai-card,
body.atlasgrt-skin-atlas .pg-puesto-list-card,
body.atlasgrt-skin-atlas .pg-selected-photo-item,
body.atlasgrt-skin-atlas .pg-observation-card,
body.atlasgrt-skin-atlas .pg-empty-soft,
body.atlasgrt-skin-atlas .pg-workspace-panel,
body.atlasgrt-skin-atlas .pp-catalog-item,
body.atlasgrt-skin-atlas .pp-risk-item,
body.atlasgrt-skin-atlas .pp-card-note,
body.atlasgrt-skin-atlas .pp-aplica-check,
body.atlasgrt-skin-atlas .pp-aplica-empty,
body.atlasgrt-skin-atlas .pp-atlas-empty,
body.atlasgrt-skin-atlas .pp-matrix-summary-card,
body.atlasgrt-skin-atlas .pp-matrix-wrap,
body.atlasgrt-skin-atlas .pp-map-side,
body.atlasgrt-skin-atlas .pp-map-sector-card,
body.atlasgrt-skin-atlas .pp-map-empty,
body.atlasgrt-skin-atlas .pp-map-note,
body.atlasgrt-skin-atlas .ml-card,
body.atlasgrt-skin-atlas .ml-check-card,
body.atlasgrt-skin-atlas .ml-filter-item,
body.atlasgrt-skin-atlas .ml-legajo-step,
body.atlasgrt-skin-atlas .ml-legajo-preview-section,
body.atlasgrt-skin-atlas .ml-legajo-preview-list,
body.atlasgrt-skin-atlas .lv-card,
body.atlasgrt-skin-atlas .lv-empty-state,
body.atlasgrt-skin-atlas .hallazgo-mini-item,
body.atlasgrt-skin-atlas .hallazgo-empty,
body.atlasgrt-skin-atlas .hallazgo-kpi,
body.atlasgrt-skin-atlas .hallazgo-step-pane,
body.atlasgrt-skin-atlas .atlasgrt-block-header,
body.atlasgrt-skin-atlas .atlasgrt-skin-selector-card{
    background:linear-gradient(145deg,#0b172b,#111f35) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
    box-shadow:0 14px 34px rgba(0,0,0,.22) !important;
}
body.atlasgrt-skin-hst .pg-catalog-item,
body.atlasgrt-skin-hst .pg-item,
body.atlasgrt-skin-hst .pg-form-note,
body.atlasgrt-skin-hst .pg-photo-item,
body.atlasgrt-skin-hst .pg-ai-card,
body.atlasgrt-skin-hst .pg-puesto-list-card,
body.atlasgrt-skin-hst .pg-selected-photo-item,
body.atlasgrt-skin-hst .pg-observation-card,
body.atlasgrt-skin-hst .pg-empty-soft,
body.atlasgrt-skin-hst .pg-workspace-panel,
body.atlasgrt-skin-hst .pp-catalog-item,
body.atlasgrt-skin-hst .pp-risk-item,
body.atlasgrt-skin-hst .pp-card-note,
body.atlasgrt-skin-hst .pp-aplica-check,
body.atlasgrt-skin-hst .pp-aplica-empty,
body.atlasgrt-skin-hst .pp-atlas-empty,
body.atlasgrt-skin-hst .pp-matrix-summary-card,
body.atlasgrt-skin-hst .pp-matrix-wrap,
body.atlasgrt-skin-hst .pp-map-side,
body.atlasgrt-skin-hst .pp-map-sector-card,
body.atlasgrt-skin-hst .pp-map-empty,
body.atlasgrt-skin-hst .pp-map-note,
body.atlasgrt-skin-hst .ml-card,
body.atlasgrt-skin-hst .ml-check-card,
body.atlasgrt-skin-hst .ml-filter-item,
body.atlasgrt-skin-hst .ml-legajo-step,
body.atlasgrt-skin-hst .ml-legajo-preview-section,
body.atlasgrt-skin-hst .ml-legajo-preview-list,
body.atlasgrt-skin-hst .lv-card,
body.atlasgrt-skin-hst .lv-empty-state,
body.atlasgrt-skin-hst .hallazgo-mini-item,
body.atlasgrt-skin-hst .hallazgo-empty,
body.atlasgrt-skin-hst .hallazgo-kpi,
body.atlasgrt-skin-hst .hallazgo-step-pane,
body.atlasgrt-skin-hst .atlasgrt-block-header,
body.atlasgrt-skin-hst .atlasgrt-skin-selector-card{
    background:linear-gradient(145deg,#171f2a,#10151c) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
    box-shadow:0 14px 34px rgba(0,0,0,.22) !important;
}

body.atlasgrt-skin-atlas .pg-catalog-item.active,
body.atlasgrt-skin-atlas .pp-catalog-item.active,
body.atlasgrt-skin-hst .pg-catalog-item.active,
body.atlasgrt-skin-hst .pp-catalog-item.active{
    border-color:var(--atlasgrt-skin-accent) !important;
    box-shadow:0 0 0 2px var(--atlasgrt-skin-accent-soft),0 14px 34px rgba(0,0,0,.24) !important;
}
body.atlasgrt-skin-atlas .pg-catalog-item:hover,
body.atlasgrt-skin-atlas .pp-catalog-item:hover,
body.atlasgrt-skin-hst .pg-catalog-item:hover,
body.atlasgrt-skin-hst .pp-catalog-item:hover{
    border-color:var(--atlasgrt-skin-accent) !important;
    box-shadow:0 14px 32px rgba(0,0,0,.22),0 0 0 3px var(--atlasgrt-skin-accent-soft) !important;
}

body.atlasgrt-skin-atlas .pg-catalog-chip,
body.atlasgrt-skin-atlas .pp-atlas-badge,
body.atlasgrt-skin-atlas .pp-matrix-chip,
body.atlasgrt-skin-atlas .ml-chip,
body.atlasgrt-skin-atlas .lv-chip-note,
body.atlasgrt-skin-atlas .lv-pill,
body.atlasgrt-skin-hst .pg-catalog-chip,
body.atlasgrt-skin-hst .pp-atlas-badge,
body.atlasgrt-skin-hst .pp-matrix-chip,
body.atlasgrt-skin-hst .ml-chip,
body.atlasgrt-skin-hst .lv-chip-note,
body.atlasgrt-skin-hst .lv-pill{
    background:rgba(255,255,255,.07) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text-soft) !important;
}

body.atlasgrt-skin-atlas .atlasgrt-list-title,
body.atlasgrt-skin-atlas .pg-item-copy .fw-semibold,
body.atlasgrt-skin-atlas .pp-matrix-summary-value,
body.atlasgrt-skin-atlas .ml-value,
body.atlasgrt-skin-atlas .lv-metric-value,
body.atlasgrt-skin-atlas .hallazgo-kpi-value,
body.atlasgrt-skin-hst .atlasgrt-list-title,
body.atlasgrt-skin-hst .pg-item-copy .fw-semibold,
body.atlasgrt-skin-hst .pp-matrix-summary-value,
body.atlasgrt-skin-hst .ml-value,
body.atlasgrt-skin-hst .lv-metric-value,
body.atlasgrt-skin-hst .hallazgo-kpi-value{
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .atlasgrt-list-subtitle,
body.atlasgrt-skin-atlas .pg-catalog-note,
body.atlasgrt-skin-atlas .pg-layout-meta,
body.atlasgrt-skin-atlas .pg-photo-meta,
body.atlasgrt-skin-atlas .pp-matrix-summary-label,
body.atlasgrt-skin-atlas .ml-muted,
body.atlasgrt-skin-atlas .ml-label,
body.atlasgrt-skin-atlas .lv-chip-note,
body.atlasgrt-skin-atlas .hallazgo-kpi-label,
body.atlasgrt-skin-hst .atlasgrt-list-subtitle,
body.atlasgrt-skin-hst .pg-catalog-note,
body.atlasgrt-skin-hst .pg-layout-meta,
body.atlasgrt-skin-hst .pg-photo-meta,
body.atlasgrt-skin-hst .pp-matrix-summary-label,
body.atlasgrt-skin-hst .ml-muted,
body.atlasgrt-skin-hst .ml-label,
body.atlasgrt-skin-hst .lv-chip-note,
body.atlasgrt-skin-hst .hallazgo-kpi-label{
    color:var(--atlasgrt-text-soft) !important;
}

body.atlasgrt-skin-atlas .pp-matrix-table thead th,
body.atlasgrt-skin-atlas .pp-matrix-table .is-sticky-left,
body.atlasgrt-skin-atlas .pp-matrix-table thead .is-sticky-left,
body.atlasgrt-skin-hst .pp-matrix-table thead th,
body.atlasgrt-skin-hst .pp-matrix-table .is-sticky-left,
body.atlasgrt-skin-hst .pp-matrix-table thead .is-sticky-left{
    background:var(--atlasgrt-white) !important;
    color:var(--atlasgrt-text) !important;
    border-color:var(--atlasgrt-border) !important;
}
body.atlasgrt-skin-atlas .pp-matrix-table th,
body.atlasgrt-skin-atlas .pp-matrix-table td,
body.atlasgrt-skin-hst .pp-matrix-table th,
body.atlasgrt-skin-hst .pp-matrix-table td{
    border-color:var(--atlasgrt-border) !important;
}

body.atlasgrt-skin-atlas .pg-layout-stage,
body.atlasgrt-skin-atlas .pg-layout-preview-stage,
body.atlasgrt-skin-atlas .pg-layout-modal-stage,
body.atlasgrt-skin-atlas .pp-map-frame,
body.atlasgrt-skin-hst .pg-layout-stage,
body.atlasgrt-skin-hst .pg-layout-preview-stage,
body.atlasgrt-skin-hst .pg-layout-modal-stage,
body.atlasgrt-skin-hst .pp-map-frame{
    background:rgba(255,255,255,.045) !important;
    border-color:var(--atlasgrt-border) !important;
}
body.atlasgrt-skin-atlas .pg-layout-modal .modal-body,
body.atlasgrt-skin-atlas .pg-sector-modal .modal-body,
body.atlasgrt-skin-atlas #pgLayoutFormModal .modal-footer,
body.atlasgrt-skin-atlas #pgSectorFormModal .modal-footer,
body.atlasgrt-skin-atlas #pgMachineFormModal .modal-footer,
body.atlasgrt-skin-hst .pg-layout-modal .modal-body,
body.atlasgrt-skin-hst .pg-sector-modal .modal-body,
body.atlasgrt-skin-hst #pgLayoutFormModal .modal-footer,
body.atlasgrt-skin-hst #pgSectorFormModal .modal-footer,
body.atlasgrt-skin-hst #pgMachineFormModal .modal-footer{
    background:var(--atlasgrt-white) !important;
    color:var(--atlasgrt-text) !important;
    border-color:var(--atlasgrt-border) !important;
}
body.atlasgrt-skin-atlas .pg-layout-guard,
body.atlasgrt-skin-hst .pg-layout-guard,
body.atlasgrt-skin-atlas .pg-state-btn.is-active,
body.atlasgrt-skin-hst .pg-state-btn.is-active{
    background:rgba(247,169,0,.12) !important;
    color:#ffd26b !important;
    border-color:rgba(247,169,0,.34) !important;
}
body.atlasgrt-skin-atlas .pg-state-btn.is-inactive,
body.atlasgrt-skin-hst .pg-state-btn.is-inactive{
    background:rgba(0,255,165,.10) !important;
    color:#7ee8c2 !important;
    border-color:rgba(0,255,165,.26) !important;
}

/* AtlasGRT489 · Barra de submódulos canónica.
   Alinea las barras reales de módulos con Visual Atlas → Nivel 1.
   Criterio: contenedor tipo píldora, tabs internos livianos, activo por superficie elevada + punto de estado;
   no usar botón sólido primario como lenguaje de submódulo. */
.pg-switcher,
.pp-switcher,
.ml-switcher,
.lv-switcher,
.mesa-submodule-switcher,
.op-switcher,
.matriz-switcher{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    flex-wrap:wrap;
    width:fit-content;
    max-width:100%;
    margin-left:auto;
    padding:8px;
    border:1px solid rgba(148,163,184,.26);
    border-radius:20px;
    background:#f8fafc;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.70), 0 8px 22px rgba(15,23,42,.035);
}
.pg-switcher .btn:not(.btn-primary),
.pp-switcher .btn:not(.btn-primary),
.ml-switcher .btn:not(.btn-primary),
.lv-switcher .btn:not(.btn-primary),
.mesa-submodule-switcher .btn:not(.btn-primary),
.op-switcher .btn:not(.btn-primary),
.matriz-switcher .btn:not(.btn-primary){
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-width:0 !important;
    min-height:38px !important;
    height:38px;
    padding:0 14px !important;
    border-radius:14px !important;
    border:1px solid transparent !important;
    background:transparent !important;
    color:#64748b !important;
    font-size:.84rem;
    font-weight:650;
    line-height:1;
    white-space:nowrap;
    text-decoration:none;
    box-shadow:none !important;
    transition:background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.pg-switcher .btn:not(.btn-primary):hover,
.pp-switcher .btn:not(.btn-primary):hover,
.ml-switcher .btn:not(.btn-primary):hover,
.lv-switcher .btn:not(.btn-primary):hover,
.mesa-submodule-switcher .btn:not(.btn-primary):hover,
.op-switcher .btn:not(.btn-primary):hover,
.matriz-switcher .btn:not(.btn-primary):hover{
    color:#0f172a !important;
    border-color:#dbe3ee !important;
    background:#ffffff !important;
    box-shadow:0 8px 18px rgba(15,23,42,.06) !important;
}
.pg-switcher .btn.btn-dark:not(.btn-primary),
.pp-switcher .btn.btn-dark:not(.btn-primary),
.ml-switcher .btn.btn-dark:not(.btn-primary),
.lv-switcher .btn.btn-dark:not(.btn-primary),
.mesa-submodule-switcher .btn.btn-dark:not(.btn-primary),
.op-switcher .btn.btn-dark:not(.btn-primary),
.matriz-switcher .btn.btn-dark:not(.btn-primary){
    color:#071225 !important;
    background:linear-gradient(180deg,#ffffff,#eef2f7) !important;
    border-color:#dbe3ee !important;
    box-shadow:0 8px 18px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.80) !important;
}
.pg-switcher .btn.btn-dark:not(.btn-primary)::before,
.pp-switcher .btn.btn-dark:not(.btn-primary)::before,
.ml-switcher .btn.btn-dark:not(.btn-primary)::before,
.lv-switcher .btn.btn-dark:not(.btn-primary)::before,
.mesa-submodule-switcher .btn.btn-dark:not(.btn-primary)::before,
.op-switcher .btn.btn-dark:not(.btn-primary)::before,
.matriz-switcher .btn.btn-dark:not(.btn-primary)::before{
    content:'';
    width:8px;
    height:8px;
    flex:0 0 8px;
    border-radius:999px;
    background:var(--atlasgrt-skin-accent,#00FFA5);
    box-shadow:0 0 0 4px rgba(0,255,165,.13);
}
body.atlasgrt-skin-claro .pg-switcher,
body.atlasgrt-skin-claro .pp-switcher,
body.atlasgrt-skin-claro .ml-switcher,
body.atlasgrt-skin-claro .lv-switcher,
body.atlasgrt-skin-claro .mesa-submodule-switcher,
body.atlasgrt-skin-claro .op-switcher,
body.atlasgrt-skin-claro .matriz-switcher{
    background:rgba(255,255,255,.88);
    border-color:rgba(0,122,84,.16);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.82), 0 10px 24px rgba(15,23,42,.055);
}
body.atlasgrt-skin-claro .pg-switcher .btn.btn-dark:not(.btn-primary),
body.atlasgrt-skin-claro .pp-switcher .btn.btn-dark:not(.btn-primary),
body.atlasgrt-skin-claro .ml-switcher .btn.btn-dark:not(.btn-primary),
body.atlasgrt-skin-claro .lv-switcher .btn.btn-dark:not(.btn-primary),
body.atlasgrt-skin-claro .mesa-submodule-switcher .btn.btn-dark:not(.btn-primary),
body.atlasgrt-skin-claro .op-switcher .btn.btn-dark:not(.btn-primary),
body.atlasgrt-skin-claro .matriz-switcher .btn.btn-dark:not(.btn-primary){
    color:#053d2d !important;
    background:linear-gradient(180deg,#ffffff,#f4fff9) !important;
    border-color:rgba(0,122,84,.20) !important;
    box-shadow:0 10px 22px rgba(0,122,84,.08), inset 0 1px 0 rgba(255,255,255,.86) !important;
}
body.atlasgrt-skin-atlas .pg-switcher,
body.atlasgrt-skin-atlas .pp-switcher,
body.atlasgrt-skin-atlas .ml-switcher,
body.atlasgrt-skin-atlas .lv-switcher,
body.atlasgrt-skin-atlas .mesa-submodule-switcher,
body.atlasgrt-skin-atlas .op-switcher,
body.atlasgrt-skin-atlas .matriz-switcher{
    background:rgba(15,23,42,.68);
    border-color:rgba(169,189,222,.22);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.045), 0 12px 28px rgba(0,0,0,.18);
}
body.atlasgrt-skin-hst .pg-switcher,
body.atlasgrt-skin-hst .pp-switcher,
body.atlasgrt-skin-hst .ml-switcher,
body.atlasgrt-skin-hst .lv-switcher,
body.atlasgrt-skin-hst .mesa-submodule-switcher,
body.atlasgrt-skin-hst .op-switcher,
body.atlasgrt-skin-hst .matriz-switcher{
    background:rgba(247,169,0,.07);
    border-color:rgba(247,169,0,.24);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.045), 0 12px 28px rgba(0,0,0,.16);
}
body.atlasgrt-skin-atlas .pg-switcher .btn:not(.btn-primary),
body.atlasgrt-skin-atlas .pp-switcher .btn:not(.btn-primary),
body.atlasgrt-skin-atlas .ml-switcher .btn:not(.btn-primary),
body.atlasgrt-skin-atlas .lv-switcher .btn:not(.btn-primary),
body.atlasgrt-skin-atlas .mesa-submodule-switcher .btn:not(.btn-primary),
body.atlasgrt-skin-atlas .op-switcher .btn:not(.btn-primary),
body.atlasgrt-skin-atlas .matriz-switcher .btn:not(.btn-primary){
    color:#aab5c7 !important;
}
body.atlasgrt-skin-hst .pg-switcher .btn:not(.btn-primary),
body.atlasgrt-skin-hst .pp-switcher .btn:not(.btn-primary),
body.atlasgrt-skin-hst .ml-switcher .btn:not(.btn-primary),
body.atlasgrt-skin-hst .lv-switcher .btn:not(.btn-primary),
body.atlasgrt-skin-hst .mesa-submodule-switcher .btn:not(.btn-primary),
body.atlasgrt-skin-hst .op-switcher .btn:not(.btn-primary),
body.atlasgrt-skin-hst .matriz-switcher .btn:not(.btn-primary){
    color:#d9c69a !important;
}
body.atlasgrt-skin-atlas .pg-switcher .btn:not(.btn-primary):hover,
body.atlasgrt-skin-atlas .pp-switcher .btn:not(.btn-primary):hover,
body.atlasgrt-skin-atlas .ml-switcher .btn:not(.btn-primary):hover,
body.atlasgrt-skin-atlas .lv-switcher .btn:not(.btn-primary):hover,
body.atlasgrt-skin-atlas .mesa-submodule-switcher .btn:not(.btn-primary):hover,
body.atlasgrt-skin-atlas .op-switcher .btn:not(.btn-primary):hover,
body.atlasgrt-skin-atlas .matriz-switcher .btn:not(.btn-primary):hover{
    color:#f8fafc !important;
    background:rgba(0,255,165,.07) !important;
    border-color:rgba(0,255,165,.20) !important;
    box-shadow:none !important;
}
body.atlasgrt-skin-hst .pg-switcher .btn:not(.btn-primary):hover,
body.atlasgrt-skin-hst .pp-switcher .btn:not(.btn-primary):hover,
body.atlasgrt-skin-hst .ml-switcher .btn:not(.btn-primary):hover,
body.atlasgrt-skin-hst .lv-switcher .btn:not(.btn-primary):hover,
body.atlasgrt-skin-hst .mesa-submodule-switcher .btn:not(.btn-primary):hover,
body.atlasgrt-skin-hst .op-switcher .btn:not(.btn-primary):hover,
body.atlasgrt-skin-hst .matriz-switcher .btn:not(.btn-primary):hover{
    color:#fff8e7 !important;
    background:rgba(247,169,0,.10) !important;
    border-color:rgba(247,169,0,.30) !important;
    box-shadow:none !important;
}
body.atlasgrt-skin-atlas .pg-switcher .btn.btn-dark:not(.btn-primary),
body.atlasgrt-skin-atlas .pp-switcher .btn.btn-dark:not(.btn-primary),
body.atlasgrt-skin-atlas .ml-switcher .btn.btn-dark:not(.btn-primary),
body.atlasgrt-skin-atlas .lv-switcher .btn.btn-dark:not(.btn-primary),
body.atlasgrt-skin-atlas .mesa-submodule-switcher .btn.btn-dark:not(.btn-primary),
body.atlasgrt-skin-atlas .op-switcher .btn.btn-dark:not(.btn-primary),
body.atlasgrt-skin-atlas .matriz-switcher .btn.btn-dark:not(.btn-primary){
    color:#f8fafc !important;
    background:rgba(0,255,165,.10) !important;
    border-color:rgba(0,255,165,.26) !important;
    box-shadow:0 10px 22px rgba(0,255,165,.08), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
body.atlasgrt-skin-hst .pg-switcher .btn.btn-dark:not(.btn-primary),
body.atlasgrt-skin-hst .pp-switcher .btn.btn-dark:not(.btn-primary),
body.atlasgrt-skin-hst .ml-switcher .btn.btn-dark:not(.btn-primary),
body.atlasgrt-skin-hst .lv-switcher .btn.btn-dark:not(.btn-primary),
body.atlasgrt-skin-hst .mesa-submodule-switcher .btn.btn-dark:not(.btn-primary),
body.atlasgrt-skin-hst .op-switcher .btn.btn-dark:not(.btn-primary),
body.atlasgrt-skin-hst .matriz-switcher .btn.btn-dark:not(.btn-primary){
    color:#fff3cf !important;
    background:rgba(247,169,0,.14) !important;
    border-color:rgba(247,169,0,.38) !important;
    box-shadow:0 10px 22px rgba(247,169,0,.08), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
body.atlasgrt-skin-atlas .pg-switcher .btn.btn-dark:not(.btn-primary)::before,
body.atlasgrt-skin-atlas .pp-switcher .btn.btn-dark:not(.btn-primary)::before,
body.atlasgrt-skin-atlas .ml-switcher .btn.btn-dark:not(.btn-primary)::before,
body.atlasgrt-skin-atlas .lv-switcher .btn.btn-dark:not(.btn-primary)::before,
body.atlasgrt-skin-atlas .mesa-submodule-switcher .btn.btn-dark:not(.btn-primary)::before,
body.atlasgrt-skin-atlas .op-switcher .btn.btn-dark:not(.btn-primary)::before,
body.atlasgrt-skin-atlas .matriz-switcher .btn.btn-dark:not(.btn-primary)::before{
    background:#00FFA5;
    box-shadow:0 0 0 4px rgba(0,255,165,.13);
}
body.atlasgrt-skin-hst .pg-switcher .btn.btn-dark:not(.btn-primary)::before,
body.atlasgrt-skin-hst .pp-switcher .btn.btn-dark:not(.btn-primary)::before,
body.atlasgrt-skin-hst .ml-switcher .btn.btn-dark:not(.btn-primary)::before,
body.atlasgrt-skin-hst .lv-switcher .btn.btn-dark:not(.btn-primary)::before,
body.atlasgrt-skin-hst .mesa-submodule-switcher .btn.btn-dark:not(.btn-primary)::before,
body.atlasgrt-skin-hst .op-switcher .btn.btn-dark:not(.btn-primary)::before,
body.atlasgrt-skin-hst .matriz-switcher .btn.btn-dark:not(.btn-primary)::before{
    background:#f7a900;
    box-shadow:0 0 0 4px rgba(247,169,0,.15);
}
@media (max-width:991px){
    .pg-switcher,.pp-switcher,.ml-switcher,.lv-switcher,.mesa-submodule-switcher,.op-switcher,.matriz-switcher{
        justify-content:flex-start;
        margin-left:0;
        width:100%;
    }
}


/* AtlasGRT491 - saneamiento transversal de skins oscuros en Gestion Preventiva / Gestion HST. */
body.atlasgrt-skin-atlas,
body.atlasgrt-skin-hst{
    color:var(--atlasgrt-text);
}

/* Botones de herramientas y dropdowns: Exportar / configuracion / acciones compactas. */
body.atlasgrt-skin-atlas .atlasgrt-toolbar-action-btn,
body.atlasgrt-skin-atlas .btn-outline-dark,
body.atlasgrt-skin-hst .atlasgrt-toolbar-action-btn,
body.atlasgrt-skin-hst .btn-outline-dark{
    color:var(--atlasgrt-text) !important;
    background:rgba(255,255,255,.055) !important;
    border-color:var(--atlasgrt-border) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.05), 0 10px 22px rgba(0,0,0,.14) !important;
}
body.atlasgrt-skin-atlas .atlasgrt-toolbar-action-btn:hover,
body.atlasgrt-skin-atlas .btn-outline-dark:hover,
body.atlasgrt-skin-atlas .show > .atlasgrt-toolbar-action-btn.dropdown-toggle,
body.atlasgrt-skin-hst .atlasgrt-toolbar-action-btn:hover,
body.atlasgrt-skin-hst .btn-outline-dark:hover,
body.atlasgrt-skin-hst .show > .atlasgrt-toolbar-action-btn.dropdown-toggle{
    color:#fff !important;
    background:var(--atlasgrt-skin-accent-soft) !important;
    border-color:var(--atlasgrt-skin-accent) !important;
}
body.atlasgrt-skin-atlas .dropdown-menu,
body.atlasgrt-skin-hst .dropdown-menu{
    background:linear-gradient(145deg,var(--atlasgrt-white),rgba(12,20,34,.98)) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
    box-shadow:0 22px 48px rgba(0,0,0,.34) !important;
}
body.atlasgrt-skin-atlas .dropdown-item,
body.atlasgrt-skin-hst .dropdown-item{
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .dropdown-item:hover,
body.atlasgrt-skin-atlas .dropdown-item:focus,
body.atlasgrt-skin-hst .dropdown-item:hover,
body.atlasgrt-skin-hst .dropdown-item:focus{
    color:#fff !important;
    background:var(--atlasgrt-skin-accent-soft) !important;
}
body.atlasgrt-skin-atlas .dropdown-item.disabled,
body.atlasgrt-skin-atlas .dropdown-item:disabled,
body.atlasgrt-skin-hst .dropdown-item.disabled,
body.atlasgrt-skin-hst .dropdown-item:disabled{
    color:rgba(234,242,255,.34) !important;
    opacity:.65;
}

/* Perfil preventivo: filtros automaticos, matriz y mapa. */
.pp-atlas-filter-status{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:38px;
    padding:0 12px;
    border:1px dashed var(--atlasgrt-border);
    border-radius:14px;
    color:var(--atlasgrt-text-soft);
    font-size:.78rem;
    font-weight:650;
    white-space:nowrap;
}
.atlasgrt-status-dot{
    width:8px;
    height:8px;
    border-radius:999px;
    background:var(--atlasgrt-skin-accent,#00FFA5);
    box-shadow:0 0 0 4px var(--atlasgrt-skin-accent-soft,rgba(0,255,165,.12));
}
body.atlasgrt-skin-atlas .pp-matrix-summary-card,
body.atlasgrt-skin-atlas .pp-risk-item,
body.atlasgrt-skin-atlas .pp-atlas-empty,
body.atlasgrt-skin-atlas .pp-map-note,
body.atlasgrt-skin-atlas .pp-map-empty,
body.atlasgrt-skin-atlas .pp-map-stage,
body.atlasgrt-skin-atlas .pp-map-side,
body.atlasgrt-skin-atlas .pp-map-side-head,
body.atlasgrt-skin-atlas .pp-map-sector-card,
body.atlasgrt-skin-hst .pp-matrix-summary-card,
body.atlasgrt-skin-hst .pp-risk-item,
body.atlasgrt-skin-hst .pp-atlas-empty,
body.atlasgrt-skin-hst .pp-map-note,
body.atlasgrt-skin-hst .pp-map-empty,
body.atlasgrt-skin-hst .pp-map-stage,
body.atlasgrt-skin-hst .pp-map-side,
body.atlasgrt-skin-hst .pp-map-side-head,
body.atlasgrt-skin-hst .pp-map-sector-card{
    background:rgba(255,255,255,.045) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .pp-map-frame,
body.atlasgrt-skin-hst .pp-map-frame{
    background:rgba(255,255,255,.035) !important;
    border-color:var(--atlasgrt-border) !important;
}
body.atlasgrt-skin-atlas .pp-map-side-title,
body.atlasgrt-skin-hst .pp-map-side-title,
body.atlasgrt-skin-atlas .pp-map-sector-title,
body.atlasgrt-skin-hst .pp-map-sector-title{
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .pp-map-side-subtitle,
body.atlasgrt-skin-hst .pp-map-side-subtitle,
body.atlasgrt-skin-atlas .pp-map-sector-meta,
body.atlasgrt-skin-hst .pp-map-sector-meta,
body.atlasgrt-skin-atlas .pp-map-sector-puestos,
body.atlasgrt-skin-hst .pp-map-sector-puestos{
    color:var(--atlasgrt-text-soft) !important;
}

/* Hallazgos: tarjetas, stepper, selectores, avance y placeholders en skins oscuros. */
body.atlasgrt-skin-atlas .hallazgo-kpi,
body.atlasgrt-skin-atlas .hallazgo-step-chip,
body.atlasgrt-skin-atlas .hallazgo-related-chip,
body.atlasgrt-skin-atlas .hallazgo-picker-chip,
body.atlasgrt-skin-atlas .hallazgo-mini-item,
body.atlasgrt-skin-atlas .hallazgo-empty,
body.atlasgrt-skin-atlas .hallazgo-borrador-pendiente,
body.atlasgrt-skin-atlas .hallazgo-quick-progress,
body.atlasgrt-skin-atlas .hallazgo-config-block,
body.atlasgrt-skin-atlas .hallazgo-risk-visual,
body.atlasgrt-skin-atlas .hallazgo-adjunto-button,
body.atlasgrt-skin-atlas .hallazgo-preview-dialog,
body.atlasgrt-skin-atlas .hallazgo-list-thumb-empty,
body.atlasgrt-skin-hst .hallazgo-kpi,
body.atlasgrt-skin-hst .hallazgo-step-chip,
body.atlasgrt-skin-hst .hallazgo-related-chip,
body.atlasgrt-skin-hst .hallazgo-picker-chip,
body.atlasgrt-skin-hst .hallazgo-mini-item,
body.atlasgrt-skin-hst .hallazgo-empty,
body.atlasgrt-skin-hst .hallazgo-borrador-pendiente,
body.atlasgrt-skin-hst .hallazgo-quick-progress,
body.atlasgrt-skin-hst .hallazgo-config-block,
body.atlasgrt-skin-hst .hallazgo-risk-visual,
body.atlasgrt-skin-hst .hallazgo-adjunto-button,
body.atlasgrt-skin-hst .hallazgo-preview-dialog,
body.atlasgrt-skin-hst .hallazgo-list-thumb-empty{
    background:rgba(255,255,255,.045) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .hallazgo-step-chip.active,
body.atlasgrt-skin-hst .hallazgo-step-chip.active{
    color:#fff !important;
    background:var(--atlasgrt-skin-accent-soft) !important;
    border-color:var(--atlasgrt-skin-accent) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 10px 20px rgba(0,0,0,.15);
}
body.atlasgrt-skin-atlas .hallazgo-picker-chip.is-principal,
body.atlasgrt-skin-hst .hallazgo-picker-chip.is-principal{
    background:var(--atlasgrt-skin-accent-soft) !important;
    border-color:var(--atlasgrt-skin-accent) !important;
}
body.atlasgrt-skin-atlas .hallazgo-picker-chip-role,
body.atlasgrt-skin-hst .hallazgo-picker-chip-role{
    background:var(--atlasgrt-skin-accent) !important;
    color:var(--atlasgrt-skin-accent-contrast,#062019) !important;
}
body.atlasgrt-skin-atlas .hallazgo-quick-progress.is-dirty,
body.atlasgrt-skin-hst .hallazgo-quick-progress.is-dirty{
    background:rgba(245,158,11,.12) !important;
    border-color:rgba(245,158,11,.45) !important;
}
body.atlasgrt-skin-atlas .hallazgo-progress-track,
body.atlasgrt-skin-hst .hallazgo-progress-track{
    background:rgba(255,255,255,.13) !important;
}
body.atlasgrt-skin-atlas .hallazgo-quick-progress .form-range::-webkit-slider-runnable-track,
body.atlasgrt-skin-hst .hallazgo-quick-progress .form-range::-webkit-slider-runnable-track{
    background:rgba(255,255,255,.16) !important;
    border-radius:999px;
}
body.atlasgrt-skin-atlas .hallazgo-quick-progress .form-range::-moz-range-track,
body.atlasgrt-skin-hst .hallazgo-quick-progress .form-range::-moz-range-track{
    background:rgba(255,255,255,.16) !important;
    border-radius:999px;
}
body.atlasgrt-skin-atlas .hallazgo-quick-progress .form-range::-webkit-slider-thumb,
body.atlasgrt-skin-hst .hallazgo-quick-progress .form-range::-webkit-slider-thumb{
    background:var(--atlasgrt-skin-accent) !important;
    border:2px solid rgba(255,255,255,.75) !important;
    box-shadow:0 0 0 4px var(--atlasgrt-skin-accent-soft) !important;
}
body.atlasgrt-skin-atlas .hallazgo-quick-progress .form-range::-moz-range-thumb,
body.atlasgrt-skin-hst .hallazgo-quick-progress .form-range::-moz-range-thumb{
    background:var(--atlasgrt-skin-accent) !important;
    border:2px solid rgba(255,255,255,.75) !important;
    box-shadow:0 0 0 4px var(--atlasgrt-skin-accent-soft) !important;
}
.hallazgo-media-placeholder{
    flex-direction:column;
    gap:3px;
    font-size:.68rem;
    text-align:center;
    line-height:1.05;
}
.hallazgo-media-placeholder-icon{
    width:24px;
    height:24px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    background:var(--atlasgrt-skin-accent-soft,rgba(0,255,165,.12));
    color:var(--atlasgrt-skin-accent,#00FFA5);
    font-size:1rem;
}
.hallazgo-media-placeholder-text{display:block;}
body.atlasgrt-skin-atlas .hallazgo-preview-stage,
body.atlasgrt-skin-hst .hallazgo-preview-stage{
    background:rgba(255,255,255,.035) !important;
}
body.atlasgrt-skin-atlas .hallazgo-preview-frame img,
body.atlasgrt-skin-hst .hallazgo-preview-frame img{
    background:rgba(255,255,255,.045) !important;
    border-color:var(--atlasgrt-border) !important;
}

/* Control Atlas: las tarjetas de modulo no deben quedar blancas en skins oscuros. */
body.atlasgrt-skin-atlas .control-atlas-module,
body.atlasgrt-skin-hst .control-atlas-module{
    background:linear-gradient(145deg,var(--atlasgrt-white),rgba(10,16,26,.96)) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
    box-shadow:0 18px 44px rgba(0,0,0,.24) !important;
}
body.atlasgrt-skin-atlas .control-atlas-module-title,
body.atlasgrt-skin-hst .control-atlas-module-title,
body.atlasgrt-skin-atlas .control-atlas-metric-value,
body.atlasgrt-skin-hst .control-atlas-metric-value,
body.atlasgrt-skin-atlas .control-atlas-stat-value,
body.atlasgrt-skin-hst .control-atlas-stat-value,
body.atlasgrt-skin-atlas .control-atlas-line-title,
body.atlasgrt-skin-hst .control-atlas-line-title{
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .control-atlas-module-subtitle,
body.atlasgrt-skin-hst .control-atlas-module-subtitle,
body.atlasgrt-skin-atlas .control-atlas-metric-label,
body.atlasgrt-skin-hst .control-atlas-metric-label,
body.atlasgrt-skin-atlas .control-atlas-stat-label,
body.atlasgrt-skin-hst .control-atlas-stat-label,
body.atlasgrt-skin-atlas .control-atlas-line-meta,
body.atlasgrt-skin-hst .control-atlas-line-meta{
    color:var(--atlasgrt-text-soft) !important;
}
body.atlasgrt-skin-atlas .control-atlas-stat,
body.atlasgrt-skin-hst .control-atlas-stat,
body.atlasgrt-skin-atlas .control-atlas-drawer-item,
body.atlasgrt-skin-hst .control-atlas-drawer-item,
body.atlasgrt-skin-atlas .control-atlas-insight,
body.atlasgrt-skin-hst .control-atlas-insight{
    background:rgba(255,255,255,.045) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .control-atlas-lines,
body.atlasgrt-skin-hst .control-atlas-lines{
    border-color:var(--atlasgrt-border) !important;
}

/* Matriz Legal: tarjetas, filtros y tabla/lista en skins oscuros. */
body.atlasgrt-skin-atlas .ml-card,
body.atlasgrt-skin-atlas .ml-visual-card,
body.atlasgrt-skin-atlas .ml-table-wrap,
body.atlasgrt-skin-atlas .ml-empty,
body.atlasgrt-skin-atlas .ml-filter-bar,
body.atlasgrt-skin-atlas .ml-config-item,
body.atlasgrt-skin-atlas .ml-check-card,
body.atlasgrt-skin-atlas .ml-link-card,
body.atlasgrt-skin-atlas .ml-report-note,
body.atlasgrt-skin-hst .ml-card,
body.atlasgrt-skin-hst .ml-visual-card,
body.atlasgrt-skin-hst .ml-table-wrap,
body.atlasgrt-skin-hst .ml-empty,
body.atlasgrt-skin-hst .ml-filter-bar,
body.atlasgrt-skin-hst .ml-config-item,
body.atlasgrt-skin-hst .ml-check-card,
body.atlasgrt-skin-hst .ml-link-card,
body.atlasgrt-skin-hst .ml-report-note{
    background:rgba(255,255,255,.045) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
    box-shadow:0 14px 32px rgba(0,0,0,.18) !important;
}
body.atlasgrt-skin-atlas .ml-visual-card.is-inactive,
body.atlasgrt-skin-hst .ml-visual-card.is-inactive,
body.atlasgrt-skin-atlas .ml-table tr.is-inactive td,
body.atlasgrt-skin-hst .ml-table tr.is-inactive td{
    background:rgba(148,163,184,.08) !important;
    color:var(--atlasgrt-text-soft) !important;
}
body.atlasgrt-skin-atlas .ml-table thead th,
body.atlasgrt-skin-hst .ml-table thead th,
body.atlasgrt-skin-atlas .ml-table tr.ml-matrix-row + tr.is-footer td,
body.atlasgrt-skin-hst .ml-table tr.ml-matrix-row + tr.is-footer td{
    background:rgba(255,255,255,.055) !important;
    color:var(--atlasgrt-text-soft) !important;
    border-color:var(--atlasgrt-border) !important;
}
body.atlasgrt-skin-atlas .ml-table th,
body.atlasgrt-skin-atlas .ml-table td,
body.atlasgrt-skin-hst .ml-table th,
body.atlasgrt-skin-hst .ml-table td{
    border-color:var(--atlasgrt-border) !important;
}
body.atlasgrt-skin-atlas .ml-visual-card-toggle,
body.atlasgrt-skin-hst .ml-visual-card-toggle,
body.atlasgrt-skin-atlas .ml-visual-card-head-button,
body.atlasgrt-skin-hst .ml-visual-card-head-button{
    background:rgba(255,255,255,.055) !important;
    color:var(--atlasgrt-text) !important;
    border-color:var(--atlasgrt-border) !important;
}
body.atlasgrt-skin-atlas .ml-visual-card-details,
body.atlasgrt-skin-hst .ml-visual-card-details,
body.atlasgrt-skin-atlas .ml-card-vigencia-bottom,
body.atlasgrt-skin-hst .ml-card-vigencia-bottom{
    border-color:var(--atlasgrt-border) !important;
}
body.atlasgrt-skin-atlas .ml-visual-card-kpi,
body.atlasgrt-skin-hst .ml-visual-card-kpi{
    background:rgba(255,255,255,.045) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .ml-chip,
body.atlasgrt-skin-hst .ml-chip,
body.atlasgrt-skin-atlas .ml-doc-link,
body.atlasgrt-skin-hst .ml-doc-link{
    background:rgba(255,255,255,.075) !important;
    border:1px solid var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .ml-chip.is-vigente,
body.atlasgrt-skin-hst .ml-chip.is-vigente,
body.atlasgrt-skin-atlas .ml-vigencia-chip.is-vigente,
body.atlasgrt-skin-hst .ml-vigencia-chip.is-vigente{
    background:rgba(0,255,165,.13) !important;
    color:#7ee8c2 !important;
    border-color:rgba(0,255,165,.24) !important;
}
body.atlasgrt-skin-atlas .ml-chip.is-proximo,
body.atlasgrt-skin-hst .ml-chip.is-proximo,
body.atlasgrt-skin-atlas .ml-vigencia-chip.is-proximo,
body.atlasgrt-skin-hst .ml-vigencia-chip.is-proximo{
    background:rgba(245,158,11,.14) !important;
    color:#ffd26b !important;
    border-color:rgba(245,158,11,.26) !important;
}
body.atlasgrt-skin-atlas .ml-chip.is-vencido,
body.atlasgrt-skin-hst .ml-chip.is-vencido,
body.atlasgrt-skin-atlas .ml-vigencia-chip.is-vencido,
body.atlasgrt-skin-hst .ml-vigencia-chip.is-vencido{
    background:rgba(255,52,72,.12) !important;
    color:#ff98a5 !important;
    border-color:rgba(255,52,72,.24) !important;
}
body.atlasgrt-skin-atlas .ml-view-option.is-active,
body.atlasgrt-skin-hst .ml-view-option.is-active,
body.atlasgrt-skin-atlas .ml-link-card.is-primary,
body.atlasgrt-skin-hst .ml-link-card.is-primary{
    background:var(--atlasgrt-skin-accent-soft) !important;
    color:var(--atlasgrt-text) !important;
    border-color:var(--atlasgrt-skin-accent) !important;
}

/* Listas/verificacion y tarjetas generales locales que no usan atlasgrt-card. */
body.atlasgrt-skin-atlas [class*="lv-"][class*="card"],
body.atlasgrt-skin-hst [class*="lv-"][class*="card"],
body.atlasgrt-skin-atlas [class*="pp-"][class*="card"],
body.atlasgrt-skin-hst [class*="pp-"][class*="card"]{
    border-color:var(--atlasgrt-border);
}

/* Selects internos: opciones legibles cuando el navegador despliega en skins oscuros. */
body.atlasgrt-skin-atlas select option,
body.atlasgrt-skin-hst select option{
    background:#111827;
    color:#f8fafc;
}

/* AtlasGRT497 · Repaso transversal de skins oscuros según canon Visual Atlas.
   Objetivo: eliminar superficies blancas residuales y bajo contraste en Mesa de Entrada, Cartera,
   Dashboard Empresa, Listas de Verificación, Control Atlas y Matriz Legal. */
body.atlasgrt-skin-atlas,
body.atlasgrt-skin-hst{
    --atlasgrt-surface-1:var(--atlasgrt-white);
    --atlasgrt-surface-2:rgba(255,255,255,.045);
    --atlasgrt-surface-3:rgba(255,255,255,.075);
    --atlasgrt-surface-border:var(--atlasgrt-border);
    --atlasgrt-surface-shadow:0 16px 36px rgba(0,0,0,.20);
}
body.atlasgrt-skin-atlas{
    --atlasgrt-surface-gradient:linear-gradient(145deg,#0b172b,#111f35);
    --atlasgrt-surface-gradient-soft:linear-gradient(145deg,rgba(11,23,43,.96),rgba(17,31,53,.92));
}
body.atlasgrt-skin-hst{
    --atlasgrt-surface-gradient:linear-gradient(145deg,#171f2a,#10151c);
    --atlasgrt-surface-gradient-soft:linear-gradient(145deg,rgba(23,31,42,.96),rgba(16,21,28,.92));
}

/* Núcleo Bootstrap / utilitarios locales que seguían imponiendo blanco. */
body.atlasgrt-skin-atlas .card,
body.atlasgrt-skin-atlas .card-body,
body.atlasgrt-skin-atlas .card-header,
body.atlasgrt-skin-atlas .card-footer,
body.atlasgrt-skin-atlas .list-group-item,
body.atlasgrt-skin-atlas .alert-light,
body.atlasgrt-skin-atlas .bg-white,
body.atlasgrt-skin-hst .card,
body.atlasgrt-skin-hst .card-body,
body.atlasgrt-skin-hst .card-header,
body.atlasgrt-skin-hst .card-footer,
body.atlasgrt-skin-hst .list-group-item,
body.atlasgrt-skin-hst .alert-light,
body.atlasgrt-skin-hst .bg-white{
    background:var(--atlasgrt-surface-gradient-soft) !important;
    border-color:var(--atlasgrt-surface-border) !important;
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .text-dark,
body.atlasgrt-skin-atlas .text-body,
body.atlasgrt-skin-hst .text-dark,
body.atlasgrt-skin-hst .text-body{
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .small,
body.atlasgrt-skin-atlas small,
body.atlasgrt-skin-hst .small,
body.atlasgrt-skin-hst small{
    color:inherit;
}
body.atlasgrt-skin-atlas hr,
body.atlasgrt-skin-hst hr{
    border-color:var(--atlasgrt-border) !important;
    opacity:.75;
}

/* Tablas y listas con scroll en skins oscuros. */
body.atlasgrt-skin-atlas .table,
body.atlasgrt-skin-hst .table{
    color:var(--atlasgrt-text) !important;
    border-color:var(--atlasgrt-border) !important;
}
body.atlasgrt-skin-atlas .table > :not(caption) > * > *,
body.atlasgrt-skin-hst .table > :not(caption) > * > *{
    background:transparent !important;
    color:var(--atlasgrt-text) !important;
    border-color:var(--atlasgrt-border) !important;
}
body.atlasgrt-skin-atlas .table thead th,
body.atlasgrt-skin-hst .table thead th{
    background:var(--atlasgrt-surface-2) !important;
    color:var(--atlasgrt-text-soft) !important;
}
body.atlasgrt-skin-atlas .table-responsive,
body.atlasgrt-skin-hst .table-responsive{
    border-color:var(--atlasgrt-border) !important;
}

/* Mesa de Entrada Inteligente. */
body.atlasgrt-skin-atlas .mesa-workspace,
body.atlasgrt-skin-hst .mesa-workspace{
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .mesa-card-item,
body.atlasgrt-skin-atlas .mesa-preview-card,
body.atlasgrt-skin-atlas .mesa-preview-empty,
body.atlasgrt-skin-atlas .mesa-summary-card,
body.atlasgrt-skin-atlas .mesa-inline-note,
body.atlasgrt-skin-atlas .mesa-toolbar,
body.atlasgrt-skin-atlas .mesa-detail-block,
body.atlasgrt-skin-atlas .mesa-pending-card,
body.atlasgrt-skin-atlas .mesa-context-panel,
body.atlasgrt-skin-atlas .mesa-action-card,
body.atlasgrt-skin-hst .mesa-card-item,
body.atlasgrt-skin-hst .mesa-preview-card,
body.atlasgrt-skin-hst .mesa-preview-empty,
body.atlasgrt-skin-hst .mesa-summary-card,
body.atlasgrt-skin-hst .mesa-inline-note,
body.atlasgrt-skin-hst .mesa-toolbar,
body.atlasgrt-skin-hst .mesa-detail-block,
body.atlasgrt-skin-hst .mesa-pending-card,
body.atlasgrt-skin-hst .mesa-context-panel,
body.atlasgrt-skin-hst .mesa-action-card{
    background:var(--atlasgrt-surface-2) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
    box-shadow:none !important;
}
body.atlasgrt-skin-atlas .mesa-card-item.active,
body.atlasgrt-skin-hst .mesa-card-item.active{
    border-color:var(--atlasgrt-skin-accent) !important;
    box-shadow:0 0 0 3px var(--atlasgrt-skin-accent-soft) !important;
}
body.atlasgrt-skin-atlas .mesa-dropzone,
body.atlasgrt-skin-hst .mesa-dropzone{
    background:rgba(255,255,255,.055) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .mesa-dropzone:hover,
body.atlasgrt-skin-hst .mesa-dropzone:hover{
    border-color:var(--atlasgrt-skin-accent) !important;
    box-shadow:0 0 0 3px var(--atlasgrt-skin-accent-soft) !important;
}
body.atlasgrt-skin-atlas .mesa-stepper-compact,
body.atlasgrt-skin-hst .mesa-stepper-compact{
    background:rgba(255,255,255,.025) !important;
    border-color:var(--atlasgrt-border) !important;
}
body.atlasgrt-skin-atlas .mesa-step-node,
body.atlasgrt-skin-hst .mesa-step-node{
    color:var(--atlasgrt-text-soft) !important;
}
body.atlasgrt-skin-atlas .mesa-step-node.is-active,
body.atlasgrt-skin-hst .mesa-step-node.is-active{
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .mesa-card-meta,
body.atlasgrt-skin-atlas .mesa-dropzone-subtitle,
body.atlasgrt-skin-atlas .mesa-dropzone-file,
body.atlasgrt-skin-hst .mesa-card-meta,
body.atlasgrt-skin-hst .mesa-dropzone-subtitle,
body.atlasgrt-skin-hst .mesa-dropzone-file{
    color:var(--atlasgrt-text-soft) !important;
}

/* Cartera / Configuración de vistas. */
body.atlasgrt-skin-atlas .atlasgrt-picker-list,
body.atlasgrt-skin-hst .atlasgrt-picker-list{
    background:rgba(255,255,255,.035) !important;
    border-color:var(--atlasgrt-border) !important;
}
body.atlasgrt-skin-atlas .atlasgrt-picker-item,
body.atlasgrt-skin-atlas .atlasgrt-quick-card,
body.atlasgrt-skin-hst .atlasgrt-picker-item,
body.atlasgrt-skin-hst .atlasgrt-quick-card{
    background:var(--atlasgrt-surface-2) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .atlasgrt-picker-item:hover,
body.atlasgrt-skin-atlas .atlasgrt-quick-card:hover,
body.atlasgrt-skin-hst .atlasgrt-picker-item:hover,
body.atlasgrt-skin-hst .atlasgrt-quick-card:hover{
    background:var(--atlasgrt-surface-3) !important;
    border-color:var(--atlasgrt-skin-accent) !important;
}
body.atlasgrt-skin-atlas .atlasgrt-quick-card.active,
body.atlasgrt-skin-hst .atlasgrt-quick-card.active{
    background:var(--atlasgrt-skin-accent-soft) !important;
    border-color:var(--atlasgrt-skin-accent) !important;
    box-shadow:0 12px 28px rgba(0,0,0,.16),0 0 0 3px var(--atlasgrt-skin-accent-soft) !important;
}
body.atlasgrt-skin-atlas .atlasgrt-picker-title,
body.atlasgrt-skin-atlas .atlasgrt-quick-card-title,
body.atlasgrt-skin-hst .atlasgrt-picker-title,
body.atlasgrt-skin-hst .atlasgrt-quick-card-title{
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .atlasgrt-picker-subtitle,
body.atlasgrt-skin-atlas .atlasgrt-quick-card-subtitle,
body.atlasgrt-skin-hst .atlasgrt-picker-subtitle,
body.atlasgrt-skin-hst .atlasgrt-quick-card-subtitle{
    color:var(--atlasgrt-text-soft) !important;
}

/* Dashboard de empresa y Control Atlas: tarjetas de módulos y KPIs. */
body.atlasgrt-skin-atlas .atlas-company-hero-panel,
body.atlasgrt-skin-atlas .atlas-company-kpi-card,
body.atlasgrt-skin-atlas .atlas-company-panel,
body.atlasgrt-skin-atlas .atlas-company-health-card,
body.atlasgrt-skin-atlas .atlas-company-mini-card,
body.atlasgrt-skin-atlas .atlas-company-module-chip,
body.atlasgrt-skin-atlas .control-atlas-module,
body.atlasgrt-skin-atlas .control-atlas-panel,
body.atlasgrt-skin-atlas .control-atlas-summary-card,
body.atlasgrt-skin-hst .atlas-company-hero-panel,
body.atlasgrt-skin-hst .atlas-company-kpi-card,
body.atlasgrt-skin-hst .atlas-company-panel,
body.atlasgrt-skin-hst .atlas-company-health-card,
body.atlasgrt-skin-hst .atlas-company-mini-card,
body.atlasgrt-skin-hst .atlas-company-module-chip,
body.atlasgrt-skin-hst .control-atlas-module,
body.atlasgrt-skin-hst .control-atlas-panel,
body.atlasgrt-skin-hst .control-atlas-summary-card{
    background:var(--atlasgrt-surface-gradient-soft) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
    box-shadow:var(--atlasgrt-surface-shadow) !important;
}
body.atlasgrt-skin-atlas .atlas-company-panel-dark,
body.atlasgrt-skin-hst .atlas-company-panel-dark{
    background:linear-gradient(180deg,rgba(35,49,79,.72),rgba(20,30,49,.88)) !important;
}
body.atlasgrt-skin-atlas .atlas-panel-title,
body.atlasgrt-skin-atlas .atlas-company-module-chip strong,
body.atlasgrt-skin-atlas .atlas-company-health-head strong,
body.atlasgrt-skin-atlas .atlas-company-mini-card strong,
body.atlasgrt-skin-atlas .atlas-company-kpi-card strong,
body.atlasgrt-skin-hst .atlas-panel-title,
body.atlasgrt-skin-hst .atlas-company-module-chip strong,
body.atlasgrt-skin-hst .atlas-company-health-head strong,
body.atlasgrt-skin-hst .atlas-company-mini-card strong,
body.atlasgrt-skin-hst .atlas-company-kpi-card strong{
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .atlas-panel-subtitle,
body.atlasgrt-skin-atlas .atlas-company-mini-card span,
body.atlasgrt-skin-atlas .atlas-company-health-head span,
body.atlasgrt-skin-atlas .atlas-company-module-chip span,
body.atlasgrt-skin-atlas .atlas-company-kpi-card span,
body.atlasgrt-skin-hst .atlas-panel-subtitle,
body.atlasgrt-skin-hst .atlas-company-mini-card span,
body.atlasgrt-skin-hst .atlas-company-health-head span,
body.atlasgrt-skin-hst .atlas-company-module-chip span,
body.atlasgrt-skin-hst .atlas-company-kpi-card span{
    color:var(--atlasgrt-text-soft) !important;
}
body.atlasgrt-skin-atlas .atlas-company-mini-card:hover,
body.atlasgrt-skin-atlas .atlas-company-module-chip:hover,
body.atlasgrt-skin-atlas .atlas-company-health-card:hover,
body.atlasgrt-skin-hst .atlas-company-mini-card:hover,
body.atlasgrt-skin-hst .atlas-company-module-chip:hover,
body.atlasgrt-skin-hst .atlas-company-health-card:hover{
    border-color:var(--atlasgrt-skin-accent) !important;
    background:var(--atlasgrt-surface-3) !important;
}

body.atlasgrt-skin-atlas .atlas-company-health-head small,
body.atlasgrt-skin-atlas .atlas-company-health-meta span,
body.atlasgrt-skin-hst .atlas-company-health-head small,
body.atlasgrt-skin-hst .atlas-company-health-meta span{
    background:rgba(15,23,42,.42);
    border-color:rgba(148,163,184,.24);
    color:#cbd5e1;
}
body.atlasgrt-skin-atlas .atlas-company-legal-timeline,
body.atlasgrt-skin-hst .atlas-company-legal-timeline,
body.atlasgrt-skin-atlas .atlas-company-iper-bar,
body.atlasgrt-skin-hst .atlas-company-iper-bar,
body.atlasgrt-skin-atlas .atlas-company-health-empty,
body.atlasgrt-skin-hst .atlas-company-health-empty{
    background:rgba(255,255,255,.05);
    border-color:rgba(148,163,184,.24);
    color:#cbd5e1;
}
body.atlasgrt-skin-atlas .atlas-company-iper-bar,
body.atlasgrt-skin-hst .atlas-company-iper-bar{
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
body.atlasgrt-skin-atlas .atlas-company-legal-timeline-weekbar,
body.atlasgrt-skin-hst .atlas-company-legal-timeline-weekbar{
    background:rgba(148,163,184,.22);
    border-color:rgba(255,255,255,.16);
}
body.atlasgrt-skin-atlas .atlas-company-legal-timeline-week,
body.atlasgrt-skin-hst .atlas-company-legal-timeline-week{border-right-color:rgba(255,255,255,.08);}
body.atlasgrt-skin-atlas .atlas-company-legal-timeline-today,
body.atlasgrt-skin-hst .atlas-company-legal-timeline-today{border-left-color:var(--atlasgrt-skin-accent);}
body.atlasgrt-skin-atlas .atlas-company-legal-timeline-today span,
body.atlasgrt-skin-hst .atlas-company-legal-timeline-today span{background:var(--atlasgrt-skin-accent);color:#06130f;}

/* Listas de Verificación: resumen, tarjetas, resultados y verificación. */
body.atlasgrt-skin-atlas .lv-summary-box,
body.atlasgrt-skin-atlas .lv-summary-state-card,
body.atlasgrt-skin-atlas .lv-visual-card,
body.atlasgrt-skin-atlas .lv-card,
body.atlasgrt-skin-atlas .lv-view-panel,
body.atlasgrt-skin-atlas .lv-filters,
body.atlasgrt-skin-atlas .lv-panel-toolbar,
body.atlasgrt-skin-atlas .lv-results-card,
body.atlasgrt-skin-atlas .lv-results-filters,
body.atlasgrt-skin-atlas .lv-results-bulkbar,
body.atlasgrt-skin-atlas .lv-last-result-panel,
body.atlasgrt-skin-atlas .lv-verify-card,
body.atlasgrt-skin-atlas .lv-verify-type-card,
body.atlasgrt-skin-atlas .lv-verify-orderbar,
body.atlasgrt-skin-atlas .lv-check-card,
body.atlasgrt-skin-atlas .lv-check-hero,
body.atlasgrt-skin-atlas .lv-signature-box,
body.atlasgrt-skin-atlas .lv-trace-box,
body.atlasgrt-skin-atlas .lv-assignment-card,
body.atlasgrt-skin-atlas .lv-assignment-equipment,
body.atlasgrt-skin-atlas .lv-points-card,
body.atlasgrt-skin-atlas .lv-empty-state,
body.atlasgrt-skin-atlas .lv-mini-report,
body.atlasgrt-skin-hst .lv-summary-box,
body.atlasgrt-skin-hst .lv-summary-state-card,
body.atlasgrt-skin-hst .lv-visual-card,
body.atlasgrt-skin-hst .lv-card,
body.atlasgrt-skin-hst .lv-view-panel,
body.atlasgrt-skin-hst .lv-filters,
body.atlasgrt-skin-hst .lv-panel-toolbar,
body.atlasgrt-skin-hst .lv-results-card,
body.atlasgrt-skin-hst .lv-results-filters,
body.atlasgrt-skin-hst .lv-results-bulkbar,
body.atlasgrt-skin-hst .lv-last-result-panel,
body.atlasgrt-skin-hst .lv-verify-card,
body.atlasgrt-skin-hst .lv-verify-type-card,
body.atlasgrt-skin-hst .lv-verify-orderbar,
body.atlasgrt-skin-hst .lv-check-card,
body.atlasgrt-skin-hst .lv-check-hero,
body.atlasgrt-skin-hst .lv-signature-box,
body.atlasgrt-skin-hst .lv-trace-box,
body.atlasgrt-skin-hst .lv-assignment-card,
body.atlasgrt-skin-hst .lv-assignment-equipment,
body.atlasgrt-skin-hst .lv-points-card,
body.atlasgrt-skin-hst .lv-empty-state,
body.atlasgrt-skin-hst .lv-mini-report{
    background:var(--atlasgrt-surface-2) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
    box-shadow:none !important;
}
body.atlasgrt-skin-atlas .lv-summary-box-title,
body.atlasgrt-skin-atlas .lv-list-card-title,
body.atlasgrt-skin-atlas .lv-verify-title,
body.atlasgrt-skin-atlas .lv-verify-type-name,
body.atlasgrt-skin-atlas .lv-result-id,
body.atlasgrt-skin-hst .lv-summary-box-title,
body.atlasgrt-skin-hst .lv-list-card-title,
body.atlasgrt-skin-hst .lv-verify-title,
body.atlasgrt-skin-hst .lv-verify-type-name,
body.atlasgrt-skin-hst .lv-result-id{
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .lv-chip-note,
body.atlasgrt-skin-atlas .lv-list-card-subtitle,
body.atlasgrt-skin-atlas .lv-verify-meta,
body.atlasgrt-skin-atlas .lv-result-detail,
body.atlasgrt-skin-hst .lv-chip-note,
body.atlasgrt-skin-hst .lv-list-card-subtitle,
body.atlasgrt-skin-hst .lv-verify-meta,
body.atlasgrt-skin-hst .lv-result-detail{
    color:var(--atlasgrt-text-soft) !important;
}
body.atlasgrt-skin-atlas .lv-view-option,
body.atlasgrt-skin-atlas .lv-visual-card-toggle,
body.atlasgrt-skin-atlas .lv-round-action,
body.atlasgrt-skin-hst .lv-view-option,
body.atlasgrt-skin-hst .lv-visual-card-toggle,
body.atlasgrt-skin-hst .lv-round-action{
    background:rgba(255,255,255,.055) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .lv-view-option.is-active,
body.atlasgrt-skin-hst .lv-view-option.is-active{
    border-color:var(--atlasgrt-skin-accent) !important;
    background:var(--atlasgrt-skin-accent-soft) !important;
}
body.atlasgrt-skin-atlas .lv-check-image-fallback,
body.atlasgrt-skin-atlas .lv-verify-img-fallback,
body.atlasgrt-skin-atlas .lv-verify-type-fallback,
body.atlasgrt-skin-hst .lv-check-image-fallback,
body.atlasgrt-skin-hst .lv-verify-img-fallback,
body.atlasgrt-skin-hst .lv-verify-type-fallback{
    background:rgba(255,255,255,.055) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text-soft) !important;
}
body.atlasgrt-skin-atlas .lv-table,
body.atlasgrt-skin-hst .lv-table{
    background:transparent !important;
}
body.atlasgrt-skin-atlas .lv-table tbody tr:hover,
body.atlasgrt-skin-hst .lv-table tbody tr:hover{
    background:rgba(255,255,255,.035) !important;
}

/* Módulos HST / Matriz Legal: refuerzo contra superficies claras residuales. */
body.atlasgrt-skin-atlas .ml-summary-card,
body.atlasgrt-skin-atlas .ml-front-card,
body.atlasgrt-skin-atlas .ml-evidence-card,
body.atlasgrt-skin-atlas .ml-preliminar-card,
body.atlasgrt-skin-hst .ml-summary-card,
body.atlasgrt-skin-hst .ml-front-card,
body.atlasgrt-skin-hst .ml-evidence-card,
body.atlasgrt-skin-hst .ml-preliminar-card{
    background:var(--atlasgrt-surface-2) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .ml-visual-card-title,
body.atlasgrt-skin-atlas .ml-card-title,
body.atlasgrt-skin-hst .ml-visual-card-title,
body.atlasgrt-skin-hst .ml-card-title{
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .ml-visual-card-subtitle,
body.atlasgrt-skin-hst .ml-visual-card-subtitle{
    color:var(--atlasgrt-text-soft) !important;
}

/* Botones secundarios/destructivos en fondos oscuros. */
body.atlasgrt-skin-atlas .btn-outline-primary,
body.atlasgrt-skin-atlas .btn-outline-info,
body.atlasgrt-skin-atlas .btn-outline-warning,
body.atlasgrt-skin-atlas .btn-outline-danger,
body.atlasgrt-skin-hst .btn-outline-primary,
body.atlasgrt-skin-hst .btn-outline-info,
body.atlasgrt-skin-hst .btn-outline-warning,
body.atlasgrt-skin-hst .btn-outline-danger{
    background:rgba(255,255,255,.035) !important;
    box-shadow:none !important;
}
body.atlasgrt-skin-atlas .btn-outline-primary,
body.atlasgrt-skin-hst .btn-outline-primary{color:#7ee8c2 !important;border-color:rgba(0,255,165,.35) !important;}
body.atlasgrt-skin-atlas .btn-outline-warning,
body.atlasgrt-skin-hst .btn-outline-warning{color:#ffd26b !important;border-color:rgba(247,169,0,.42) !important;}
body.atlasgrt-skin-atlas .btn-outline-danger,
body.atlasgrt-skin-hst .btn-outline-danger{color:#ff98a5 !important;border-color:rgba(255,52,72,.40) !important;}
body.atlasgrt-skin-atlas .btn-outline-info,
body.atlasgrt-skin-hst .btn-outline-info{color:#93c5fd !important;border-color:rgba(147,197,253,.38) !important;}

/* Checkboxes/radios y etiquetas en bloques oscuros. */
body.atlasgrt-skin-atlas .form-check-label,
body.atlasgrt-skin-hst .form-check-label{
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .form-check-input,
body.atlasgrt-skin-hst .form-check-input{
    background-color:rgba(255,255,255,.08);
    border-color:var(--atlasgrt-border);
}
body.atlasgrt-skin-atlas .form-check-input:checked{
    background-color:#00FFA5;
    border-color:#00FFA5;
}
body.atlasgrt-skin-hst .form-check-input:checked{
    background-color:#f7a900;
    border-color:#f7a900;
}

/* AtlasGRT499 · Repaso fino de botones, etiquetas y superficies residuales.
   Alcance: skins oscuros (Modo Atlas / HST operativo) sin tocar el Modo Base.
   Criterio Visual Atlas: tarjetas sin blanco residual, etiquetas legibles, botones con jerarquía y contraste. */
body.atlasgrt-skin-atlas,
body.atlasgrt-skin-hst{
    --atlasgrt-label-bg:rgba(255,255,255,.075);
    --atlasgrt-label-border:var(--atlasgrt-border);
    --atlasgrt-label-text:var(--atlasgrt-text);
    --atlasgrt-label-soft:var(--atlasgrt-text-soft);
}

/* Botones: evitar blancos puros y outline débiles en superficies oscuras. */
body.atlasgrt-skin-atlas .btn,
body.atlasgrt-skin-hst .btn{
    border-radius:12px;
}
body.atlasgrt-skin-atlas .btn-light,
body.atlasgrt-skin-atlas .btn-outline-light,
body.atlasgrt-skin-atlas .btn-outline-dark,
body.atlasgrt-skin-hst .btn-light,
body.atlasgrt-skin-hst .btn-outline-light,
body.atlasgrt-skin-hst .btn-outline-dark{
    background:rgba(255,255,255,.052) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
    box-shadow:none !important;
}
body.atlasgrt-skin-atlas .btn-light:hover,
body.atlasgrt-skin-atlas .btn-outline-light:hover,
body.atlasgrt-skin-atlas .btn-outline-dark:hover,
body.atlasgrt-skin-hst .btn-light:hover,
body.atlasgrt-skin-hst .btn-outline-light:hover,
body.atlasgrt-skin-hst .btn-outline-dark:hover{
    background:var(--atlasgrt-skin-accent-soft) !important;
    border-color:var(--atlasgrt-skin-accent) !important;
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .btn:disabled,
body.atlasgrt-skin-atlas .btn.disabled,
body.atlasgrt-skin-hst .btn:disabled,
body.atlasgrt-skin-hst .btn.disabled{
    opacity:.56 !important;
    color:var(--atlasgrt-text-soft) !important;
    background:rgba(255,255,255,.032) !important;
    border-color:rgba(148,163,184,.18) !important;
}

/* Menús desplegables y opciones de exportación/configuración. */
body.atlasgrt-skin-atlas .dropdown-menu,
body.atlasgrt-skin-hst .dropdown-menu{
    background:var(--atlasgrt-surface-gradient-soft) !important;
    border-color:var(--atlasgrt-border) !important;
    box-shadow:0 20px 44px rgba(0,0,0,.30) !important;
}
body.atlasgrt-skin-atlas .dropdown-item,
body.atlasgrt-skin-hst .dropdown-item{
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .dropdown-item:hover,
body.atlasgrt-skin-atlas .dropdown-item:focus,
body.atlasgrt-skin-hst .dropdown-item:hover,
body.atlasgrt-skin-hst .dropdown-item:focus{
    background:var(--atlasgrt-skin-accent-soft) !important;
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .dropdown-item.disabled,
body.atlasgrt-skin-atlas .dropdown-item:disabled,
body.atlasgrt-skin-hst .dropdown-item.disabled,
body.atlasgrt-skin-hst .dropdown-item:disabled{
    color:var(--atlasgrt-text-soft) !important;
    opacity:.58;
}

/* Etiquetas, badges y chips: contorno visible, sin texto lavado. */
body.atlasgrt-skin-atlas .badge,
body.atlasgrt-skin-atlas .badge-atlasgrt,
body.atlasgrt-skin-atlas .atlasgrt-badge-outline,
body.atlasgrt-skin-atlas [class*="chip"],
body.atlasgrt-skin-atlas [class*="pill"],
body.atlasgrt-skin-hst .badge,
body.atlasgrt-skin-hst .badge-atlasgrt,
body.atlasgrt-skin-hst .atlasgrt-badge-outline,
body.atlasgrt-skin-hst [class*="chip"],
body.atlasgrt-skin-hst [class*="pill"]{
    border-color:var(--atlasgrt-label-border) !important;
}
body.atlasgrt-skin-atlas .atlasgrt-badge-outline,
body.atlasgrt-skin-hst .atlasgrt-badge-outline{
    background:var(--atlasgrt-label-bg) !important;
    color:var(--atlasgrt-text) !important;
    border:1px solid var(--atlasgrt-border) !important;
}
body.atlasgrt-skin-atlas .badge-atlasgrt.badge-warn,
body.atlasgrt-skin-hst .badge-atlasgrt.badge-warn{
    background:rgba(247,169,0,.14) !important;
    color:#ffd26b !important;
    border-color:rgba(247,169,0,.38) !important;
}
body.atlasgrt-skin-atlas .badge-atlasgrt.badge-danger,
body.atlasgrt-skin-hst .badge-atlasgrt.badge-danger{
    background:rgba(255,52,72,.13) !important;
    color:#ff9aa8 !important;
    border-color:rgba(255,52,72,.38) !important;
}
body.atlasgrt-skin-atlas .badge-atlasgrt.badge-neutral,
body.atlasgrt-skin-hst .badge-atlasgrt.badge-neutral{
    background:rgba(148,163,184,.14) !important;
    color:var(--atlasgrt-text-soft) !important;
    border-color:rgba(148,163,184,.24) !important;
}

/* Formularios y etiquetas de campo. */
body.atlasgrt-skin-atlas .form-label,
body.atlasgrt-skin-atlas label,
body.atlasgrt-skin-atlas .input-group-text,
body.atlasgrt-skin-hst .form-label,
body.atlasgrt-skin-hst label,
body.atlasgrt-skin-hst .input-group-text{
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .input-group-text,
body.atlasgrt-skin-hst .input-group-text{
    background:rgba(255,255,255,.055) !important;
    border-color:var(--atlasgrt-border) !important;
}

/* Listas de Verificación: métricas superiores, pills y bloques de estado. */
body.atlasgrt-skin-atlas .lv-metric,
body.atlasgrt-skin-hst .lv-metric{
    background:var(--atlasgrt-surface-gradient-soft) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
    box-shadow:0 10px 24px rgba(0,0,0,.14) !important;
}
body.atlasgrt-skin-atlas .lv-metric .text-muted,
body.atlasgrt-skin-hst .lv-metric .text-muted{
    color:var(--atlasgrt-text-soft) !important;
}
body.atlasgrt-skin-atlas .lv-result-pill,
body.atlasgrt-skin-hst .lv-result-pill{
    background:rgba(255,255,255,.075) !important;
    color:var(--atlasgrt-text) !important;
    border:1px solid var(--atlasgrt-border) !important;
}
body.atlasgrt-skin-atlas .lv-result-pill.is-ok,
body.atlasgrt-skin-hst .lv-result-pill.is-ok{
    background:rgba(0,255,165,.13) !important;
    color:#7ee8c2 !important;
    border-color:rgba(0,255,165,.28) !important;
}
body.atlasgrt-skin-atlas .lv-result-pill.is-danger,
body.atlasgrt-skin-hst .lv-result-pill.is-danger{
    background:rgba(255,52,72,.12) !important;
    color:#ff98a5 !important;
    border-color:rgba(255,52,72,.30) !important;
}
body.atlasgrt-skin-atlas .lv-summary-state-card .fw-bold,
body.atlasgrt-skin-hst .lv-summary-state-card .fw-bold{
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .lv-mini-report,
body.atlasgrt-skin-hst .lv-mini-report{
    background:rgba(0,0,0,.18) !important;
    color:var(--atlasgrt-text) !important;
    border:1px solid var(--atlasgrt-border) !important;
}

/* Dashboard Empresa: botones inferiores y etiquetas de módulos sin blanco puro. */
body.atlasgrt-skin-atlas .atlas-company-secondary-actions a,
body.atlasgrt-skin-hst .atlas-company-secondary-actions a{
    background:rgba(255,255,255,.055) !important;
    color:var(--atlasgrt-text) !important;
    border-color:var(--atlasgrt-border) !important;
}
body.atlasgrt-skin-atlas .atlas-company-secondary-actions a:hover,
body.atlasgrt-skin-hst .atlas-company-secondary-actions a:hover{
    background:var(--atlasgrt-skin-accent-soft) !important;
    border-color:var(--atlasgrt-skin-accent) !important;
}
body.atlasgrt-skin-atlas .atlas-company-eyebrow,
body.atlasgrt-skin-hst .atlas-company-eyebrow{
    color:var(--atlasgrt-text-soft) !important;
}
body.atlasgrt-skin-atlas .atlas-company-signal,
body.atlasgrt-skin-hst .atlas-company-signal{
    background:rgba(255,255,255,.055) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
}

/* Radar de planta: cards de layouts, encabezados y etiquetas. El plano puede seguir claro, pero el contenedor no. */
body.atlasgrt-skin-atlas .radar-layout,
body.atlasgrt-skin-hst .radar-layout{
    background:var(--atlasgrt-surface-gradient-soft) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
    box-shadow:0 16px 34px rgba(0,0,0,.24) !important;
}
body.atlasgrt-skin-atlas .radar-layout-head,
body.atlasgrt-skin-hst .radar-layout-head{
    background:rgba(0,0,0,.18) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .radar-layout-head .fw-semibold,
body.atlasgrt-skin-hst .radar-layout-head .fw-semibold{
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .radar-layout-stage,
body.atlasgrt-skin-hst .radar-layout-stage{
    background:rgba(255,255,255,.045) !important;
}
body.atlasgrt-skin-atlas .radar-layout-stage img,
body.atlasgrt-skin-hst .radar-layout-stage img{
    background:#eef5ff !important;
}
body.atlasgrt-skin-atlas .radar-context-box,
body.atlasgrt-skin-atlas .radar-filter-check,
body.atlasgrt-skin-atlas .radar-chip,
body.atlasgrt-skin-hst .radar-context-box,
body.atlasgrt-skin-hst .radar-filter-check,
body.atlasgrt-skin-hst .radar-chip{
    background:rgba(255,255,255,.055) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .radar-context-kicker,
body.atlasgrt-skin-atlas .radar-summary-label,
body.atlasgrt-skin-atlas .radar-summary-meta,
body.atlasgrt-skin-hst .radar-context-kicker,
body.atlasgrt-skin-hst .radar-summary-label,
body.atlasgrt-skin-hst .radar-summary-meta{
    color:var(--atlasgrt-text-soft) !important;
}

/* Control Atlas: inteligencia preventiva y drawer alineados al skin. */
body.atlasgrt-skin-atlas .control-atlas-intelligence,
body.atlasgrt-skin-hst .control-atlas-intelligence,
body.atlasgrt-skin-atlas .control-atlas-drawer,
body.atlasgrt-skin-hst .control-atlas-drawer{
    background:var(--atlasgrt-surface-gradient-soft) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
    box-shadow:0 18px 44px rgba(0,0,0,.24) !important;
}
body.atlasgrt-skin-atlas .control-atlas-insight-title,
body.atlasgrt-skin-hst .control-atlas-insight-title{
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .control-atlas-insight-text,
body.atlasgrt-skin-hst .control-atlas-insight-text{
    color:var(--atlasgrt-text-soft) !important;
}
body.atlasgrt-skin-atlas .control-atlas-card-action,
body.atlasgrt-skin-hst .control-atlas-card-action{
    min-width:76px;
}

/* Modo inmersivo y HUD: botones de control con contraste consistente. */
body.atlasgrt-skin-atlas .radar-immersive-hud .btn,
body.atlasgrt-skin-hst .radar-immersive-hud .btn{
    color:var(--atlasgrt-text) !important;
    border-color:var(--atlasgrt-border) !important;
}
body.atlasgrt-skin-atlas .radar-toolbar-actions .btn,
body.atlasgrt-skin-hst .radar-toolbar-actions .btn{
    font-weight:700;
}

/* Corrección de textos de baja jerarquía que quedaban demasiado lavados en HST operativo. */
body.atlasgrt-skin-hst .text-muted,
body.atlasgrt-skin-hst .atlasgrt-section-subtitle,
body.atlasgrt-skin-hst .topbar-subtitle,
body.atlasgrt-skin-hst .small.text-muted{
    color:#e2d2a8 !important;
}
body.atlasgrt-skin-atlas .text-muted,
body.atlasgrt-skin-atlas .atlasgrt-section-subtitle,
body.atlasgrt-skin-atlas .topbar-subtitle,
body.atlasgrt-skin-atlas .small.text-muted{
    color:#c2ccdc !important;
}

/* AtlasGRT501 · Hallazgos alineado a Visual Atlas.
   La navegación Resumen / Registrar / Listado es barra de submódulos, no botonera de acción. */
.hallazgos-switcher{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    flex-wrap:wrap;
    width:fit-content;
    max-width:100%;
    margin-left:auto;
    padding:8px;
    border:1px solid rgba(148,163,184,.26);
    border-radius:20px;
    background:#f8fafc;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.70), 0 8px 22px rgba(15,23,42,.035);
}
.hallazgos-switcher .btn:not(.btn-primary){
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-width:0 !important;
    min-height:38px !important;
    height:38px;
    padding:0 14px !important;
    border-radius:14px !important;
    border:1px solid transparent !important;
    background:transparent !important;
    color:#64748b !important;
    font-size:.84rem;
    font-weight:650;
    line-height:1;
    white-space:nowrap;
    text-decoration:none;
    box-shadow:none !important;
    transition:background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.hallazgos-switcher .btn:not(.btn-primary):hover{
    color:#0f172a !important;
    border-color:#dbe3ee !important;
    background:#ffffff !important;
    box-shadow:0 8px 18px rgba(15,23,42,.06) !important;
}
.hallazgos-switcher .btn.btn-dark:not(.btn-primary){
    color:#071225 !important;
    background:linear-gradient(180deg,#ffffff,#eef2f7) !important;
    border-color:#dbe3ee !important;
    box-shadow:0 8px 18px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.80) !important;
}
.hallazgos-switcher .btn.btn-dark:not(.btn-primary)::before{
    content:'';
    width:8px;
    height:8px;
    flex:0 0 8px;
    border-radius:999px;
    background:var(--atlasgrt-skin-accent,#00FFA5);
    box-shadow:0 0 0 4px rgba(0,255,165,.13);
}
body.atlasgrt-skin-claro .hallazgos-switcher{
    background:rgba(255,255,255,.88);
    border-color:rgba(0,122,84,.16);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.82), 0 10px 24px rgba(15,23,42,.055);
}
body.atlasgrt-skin-atlas .hallazgos-switcher{
    background:rgba(15,23,42,.68);
    border-color:rgba(169,189,222,.22);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.045), 0 12px 28px rgba(0,0,0,.18);
}
body.atlasgrt-skin-hst .hallazgos-switcher{
    background:rgba(247,169,0,.07);
    border-color:rgba(247,169,0,.24);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.045), 0 12px 28px rgba(0,0,0,.16);
}
body.atlasgrt-skin-atlas .hallazgos-switcher .btn:not(.btn-primary){color:#aab5c7 !important;}
body.atlasgrt-skin-hst .hallazgos-switcher .btn:not(.btn-primary){color:#d9c69a !important;}
body.atlasgrt-skin-atlas .hallazgos-switcher .btn:not(.btn-primary):hover{
    color:#f8fafc !important;
    background:rgba(0,255,165,.07) !important;
    border-color:rgba(0,255,165,.20) !important;
    box-shadow:none !important;
}
body.atlasgrt-skin-hst .hallazgos-switcher .btn:not(.btn-primary):hover{
    color:#fff8e7 !important;
    background:rgba(247,169,0,.10) !important;
    border-color:rgba(247,169,0,.30) !important;
    box-shadow:none !important;
}
body.atlasgrt-skin-atlas .hallazgos-switcher .btn.btn-dark:not(.btn-primary){
    color:#f8fafc !important;
    background:rgba(0,255,165,.10) !important;
    border-color:rgba(0,255,165,.26) !important;
    box-shadow:0 10px 22px rgba(0,255,165,.08), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
body.atlasgrt-skin-hst .hallazgos-switcher .btn.btn-dark:not(.btn-primary){
    color:#fff3cf !important;
    background:rgba(247,169,0,.14) !important;
    border-color:rgba(247,169,0,.38) !important;
    box-shadow:0 10px 22px rgba(247,169,0,.08), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
body.atlasgrt-skin-atlas .hallazgos-switcher .btn.btn-dark:not(.btn-primary)::before{
    background:#00FFA5;
    box-shadow:0 0 0 4px rgba(0,255,165,.13);
}
body.atlasgrt-skin-hst .hallazgos-switcher .btn.btn-dark:not(.btn-primary)::before{
    background:#f7a900;
    box-shadow:0 0 0 4px rgba(247,169,0,.15);
}
body.atlasgrt-skin-atlas .form-select.is-invalid,
body.atlasgrt-skin-hst .form-select.is-invalid{
    background-repeat:no-repeat !important;
    background-position:right .75rem center !important;
    background-size:16px 16px !important;
    padding-right:2.35rem !important;
    border-color:#ef4444 !important;
    box-shadow:0 0 0 .12rem rgba(239,68,68,.15) !important;
}
body.atlasgrt-skin-atlas .hallazgo-picker .form-select.is-invalid,
body.atlasgrt-skin-hst .hallazgo-picker .form-select.is-invalid{
    background-color:rgba(239,68,68,.08) !important;
}
@media (max-width:991px){
    .hallazgos-switcher{
        justify-content:flex-start;
        margin-left:0;
        width:100%;
    }
}


/* AtlasGRT505 · Reducción cognitiva inicial transversal
   El header dinámico identifica el módulo; las barras internas quedan para navegar/actuar. */
.atlasgrt-cognitive-nav-card{padding:12px 14px;}
.pg-section-shell>.atlasgrt-card.mb-4:first-of-type,
.lv-submodule-bar,
.hallazgos-module-head,
.ml-toolbar,
.radar-toolbar,
.control-atlas-toolbar{min-height:auto;}
.pg-section-shell>.atlasgrt-card.mb-4:first-of-type,
.hallazgos-module-head{padding:12px 14px;}
.pg-submodule-bar,.lv-submodule-bar{width:100%;}
.pg-switcher,.lv-switcher,.pp-switcher,.hallazgos-switcher,.ml-switcher{margin-left:auto;}
.ml-toolbar,.radar-toolbar,.control-atlas-toolbar{justify-content:flex-end;gap:12px;}
.radar-toolbar-actions,.control-atlas-toolbar-actions{margin-left:auto;}
@media (max-width:991px){.pg-submodule-bar,.lv-submodule-bar,.ml-toolbar,.radar-toolbar,.control-atlas-toolbar{justify-content:flex-start;}.pg-switcher,.lv-switcher,.pp-switcher,.hallazgos-switcher,.ml-switcher{margin-left:0;}}

/* AtlasGRT507 · Barra de submódulos full-width para Matriz Legal y Listas de Verificación.
   Criterio Visual Atlas: la barra estructural ocupa todo el ancho disponible; los tabs navegan y las acciones quedan separadas. */
.ml-toolbar,
.lv-submodule-bar{
    width:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
    padding:8px 10px !important;
    border:1px solid var(--atlasgrt-border) !important;
    border-radius:22px !important;
    background:var(--atlasgrt-white) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.55), 0 10px 26px rgba(15,23,42,.04) !important;
}
.lv-submodule-actions,
.ml-toolbar{
    flex-wrap:wrap !important;
}
.lv-submodule-actions{
    width:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
}
.ml-switcher,
.lv-switcher{
    flex:1 1 auto !important;
    width:auto !important;
    min-width:280px !important;
    margin-left:0 !important;
    justify-content:flex-start !important;
}
.ml-toolbar-actions,
.lv-toolbar{
    flex:0 0 auto !important;
    margin-left:auto !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:8px !important;
    flex-wrap:wrap !important;
}
body.atlasgrt-skin-atlas .ml-toolbar,
body.atlasgrt-skin-atlas .lv-submodule-bar{
    background:rgba(11,23,43,.82) !important;
    border-color:rgba(169,189,222,.24) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.055), 0 12px 30px rgba(0,0,0,.16) !important;
}
body.atlasgrt-skin-hst .ml-toolbar,
body.atlasgrt-skin-hst .lv-submodule-bar{
    background:rgba(247,169,0,.055) !important;
    border-color:rgba(247,169,0,.28) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.055), 0 12px 30px rgba(0,0,0,.16) !important;
}
body.atlasgrt-skin-claro .ml-toolbar,
body.atlasgrt-skin-claro .lv-submodule-bar{
    background:rgba(255,255,255,.92) !important;
    border-color:rgba(0,122,84,.18) !important;
}
body.atlasgrt-skin-atlas .ml-toolbar-actions .btn,
body.atlasgrt-skin-atlas .lv-toolbar .btn,
body.atlasgrt-skin-atlas .lv-summary-actions .btn,
body.atlasgrt-skin-hst .ml-toolbar-actions .btn,
body.atlasgrt-skin-hst .lv-toolbar .btn,
body.atlasgrt-skin-hst .lv-summary-actions .btn{
    min-height:36px !important;
    border-radius:12px !important;
    font-weight:800 !important;
    letter-spacing:.01em !important;
}
body.atlasgrt-skin-atlas .ml-toolbar-actions .btn-outline-dark,
body.atlasgrt-skin-atlas .lv-toolbar .btn-outline-dark,
body.atlasgrt-skin-atlas .lv-summary-actions .btn-outline-dark{
    color:#eaf2ff !important;
    border-color:rgba(169,189,222,.30) !important;
    background:rgba(255,255,255,.045) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.06) !important;
}
body.atlasgrt-skin-hst .ml-toolbar-actions .btn-outline-dark,
body.atlasgrt-skin-hst .lv-toolbar .btn-outline-dark,
body.atlasgrt-skin-hst .lv-summary-actions .btn-outline-dark{
    color:#fff3cf !important;
    border-color:rgba(247,169,0,.36) !important;
    background:rgba(247,169,0,.07) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.06) !important;
}
body.atlasgrt-skin-atlas .ml-toolbar-actions .btn-outline-dark:hover,
body.atlasgrt-skin-atlas .lv-toolbar .btn-outline-dark:hover,
body.atlasgrt-skin-atlas .lv-summary-actions .btn-outline-dark:hover{
    color:#071225 !important;
    border-color:#00FFA5 !important;
    background:linear-gradient(180deg,#00FFA5,#0fcf8a) !important;
    box-shadow:0 10px 22px rgba(0,255,165,.12), inset 0 1px 0 rgba(255,255,255,.16) !important;
}
body.atlasgrt-skin-hst .ml-toolbar-actions .btn-outline-dark:hover,
body.atlasgrt-skin-hst .lv-toolbar .btn-outline-dark:hover,
body.atlasgrt-skin-hst .lv-summary-actions .btn-outline-dark:hover{
    color:#1d1400 !important;
    border-color:#f7a900 !important;
    background:linear-gradient(180deg,#f7a900,#d99000) !important;
    box-shadow:0 10px 22px rgba(247,169,0,.14), inset 0 1px 0 rgba(255,255,255,.16) !important;
}
@media (max-width:991px){
    .ml-toolbar,
    .lv-submodule-bar,
    .lv-submodule-actions,
    .ml-switcher,
    .lv-switcher,
    .ml-toolbar-actions,
    .lv-toolbar{
        justify-content:flex-start !important;
        width:100% !important;
        margin-left:0 !important;
    }
}


/* AtlasGRT509 · Barra de submódulos 75/25 para Gestión Preventiva y Gestión HST.
   Criterio Visual Atlas: navegación/submódulos a la izquierda (75%) y atajos/acciones a la derecha (25%). */
.pg-submodule-bar,
.pp-submodule-bar,
.hallazgos-submodule-bar,
.ml-toolbar,
.lv-submodule-bar{
    width:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
    padding:8px 10px !important;
    border:1px solid var(--atlasgrt-border) !important;
    border-radius:22px !important;
    background:var(--atlasgrt-white) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.55), 0 10px 26px rgba(15,23,42,.04) !important;
}
.lv-submodule-actions{
    width:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
    flex-wrap:wrap !important;
}
.pg-switcher,
.pp-switcher,
.hallazgos-switcher,
.ml-switcher,
.lv-switcher{
    flex:0 1 75% !important;
    max-width:75% !important;
    min-width:0 !important;
    width:auto !important;
    justify-content:flex-start !important;
    margin-left:0 !important;
}
.pg-submodule-shortcuts,
.pp-submodule-shortcuts,
.hallazgos-submodule-shortcuts,
.ml-toolbar-actions,
.lv-toolbar{
    flex:0 1 25% !important;
    max-width:25% !important;
    min-width:180px !important;
    margin-left:auto !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:8px !important;
    flex-wrap:wrap !important;
}
.ml-toolbar-actions{min-width:240px !important;}
.pg-submodule-shortcuts:empty,
.pp-submodule-shortcuts:empty,
.hallazgos-submodule-shortcuts:empty{
    min-height:38px;
}
body.atlasgrt-skin-atlas .pg-submodule-bar,
body.atlasgrt-skin-atlas .pp-submodule-bar,
body.atlasgrt-skin-atlas .hallazgos-submodule-bar,
body.atlasgrt-skin-atlas .ml-toolbar,
body.atlasgrt-skin-atlas .lv-submodule-bar{
    background:rgba(11,23,43,.82) !important;
    border-color:rgba(169,189,222,.24) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.055), 0 12px 30px rgba(0,0,0,.16) !important;
}
body.atlasgrt-skin-hst .pg-submodule-bar,
body.atlasgrt-skin-hst .pp-submodule-bar,
body.atlasgrt-skin-hst .hallazgos-submodule-bar,
body.atlasgrt-skin-hst .ml-toolbar,
body.atlasgrt-skin-hst .lv-submodule-bar{
    background:rgba(247,169,0,.055) !important;
    border-color:rgba(247,169,0,.28) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.055), 0 12px 30px rgba(0,0,0,.16) !important;
}
body.atlasgrt-skin-claro .pg-submodule-bar,
body.atlasgrt-skin-claro .pp-submodule-bar,
body.atlasgrt-skin-claro .hallazgos-submodule-bar,
body.atlasgrt-skin-claro .ml-toolbar,
body.atlasgrt-skin-claro .lv-submodule-bar{
    background:rgba(255,255,255,.92) !important;
    border-color:rgba(0,122,84,.18) !important;
}
body.atlasgrt-skin-atlas .pg-submodule-shortcuts,
body.atlasgrt-skin-atlas .pp-submodule-shortcuts,
body.atlasgrt-skin-atlas .hallazgos-submodule-shortcuts,
body.atlasgrt-skin-hst .pg-submodule-shortcuts,
body.atlasgrt-skin-hst .pp-submodule-shortcuts,
body.atlasgrt-skin-hst .hallazgos-submodule-shortcuts{
    color:var(--atlasgrt-text-soft);
}
@media (max-width:991px){
    .pg-submodule-bar,
    .pp-submodule-bar,
    .hallazgos-submodule-bar,
    .ml-toolbar,
    .lv-submodule-bar,
    .lv-submodule-actions{
        justify-content:flex-start !important;
        align-items:flex-start !important;
        width:100% !important;
    }
    .pg-switcher,
    .pp-switcher,
    .hallazgos-switcher,
    .ml-switcher,
    .lv-switcher,
    .pg-submodule-shortcuts,
    .pp-submodule-shortcuts,
    .hallazgos-submodule-shortcuts,
    .ml-toolbar-actions,
    .lv-toolbar{
        flex:1 1 100% !important;
        max-width:100% !important;
        width:100% !important;
        margin-left:0 !important;
        justify-content:flex-start !important;
    }
}

/* AtlasGRT511 · Saneamiento final de barras de submódulos 75/25.
   Criterio: una sola envolvente visual, submódulos a la izquierda (75%) y atajos a la derecha (25%). */
.atlasgrt-submodule-card{
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    padding:0 !important;
    margin-bottom:16px !important;
}
.atlasgrt-submodule-card > .pg-submodule-bar,
.atlasgrt-submodule-card > .pp-submodule-bar,
.atlasgrt-submodule-card > .hallazgos-submodule-bar,
.lv-submodule-bar,
.ml-toolbar{
    width:100% !important;
    display:grid !important;
    grid-template-columns:minmax(0,3fr) minmax(180px,1fr) !important;
    align-items:center !important;
    column-gap:12px !important;
    row-gap:8px !important;
    padding:8px 10px !important;
    border:1px solid var(--atlasgrt-border) !important;
    border-radius:22px !important;
    background:var(--atlasgrt-white) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 10px 26px rgba(15,23,42,.04) !important;
}
.lv-submodule-bar{
    display:block !important;
}
.lv-submodule-actions{
    width:100% !important;
    display:grid !important;
    grid-template-columns:minmax(0,3fr) minmax(180px,1fr) !important;
    align-items:center !important;
    column-gap:12px !important;
    row-gap:8px !important;
}
.pg-switcher,
.pp-switcher,
.hallazgos-switcher,
.ml-switcher,
.lv-switcher,
.mesa-submodule-switcher,
.op-switcher,
.matriz-switcher{
    grid-column:1 !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:8px !important;
    flex-wrap:wrap !important;
    overflow:hidden !important;
}
.pg-submodule-shortcuts,
.pp-submodule-shortcuts,
.hallazgos-submodule-shortcuts,
.ml-toolbar-actions,
.lv-toolbar{
    grid-column:2 !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:8px !important;
    flex-wrap:wrap !important;
    overflow:hidden !important;
}
.pg-submodule-shortcuts:empty,
.pp-submodule-shortcuts:empty,
.hallazgos-submodule-shortcuts:empty{
    min-height:38px !important;
}
.ml-toolbar-actions .atlasgrt-toolbar-action-btn,
.lv-toolbar .atlasgrt-toolbar-action-btn,
.pg-submodule-shortcuts .atlasgrt-toolbar-action-btn,
.pp-submodule-shortcuts .atlasgrt-toolbar-action-btn,
.hallazgos-submodule-shortcuts .atlasgrt-toolbar-action-btn,
.ml-toolbar-actions .btn,
.lv-toolbar .btn,
.pg-submodule-shortcuts .btn,
.pp-submodule-shortcuts .btn,
.hallazgos-submodule-shortcuts .btn{
    width:auto !important;
    min-width:0 !important;
    max-width:100% !important;
    flex:0 1 auto !important;
    min-height:38px !important;
    height:auto !important;
    padding:.52rem .78rem !important;
    white-space:nowrap !important;
    line-height:1.15 !important;
    text-align:center !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
}
.ml-toolbar-actions .btn-primary,
.lv-toolbar .btn-primary,
.pg-submodule-shortcuts .btn-primary,
.pp-submodule-shortcuts .btn-primary,
.hallazgos-submodule-shortcuts .btn-primary{
    border-radius:14px !important;
}
body.atlasgrt-skin-atlas .atlasgrt-submodule-card > .pg-submodule-bar,
body.atlasgrt-skin-atlas .atlasgrt-submodule-card > .pp-submodule-bar,
body.atlasgrt-skin-atlas .atlasgrt-submodule-card > .hallazgos-submodule-bar,
body.atlasgrt-skin-atlas .ml-toolbar,
body.atlasgrt-skin-atlas .lv-submodule-bar{
    background:rgba(11,23,43,.82) !important;
    border-color:rgba(169,189,222,.24) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 12px 30px rgba(0,0,0,.16) !important;
}
body.atlasgrt-skin-hst .atlasgrt-submodule-card > .pg-submodule-bar,
body.atlasgrt-skin-hst .atlasgrt-submodule-card > .pp-submodule-bar,
body.atlasgrt-skin-hst .atlasgrt-submodule-card > .hallazgos-submodule-bar,
body.atlasgrt-skin-hst .ml-toolbar,
body.atlasgrt-skin-hst .lv-submodule-bar{
    background:rgba(247,169,0,.055) !important;
    border-color:rgba(247,169,0,.28) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 12px 30px rgba(0,0,0,.16) !important;
}
body.atlasgrt-skin-claro .atlasgrt-submodule-card > .pg-submodule-bar,
body.atlasgrt-skin-claro .atlasgrt-submodule-card > .pp-submodule-bar,
body.atlasgrt-skin-claro .atlasgrt-submodule-card > .hallazgos-submodule-bar,
body.atlasgrt-skin-claro .ml-toolbar,
body.atlasgrt-skin-claro .lv-submodule-bar{
    background:rgba(255,255,255,.92) !important;
    border-color:rgba(0,122,84,.18) !important;
}
@media (max-width:1100px){
    .atlasgrt-submodule-card > .pg-submodule-bar,
    .atlasgrt-submodule-card > .pp-submodule-bar,
    .atlasgrt-submodule-card > .hallazgos-submodule-bar,
    .ml-toolbar,
    .lv-submodule-actions{
        grid-template-columns:1fr !important;
    }
    .pg-submodule-shortcuts,
    .pp-submodule-shortcuts,
    .hallazgos-submodule-shortcuts,
    .ml-toolbar-actions,
    .lv-toolbar{
        grid-column:1 !important;
        justify-content:flex-start !important;
        width:100% !important;
    }
}
@media (max-width:767px){
    .pg-switcher .btn,
    .pp-switcher .btn,
    .hallazgos-switcher .btn,
    .ml-switcher .btn,
    .lv-switcher .btn{
        flex:1 1 auto !important;
    }
}

/* AtlasGRT513 · Corrección final de barras de submódulos 75/25.
   - Estructura/Parámetros generales usa una sola envolvente visual.
   - Los atajos de HST y Preventiva heredan movimiento/animación de los tabs de submódulos.
   - La zona derecha conserva criterio 25% sin desbordar texto. */
.atlasgrt-submodule-card{
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    padding:0 !important;
    margin-bottom:16px !important;
}
.atlasgrt-submodule-card > .pg-submodule-bar,
.atlasgrt-submodule-card > .pp-submodule-bar,
.atlasgrt-submodule-card > .hallazgos-submodule-bar,
.ml-toolbar,
.lv-submodule-bar{
    width:100% !important;
    display:grid !important;
    grid-template-columns:minmax(0,3fr) minmax(280px,1fr) !important;
    align-items:center !important;
    column-gap:12px !important;
    row-gap:8px !important;
    padding:8px 10px !important;
    border:1px solid var(--atlasgrt-border) !important;
    border-radius:22px !important;
    background:var(--atlasgrt-white) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 10px 26px rgba(15,23,42,.04) !important;
    overflow:hidden !important;
}
.lv-submodule-bar{
    display:block !important;
}
.lv-submodule-actions{
    width:100% !important;
    display:grid !important;
    grid-template-columns:minmax(0,3fr) minmax(280px,1fr) !important;
    align-items:center !important;
    column-gap:12px !important;
    row-gap:8px !important;
}
.pg-switcher,
.pp-switcher,
.hallazgos-switcher,
.ml-switcher,
.lv-switcher,
.mesa-submodule-switcher,
.op-switcher,
.matriz-switcher{
    grid-column:1 !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:8px !important;
    flex-wrap:wrap !important;
    overflow:hidden !important;
}
.pg-submodule-shortcuts,
.pp-submodule-shortcuts,
.hallazgos-submodule-shortcuts,
.ml-toolbar-actions,
.lv-toolbar{
    grid-column:2 !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:8px !important;
    flex-wrap:nowrap !important;
    overflow:hidden !important;
}
.pg-submodule-shortcuts:empty,
.pp-submodule-shortcuts:empty,
.hallazgos-submodule-shortcuts:empty{
    min-height:38px !important;
}
.pg-switcher .btn,
.pp-switcher .btn,
.hallazgos-switcher .btn,
.ml-switcher .btn,
.lv-switcher .btn,
.ml-toolbar-actions .atlasgrt-toolbar-action-btn,
.lv-toolbar .atlasgrt-toolbar-action-btn,
.pg-submodule-shortcuts .atlasgrt-toolbar-action-btn,
.pp-submodule-shortcuts .atlasgrt-toolbar-action-btn,
.hallazgos-submodule-shortcuts .atlasgrt-toolbar-action-btn,
.ml-toolbar-actions .btn,
.lv-toolbar .btn,
.pg-submodule-shortcuts .btn,
.pp-submodule-shortcuts .btn,
.hallazgos-submodule-shortcuts .btn{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:7px !important;
    min-width:0 !important;
    min-height:38px !important;
    height:38px !important;
    max-width:100% !important;
    padding:0 14px !important;
    border-radius:14px !important;
    line-height:1 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    font-size:.84rem !important;
    font-weight:700 !important;
    letter-spacing:.01em !important;
    text-decoration:none !important;
    transition:background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease !important;
}
.ml-toolbar-actions .atlasgrt-toolbar-action-btn,
.lv-toolbar .atlasgrt-toolbar-action-btn,
.pg-submodule-shortcuts .atlasgrt-toolbar-action-btn,
.pp-submodule-shortcuts .atlasgrt-toolbar-action-btn,
.hallazgos-submodule-shortcuts .atlasgrt-toolbar-action-btn{
    flex:1 1 0 !important;
}
.ml-toolbar-actions .btn:not(.btn-dark),
.lv-toolbar .btn:not(.btn-dark),
.pg-submodule-shortcuts .btn:not(.btn-dark),
.pp-submodule-shortcuts .btn:not(.btn-dark),
.hallazgos-submodule-shortcuts .btn:not(.btn-dark){
    border:1px solid rgba(148,163,184,.26) !important;
    background:transparent !important;
    color:var(--atlasgrt-text) !important;
    box-shadow:none !important;
}
.ml-toolbar-actions .btn-primary,
.lv-toolbar .btn-primary,
.pg-submodule-shortcuts .btn-primary,
.pp-submodule-shortcuts .btn-primary,
.hallazgos-submodule-shortcuts .btn-primary,
.ml-toolbar-actions .btn-dark,
.lv-toolbar .btn-dark,
.pg-submodule-shortcuts .btn-dark,
.pp-submodule-shortcuts .btn-dark,
.hallazgos-submodule-shortcuts .btn-dark{
    border:1px solid rgba(0,255,165,.28) !important;
    background:rgba(0,255,165,.10) !important;
    color:var(--atlasgrt-text) !important;
    box-shadow:none !important;
}
.ml-toolbar-actions .btn:hover,
.lv-toolbar .btn:hover,
.pg-submodule-shortcuts .btn:hover,
.pp-submodule-shortcuts .btn:hover,
.hallazgos-submodule-shortcuts .btn:hover,
.ml-toolbar-actions .btn:focus,
.lv-toolbar .btn:focus,
.pg-submodule-shortcuts .btn:focus,
.pp-submodule-shortcuts .btn:focus,
.hallazgos-submodule-shortcuts .btn:focus{
    transform:translateY(-1px) !important;
    border-color:var(--atlasgrt-skin-accent,#00FFA5) !important;
    background:var(--atlasgrt-skin-accent-soft,rgba(0,255,165,.10)) !important;
    box-shadow:0 10px 22px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
body.atlasgrt-skin-atlas .atlasgrt-submodule-card > .pg-submodule-bar,
body.atlasgrt-skin-atlas .atlasgrt-submodule-card > .pp-submodule-bar,
body.atlasgrt-skin-atlas .atlasgrt-submodule-card > .hallazgos-submodule-bar,
body.atlasgrt-skin-atlas .ml-toolbar,
body.atlasgrt-skin-atlas .lv-submodule-bar{
    background:rgba(11,23,43,.82) !important;
    border-color:rgba(169,189,222,.24) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 12px 30px rgba(0,0,0,.16) !important;
}
body.atlasgrt-skin-hst .atlasgrt-submodule-card > .pg-submodule-bar,
body.atlasgrt-skin-hst .atlasgrt-submodule-card > .pp-submodule-bar,
body.atlasgrt-skin-hst .atlasgrt-submodule-card > .hallazgos-submodule-bar,
body.atlasgrt-skin-hst .ml-toolbar,
body.atlasgrt-skin-hst .lv-submodule-bar{
    background:rgba(247,169,0,.055) !important;
    border-color:rgba(247,169,0,.28) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 12px 30px rgba(0,0,0,.16) !important;
}
body.atlasgrt-skin-claro .atlasgrt-submodule-card > .pg-submodule-bar,
body.atlasgrt-skin-claro .atlasgrt-submodule-card > .pp-submodule-bar,
body.atlasgrt-skin-claro .atlasgrt-submodule-card > .hallazgos-submodule-bar,
body.atlasgrt-skin-claro .ml-toolbar,
body.atlasgrt-skin-claro .lv-submodule-bar{
    background:rgba(255,255,255,.92) !important;
    border-color:rgba(0,122,84,.18) !important;
}
body.atlasgrt-skin-hst .ml-toolbar-actions .btn-primary,
body.atlasgrt-skin-hst .lv-toolbar .btn-primary,
body.atlasgrt-skin-hst .ml-toolbar-actions .btn-dark,
body.atlasgrt-skin-hst .lv-toolbar .btn-dark{
    border-color:rgba(247,169,0,.36) !important;
    background:rgba(247,169,0,.12) !important;
    color:#fff3cf !important;
}
body.atlasgrt-skin-atlas .ml-toolbar-actions .btn-primary,
body.atlasgrt-skin-atlas .lv-toolbar .btn-primary,
body.atlasgrt-skin-atlas .ml-toolbar-actions .btn-dark,
body.atlasgrt-skin-atlas .lv-toolbar .btn-dark{
    border-color:rgba(0,255,165,.30) !important;
    background:rgba(0,255,165,.10) !important;
    color:#eaf2ff !important;
}
@media (max-width:1200px){
    .atlasgrt-submodule-card > .pg-submodule-bar,
    .atlasgrt-submodule-card > .pp-submodule-bar,
    .atlasgrt-submodule-card > .hallazgos-submodule-bar,
    .ml-toolbar,
    .lv-submodule-actions{
        grid-template-columns:1fr !important;
    }
    .pg-submodule-shortcuts,
    .pp-submodule-shortcuts,
    .hallazgos-submodule-shortcuts,
    .ml-toolbar-actions,
    .lv-toolbar{
        grid-column:1 !important;
        justify-content:flex-start !important;
        width:100% !important;
        flex-wrap:wrap !important;
    }
    .ml-toolbar-actions .atlasgrt-toolbar-action-btn,
    .lv-toolbar .atlasgrt-toolbar-action-btn{
        flex:0 1 auto !important;
    }
}
@media (max-width:767px){
    .pg-switcher .btn,
    .pp-switcher .btn,
    .hallazgos-switcher .btn,
    .ml-switcher .btn,
    .lv-switcher .btn,
    .ml-toolbar-actions .btn,
    .lv-toolbar .btn{
        flex:1 1 auto !important;
    }
}

/* AtlasGRT607 · Refuerzo transversal de contraste en Visual Atlas / HST.
   Evita tarjetas internas blancas con texto heredado claro en modales, previsualizaciones y esperas IA. */
body.atlasgrt-skin-atlas .modal .ml-filter-config-box,
body.atlasgrt-skin-hst .modal .ml-filter-config-box,
body.atlasgrt-skin-atlas .modal .mesa-config-block,
body.atlasgrt-skin-hst .modal .mesa-config-block,
body.atlasgrt-skin-atlas .modal .atlasgrt-card,
body.atlasgrt-skin-hst .modal .atlasgrt-card{
    background:rgba(255,255,255,.045) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .modal .ml-filter-config-box strong,
body.atlasgrt-skin-hst .modal .ml-filter-config-box strong,
body.atlasgrt-skin-atlas .modal .ml-filter-config-checks label,
body.atlasgrt-skin-hst .modal .ml-filter-config-checks label,
body.atlasgrt-skin-atlas .modal .form-label,
body.atlasgrt-skin-hst .modal .form-label{
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .modal .small,
body.atlasgrt-skin-atlas .modal .form-text,
body.atlasgrt-skin-atlas .modal .ml-muted,
body.atlasgrt-skin-hst .modal .small,
body.atlasgrt-skin-hst .modal .form-text,
body.atlasgrt-skin-hst .modal .ml-muted{
    color:var(--atlasgrt-text-soft) !important;
}
body.atlasgrt-skin-atlas .modal .btn-close,
body.atlasgrt-skin-hst .modal .btn-close{filter:invert(1) grayscale(1);opacity:.75;}
body.atlasgrt-skin-atlas .modal .btn-close:hover,
body.atlasgrt-skin-hst .modal .btn-close:hover{opacity:1;}
body.atlasgrt-skin-atlas .modal select option,
body.atlasgrt-skin-hst .modal select option,
body.atlasgrt-skin-atlas select option,
body.atlasgrt-skin-hst select option{
    background:#111827;
    color:#f8fafc;
}

/* AtlasGRT609 · marca visual transversal para Atlas IA Ejecutiva */
:root{--atlasgrt-ia-accent:#38bdf8;--atlasgrt-ia-accent-soft:rgba(56,189,248,.16);}
.sidebar-link[href*="mesa_entrada_global"],
.sidebar-link[href*="Atlas%20IA"],
.sidebar-link[href*="atlas_ia"]{position:relative;}
.sidebar-link[href*="mesa_entrada_global"]::after,
.sidebar-link[href*="Atlas%20IA"]::after,
.sidebar-link[href*="atlas_ia"]::after{content:"";position:absolute;right:12px;top:50%;width:6px;height:6px;border-radius:999px;background:var(--atlasgrt-ia-accent);box-shadow:0 0 0 4px var(--atlasgrt-ia-accent-soft),0 0 16px rgba(56,189,248,.38);transform:translateY(-50%);opacity:.92;}
.sidebar-link.active[href*="mesa_entrada_global"],
.sidebar-link.active[href*="Atlas%20IA"],
.sidebar-link.active[href*="atlas_ia"]{box-shadow:inset 3px 0 0 var(--atlasgrt-ia-accent), inset 0 0 0 1px rgba(56,189,248,.22)!important;}
body.atlasgrt-skin-atlas .sidebar-link.active[href*="mesa_entrada_global"],
body.atlasgrt-skin-hst .sidebar-link.active[href*="mesa_entrada_global"]{background:rgba(56,189,248,.10)!important;color:#e0f7ff!important;}

/* AtlasGRT611 · IA Ejecutiva: acciones de bajo esfuerzo y contraste robusto */
.btn-atlas-ai{
    --bs-btn-color:#04111d;
    --bs-btn-bg:linear-gradient(135deg,var(--atlasgrt-ia-accent,#38bdf8),#7dd3fc);
    --bs-btn-border-color:rgba(56,189,248,.72);
    --bs-btn-hover-color:#04111d;
    --bs-btn-hover-bg:linear-gradient(135deg,#7dd3fc,var(--atlasgrt-ia-accent,#38bdf8));
    --bs-btn-hover-border-color:rgba(125,211,252,.95);
    --bs-btn-active-color:#04111d;
    --bs-btn-active-bg:#7dd3fc;
    --bs-btn-active-border-color:#38bdf8;
    background:linear-gradient(135deg,var(--atlasgrt-ia-accent,#38bdf8),#7dd3fc)!important;
    color:#04111d!important;
    border-color:rgba(56,189,248,.72)!important;
    font-weight:800;
    box-shadow:0 10px 24px rgba(56,189,248,.22);
}
.btn-atlas-ai:hover{filter:brightness(1.04);box-shadow:0 14px 30px rgba(56,189,248,.28);}
.btn-atlas-ai:disabled{filter:grayscale(.35);opacity:.52;box-shadow:none;}
.atlas-ia-confirm-card{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:.65rem;}
.atlas-ia-confirm-card>div{border:1px solid rgba(56,189,248,.25);border-radius:14px;padding:.75rem .85rem;background:rgba(56,189,248,.08);}
.atlas-ia-confirm-card strong{display:block;font-size:1.2rem;line-height:1;color:var(--atlasgrt-ia-accent,#38bdf8);}
.atlas-ia-confirm-card span{display:block;margin-top:.25rem;font-size:.78rem;color:var(--atlasgrt-text-soft,#64748b);font-weight:700;text-transform:uppercase;letter-spacing:.02em;}
.atlas-ia-warning{border:1px solid rgba(56,189,248,.28);border-radius:14px;padding:.85rem 1rem;background:rgba(56,189,248,.09);color:var(--atlasgrt-text,#162033);}
.atlas-ia-confirm-list{display:grid;gap:.45rem;border:1px solid var(--atlasgrt-border,#d8dfec);border-radius:14px;padding:.75rem;background:var(--atlasgrt-white,#fff);}
.atlas-ia-confirm-list>div:not(.atlas-ia-confirm-title){display:flex;justify-content:space-between;gap:.75rem;border-bottom:1px solid rgba(148,163,184,.18);padding:.35rem 0;}
.atlas-ia-confirm-list>div:last-child{border-bottom:none;}
.atlas-ia-confirm-list span{color:var(--atlasgrt-text-soft,#64748b);}
.atlas-ia-confirm-list strong{color:var(--atlasgrt-text,#111827);}
.atlas-ia-confirm-title{font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--atlasgrt-ia-accent,#38bdf8);}
body.atlasgrt-skin-atlas .atlasgrt-action-check,
body.atlasgrt-skin-hst .atlasgrt-action-check{background:rgba(15,23,42,.94)!important;border-color:rgba(56,189,248,.20)!important;color:var(--atlasgrt-text,#e5e7eb)!important;box-shadow:0 10px 26px rgba(0,0,0,.20);}
body.atlasgrt-skin-atlas .atlasgrt-action-check:hover,
body.atlasgrt-skin-hst .atlasgrt-action-check:hover{border-color:rgba(56,189,248,.55)!important;background:rgba(18,31,48,.98)!important;}
body.atlasgrt-skin-atlas .atlasgrt-action-check strong,
body.atlasgrt-skin-hst .atlasgrt-action-check strong{color:var(--atlasgrt-text,#f8fafc)!important;}
body.atlasgrt-skin-atlas .atlasgrt-action-check small,
body.atlasgrt-skin-hst .atlasgrt-action-check small{color:var(--atlasgrt-text-soft,#cbd5e1)!important;}
body.atlasgrt-skin-atlas .atlas-ia-confirm-modal .modal-content,
body.atlasgrt-skin-hst .atlas-ia-confirm-modal .modal-content{background:#111827;color:#f8fafc;border-color:rgba(56,189,248,.28);}
body.atlasgrt-skin-atlas .atlas-ia-confirm-modal .modal-header,
body.atlasgrt-skin-atlas .atlas-ia-confirm-modal .modal-footer,
body.atlasgrt-skin-hst .atlas-ia-confirm-modal .modal-header,
body.atlasgrt-skin-hst .atlas-ia-confirm-modal .modal-footer{border-color:rgba(56,189,248,.18);}
body.atlasgrt-skin-atlas .atlas-ia-confirm-list,
body.atlasgrt-skin-hst .atlas-ia-confirm-list{background:rgba(2,6,23,.48);border-color:rgba(56,189,248,.22);}
body.atlasgrt-skin-atlas .atlas-ia-confirm-list strong,
body.atlasgrt-skin-hst .atlas-ia-confirm-list strong{color:#f8fafc;}
body.atlasgrt-skin-atlas .atlas-ia-confirm-list span,
body.atlasgrt-skin-hst .atlas-ia-confirm-list span,
body.atlasgrt-skin-atlas .atlas-ia-confirm-card span,
body.atlasgrt-skin-hst .atlas-ia-confirm-card span{color:#cbd5e1;}
body.atlasgrt-skin-atlas .atlas-ia-warning,
body.atlasgrt-skin-hst .atlas-ia-warning{background:rgba(56,189,248,.12);border-color:rgba(56,189,248,.32);color:#e0f2fe;}


/* AtlasGRT613 · criterio unificado de IA y resúmenes de baja carga */
.btn-atlas-ai,
a.btn-atlas-ai,
button.btn-atlas-ai{border-radius:14px;}
.hallazgo-borrador-pendiente .btn-atlas-ai{box-shadow:0 8px 20px rgba(56,189,248,.18);}
.pg-summary-main-grid .atlasgrt-card,
.pp-summary-main-grid .atlasgrt-card{min-height:100%;}
.pg-summary-actions,
.pp-summary-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:14px;}
.pg-summary-actions .btn,
.pp-summary-actions .btn{border-radius:14px;font-weight:700;}
body.atlasgrt-skin-atlas .pg-summary-card,
body.atlasgrt-skin-atlas .pp-matrix-summary-card,
body.atlasgrt-skin-atlas .pg-preliminar-card,
body.atlasgrt-skin-atlas .pp-preliminar-card,
body.atlasgrt-skin-hst .pg-summary-card,
body.atlasgrt-skin-hst .pp-matrix-summary-card,
body.atlasgrt-skin-hst .pg-preliminar-card,
body.atlasgrt-skin-hst .pp-preliminar-card{background:rgba(255,255,255,.045)!important;border-color:var(--atlasgrt-border)!important;color:var(--atlasgrt-text)!important;}
body.atlasgrt-skin-atlas .pg-preliminar-content,
body.atlasgrt-skin-atlas .pp-preliminar-content,
body.atlasgrt-skin-hst .pg-preliminar-content,
body.atlasgrt-skin-hst .pp-preliminar-content{background:rgba(255,255,255,.035)!important;border-color:var(--atlasgrt-border)!important;color:var(--atlasgrt-text-soft)!important;}
body.atlasgrt-skin-atlas .atlas-ia-confirm-list,
body.atlasgrt-skin-hst .atlas-ia-confirm-list{background:rgba(15,23,42,.86)!important;border-color:rgba(56,189,248,.28)!important;}


/* AtlasGRT615 · Visual Atlas: peso tipográfico único para atajos y botón IA.
   Regla fijada: los atajos de Resumen/Submódulos no usan bold pesado; el énfasis visual lo da la forma/color, no el grosor de la letra. */
.pg-switcher .btn,
.pp-switcher .btn,
.hallazgos-switcher .btn,
.ml-switcher .btn,
.lv-switcher .btn,
.pg-submodule-shortcuts .btn,
.pp-submodule-shortcuts .btn,
.hallazgos-submodule-shortcuts .btn,
.pg-submodule-shortcuts .atlasgrt-toolbar-action-btn,
.pp-submodule-shortcuts .atlasgrt-toolbar-action-btn,
.hallazgos-submodule-shortcuts .atlasgrt-toolbar-action-btn,
.pg-summary-actions .btn,
.pp-summary-actions .btn,
.hallazgos-summary-actions .btn,
.ml-toolbar-actions .btn,
.lv-toolbar .btn{
    font-weight:500 !important;
    letter-spacing:0 !important;
}
.pg-switcher .btn-dark,
.pp-switcher .btn-dark,
.hallazgos-switcher .btn-dark,
.ml-switcher .btn-dark,
.lv-switcher .btn-dark{
    font-weight:600 !important;
}
.btn-atlas-ai,
a.btn-atlas-ai,
button.btn-atlas-ai{
    font-weight:600 !important;
    letter-spacing:0 !important;
}
body.atlasgrt-skin-atlas .pg-summary-actions .btn,
body.atlasgrt-skin-atlas .pp-summary-actions .btn,
body.atlasgrt-skin-atlas .hallazgos-summary-actions .btn,
body.atlasgrt-skin-hst .pg-summary-actions .btn,
body.atlasgrt-skin-hst .pp-summary-actions .btn,
body.atlasgrt-skin-hst .hallazgos-summary-actions .btn{
    font-weight:500 !important;
}

/* AtlasGRT617 · Topbar: vista, contexto y cuenta con lectura separada */
.atlasgrt-view-switcher .atlasgrt-org-switcher-toggle{
    min-width:210px;
}
.atlasgrt-view-switcher-panel{
    width:min(420px, calc(100vw - 40px));
}
.atlasgrt-account-switcher .atlasgrt-user-menu-toggle{
    appearance:none;
    border:0;
    background:transparent;
    padding:.15rem .25rem;
    cursor:pointer;
    text-align:right;
    border-radius:14px;
}
.atlasgrt-account-switcher .atlasgrt-user-menu-toggle:hover,
.atlasgrt-account-switcher .atlasgrt-user-menu-toggle:focus-visible{
    outline:none;
    background:rgba(17,24,39,.04);
}
.atlasgrt-account-switcher-panel{
    width:min(360px, calc(100vw - 40px));
}
body.atlasgrt-skin-atlas .atlasgrt-account-switcher .atlasgrt-user-menu-toggle:hover,
body.atlasgrt-skin-atlas .atlasgrt-account-switcher .atlasgrt-user-menu-toggle:focus-visible,
body.atlasgrt-skin-hst .atlasgrt-account-switcher .atlasgrt-user-menu-toggle:hover,
body.atlasgrt-skin-hst .atlasgrt-account-switcher .atlasgrt-user-menu-toggle:focus-visible{
    background:rgba(255,255,255,.055);
    box-shadow:0 0 0 3px var(--atlasgrt-skin-accent-soft);
}
@media(max-width:991.98px){
    .atlasgrt-view-switcher .atlasgrt-org-switcher-toggle,
    .atlasgrt-account-switcher .atlasgrt-user-menu-toggle{
        min-width:0;
    }
}

/* AtlasGRT619 · Stepper legible en Visual Atlas / HST. */
body.atlasgrt-skin-atlas .mesa-step-node .mesa-step-label,
body.atlasgrt-skin-hst .mesa-step-node .mesa-step-label{
    color:rgba(226,232,240,.72) !important;
    font-weight:500 !important;
}
body.atlasgrt-skin-atlas .mesa-step-node.is-current .mesa-step-label,
body.atlasgrt-skin-hst .mesa-step-node.is-current .mesa-step-label,
body.atlasgrt-skin-atlas .mesa-step-node.is-active .mesa-step-label,
body.atlasgrt-skin-hst .mesa-step-node.is-active .mesa-step-label{
    color:#f8fafc !important;
    font-weight:600 !important;
}
body.atlasgrt-skin-atlas .mesa-step-node.is-complete .mesa-step-label,
body.atlasgrt-skin-hst .mesa-step-node.is-complete .mesa-step-label{
    color:rgba(226,232,240,.82) !important;
    font-weight:500 !important;
}

/* AtlasGRT673 · IA Ejecutiva: separar estructura existente de estructura sugerida editable */
.atlas-ia-structure-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem;align-items:start;}
.atlas-ia-structure-panel{border:1px solid rgba(148,163,184,.22);border-radius:16px;padding:.9rem;background:rgba(148,163,184,.055);}
.atlas-ia-structure-panel.is-suggested{border-color:rgba(56,189,248,.32);background:rgba(56,189,248,.06);}
.atlas-ia-structure-title{font-size:.9rem;font-weight:800;letter-spacing:.02em;color:var(--atlasgrt-text,#111827);margin-bottom:.2rem;}
.atlas-ia-structure-subtitle{font-size:.74rem;font-weight:800;text-transform:uppercase;letter-spacing:.045em;color:var(--atlasgrt-ia-accent,#38bdf8);margin:.35rem 0 .45rem;}
.atlas-ia-structure-empty{border:1px dashed rgba(148,163,184,.32);border-radius:12px;padding:.75rem;color:var(--atlasgrt-text-soft,#64748b);font-size:.88rem;}
.atlas-ia-readonly-list{display:grid;gap:.45rem;}
.atlas-ia-readonly-list>div{display:flex;justify-content:space-between;align-items:center;gap:.75rem;border:1px solid rgba(148,163,184,.20);border-radius:12px;padding:.55rem .65rem;background:rgba(148,163,184,.06);}
.atlas-ia-readonly-list strong{font-size:.9rem;color:var(--atlasgrt-text,#111827);}
.atlas-ia-readonly-list span{font-size:.76rem;color:var(--atlasgrt-text-soft,#64748b);}
.atlas-ia-structure-table th{font-size:.74rem;text-transform:uppercase;letter-spacing:.035em;color:var(--atlasgrt-text-soft,#64748b);}
.atlas-ia-structure-table td{font-size:.88rem;vertical-align:middle;}
.atlas-ia-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:.18rem .5rem;font-size:.72rem;font-weight:800;white-space:nowrap;}
.atlas-ia-pill-existing{background:rgba(16,185,129,.12);color:#059669;border:1px solid rgba(16,185,129,.22);}
.atlas-ia-readonly-field{display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:31px;border:1px solid rgba(148,163,184,.24);border-radius:.35rem;padding:.25rem .5rem;background:rgba(148,163,184,.08);font-size:.86rem;color:var(--atlasgrt-text,#111827);}
.atlas-ia-readonly-field span{font-size:.7rem;text-transform:uppercase;letter-spacing:.035em;color:var(--atlasgrt-text-soft,#64748b);font-weight:800;}
body.atlasgrt-skin-atlas .atlas-ia-structure-panel,
body.atlasgrt-skin-hst .atlas-ia-structure-panel{background:rgba(15,23,42,.70);border-color:rgba(56,189,248,.20);}
body.atlasgrt-skin-atlas .atlas-ia-structure-panel.is-suggested,
body.atlasgrt-skin-hst .atlas-ia-structure-panel.is-suggested{background:rgba(14,165,233,.08);border-color:rgba(56,189,248,.34);}
body.atlasgrt-skin-atlas .atlas-ia-structure-title,
body.atlasgrt-skin-hst .atlas-ia-structure-title,
body.atlasgrt-skin-atlas .atlas-ia-readonly-list strong,
body.atlasgrt-skin-hst .atlas-ia-readonly-list strong,
body.atlasgrt-skin-atlas .atlas-ia-readonly-field,
body.atlasgrt-skin-hst .atlas-ia-readonly-field{color:#f8fafc;}
body.atlasgrt-skin-atlas .atlas-ia-readonly-list>div,
body.atlasgrt-skin-hst .atlas-ia-readonly-list>div,
body.atlasgrt-skin-atlas .atlas-ia-readonly-field,
body.atlasgrt-skin-hst .atlas-ia-readonly-field{background:rgba(255,255,255,.045);border-color:rgba(148,163,184,.20);}
body.atlasgrt-skin-atlas .atlas-ia-structure-empty,
body.atlasgrt-skin-hst .atlas-ia-structure-empty{color:#cbd5e1;border-color:rgba(148,163,184,.28);}
body.atlasgrt-skin-atlas .atlas-ia-structure-table,
body.atlasgrt-skin-hst .atlas-ia-structure-table{--bs-table-bg:transparent;--bs-table-color:#f8fafc;--bs-table-border-color:rgba(148,163,184,.18);}
body.atlasgrt-skin-atlas .atlas-ia-structure-table th,
body.atlasgrt-skin-hst .atlas-ia-structure-table th{color:#cbd5e1;}

/* AtlasGRT677 · Visual skins: IA Ejecutiva y preliminares de estructura.
   Corrige contraste en el historial de preliminares y números del stepper activo. */
body.atlasgrt-skin-atlas .pg-empty-soft,
body.atlasgrt-skin-atlas .pg-recent-ia-list,
body.atlasgrt-skin-hst .pg-empty-soft,
body.atlasgrt-skin-hst .pg-recent-ia-list{
    background:rgba(255,255,255,.035)!important;
    border-color:var(--atlasgrt-border)!important;
    color:var(--atlasgrt-text-soft)!important;
    box-shadow:none!important;
}
body.atlasgrt-skin-atlas .pg-empty-soft--ia strong,
body.atlasgrt-skin-atlas .pg-recent-ia-item strong,
body.atlasgrt-skin-atlas .pg-recent-ia-item em,
body.atlasgrt-skin-hst .pg-empty-soft--ia strong,
body.atlasgrt-skin-hst .pg-recent-ia-item strong,
body.atlasgrt-skin-hst .pg-recent-ia-item em{
    color:var(--atlasgrt-text)!important;
}
body.atlasgrt-skin-atlas .pg-recent-ia-title,
body.atlasgrt-skin-atlas .pg-recent-ia-item,
body.atlasgrt-skin-hst .pg-recent-ia-title,
body.atlasgrt-skin-hst .pg-recent-ia-item{
    color:var(--atlasgrt-text-soft)!important;
}
body.atlasgrt-skin-atlas .pg-recent-ia-item span,
body.atlasgrt-skin-hst .pg-recent-ia-item span{
    background:var(--atlasgrt-skin-accent-soft)!important;
    border-color:rgba(255,255,255,.14)!important;
    color:var(--atlasgrt-text)!important;
}
body.atlasgrt-skin-atlas .mesa-step-node.is-current .mesa-step-dot,
body.atlasgrt-skin-atlas .mesa-step-node.is-active .mesa-step-dot{
    background:var(--atlasgrt-skin-accent)!important;
    color:#062019!important;
    font-size:.82rem!important;
    font-weight:900!important;
    text-shadow:none!important;
}
body.atlasgrt-skin-hst .mesa-step-node.is-current .mesa-step-dot,
body.atlasgrt-skin-hst .mesa-step-node.is-active .mesa-step-dot{
    background:var(--atlasgrt-skin-accent)!important;
    color:#2b1b00!important;
    font-size:.82rem!important;
    font-weight:900!important;
    text-shadow:none!important;
}
body.atlasgrt-skin-atlas .mesa-step-node.is-current .mesa-step-dot::before,
body.atlasgrt-skin-atlas .mesa-step-node.is-active .mesa-step-dot::before,
body.atlasgrt-skin-hst .mesa-step-node.is-current .mesa-step-dot::before,
body.atlasgrt-skin-hst .mesa-step-node.is-active .mesa-step-dot::before{
    content:none!important;
}


/* AGRt689 · VISUAL ATLAS: controles segmentados para select + acciones */
.atlasgrt-segmented-control{
    display:flex;
    flex-wrap:nowrap;
    align-items:stretch;
    width:100%;
}
.atlasgrt-segmented-control > .form-control,
.atlasgrt-segmented-control > .form-select{
    flex:1 1 auto;
    min-width:0;
    border-top-right-radius:0 !important;
    border-bottom-right-radius:0 !important;
}
.atlasgrt-segmented-control > .btn{
    flex:0 0 auto;
    border-radius:0 !important;
    border-left:0 !important;
    white-space:nowrap;
    min-height:38px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    transition:transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease, filter .16s ease;
}
.atlasgrt-segmented-control > .btn:last-child{
    border-top-right-radius:12px !important;
    border-bottom-right-radius:12px !important;
}
.atlasgrt-segmented-control > .atlasgrt-segmented-icon{
    min-width:42px;
    font-weight:900;
    padding-left:12px;
    padding-right:12px;
}
.atlasgrt-segmented-control > .btn:hover,
.atlasgrt-segmented-control > .btn:focus{
    transform:translateY(-1px);
    box-shadow:0 8px 18px rgba(15,23,42,.12);
}
body.atlasgrt-skin-atlas .atlasgrt-segmented-control > .form-control,
body.atlasgrt-skin-atlas .atlasgrt-segmented-control > .form-select{
    background:rgba(255,255,255,.065);
    border-color:var(--atlasgrt-border);
    color:var(--atlasgrt-text);
}
body.atlasgrt-skin-atlas .atlasgrt-segmented-control > .btn{
    background:rgba(255,255,255,.045);
    border-color:var(--atlasgrt-border);
    color:var(--atlasgrt-text);
}
body.atlasgrt-skin-atlas .atlasgrt-segmented-control > .btn:hover,
body.atlasgrt-skin-atlas .atlasgrt-segmented-control > .btn:focus{
    background:linear-gradient(180deg,var(--atlasgrt-skin-accent,#00ffa5),#00d68f);
    border-color:var(--atlasgrt-skin-accent,#00ffa5);
    color:var(--atlasgrt-skin-accent-contrast,#062019) !important;
    box-shadow:0 0 0 .16rem rgba(0,255,165,.14),0 12px 28px rgba(0,255,165,.16);
}
body.atlasgrt-skin-atlas .atlasgrt-segmented-control > .btn:active{
    transform:translateY(0);
}
@media (max-width:480px){
    .atlasgrt-segmented-control > .btn:not(.atlasgrt-segmented-icon){
        padding-left:9px;
        padding-right:9px;
        font-size:.84rem;
    }
}

/* AtlasGRT815 · Visual Atlas: Revisión IA con tabs reales, recálculo IA y estados vacíos transversales */
.atlas-ia-review-card>.atlasgrt-block-header,
.atlas-ia-review-card>.ml-side-title-row{align-items:flex-start;}
.atlas-ia-review-tabs.nav-tabs{border-bottom:1px solid var(--atlasgrt-border,#d8dfec)!important;gap:0!important;align-items:flex-end;margin-bottom:0!important;}
.atlas-ia-review-tabs.nav-tabs .nav-item+.nav-item{margin-left:4px;}
.atlas-ia-review-tabs.nav-tabs .nav-link{position:relative;margin-bottom:-1px!important;border:1px solid var(--atlasgrt-border,#d8dfec)!important;border-radius:13px 13px 0 0!important;color:var(--atlasgrt-text-soft,#64748b)!important;background:var(--atlasgrt-surface-2,#f8fafc)!important;font-weight:650!important;padding:.55rem .75rem!important;box-shadow:none!important;}
.atlas-ia-review-tabs.nav-tabs .nav-link.active{z-index:3;color:var(--atlasgrt-text,#111827)!important;background:var(--atlasgrt-surface,#fff)!important;border-bottom-color:var(--atlasgrt-surface,#fff)!important;transform:translateY(1px);box-shadow:0 -1px 0 rgba(255,255,255,.45) inset!important;}
.atlas-ia-review-card>.tab-content,
.ml-salidas-tabs>.tab-content{border:1px solid var(--atlasgrt-border,#d8dfec);border-top:0;border-radius:0 0 16px 16px;background:var(--atlasgrt-surface,#fff);padding:14px!important;}
.atlas-ia-tab-panel{padding-top:0!important;}
.atlas-ia-tab-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px;}
.atlas-ia-tab-header-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap;}
.atlas-ia-review-toolbar{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap;}
.atlas-ia-recalc-btn{display:inline-flex!important;align-items:center;gap:6px;min-height:32px;padding:.35rem .7rem!important;border-radius:12px!important;}
.atlas-ia-recalc-btn::before{content:"";width:7px;height:7px;border-radius:999px;background:rgba(4,17,29,.85);box-shadow:0 0 0 3px rgba(4,17,29,.12);}
.atlas-ia-empty-status{display:flex;align-items:center;gap:10px;border:1px dashed var(--atlasgrt-border,#d8dfec);border-radius:14px;padding:12px 14px;background:rgba(15,23,42,.025);color:var(--atlasgrt-text,#111827);}
.atlas-ia-empty-status-dot{width:10px;height:10px;border-radius:999px;flex:0 0 10px;background:var(--atlasgrt-ia-accent,#38bdf8);box-shadow:0 0 0 3px rgba(56,189,248,.13),0 0 14px rgba(56,189,248,.18);}
.atlas-ia-empty-status.is-preliminar .atlas-ia-empty-status-dot{background:#00FFA5;box-shadow:0 0 0 3px rgba(0,255,165,.12),0 0 12px rgba(0,255,165,.16);}
.atlas-ia-empty-status strong{display:block;font-size:.9rem;line-height:1.15;color:var(--atlasgrt-text,#111827);}
.atlas-ia-empty-status span{display:block;font-size:.78rem;color:var(--atlasgrt-text-soft,#64748b);margin-top:3px;line-height:1.35;}
.ml-preliminar-status-dot{width:10px!important;height:10px!important;flex:0 0 10px!important;box-shadow:0 0 0 3px rgba(0,255,165,.12),0 0 12px rgba(0,255,165,.16)!important;}
.ml-preliminar-status.is-pending .ml-preliminar-status-dot{box-shadow:0 0 0 3px rgba(245,158,11,.14),0 0 12px rgba(245,158,11,.16)!important;}
body.atlasgrt-skin-atlas .atlas-ia-review-tabs.nav-tabs .nav-link,
body.atlasgrt-skin-hst .atlas-ia-review-tabs.nav-tabs .nav-link{background:rgba(255,255,255,.035)!important;color:var(--atlasgrt-text-soft,#cbd5e1)!important;border-color:var(--atlasgrt-border,rgba(169,189,222,.22))!important;}
body.atlasgrt-skin-atlas .atlas-ia-review-tabs.nav-tabs .nav-link.active,
body.atlasgrt-skin-hst .atlas-ia-review-tabs.nav-tabs .nav-link.active{background:rgba(15,23,42,.96)!important;color:var(--atlasgrt-text,#f8fafc)!important;border-bottom-color:rgba(15,23,42,.96)!important;}
body.atlasgrt-skin-atlas .atlas-ia-review-card>.tab-content,
body.atlasgrt-skin-hst .atlas-ia-review-card>.tab-content,
body.atlasgrt-skin-atlas .ml-salidas-tabs>.tab-content,
body.atlasgrt-skin-hst .ml-salidas-tabs>.tab-content{background:rgba(15,23,42,.96);border-color:var(--atlasgrt-border,rgba(169,189,222,.22));}
body.atlasgrt-skin-atlas .atlas-ia-empty-status,
body.atlasgrt-skin-hst .atlas-ia-empty-status{background:rgba(255,255,255,.035);border-color:var(--atlasgrt-border,rgba(169,189,222,.22));}
body.atlasgrt-skin-atlas .atlas-ia-empty-status strong,
body.atlasgrt-skin-hst .atlas-ia-empty-status strong{color:var(--atlasgrt-text,#f8fafc);}
body.atlasgrt-skin-atlas .atlas-ia-empty-status span,
body.atlasgrt-skin-hst .atlas-ia-empty-status span{color:var(--atlasgrt-text-soft,#cbd5e1);}

/* AtlasGRT817 · Revisión IA compacta, tabs integradas y layout sin estirar resumen */
.pp-summary-main-grid,
.pg-summary-main-grid,
.hallazgos-main-grid.row,
.lv-summary-main-grid,
.ml-summary-main-grid{align-items:flex-start!important;}
.pp-summary-main-grid .atlasgrt-card,
.pg-summary-main-grid .atlasgrt-card{min-height:0!important;height:auto!important;}
.pp-summary-main-grid > [class*="col-"],
.pg-summary-main-grid > [class*="col-"],
.hallazgos-main-grid.row > [class*="col-"]{align-self:flex-start!important;}
.ml-summary-hero,
.ml-preliminar-summary-card{height:auto!important;align-self:start!important;}
.atlas-ia-review-card{height:auto!important;min-height:0!important;align-self:start!important;}
.atlas-ia-review-tabs.nav-tabs{border-bottom:0!important;gap:0!important;align-items:flex-end;margin-bottom:0!important;}
.atlas-ia-review-tabs.nav-tabs .nav-link{position:relative;margin-bottom:-1px!important;border:1px solid var(--atlasgrt-border,#d8dfec)!important;border-radius:13px 13px 0 0!important;color:var(--atlasgrt-text-soft,#64748b)!important;background:var(--atlasgrt-surface-2,#f8fafc)!important;font-weight:650!important;padding:.55rem .75rem!important;box-shadow:none!important;}
.atlas-ia-review-tabs.nav-tabs .nav-link.active{z-index:4;color:var(--atlasgrt-text,#111827)!important;background:var(--atlasgrt-surface,#fff)!important;border-bottom-color:var(--atlasgrt-surface,#fff)!important;transform:translateY(1px);box-shadow:none!important;}
.atlas-ia-review-tabs.nav-tabs .nav-link.active::after{content:"";position:absolute;left:-1px;right:-1px;bottom:-2px;height:3px;background:var(--atlasgrt-surface,#fff);z-index:5;}
.atlas-ia-review-card>.tab-content,
.ml-salidas-tabs>.tab-content{border:1px solid var(--atlasgrt-border,#d8dfec)!important;border-radius:0 0 16px 16px!important;background:var(--atlasgrt-surface,#fff)!important;padding:14px!important;margin-top:-1px!important;}
.atlas-ia-tab-header{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;margin-bottom:10px!important;}
.atlas-ia-tab-header .atlasgrt-section-subtitle{font-size:0!important;line-height:0!important;height:0!important;margin:0!important;overflow:hidden!important;}
.atlas-ia-tab-header-actions{display:flex!important;gap:8px!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:wrap!important;}
.atlas-ia-recalc-form{display:inline-flex!important;margin:0!important;}
.atlas-ia-recalc-btn{display:inline-flex!important;align-items:center!important;gap:6px!important;min-height:32px!important;padding:.35rem .7rem!important;border-radius:12px!important;}
.atlas-ia-empty-status,
.ml-preliminar-status{display:flex!important;align-items:center!important;gap:10px!important;min-height:48px!important;border:1px dashed var(--atlasgrt-border,#d8dfec)!important;border-radius:14px!important;padding:10px 12px!important;background:rgba(15,23,42,.025)!important;color:var(--atlasgrt-text,#111827)!important;cursor:help;}
.atlas-ia-empty-status-dot,
.ml-preliminar-status-dot{width:10px!important;height:10px!important;border-radius:999px!important;flex:0 0 10px!important;background:var(--atlasgrt-ia-accent,#38bdf8)!important;box-shadow:0 0 0 3px rgba(56,189,248,.13),0 0 14px rgba(56,189,248,.18)!important;}
.atlas-ia-empty-status.is-preliminar .atlas-ia-empty-status-dot,
.ml-preliminar-status.is-clear .ml-preliminar-status-dot{background:#00FFA5!important;box-shadow:0 0 0 3px rgba(0,255,165,.12),0 0 12px rgba(0,255,165,.16)!important;}
.ml-preliminar-status.is-pending .ml-preliminar-status-dot{background:#f59e0b!important;box-shadow:0 0 0 3px rgba(245,158,11,.14),0 0 12px rgba(245,158,11,.16)!important;}
.atlas-ia-empty-status strong,
.ml-preliminar-status strong{display:block!important;font-size:.86rem!important;line-height:1.15!important;color:var(--atlasgrt-text,#111827)!important;}
.atlas-ia-empty-status span,
.ml-preliminar-status span{display:block!important;font-size:0!important;line-height:0!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;margin:0!important;}
body.atlasgrt-skin-atlas .atlas-ia-review-tabs.nav-tabs .nav-link,
body.atlasgrt-skin-hst .atlas-ia-review-tabs.nav-tabs .nav-link{background:rgba(255,255,255,.035)!important;color:var(--atlasgrt-text-soft,#cbd5e1)!important;border-color:var(--atlasgrt-border,rgba(169,189,222,.22))!important;}
body.atlasgrt-skin-atlas .atlas-ia-review-tabs.nav-tabs .nav-link.active,
body.atlasgrt-skin-hst .atlas-ia-review-tabs.nav-tabs .nav-link.active{background:rgba(15,23,42,.96)!important;color:var(--atlasgrt-text,#f8fafc)!important;border-bottom-color:rgba(15,23,42,.96)!important;}
body.atlasgrt-skin-atlas .atlas-ia-review-tabs.nav-tabs .nav-link.active::after,
body.atlasgrt-skin-hst .atlas-ia-review-tabs.nav-tabs .nav-link.active::after{background:rgba(15,23,42,.96)!important;}
body.atlasgrt-skin-atlas .atlas-ia-review-card>.tab-content,
body.atlasgrt-skin-hst .atlas-ia-review-card>.tab-content,
body.atlasgrt-skin-atlas .ml-salidas-tabs>.tab-content,
body.atlasgrt-skin-hst .ml-salidas-tabs>.tab-content{background:rgba(15,23,42,.96)!important;border-color:var(--atlasgrt-border,rgba(169,189,222,.22))!important;}
body.atlasgrt-skin-atlas .atlas-ia-empty-status,
body.atlasgrt-skin-hst .atlas-ia-empty-status,
body.atlasgrt-skin-atlas .ml-preliminar-status,
body.atlasgrt-skin-hst .ml-preliminar-status{background:rgba(255,255,255,.035)!important;border-color:var(--atlasgrt-border,rgba(169,189,222,.22))!important;}

/* AtlasGRT819 · Revisión IA: recálculo con alcance de módulo, luz visible y estado vacío uniforme */
.pp-summary-main-grid,
.pg-summary-main-grid,
.hallazgos-main-grid.row,
.lv-summary-main-grid,
.ml-summary-main-grid{
    align-items:flex-start!important;
}
.pp-summary-main-grid > [class*="col-"],
.pg-summary-main-grid > [class*="col-"],
.hallazgos-main-grid.row > [class*="col-"],
.lv-summary-main-grid > [class*="col-"],
.ml-summary-main-grid > [class*="col-"]{
    align-self:flex-start!important;
}
.ml-summary-hero,
.pp-summary-hero,
.pg-summary-hero,
.hallazgo-summary-hero,
.lv-summary-hero{
    height:auto!important;
    min-height:0!important;
    align-self:flex-start!important;
}
.atlas-ia-review-card,
.ml-preliminar-summary-card{
    height:auto!important;
    min-height:0!important;
    align-self:flex-start!important;
}
.atlas-ia-review-tabs.nav-tabs{border-bottom:0!important;gap:0!important;align-items:flex-end!important;margin-bottom:0!important;}
.atlas-ia-review-tabs.nav-tabs .nav-link{position:relative!important;margin-bottom:-1px!important;border:1px solid var(--atlasgrt-border,#d8dfec)!important;border-radius:13px 13px 0 0!important;color:var(--atlasgrt-text-soft,#64748b)!important;background:var(--atlasgrt-surface-2,#f8fafc)!important;font-weight:750!important;padding:.55rem .75rem!important;box-shadow:none!important;}
.atlas-ia-review-tabs.nav-tabs .nav-link.active{z-index:5!important;color:var(--atlasgrt-text,#111827)!important;background:var(--atlasgrt-surface,#fff)!important;border-bottom-color:var(--atlasgrt-surface,#fff)!important;transform:translateY(1px)!important;box-shadow:none!important;}
.atlas-ia-review-tabs.nav-tabs .nav-link.active::after{content:""!important;position:absolute!important;left:-1px!important;right:-1px!important;bottom:-3px!important;height:5px!important;background:var(--atlasgrt-surface,#fff)!important;z-index:6!important;}
.atlas-ia-review-card>.tab-content,
.ml-salidas-tabs>.tab-content{border:1px solid var(--atlasgrt-border,#d8dfec)!important;border-radius:0 0 16px 16px!important;background:var(--atlasgrt-surface,#fff)!important;padding:14px!important;margin-top:-1px!important;}
.atlas-ia-tab-header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-bottom:10px!important;}
.atlas-ia-tab-header .atlasgrt-section-subtitle{font-size:0!important;line-height:0!important;height:0!important;margin:0!important;overflow:hidden!important;}
.atlas-ia-tab-header-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:wrap!important;}
.atlas-ia-recalc-form{display:inline-flex!important;margin:0!important;}
.atlas-ia-recalc-btn{display:inline-flex!important;align-items:center!important;gap:6px!important;min-height:32px!important;padding:.35rem .7rem!important;border-radius:12px!important;}
.atlas-ia-empty-status,
.ml-preliminar-status{position:relative!important;display:flex!important;align-items:center!important;gap:11px!important;min-height:48px!important;border:1px dashed var(--atlasgrt-border,#d8dfec)!important;border-radius:14px!important;padding:10px 13px!important;background:rgba(15,23,42,.025)!important;color:var(--atlasgrt-text,#111827)!important;cursor:help!important;overflow:hidden!important;}
.atlas-ia-empty-status::before,
.ml-preliminar-status::before{content:""!important;position:absolute!important;left:0!important;top:10px!important;bottom:10px!important;width:3px!important;border-radius:0 999px 999px 0!important;background:var(--atlasgrt-ia-accent,#38bdf8)!important;box-shadow:0 0 14px rgba(56,189,248,.38)!important;}
.atlas-ia-empty-status.is-preliminar::before,
.ml-preliminar-status.is-clear::before{background:#00FFA5!important;box-shadow:0 0 12px rgba(0,255,165,.30)!important;}
.ml-preliminar-status.is-pending::before{background:#f59e0b!important;box-shadow:0 0 12px rgba(245,158,11,.30)!important;}
.atlas-ia-empty-status-dot,
.ml-preliminar-status-dot{width:11px!important;height:11px!important;border-radius:999px!important;flex:0 0 11px!important;background:var(--atlasgrt-ia-accent,#38bdf8)!important;box-shadow:0 0 0 4px rgba(56,189,248,.15),0 0 18px rgba(56,189,248,.42)!important;}
.atlas-ia-empty-status.is-preliminar .atlas-ia-empty-status-dot,
.ml-preliminar-status.is-clear .ml-preliminar-status-dot{background:#00FFA5!important;box-shadow:0 0 0 4px rgba(0,255,165,.14),0 0 16px rgba(0,255,165,.34)!important;}
.ml-preliminar-status.is-pending .ml-preliminar-status-dot{background:#f59e0b!important;box-shadow:0 0 0 4px rgba(245,158,11,.16),0 0 16px rgba(245,158,11,.34)!important;}
.atlas-ia-empty-status strong,
.ml-preliminar-status strong{display:block!important;font-size:.86rem!important;line-height:1.15!important;font-weight:850!important;color:var(--atlasgrt-text,#111827)!important;}
.atlas-ia-empty-status span,
.ml-preliminar-status span{display:block!important;font-size:0!important;line-height:0!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;margin:0!important;}
body.atlasgrt-skin-atlas .atlas-ia-review-tabs.nav-tabs .nav-link,
body.atlasgrt-skin-hst .atlas-ia-review-tabs.nav-tabs .nav-link{background:rgba(255,255,255,.035)!important;color:var(--atlasgrt-text-soft,#cbd5e1)!important;border-color:var(--atlasgrt-border,rgba(169,189,222,.22))!important;}
body.atlasgrt-skin-atlas .atlas-ia-review-tabs.nav-tabs .nav-link.active,
body.atlasgrt-skin-hst .atlas-ia-review-tabs.nav-tabs .nav-link.active{background:rgba(15,23,42,.96)!important;color:var(--atlasgrt-text,#f8fafc)!important;border-bottom-color:rgba(15,23,42,.96)!important;}
body.atlasgrt-skin-atlas .atlas-ia-review-tabs.nav-tabs .nav-link.active::after,
body.atlasgrt-skin-hst .atlas-ia-review-tabs.nav-tabs .nav-link.active::after{background:rgba(15,23,42,.96)!important;}
body.atlasgrt-skin-atlas .atlas-ia-review-card>.tab-content,
body.atlasgrt-skin-hst .atlas-ia-review-card>.tab-content,
body.atlasgrt-skin-atlas .ml-salidas-tabs>.tab-content,
body.atlasgrt-skin-hst .ml-salidas-tabs>.tab-content{background:rgba(15,23,42,.96)!important;border-color:var(--atlasgrt-border,rgba(169,189,222,.22))!important;}
body.atlasgrt-skin-atlas .atlas-ia-empty-status,
body.atlasgrt-skin-hst .atlas-ia-empty-status,
body.atlasgrt-skin-atlas .ml-preliminar-status,
body.atlasgrt-skin-hst .ml-preliminar-status{background:rgba(255,255,255,.035)!important;border-color:var(--atlasgrt-border,rgba(169,189,222,.22))!important;}


/* AtlasGRT823 · Endurecimiento transversal de drawers/previews para skins oscuros. */
body.atlasgrt-skin-atlas .control-atlas-drawer,
body.atlasgrt-skin-hst .control-atlas-drawer,
body.atlasgrt-skin-atlas .radar-drawer,
body.atlasgrt-skin-hst .radar-drawer{
    background:linear-gradient(180deg,var(--atlasgrt-white),rgba(10,16,26,.98)) !important;
    color:var(--atlasgrt-text) !important;
    border-left:1px solid var(--atlasgrt-border) !important;
}
body.atlasgrt-skin-atlas .control-atlas-drawer-head,
body.atlasgrt-skin-hst .control-atlas-drawer-head,
body.atlasgrt-skin-atlas .radar-drawer-head,
body.atlasgrt-skin-hst .radar-drawer-head{
    background:rgba(255,255,255,.035) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .radar-drawer-item,
body.atlasgrt-skin-hst .radar-drawer-item,
body.atlasgrt-skin-atlas .control-atlas-drawer-item,
body.atlasgrt-skin-hst .control-atlas-drawer-item{
    background:rgba(255,255,255,.055) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .radar-drawer-item-title,
body.atlasgrt-skin-hst .radar-drawer-item-title,
body.atlasgrt-skin-atlas .control-atlas-drawer .control-atlas-line-title,
body.atlasgrt-skin-hst .control-atlas-drawer .control-atlas-line-title{
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .radar-drawer-item-meta,
body.atlasgrt-skin-hst .radar-drawer-item-meta,
body.atlasgrt-skin-atlas .control-atlas-drawer .control-atlas-line-meta,
body.atlasgrt-skin-hst .control-atlas-drawer .control-atlas-line-meta{
    color:var(--atlasgrt-text-soft) !important;
}
body.atlasgrt-skin-atlas .pg-layout-preview-dialog,
body.atlasgrt-skin-hst .pg-layout-preview-dialog{
    background:linear-gradient(145deg,var(--atlasgrt-white),rgba(10,16,26,.98)) !important;
    color:var(--atlasgrt-text) !important;
    border:1px solid var(--atlasgrt-border) !important;
}

/* AtlasGRT825 · Refuerzo transversal: drawers Radar y LV->Verificar en skins oscuros. */
body.atlasgrt-skin-atlas .radar-drawer .radar-info-card,
body.atlasgrt-skin-atlas .radar-drawer .radar-list-item,
body.atlasgrt-skin-atlas .radar-drawer .radar-execution-card,
body.atlasgrt-skin-atlas .radar-drawer .radar-alert-item,
body.atlasgrt-skin-atlas .radar-drawer .radar-hallazgo-card,
body.atlasgrt-skin-atlas .radar-drawer .radar-empty,
body.atlasgrt-skin-hst .radar-drawer .radar-info-card,
body.atlasgrt-skin-hst .radar-drawer .radar-list-item,
body.atlasgrt-skin-hst .radar-drawer .radar-execution-card,
body.atlasgrt-skin-hst .radar-drawer .radar-alert-item,
body.atlasgrt-skin-hst .radar-drawer .radar-hallazgo-card,
body.atlasgrt-skin-hst .radar-drawer .radar-empty{
    background:rgba(255,255,255,.055) !important;
    border-color:var(--atlasgrt-border) !important;
    color:var(--atlasgrt-text) !important;
    box-shadow:none !important;
}
body.atlasgrt-skin-atlas .radar-drawer .radar-kv-value,
body.atlasgrt-skin-atlas .radar-drawer .radar-execution-label,
body.atlasgrt-skin-atlas .radar-drawer .radar-execution-meta strong,
body.atlasgrt-skin-atlas .radar-drawer .radar-alert-title,
body.atlasgrt-skin-atlas .radar-drawer .radar-hallazgo-title,
body.atlasgrt-skin-atlas .radar-drawer .radar-hallazgo-meta strong,
body.atlasgrt-skin-hst .radar-drawer .radar-kv-value,
body.atlasgrt-skin-hst .radar-drawer .radar-execution-label,
body.atlasgrt-skin-hst .radar-drawer .radar-execution-meta strong,
body.atlasgrt-skin-hst .radar-drawer .radar-alert-title,
body.atlasgrt-skin-hst .radar-drawer .radar-hallazgo-title,
body.atlasgrt-skin-hst .radar-drawer .radar-hallazgo-meta strong{
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .radar-drawer .radar-kv-label,
body.atlasgrt-skin-atlas .radar-drawer .radar-execution-kicker,
body.atlasgrt-skin-atlas .radar-drawer .radar-execution-meta,
body.atlasgrt-skin-atlas .radar-drawer .radar-alert-detail,
body.atlasgrt-skin-atlas .radar-drawer .radar-hallazgo-meta,
body.atlasgrt-skin-atlas .radar-drawer .radar-hallazgo-media-note,
body.atlasgrt-skin-hst .radar-drawer .radar-kv-label,
body.atlasgrt-skin-hst .radar-drawer .radar-execution-kicker,
body.atlasgrt-skin-hst .radar-drawer .radar-execution-meta,
body.atlasgrt-skin-hst .radar-drawer .radar-alert-detail,
body.atlasgrt-skin-hst .radar-drawer .radar-hallazgo-meta,
body.atlasgrt-skin-hst .radar-drawer .radar-hallazgo-media-note{
    color:var(--atlasgrt-text-soft) !important;
}
.lv-verify-type-img,
.lv-verify-img img,
.lv-thumb,
.lv-current-image{
    display:block;
}
.lv-verify-img-btn img{
    min-width:100%;
    min-height:100%;
}
body.atlasgrt-skin-atlas .lv-verify-type-img,
body.atlasgrt-skin-hst .lv-verify-type-img{
    background:rgba(255,255,255,.08) !important;
    border-color:var(--atlasgrt-border) !important;
}

/* AtlasGRT906 · Contraste operativo en skins oscuros y overlays de radar ajustados al layout real. */
body.atlasgrt-skin-atlas .op-person-card,
body.atlasgrt-skin-hst .op-person-card,
body.atlasgrt-skin-atlas .op-public-badge,
body.atlasgrt-skin-hst .op-public-badge,
body.atlasgrt-skin-atlas .op-photo-current,
body.atlasgrt-skin-hst .op-photo-current,
body.atlasgrt-skin-atlas .atlas-chip-picker,
body.atlasgrt-skin-hst .atlas-chip-picker{
  background:rgba(15,23,42,.94);
  border-color:rgba(226,232,240,.22);
  color:#f8fafc;
  box-shadow:0 12px 30px rgba(0,0,0,.24);
}
body.atlasgrt-skin-atlas .op-person-card.is-selected,
body.atlasgrt-skin-hst .op-person-card.is-selected{
  border-color:rgba(147,197,253,.74);
  box-shadow:0 0 0 1px rgba(147,197,253,.28),0 14px 34px rgba(0,0,0,.34);
}
body.atlasgrt-skin-atlas .op-person-title,
body.atlasgrt-skin-hst .op-person-title,
body.atlasgrt-skin-atlas .op-public-badge strong,
body.atlasgrt-skin-hst .op-public-badge strong{
  color:#ffffff;
}
body.atlasgrt-skin-atlas .op-person-meta,
body.atlasgrt-skin-hst .op-person-meta,
body.atlasgrt-skin-atlas .atlas-chip-picker-note,
body.atlasgrt-skin-hst .atlas-chip-picker-note,
body.atlasgrt-skin-atlas .op-photo-current .small,
body.atlasgrt-skin-hst .op-photo-current .small{
  color:#cbd5e1 !important;
}
body.atlasgrt-skin-atlas .op-person-avatar,
body.atlasgrt-skin-hst .op-person-avatar{
  background:#111827;
  color:#e0f2fe;
  border-color:rgba(226,232,240,.22);
}
body.atlasgrt-skin-atlas .atlas-chip-picker-chip,
body.atlasgrt-skin-hst .atlas-chip-picker-chip{
  background:rgba(30,41,59,.96);
  border-color:rgba(226,232,240,.20);
  color:#f8fafc;
}
body.atlasgrt-skin-atlas .atlas-chip-picker-chip button,
body.atlasgrt-skin-hst .atlas-chip-picker-chip button{
  color:#fca5a5;
}
body.atlasgrt-skin-atlas .op-switcher .btn-outline-dark,
body.atlasgrt-skin-hst .op-switcher .btn-outline-dark{
  color:#f8fafc;
  border-color:rgba(248,250,252,.42);
}
body.atlasgrt-skin-atlas .op-switcher .btn-dark,
body.atlasgrt-skin-hst .op-switcher .btn-dark{
  background:#e2e8f0;
  border-color:#e2e8f0;
  color:#0f172a;
}


/* AtlasGRT911 - Hallazgos: contraste robusto para chips principales en skins oscuros. */
body.atlasgrt-skin-atlas .hallazgo-picker-chip.is-principal,
body.atlasgrt-skin-hst .hallazgo-picker-chip.is-principal{
    background:rgba(16,185,129,.16) !important;
    border-color:rgba(16,185,129,.62) !important;
    color:var(--atlasgrt-text,#f8fafc) !important;
}
body.atlasgrt-skin-atlas .hallazgo-picker-chip-role,
body.atlasgrt-skin-hst .hallazgo-picker-chip-role{
    background:#0f172a !important;
    border:1px solid rgba(255,255,255,.18) !important;
    color:#ffffff !important;
}
body.atlasgrt-skin-atlas .hallazgo-picker-chip-remove,
body.atlasgrt-skin-hst .hallazgo-picker-chip-remove{
    color:var(--atlasgrt-text-soft,#cbd5e1) !important;
}
body.atlasgrt-skin-atlas .hallazgo-picker-chip-remove:hover,
body.atlasgrt-skin-hst .hallazgo-picker-chip-remove:hover,
body.atlasgrt-skin-atlas .hallazgo-picker-chip-remove:focus,
body.atlasgrt-skin-hst .hallazgo-picker-chip-remove:focus{
    background:rgba(255,255,255,.14) !important;
    color:#ffffff !important;
}

/* AtlasGRT913 - LV Resultados / Trazabilidad: contraste en skins oscuros. */
body.atlasgrt-skin-atlas .lv-trace-badge,
body.atlasgrt-skin-hst .lv-trace-badge{
    background:rgba(0,255,165,.14) !important;
    border-color:rgba(0,255,165,.44) !important;
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .lv-trace-hash,
body.atlasgrt-skin-atlas .lv-trace-link,
body.atlasgrt-skin-hst .lv-trace-hash,
body.atlasgrt-skin-hst .lv-trace-link{
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas .lv-trace-box,
body.atlasgrt-skin-hst .lv-trace-box{
    background:rgba(255,255,255,.045) !important;
    border:1px solid var(--atlasgrt-border) !important;
    border-radius:12px;
    padding:8px 10px;
}

/* AtlasGRT953 · Cierre Área: acciones derechas de barras de submódulos y dragzone no-bandeja.
   Alcance: sólo contenedores justificados a la derecha; no modifica navegación izquierda. */
.atlasgrt-submodule-card > .pg-submodule-bar,
.atlasgrt-submodule-card > .pp-submodule-bar,
.atlasgrt-submodule-card > .hallazgos-submodule-bar,
.ml-toolbar,
.lv-submodule-bar,
.lv-submodule-actions{
    overflow:visible !important;
}
.pg-submodule-shortcuts,
.pp-submodule-shortcuts,
.hallazgos-submodule-shortcuts,
.ml-toolbar-actions,
.lv-toolbar,
.radar-toolbar-actions,
.control-atlas-toolbar-actions{
    overflow:visible !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:8px !important;
    padding:1px !important;
}
.pg-submodule-shortcuts .btn,
.pp-submodule-shortcuts .btn,
.hallazgos-submodule-shortcuts .btn,
.ml-toolbar-actions .btn,
.lv-toolbar .btn,
.radar-toolbar-actions .btn,
.control-atlas-toolbar-actions .btn,
.pg-submodule-shortcuts .atlasgrt-toolbar-action-btn,
.pp-submodule-shortcuts .atlasgrt-toolbar-action-btn,
.hallazgos-submodule-shortcuts .atlasgrt-toolbar-action-btn,
.ml-toolbar-actions .atlasgrt-toolbar-action-btn,
.lv-toolbar .atlasgrt-toolbar-action-btn{
    position:relative !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:38px !important;
    height:38px !important;
    padding:0 14px !important;
    border-radius:14px !important;
    border:1px solid rgba(148,163,184,.28) !important;
    line-height:1 !important;
    white-space:nowrap !important;
    overflow:visible !important;
    text-overflow:clip !important;
    box-sizing:border-box !important;
    font-weight:500 !important;
    letter-spacing:0 !important;
    transform:none !important;
    transition:background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease !important;
}
.pg-submodule-shortcuts .btn:hover,
.pp-submodule-shortcuts .btn:hover,
.hallazgos-submodule-shortcuts .btn:hover,
.ml-toolbar-actions .btn:hover,
.lv-toolbar .btn:hover,
.radar-toolbar-actions .btn:hover,
.control-atlas-toolbar-actions .btn:hover,
.pg-submodule-shortcuts .btn:focus,
.pp-submodule-shortcuts .btn:focus,
.hallazgos-submodule-shortcuts .btn:focus,
.ml-toolbar-actions .btn:focus,
.lv-toolbar .btn:focus,
.radar-toolbar-actions .btn:focus,
.control-atlas-toolbar-actions .btn:focus{
    transform:translateY(-1px) !important;
    outline:0 !important;
    border-color:var(--atlasgrt-skin-accent,var(--atlasgrt-primary,#2F3A5F)) !important;
    box-shadow:0 0 0 1px var(--atlasgrt-skin-accent-soft,rgba(47,58,95,.12)),0 8px 18px rgba(15,23,42,.12) !important;
}
body.atlasgrt-skin-atlas .pg-submodule-shortcuts .btn,
body.atlasgrt-skin-atlas .pp-submodule-shortcuts .btn,
body.atlasgrt-skin-atlas .hallazgos-submodule-shortcuts .btn,
body.atlasgrt-skin-atlas .ml-toolbar-actions .btn,
body.atlasgrt-skin-atlas .lv-toolbar .btn,
body.atlasgrt-skin-atlas .radar-toolbar-actions .btn,
body.atlasgrt-skin-atlas .control-atlas-toolbar-actions .btn{
    color:#edf5ff !important;
    background:rgba(255,255,255,.045) !important;
    border-color:rgba(169,189,222,.28) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.06) !important;
}
body.atlasgrt-skin-atlas .pg-submodule-shortcuts .btn-dark,
body.atlasgrt-skin-atlas .pp-submodule-shortcuts .btn-dark,
body.atlasgrt-skin-atlas .hallazgos-submodule-shortcuts .btn-dark,
body.atlasgrt-skin-atlas .ml-toolbar-actions .btn-dark,
body.atlasgrt-skin-atlas .lv-toolbar .btn-dark,
body.atlasgrt-skin-atlas .radar-toolbar-actions .btn-dark,
body.atlasgrt-skin-atlas .control-atlas-toolbar-actions .btn-dark,
body.atlasgrt-skin-atlas .pg-submodule-shortcuts .btn-primary,
body.atlasgrt-skin-atlas .pp-submodule-shortcuts .btn-primary,
body.atlasgrt-skin-atlas .hallazgos-submodule-shortcuts .btn-primary,
body.atlasgrt-skin-atlas .ml-toolbar-actions .btn-primary,
body.atlasgrt-skin-atlas .lv-toolbar .btn-primary,
body.atlasgrt-skin-atlas .radar-toolbar-actions .btn-primary,
body.atlasgrt-skin-atlas .control-atlas-toolbar-actions .btn-primary{
    color:#eaf2ff !important;
    background:rgba(0,255,165,.10) !important;
    border-color:rgba(0,255,165,.38) !important;
}
body.atlasgrt-skin-hst .pg-submodule-shortcuts .btn,
body.atlasgrt-skin-hst .pp-submodule-shortcuts .btn,
body.atlasgrt-skin-hst .hallazgos-submodule-shortcuts .btn,
body.atlasgrt-skin-hst .ml-toolbar-actions .btn,
body.atlasgrt-skin-hst .lv-toolbar .btn,
body.atlasgrt-skin-hst .radar-toolbar-actions .btn,
body.atlasgrt-skin-hst .control-atlas-toolbar-actions .btn{
    color:#fff8e7 !important;
    background:rgba(247,169,0,.055) !important;
    border-color:rgba(247,169,0,.32) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.06) !important;
}
body.atlasgrt-skin-hst .pg-submodule-shortcuts .btn-dark,
body.atlasgrt-skin-hst .pp-submodule-shortcuts .btn-dark,
body.atlasgrt-skin-hst .hallazgos-submodule-shortcuts .btn-dark,
body.atlasgrt-skin-hst .ml-toolbar-actions .btn-dark,
body.atlasgrt-skin-hst .lv-toolbar .btn-dark,
body.atlasgrt-skin-hst .radar-toolbar-actions .btn-dark,
body.atlasgrt-skin-hst .control-atlas-toolbar-actions .btn-dark,
body.atlasgrt-skin-hst .pg-submodule-shortcuts .btn-primary,
body.atlasgrt-skin-hst .pp-submodule-shortcuts .btn-primary,
body.atlasgrt-skin-hst .hallazgos-submodule-shortcuts .btn-primary,
body.atlasgrt-skin-hst .ml-toolbar-actions .btn-primary,
body.atlasgrt-skin-hst .lv-toolbar .btn-primary,
body.atlasgrt-skin-hst .radar-toolbar-actions .btn-primary,
body.atlasgrt-skin-hst .control-atlas-toolbar-actions .btn-primary{
    color:#fff3cf !important;
    background:rgba(247,169,0,.13) !important;
    border-color:rgba(247,169,0,.44) !important;
}

#pgPuestoFormModal .pg-dropzone,
#pgLayoutFormModal .pg-dropzone{
    border-width:1.5px !important;
    border-style:dashed !important;
    border-color:var(--atlasgrt-border) !important;
    background:rgba(248,250,252,.62) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.58) !important;
    color:var(--atlasgrt-text) !important;
    overflow:hidden !important;
}
#pgPuestoFormModal .pg-dropzone:hover,
#pgPuestoFormModal .pg-dropzone.dragover,
#pgPuestoFormModal .pg-dropzone.is-dragover,
#pgLayoutFormModal .pg-dropzone:hover,
#pgLayoutFormModal .pg-dropzone.dragover,
#pgLayoutFormModal .pg-dropzone.is-dragover{
    border-color:var(--atlasgrt-skin-accent,var(--atlasgrt-primary,#2F3A5F)) !important;
    background:var(--atlasgrt-skin-accent-soft,rgba(47,58,95,.08)) !important;
    transform:none !important;
    box-shadow:0 0 0 3px var(--atlasgrt-skin-accent-soft,rgba(47,58,95,.10)), inset 0 1px 0 rgba(255,255,255,.12) !important;
}
body.atlasgrt-skin-atlas #pgPuestoFormModal .pg-dropzone,
body.atlasgrt-skin-hst #pgPuestoFormModal .pg-dropzone,
body.atlasgrt-skin-atlas #pgLayoutFormModal .pg-dropzone,
body.atlasgrt-skin-hst #pgLayoutFormModal .pg-dropzone{
    background:rgba(255,255,255,.035) !important;
    border-color:var(--atlasgrt-border) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.055) !important;
}
body.atlasgrt-skin-atlas #pgPuestoFormModal .pg-dropzone .atlasgrt-dropzone-title,
body.atlasgrt-skin-hst #pgPuestoFormModal .pg-dropzone .atlasgrt-dropzone-title,
body.atlasgrt-skin-atlas #pgLayoutFormModal .pg-dropzone .atlasgrt-dropzone-title,
body.atlasgrt-skin-hst #pgLayoutFormModal .pg-dropzone .atlasgrt-dropzone-title{
    color:var(--atlasgrt-text) !important;
}
body.atlasgrt-skin-atlas #pgPuestoFormModal .pg-dropzone .atlasgrt-dropzone-subtitle,
body.atlasgrt-skin-hst #pgPuestoFormModal .pg-dropzone .atlasgrt-dropzone-subtitle,
body.atlasgrt-skin-atlas #pgLayoutFormModal .pg-dropzone .atlasgrt-dropzone-subtitle,
body.atlasgrt-skin-hst #pgLayoutFormModal .pg-dropzone .atlasgrt-dropzone-subtitle{
    color:var(--atlasgrt-text-soft) !important;
}
body.atlasgrt-skin-atlas #pgPuestoFormModal .pg-dropzone .atlasgrt-dropzone-icon,
body.atlasgrt-skin-atlas #pgLayoutFormModal .pg-dropzone .atlasgrt-dropzone-icon{
    background:rgba(0,255,165,.12) !important;
    color:#00FFA5 !important;
    border:1px solid rgba(0,255,165,.28) !important;
}
body.atlasgrt-skin-hst #pgPuestoFormModal .pg-dropzone .atlasgrt-dropzone-icon,
body.atlasgrt-skin-hst #pgLayoutFormModal .pg-dropzone .atlasgrt-dropzone-icon{
    background:rgba(247,169,0,.13) !important;
    color:#f7a900 !important;
    border:1px solid rgba(247,169,0,.32) !important;
}

/* AtlasGRT1005 · Dashboard Empresa con imagen institucional de fondo. */
body.atlasgrt-skin-atlas .atlas-company-hero-panel.has-company-bg,
body.atlasgrt-skin-hst .atlas-company-hero-panel.has-company-bg,
body.atlasgrt-skin-claro .atlas-company-hero-panel.has-company-bg,
body.atlasgrt-skin-base .atlas-company-hero-panel.has-company-bg,
.atlas-company-hero-panel.has-company-bg{
    color:#fff !important;
    background:#111827 !important;
}
body.atlasgrt-skin-atlas .atlas-company-hero-panel.has-company-bg .atlas-company-eyebrow,
body.atlasgrt-skin-atlas .atlas-company-hero-panel.has-company-bg .atlas-company-meta-line,
body.atlasgrt-skin-hst .atlas-company-hero-panel.has-company-bg .atlas-company-eyebrow,
body.atlasgrt-skin-hst .atlas-company-hero-panel.has-company-bg .atlas-company-meta-line,
body.atlasgrt-skin-claro .atlas-company-hero-panel.has-company-bg .atlas-company-eyebrow,
body.atlasgrt-skin-claro .atlas-company-hero-panel.has-company-bg .atlas-company-meta-line,
body.atlasgrt-skin-base .atlas-company-hero-panel.has-company-bg .atlas-company-eyebrow,
body.atlasgrt-skin-base .atlas-company-hero-panel.has-company-bg .atlas-company-meta-line,
.atlas-company-hero-panel.has-company-bg .atlas-company-eyebrow,
.atlas-company-hero-panel.has-company-bg .atlas-company-meta-line{
    color:rgba(255,255,255,.78) !important;
}
body.atlasgrt-skin-atlas .atlas-company-hero-panel.has-company-bg .atlas-company-hero-copy h2,
body.atlasgrt-skin-atlas .atlas-company-hero-panel.has-company-bg .atlas-company-logo-tile span,
body.atlasgrt-skin-hst .atlas-company-hero-panel.has-company-bg .atlas-company-hero-copy h2,
body.atlasgrt-skin-hst .atlas-company-hero-panel.has-company-bg .atlas-company-logo-tile span,
body.atlasgrt-skin-claro .atlas-company-hero-panel.has-company-bg .atlas-company-hero-copy h2,
body.atlasgrt-skin-claro .atlas-company-hero-panel.has-company-bg .atlas-company-logo-tile span,
body.atlasgrt-skin-base .atlas-company-hero-panel.has-company-bg .atlas-company-hero-copy h2,
body.atlasgrt-skin-base .atlas-company-hero-panel.has-company-bg .atlas-company-logo-tile span,
.atlas-company-hero-panel.has-company-bg .atlas-company-hero-copy h2,
.atlas-company-hero-panel.has-company-bg .atlas-company-logo-tile span{
    color:#fff !important;
}

/* AtlasGRT1023 · PP -> Matriz Legal: acción de integración fuerte */
.pp-ml-sync-btn{white-space:nowrap;letter-spacing:.01em;}
body.atlasgrt-skin-atlas .pp-ml-sync-btn,
body.atlasgrt-skin-hst .pp-ml-sync-btn{box-shadow:0 0 0 1px rgba(56,189,248,.22),0 12px 28px rgba(56,189,248,.18)!important;}

/* AtlasGRT1080 · Tabs canónicas de ficha con borde activo reforzado. */
.atlasgrt-tabs{--atlasgrt-tabs-border:color-mix(in srgb,var(--atlasgrt-border,#d8dfec) 58%,var(--atlasgrt-skin-accent,#111827) 42%);--atlasgrt-tabs-active-border:var(--atlasgrt-skin-accent,#111827);border-bottom:1px solid var(--atlasgrt-tabs-active-border);gap:0;margin:0;align-items:flex-end;}
.atlasgrt-tabs .nav-item+.nav-item{margin-left:4px;}
.atlasgrt-tabs .nav-link{position:relative;margin-bottom:-1px;border:1px solid var(--atlasgrt-tabs-border);border-radius:14px 14px 0 0;background:var(--atlasgrt-surface-2,#f8fafc);color:var(--atlasgrt-text-soft,#64748b);font-weight:850;padding:.58rem .92rem;box-shadow:inset 0 1px 0 rgba(255,255,255,.28);}
.atlasgrt-tabs .nav-link:hover,.atlasgrt-tabs .nav-link:focus{border-color:var(--atlasgrt-tabs-active-border);color:var(--atlasgrt-text,#111827);filter:brightness(1.04);}
.atlasgrt-tabs .nav-link.active{z-index:3;background:var(--atlasgrt-surface,#fff);color:var(--atlasgrt-text,#111827);border-color:var(--atlasgrt-tabs-active-border);border-bottom-color:var(--atlasgrt-surface,#fff);box-shadow:0 -1px 0 var(--atlasgrt-surface,#fff) inset,0 0 0 1px color-mix(in srgb,var(--atlasgrt-tabs-active-border) 34%,transparent);}
body.atlasgrt-skin-atlas .atlasgrt-tabs{--atlasgrt-tabs-border:rgba(0,255,165,.54);--atlasgrt-tabs-active-border:#00ffa5;}
body.atlasgrt-skin-hst .atlasgrt-tabs{--atlasgrt-tabs-border:rgba(247,169,0,.66);--atlasgrt-tabs-active-border:#f7a900;}
body.atlasgrt-skin-claro .atlasgrt-tabs{--atlasgrt-tabs-border:rgba(8,145,178,.42);--atlasgrt-tabs-active-border:#0891b2;}
body.atlasgrt-skin-atlas .atlasgrt-tabs .nav-link,body.atlasgrt-skin-hst .atlasgrt-tabs .nav-link{background:rgba(255,255,255,.035);color:var(--atlasgrt-text-soft,#cbd5e1);}
body.atlasgrt-skin-atlas .atlasgrt-tabs .nav-link.active,body.atlasgrt-skin-hst .atlasgrt-tabs .nav-link.active{background:#0f172a;color:var(--atlasgrt-text,#f8fafc);border-bottom-color:#0f172a;box-shadow:0 -1px 0 #0f172a inset,0 0 0 1px rgba(255,255,255,.06);}


/* AtlasGRT1089 · Tabs canónicas transversales con borde reforzado
   Toda pestaña real (ficha de trabajo o revisión IA) debe mostrar la silueta completa en skins claros y oscuros. */
.atlasgrt-tabs,
.atlas-ia-review-tabs{
    --atlasgrt-tabs-border:color-mix(in srgb,var(--atlasgrt-border,#d8dfec) 42%,var(--atlasgrt-skin-accent,#111827) 58%);
    --atlasgrt-tabs-active-border:var(--atlasgrt-skin-accent,#111827);
    border-bottom:2px solid var(--atlasgrt-tabs-active-border)!important;
    gap:0!important;
    margin-bottom:0!important;
    align-items:flex-end!important;
}
.atlasgrt-tabs .nav-item+.nav-item,
.atlas-ia-review-tabs .nav-item+.nav-item{margin-left:4px!important;}
.atlasgrt-tabs .nav-link,
.atlas-ia-review-tabs .nav-link{
    position:relative!important;
    margin-bottom:-2px!important;
    border:2px solid var(--atlasgrt-tabs-border)!important;
    border-radius:14px 14px 0 0!important;
    background:linear-gradient(180deg,var(--atlasgrt-surface-2,#f8fafc),color-mix(in srgb,var(--atlasgrt-surface-2,#f8fafc) 82%,var(--atlasgrt-tabs-active-border) 18%))!important;
    color:var(--atlasgrt-text-soft,#64748b)!important;
    font-weight:850!important;
    padding:.58rem .92rem!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.34),0 0 0 1px color-mix(in srgb,var(--atlasgrt-tabs-border) 28%,transparent)!important;
}
.atlasgrt-tabs .nav-link:hover,
.atlasgrt-tabs .nav-link:focus,
.atlas-ia-review-tabs .nav-link:hover,
.atlas-ia-review-tabs .nav-link:focus{
    border-color:var(--atlasgrt-tabs-active-border)!important;
    color:var(--atlasgrt-text,#111827)!important;
    filter:brightness(1.06)!important;
    outline:none!important;
}
.atlasgrt-tabs .nav-link.active,
.atlas-ia-review-tabs .nav-link.active{
    z-index:6!important;
    background:var(--atlasgrt-surface,#fff)!important;
    color:var(--atlasgrt-text,#111827)!important;
    border-color:var(--atlasgrt-tabs-active-border)!important;
    border-bottom-color:var(--atlasgrt-surface,#fff)!important;
    transform:translateY(1px)!important;
    box-shadow:0 -2px 0 var(--atlasgrt-surface,#fff) inset,0 0 0 1px color-mix(in srgb,var(--atlasgrt-tabs-active-border) 42%,transparent)!important;
}
.atlasgrt-tabs .nav-link.active::after,
.atlas-ia-review-tabs .nav-link.active::after{
    content:""!important;
    position:absolute!important;
    left:-2px!important;
    right:-2px!important;
    bottom:-4px!important;
    height:5px!important;
    background:var(--atlasgrt-surface,#fff)!important;
    z-index:7!important;
}
.atlasgrt-tab-content,
.atlas-ia-review-card>.tab-content,
.ml-salidas-tabs>.tab-content{
    border-color:var(--atlasgrt-tabs-active-border)!important;
}
body.atlasgrt-skin-claro .atlasgrt-tabs,
body.atlasgrt-skin-claro .atlas-ia-review-tabs{--atlasgrt-tabs-border:rgba(8,145,178,.64);--atlasgrt-tabs-active-border:#0891b2;}
body.atlasgrt-skin-atlas .atlasgrt-tabs,
body.atlasgrt-skin-atlas .atlas-ia-review-tabs{--atlasgrt-tabs-border:rgba(0,255,165,.72);--atlasgrt-tabs-active-border:#00ffa5;}
body.atlasgrt-skin-hst .atlasgrt-tabs,
body.atlasgrt-skin-hst .atlas-ia-review-tabs{--atlasgrt-tabs-border:rgba(247,169,0,.82);--atlasgrt-tabs-active-border:#f7a900;}
body.atlasgrt-skin-atlas .atlasgrt-tabs .nav-link,
body.atlasgrt-skin-atlas .atlas-ia-review-tabs .nav-link,
body.atlasgrt-skin-hst .atlasgrt-tabs .nav-link,
body.atlasgrt-skin-hst .atlas-ia-review-tabs .nav-link{
    background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.025))!important;
    color:var(--atlasgrt-text-soft,#cbd5e1)!important;
}
body.atlasgrt-skin-atlas .atlasgrt-tabs .nav-link.active,
body.atlasgrt-skin-atlas .atlas-ia-review-tabs .nav-link.active,
body.atlasgrt-skin-hst .atlasgrt-tabs .nav-link.active,
body.atlasgrt-skin-hst .atlas-ia-review-tabs .nav-link.active{
    background:#0f172a!important;
    color:var(--atlasgrt-text,#f8fafc)!important;
    border-bottom-color:#0f172a!important;
    box-shadow:0 -2px 0 #0f172a inset,0 0 0 1px color-mix(in srgb,var(--atlasgrt-tabs-active-border) 40%,transparent)!important;
}
body.atlasgrt-skin-atlas .atlasgrt-tabs .nav-link.active::after,
body.atlasgrt-skin-atlas .atlas-ia-review-tabs .nav-link.active::after,
body.atlasgrt-skin-hst .atlasgrt-tabs .nav-link.active::after,
body.atlasgrt-skin-hst .atlas-ia-review-tabs .nav-link.active::after{background:#0f172a!important;}
body.atlasgrt-skin-atlas .atlasgrt-tab-content,
body.atlasgrt-skin-atlas .atlas-ia-review-card>.tab-content,
body.atlasgrt-skin-atlas .ml-salidas-tabs>.tab-content,
body.atlasgrt-skin-hst .atlasgrt-tab-content,
body.atlasgrt-skin-hst .atlas-ia-review-card>.tab-content,
body.atlasgrt-skin-hst .ml-salidas-tabs>.tab-content{border-color:var(--atlasgrt-tabs-active-border)!important;}

/* AtlasGRT1090 · Host canónico de tabs: Revisión IA y ML salidas
   El color de borde del panel debe heredarse del host, no sólo del <ul>, para evitar bordes blancos/grises fuera de catálogo. */
.atlas-ia-review-card,
.ml-salidas-tabs{
    --atlasgrt-tabs-border:color-mix(in srgb,var(--atlasgrt-border,#d8dfec) 42%,var(--atlasgrt-skin-accent,#111827) 58%);
    --atlasgrt-tabs-active-border:var(--atlasgrt-skin-accent,#111827);
}
body.atlasgrt-skin-claro .atlas-ia-review-card,
body.atlasgrt-skin-claro .ml-salidas-tabs{--atlasgrt-tabs-border:rgba(8,145,178,.64);--atlasgrt-tabs-active-border:#0891b2;}
body.atlasgrt-skin-atlas .atlas-ia-review-card,
body.atlasgrt-skin-atlas .ml-salidas-tabs{--atlasgrt-tabs-border:rgba(0,255,165,.72);--atlasgrt-tabs-active-border:#00ffa5;}
body.atlasgrt-skin-hst .atlas-ia-review-card,
body.atlasgrt-skin-hst .ml-salidas-tabs{--atlasgrt-tabs-border:rgba(247,169,0,.82);--atlasgrt-tabs-active-border:#f7a900;}
.atlas-ia-review-card>.tab-content,
.ml-salidas-tabs>.tab-content{
    border:1px solid var(--atlasgrt-tabs-active-border)!important;
    border-top:0!important;
    border-radius:0 0 16px 16px!important;
    background:var(--atlasgrt-surface,#fff)!important;
    padding:14px!important;
    margin-top:-2px!important;
}
.atlas-ia-review-card>.tab-content.pt-3{padding-top:14px!important;}
body.atlasgrt-skin-atlas .atlas-ia-review-card>.tab-content,
body.atlasgrt-skin-atlas .ml-salidas-tabs>.tab-content,
body.atlasgrt-skin-hst .atlas-ia-review-card>.tab-content,
body.atlasgrt-skin-hst .ml-salidas-tabs>.tab-content{
    background:rgba(15,23,42,.96)!important;
    border-color:var(--atlasgrt-tabs-active-border)!important;
}
.ml-salidas-tabs>.nav-tabs,
.ml-salidas-tabs>.atlasgrt-tabs,
.ml-salidas-tabs>.atlas-ia-review-tabs{margin-bottom:0!important;}

/* AtlasGRT1093 · Tabs canónicas: panel completo con apertura sólo bajo la pestaña activa
   Regla visual: el panel conserva borde superior completo; la pestaña activa enmascara sólo su propio tramo inferior. */
body .atlasgrt-tabs,
body .atlas-ia-review-tabs,
body .atlas-ia-review-card,
body .ml-salidas-tabs{
    --atlasgrt-tabs-line:var(--atlasgrt-border,#d8dfec);
    --atlasgrt-tabs-panel:var(--atlasgrt-surface,#fff);
    --atlasgrt-tabs-panel-alt:var(--atlasgrt-surface-2,#f8fafc);
}
body.atlasgrt-skin-atlas .atlasgrt-tabs,
body.atlasgrt-skin-atlas .atlas-ia-review-tabs,
body.atlasgrt-skin-atlas .atlas-ia-review-card,
body.atlasgrt-skin-atlas .ml-salidas-tabs,
body.atlasgrt-skin-hst .atlasgrt-tabs,
body.atlasgrt-skin-hst .atlas-ia-review-tabs,
body.atlasgrt-skin-hst .atlas-ia-review-card,
body.atlasgrt-skin-hst .ml-salidas-tabs{
    --atlasgrt-tabs-panel:#0f172a;
    --atlasgrt-tabs-panel-alt:rgba(255,255,255,.035);
}
body .atlasgrt-tabs,
body .atlas-ia-review-tabs{
    position:relative!important;
    border-bottom:0!important;
    gap:0!important;
    align-items:flex-end!important;
    margin:0!important;
    padding:0!important;
}
body .atlasgrt-tabs .nav-item+.nav-item,
body .atlas-ia-review-tabs .nav-item+.nav-item{margin-left:4px!important;}
body .atlasgrt-tabs .nav-link,
body .atlas-ia-review-tabs .nav-link{
    position:relative!important;
    z-index:2!important;
    margin:0 0 -1px 0!important;
    border:1px solid var(--atlasgrt-tabs-line)!important;
    border-bottom-color:var(--atlasgrt-tabs-line)!important;
    border-radius:12px 12px 0 0!important;
    background:var(--atlasgrt-tabs-panel-alt)!important;
    color:var(--atlasgrt-text-soft,#64748b)!important;
    font-weight:850!important;
    padding:.58rem .92rem!important;
    box-shadow:none!important;
    outline:none!important;
    filter:none!important;
}
body .atlasgrt-tabs .nav-link:hover,
body .atlasgrt-tabs .nav-link:focus,
body .atlas-ia-review-tabs .nav-link:hover,
body .atlas-ia-review-tabs .nav-link:focus{
    border-color:var(--atlasgrt-tabs-line)!important;
    color:var(--atlasgrt-text,#111827)!important;
    background:color-mix(in srgb,var(--atlasgrt-tabs-panel-alt) 92%,#ffffff 8%)!important;
    box-shadow:none!important;
    filter:none!important;
}
body .atlasgrt-tabs .nav-link.active,
body .atlas-ia-review-tabs .nav-link.active{
    z-index:5!important;
    background:var(--atlasgrt-tabs-panel)!important;
    color:var(--atlasgrt-text,#111827)!important;
    border-color:var(--atlasgrt-tabs-line)!important;
    border-bottom-color:var(--atlasgrt-tabs-panel)!important;
    transform:none!important;
    box-shadow:none!important;
}
body .atlasgrt-tabs .nav-link.active::after,
body .atlas-ia-review-tabs .nav-link.active::after{
    content:""!important;
    position:absolute!important;
    left:0!important;
    right:0!important;
    bottom:-2px!important;
    height:3px!important;
    background:var(--atlasgrt-tabs-panel)!important;
    z-index:6!important;
    pointer-events:none!important;
}
body .atlasgrt-tab-content,
body .atlas-ia-review-card>.tab-content,
body .ml-salidas-tabs>.tab-content{
    position:relative!important;
    z-index:1!important;
    border:1px solid var(--atlasgrt-tabs-line)!important;
    border-top:1px solid var(--atlasgrt-tabs-line)!important;
    border-radius:0 0 14px 14px!important;
    background:var(--atlasgrt-tabs-panel)!important;
    padding:14px!important;
    margin-top:0!important;
    box-shadow:none!important;
}
body .atlas-ia-review-card>.tab-content.pt-3{padding-top:14px!important;}
body.atlasgrt-skin-atlas .atlasgrt-tab-content,
body.atlasgrt-skin-atlas .atlas-ia-review-card>.tab-content,
body.atlasgrt-skin-atlas .ml-salidas-tabs>.tab-content,
body.atlasgrt-skin-hst .atlasgrt-tab-content,
body.atlasgrt-skin-hst .atlas-ia-review-card>.tab-content,
body.atlasgrt-skin-hst .ml-salidas-tabs>.tab-content{
    background:var(--atlasgrt-tabs-panel)!important;
    border-color:var(--atlasgrt-tabs-line)!important;
}
body .ml-salidas-tabs>.nav-tabs,
body .ml-salidas-tabs>.atlasgrt-tabs,
body .ml-salidas-tabs>.atlas-ia-review-tabs{margin-bottom:0!important;}


/* AtlasGRT1303 · Ajustes móviles 390px: Dashboard Empresa y accesos rápidos. */
@media (max-width:767.98px){
    body:has(.atlasgrt-company-dashboard-shell) .atlasgrt-content{padding:10px!important;}
    .atlas-company-hero-panel{padding:12px!important;border-radius:18px!important;gap:10px!important;}
    .atlas-company-hero-main{width:100%;gap:10px!important;align-items:center!important;min-width:0;}
    .atlas-company-logo-tile{width:54px!important;height:54px!important;flex:0 0 54px!important;border-radius:16px!important;}
    .atlas-company-logo-tile img{max-width:46px!important;max-height:46px!important;}
    .atlas-company-hero-copy{min-width:0;}
    .atlas-company-hero-copy h2{font-size:1.05rem!important;line-height:1.12!important;margin-bottom:4px!important;}
    .atlas-company-eyebrow{font-size:.66rem!important;letter-spacing:.07em!important;}
    .atlas-company-meta-line{gap:5px!important;font-size:.70rem!important;line-height:1.12!important;}
    .atlas-company-action-strip{display:grid!important;grid-template-columns:42px 42px minmax(0,1fr) minmax(0,1fr);gap:6px!important;width:100%!important;justify-content:stretch!important;align-items:stretch!important;}
    .atlas-company-action-strip .atlasgrt-radar-cta{position:relative;min-width:0!important;width:42px!important;min-height:38px!important;padding:.36rem!important;border-radius:12px!important;justify-content:center!important;gap:0!important;}
    .atlas-company-action-strip .atlasgrt-radar-cta > span:nth-child(2){display:none!important;}
    .atlas-company-action-strip .atlasgrt-radar-cta-icon{width:10px!important;height:10px!important;}
    .atlas-company-action-strip .atlasgrt-radar-cta-count{position:absolute;right:-5px;top:-6px;min-width:18px!important;height:18px!important;padding:0 4px!important;font-size:.61rem!important;border:1px solid rgba(255,255,255,.28);}
    .atlas-company-action-strip .atlas-company-top-btn{min-height:38px!important;width:100%!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:.36rem .42rem!important;font-size:.72rem!important;line-height:1.05!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:12px!important;}
    .atlas-company-kpi-grid,.atlas-company-health-grid,.atlas-company-operation-grid{gap:9px!important;}
}

/* AtlasGRT1303 · LV móvil: el contexto superior no debe competir con la tarea de campo. */
@media (max-width:767.98px){
    body.atlasgrt-section-lv .atlasgrt-content{padding:10px!important;}
    body.atlasgrt-section-lv .topbar-subtitle{display:none!important;}
}

/* AtlasGRT1307 · Administración: blindaje transversal de skins.
   Las pantallas admin usan Bootstrap y tablas antiguas; se alinean al skin activo sin tocar PC/layout funcional. */
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .atlasgrt-content,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .atlasgrt-content{
    color:var(--atlasgrt-text)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .table-responsive,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .table-responsive{
    border:1px solid var(--atlasgrt-border)!important;
    border-radius:16px!important;
    background:rgba(255,255,255,.035)!important;
    box-shadow:0 12px 30px rgba(0,0,0,.18)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .table,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .table,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .atlasgrt-table,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .atlasgrt-table{
    --bs-table-bg:transparent;
    --bs-table-striped-bg:rgba(255,255,255,.035);
    --bs-table-hover-bg:var(--atlasgrt-skin-accent-soft);
    color:var(--atlasgrt-text)!important;
    margin-bottom:0;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .table thead th,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .table thead th,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .atlasgrt-table thead th,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .atlasgrt-table thead th{
    color:var(--atlasgrt-text-soft)!important;
    border-color:var(--atlasgrt-border)!important;
    background:rgba(0,0,0,.12)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .table tbody td,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .table tbody td,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .atlasgrt-table tbody td,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .atlasgrt-table tbody td{
    color:var(--atlasgrt-text)!important;
    border-color:var(--atlasgrt-border)!important;
    background:transparent!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .table tbody tr:hover td,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .table tbody tr:hover td{
    background:var(--atlasgrt-skin-accent-soft)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .atlasgrt-col-action,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .atlasgrt-col-action,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .admin-modules-actions,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .admin-modules-actions{
    background:linear-gradient(145deg,var(--atlasgrt-white),rgba(255,255,255,.045))!important;
    color:var(--atlasgrt-text)!important;
    border-left:1px solid var(--atlasgrt-border)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .fw-bold,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas strong,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .fw-bold,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst strong{
    color:var(--atlasgrt-text)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .small,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .form-text,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .small,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .form-text{
    color:var(--atlasgrt-text-soft)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .atlasgrt-sort-link,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .atlasgrt-sort-link{
    color:var(--atlasgrt-text)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .atlasgrt-sort-link:hover,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .atlasgrt-sort-link.active,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .atlasgrt-sort-link:hover,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .atlasgrt-sort-link.active{
    color:var(--atlasgrt-skin-accent)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .btn-outline-dark,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .btn-outline-dark{
    color:var(--atlasgrt-text)!important;
    border-color:var(--atlasgrt-border)!important;
    background:rgba(255,255,255,.035)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .btn-outline-dark:hover,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .btn-outline-dark:focus,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .btn-outline-dark:hover,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .btn-outline-dark:focus{
    color:var(--atlasgrt-skin-accent-contrast,#062019)!important;
    border-color:var(--atlasgrt-skin-accent)!important;
    background:linear-gradient(180deg,var(--atlasgrt-skin-accent),color-mix(in srgb,var(--atlasgrt-skin-accent) 76%,#000 24%))!important;
    box-shadow:0 10px 22px var(--atlasgrt-skin-accent-soft)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .alert,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .alert{
    background:rgba(255,255,255,.055)!important;
    color:var(--atlasgrt-text)!important;
    border-color:var(--atlasgrt-border)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .alert-warning,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .alert-warning{
    background:rgba(247,169,0,.12)!important;
    color:#ffd26b!important;
    border-color:rgba(247,169,0,.34)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .alert-success,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .alert-success{
    background:rgba(0,255,165,.10)!important;
    color:#7ee8c2!important;
    border-color:rgba(0,255,165,.28)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .alert-danger,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .alert-danger{
    background:rgba(255,52,72,.11)!important;
    color:#ff9aa8!important;
    border-color:rgba(255,52,72,.30)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .form-check-input,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .form-check-input{
    background-color:rgba(255,255,255,.07)!important;
    border-color:var(--atlasgrt-border)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .form-check-input:checked,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .form-check-input:checked{
    background-color:var(--atlasgrt-skin-accent)!important;
    border-color:var(--atlasgrt-skin-accent)!important;
}
@media(max-width:767.98px){
    body[class*="atlasgrt-section-admin_"] .atlasgrt-block-header{flex-direction:column;align-items:stretch;}
    body[class*="atlasgrt-section-admin_"] .atlasgrt-filter-actions,
    body[class*="atlasgrt-section-admin_"] .admin-modules-actions{position:static!important;text-align:left!important;}
}

/* AtlasGRT1308 · Administración: segunda pasada de skins y navegación/modal Bootstrap. */
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .modal-content,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .modal-content,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .dropdown-menu,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .dropdown-menu,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .list-group-item,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .list-group-item,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .card,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .card,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .bg-light,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .bg-light{
    background:rgba(255,255,255,.045)!important;
    color:var(--atlasgrt-text)!important;
    border-color:var(--atlasgrt-border)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .modal-header,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .modal-footer,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .modal-header,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .modal-footer{
    background:rgba(255,255,255,.04)!important;
    color:var(--atlasgrt-text)!important;
    border-color:var(--atlasgrt-border)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .modal-body,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .modal-body{
    background:transparent!important;
    color:var(--atlasgrt-text)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .form-control,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .form-select,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas textarea,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .input-group-text,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .form-control,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .form-select,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst textarea,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .input-group-text{
    background:rgba(255,255,255,.055)!important;
    color:var(--atlasgrt-text)!important;
    border-color:var(--atlasgrt-border)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .form-control::placeholder,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .form-control::placeholder{
    color:var(--atlasgrt-text-soft)!important;
    opacity:.82!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .btn-close,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .btn-close{
    filter:invert(1) grayscale(1)!important;
    opacity:.78!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .btn-dark,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .btn-dark{
    background:linear-gradient(180deg,var(--atlasgrt-skin-accent),color-mix(in srgb,var(--atlasgrt-skin-accent) 76%,#000 24%))!important;
    border-color:var(--atlasgrt-skin-accent)!important;
    color:var(--atlasgrt-skin-accent-contrast,#062019)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .btn-outline-secondary,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .btn-outline-secondary{
    background:rgba(255,255,255,.04)!important;
    color:var(--atlasgrt-text)!important;
    border-color:var(--atlasgrt-border)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .text-muted,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .text-secondary,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .text-muted,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .text-secondary{
    color:var(--atlasgrt-text-soft)!important;
}


/* AtlasGRT1311 · Administración: permisos con DOM dinámico respetan skins Atlas/HST. */
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .perm-modal-search,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .perm-modal-search{
    background:linear-gradient(180deg,rgba(17,24,39,.98),rgba(17,24,39,.90))!important;
    color:var(--atlasgrt-text)!important;
    border-color:var(--atlasgrt-border)!important;
    box-shadow:0 10px 22px rgba(0,0,0,.18)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .perm-editor-section,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .perm-editor-section,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .perm-editor-empty,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .perm-editor-empty{
    background:rgba(255,255,255,.045)!important;
    color:var(--atlasgrt-text-soft)!important;
    border-color:var(--atlasgrt-border)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .perm-editor-item,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .perm-editor-item{
    background:rgba(255,255,255,.065)!important;
    color:var(--atlasgrt-text)!important;
    border-color:rgba(255,255,255,.13)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .perm-editor-section-title,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .perm-editor-section-title,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .perm-editor-name,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .perm-editor-name,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .perm-counter strong,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .perm-counter strong{
    color:var(--atlasgrt-text)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .perm-editor-note,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .perm-editor-note,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .perm-highlights,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .perm-highlights{
    color:var(--atlasgrt-text-soft)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .perm-counter,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .perm-counter{
    background:rgba(255,255,255,.055)!important;
    color:var(--atlasgrt-text-soft)!important;
    border-color:var(--atlasgrt-border)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .perm-counter.is-acceso,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .perm-counter.is-acceso{
    background:rgba(16,185,129,.14)!important;
    color:#8ff0c6!important;
    border-color:rgba(16,185,129,.36)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .perm-counter.is-vista,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .perm-counter.is-vista{
    background:rgba(245,158,11,.16)!important;
    color:#ffd27a!important;
    border-color:rgba(245,158,11,.36)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .perm-counter.is-no,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .perm-counter.is-no{
    background:rgba(148,163,184,.10)!important;
    color:#cbd5e1!important;
    border-color:rgba(148,163,184,.22)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas #permisosModal .alert-light,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst #permisosModal .alert-light,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas #advisorPermissionsModal .alert-light,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst #advisorPermissionsModal .alert-light{
    background:rgba(255,255,255,.055)!important;
    color:var(--atlasgrt-text)!important;
    border-color:var(--atlasgrt-border)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas #permisosModal select.form-select option,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst #permisosModal select.form-select option,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas #advisorPermissionsModal select.form-select option,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst #advisorPermissionsModal select.form-select option{
    background:#101827!important;
    color:#f8fafc!important;
}


/* AtlasGRT1315 · Rollback Global + permisos opacos.
   Sólo Administración en skins oscuros: elimina transparencia de modales de permisos sin tocar Dashboard Global. */
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .modal-content,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .modal-content,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .modal-body,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .modal-body,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .card,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .card,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .list-group-item,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .list-group-item,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .bg-light,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .bg-light{
    background:#0f172a!important;
    color:var(--atlasgrt-text)!important;
    border-color:rgba(148,163,184,.22)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .modal-header,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .modal-footer,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .modal-header,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .modal-footer,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .perm-editor-section,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .perm-editor-section,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .perm-editor-empty,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .perm-editor-empty{
    background:#111827!important;
    border-color:rgba(148,163,184,.24)!important;
}
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .perm-editor-item,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .perm-editor-item,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-atlas .perm-modal-search,
body[class*="atlasgrt-section-admin_"].atlasgrt-skin-hst .perm-modal-search{
    background:#0b1220!important;
    border-color:rgba(148,163,184,.24)!important;
}

/* AtlasGRT1320 · Tipografía moderna y barra de submódulos tipo navegación limpia. */
:root{
    --atlasgrt-font-ui: "Plus Jakarta Sans", "Inter", "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html,body,
button,input,select,textarea,
.btn,.form-control,.form-select,
.atlasgrt-app,.modal,.dropdown-menu,.swal2-popup{
    font-family:var(--atlasgrt-font-ui)!important;
    font-optical-sizing:auto;
}
body{letter-spacing:-.012em;}
.atlasgrt-submodule-card > .pg-submodule-bar,
.atlasgrt-submodule-card > .pp-submodule-bar,
.atlasgrt-submodule-card > .hallazgos-submodule-bar,
.lv-submodule-bar,
.ml-toolbar,
.mesa-submodule-switcher{
    border-radius:20px!important;
    border:1px solid rgba(148,163,184,.16)!important;
    background:linear-gradient(180deg,rgba(255,255,255,.88),rgba(248,250,252,.78))!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.72),0 12px 26px rgba(15,23,42,.045)!important;
    padding:8px 12px!important;
}
body.atlasgrt-skin-atlas .atlasgrt-submodule-card > .pg-submodule-bar,
body.atlasgrt-skin-atlas .atlasgrt-submodule-card > .pp-submodule-bar,
body.atlasgrt-skin-atlas .atlasgrt-submodule-card > .hallazgos-submodule-bar,
body.atlasgrt-skin-atlas .lv-submodule-bar,
body.atlasgrt-skin-atlas .ml-toolbar,
body.atlasgrt-skin-atlas .mesa-submodule-switcher,
body.atlasgrt-skin-hst .atlasgrt-submodule-card > .pg-submodule-bar,
body.atlasgrt-skin-hst .atlasgrt-submodule-card > .pp-submodule-bar,
body.atlasgrt-skin-hst .atlasgrt-submodule-card > .hallazgos-submodule-bar,
body.atlasgrt-skin-hst .lv-submodule-bar,
body.atlasgrt-skin-hst .ml-toolbar,
body.atlasgrt-skin-hst .mesa-submodule-switcher{
    background:linear-gradient(180deg,rgba(21,30,45,.92),rgba(15,23,42,.88))!important;
    border-color:rgba(148,163,184,.14)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 16px 36px rgba(2,6,23,.20)!important;
}
.pg-switcher,
.pp-switcher,
.hallazgos-switcher,
.ml-switcher,
.lv-switcher,
.mesa-submodule-switcher,
.op-switcher,
.matriz-switcher{
    gap:22px!important;
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:none;
}
.pg-switcher::-webkit-scrollbar,
.pp-switcher::-webkit-scrollbar,
.hallazgos-switcher::-webkit-scrollbar,
.ml-switcher::-webkit-scrollbar,
.lv-switcher::-webkit-scrollbar,
.mesa-submodule-switcher::-webkit-scrollbar,
.op-switcher::-webkit-scrollbar,
.matriz-switcher::-webkit-scrollbar{display:none;}
.pg-switcher .btn:not(.btn-primary),
.pp-switcher .btn:not(.btn-primary),
.hallazgos-switcher .btn:not(.btn-primary),
.ml-switcher .btn:not(.btn-primary),
.lv-switcher .btn:not(.btn-primary),
.mesa-submodule-switcher .btn:not(.btn-primary),
.op-switcher .btn:not(.btn-primary),
.matriz-switcher .btn:not(.btn-primary){
    position:relative!important;
    min-height:38px!important;
    height:38px!important;
    padding:0 2px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:rgba(71,85,105,.86)!important;
    font-size:.92rem!important;
    font-weight:540!important;
    letter-spacing:-.018em!important;
    white-space:nowrap!important;
}
body.atlasgrt-skin-atlas .pg-switcher .btn:not(.btn-primary),
body.atlasgrt-skin-atlas .pp-switcher .btn:not(.btn-primary),
body.atlasgrt-skin-atlas .hallazgos-switcher .btn:not(.btn-primary),
body.atlasgrt-skin-atlas .ml-switcher .btn:not(.btn-primary),
body.atlasgrt-skin-atlas .lv-switcher .btn:not(.btn-primary),
body.atlasgrt-skin-atlas .mesa-submodule-switcher .btn:not(.btn-primary),
body.atlasgrt-skin-hst .pg-switcher .btn:not(.btn-primary),
body.atlasgrt-skin-hst .pp-switcher .btn:not(.btn-primary),
body.atlasgrt-skin-hst .hallazgos-switcher .btn:not(.btn-primary),
body.atlasgrt-skin-hst .ml-switcher .btn:not(.btn-primary),
body.atlasgrt-skin-hst .lv-switcher .btn:not(.btn-primary),
body.atlasgrt-skin-hst .mesa-submodule-switcher .btn:not(.btn-primary){
    color:rgba(226,232,240,.76)!important;
}
.pg-switcher .btn:not(.btn-primary):hover,
.pp-switcher .btn:not(.btn-primary):hover,
.hallazgos-switcher .btn:not(.btn-primary):hover,
.ml-switcher .btn:not(.btn-primary):hover,
.lv-switcher .btn:not(.btn-primary):hover,
.mesa-submodule-switcher .btn:not(.btn-primary):hover,
.op-switcher .btn:not(.btn-primary):hover,
.matriz-switcher .btn:not(.btn-primary):hover{
    color:var(--atlasgrt-text)!important;
    background:transparent!important;
    box-shadow:none!important;
    transform:none!important;
}
body.atlasgrt-skin-atlas .pg-switcher .btn:not(.btn-primary):hover,
body.atlasgrt-skin-atlas .pp-switcher .btn:not(.btn-primary):hover,
body.atlasgrt-skin-atlas .hallazgos-switcher .btn:not(.btn-primary):hover,
body.atlasgrt-skin-atlas .ml-switcher .btn:not(.btn-primary):hover,
body.atlasgrt-skin-atlas .lv-switcher .btn:not(.btn-primary):hover,
body.atlasgrt-skin-hst .pg-switcher .btn:not(.btn-primary):hover,
body.atlasgrt-skin-hst .pp-switcher .btn:not(.btn-primary):hover,
body.atlasgrt-skin-hst .hallazgos-switcher .btn:not(.btn-primary):hover,
body.atlasgrt-skin-hst .ml-switcher .btn:not(.btn-primary):hover,
body.atlasgrt-skin-hst .lv-switcher .btn:not(.btn-primary):hover{
    color:#fff!important;
}
.pg-switcher .btn.btn-dark:not(.btn-primary),
.pp-switcher .btn.btn-dark:not(.btn-primary),
.hallazgos-switcher .btn.btn-dark:not(.btn-primary),
.ml-switcher .btn.btn-dark:not(.btn-primary),
.lv-switcher .btn.btn-dark:not(.btn-primary),
.mesa-submodule-switcher .btn.btn-dark:not(.btn-primary),
.op-switcher .btn.btn-dark:not(.btn-primary),
.matriz-switcher .btn.btn-dark:not(.btn-primary){
    color:var(--atlasgrt-text)!important;
    background:transparent!important;
    border-color:transparent!important;
    box-shadow:none!important;
    font-weight:690!important;
}
body.atlasgrt-skin-atlas .pg-switcher .btn.btn-dark:not(.btn-primary),
body.atlasgrt-skin-atlas .pp-switcher .btn.btn-dark:not(.btn-primary),
body.atlasgrt-skin-atlas .hallazgos-switcher .btn.btn-dark:not(.btn-primary),
body.atlasgrt-skin-atlas .ml-switcher .btn.btn-dark:not(.btn-primary),
body.atlasgrt-skin-atlas .lv-switcher .btn.btn-dark:not(.btn-primary),
body.atlasgrt-skin-hst .pg-switcher .btn.btn-dark:not(.btn-primary),
body.atlasgrt-skin-hst .pp-switcher .btn.btn-dark:not(.btn-primary),
body.atlasgrt-skin-hst .hallazgos-switcher .btn.btn-dark:not(.btn-primary),
body.atlasgrt-skin-hst .ml-switcher .btn.btn-dark:not(.btn-primary),
body.atlasgrt-skin-hst .lv-switcher .btn.btn-dark:not(.btn-primary){
    color:#fff!important;
}
.pg-switcher .btn.btn-dark:not(.btn-primary)::before,
.pp-switcher .btn.btn-dark:not(.btn-primary)::before,
.hallazgos-switcher .btn.btn-dark:not(.btn-primary)::before,
.ml-switcher .btn.btn-dark:not(.btn-primary)::before,
.lv-switcher .btn.btn-dark:not(.btn-primary)::before,
.mesa-submodule-switcher .btn.btn-dark:not(.btn-primary)::before,
.op-switcher .btn.btn-dark:not(.btn-primary)::before,
.matriz-switcher .btn.btn-dark:not(.btn-primary)::before{display:none!important;content:none!important;}
.pg-switcher .btn.btn-dark:not(.btn-primary)::after,
.pp-switcher .btn.btn-dark:not(.btn-primary)::after,
.hallazgos-switcher .btn.btn-dark:not(.btn-primary)::after,
.ml-switcher .btn.btn-dark:not(.btn-primary)::after,
.lv-switcher .btn.btn-dark:not(.btn-primary)::after,
.mesa-submodule-switcher .btn.btn-dark:not(.btn-primary)::after,
.op-switcher .btn.btn-dark:not(.btn-primary)::after,
.matriz-switcher .btn.btn-dark:not(.btn-primary)::after{
    content:''!important;
    position:absolute!important;
    left:0!important;
    right:0!important;
    bottom:-8px!important;
    height:3px!important;
    border-radius:999px!important;
    background:var(--atlasgrt-skin-accent,#f59e0b)!important;
    box-shadow:0 0 16px rgba(247,169,0,.28)!important;
}
body.atlasgrt-immersive-active .atlasgrt-sidebar,
body.atlasgrt-global-immersive-active .atlasgrt-sidebar{display:none!important;}
body.atlasgrt-immersive-active .atlasgrt-topbar,
body.atlasgrt-global-immersive-active .atlasgrt-topbar{display:flex!important;}
body.atlasgrt-immersive-active .atlasgrt-app,
body.atlasgrt-global-immersive-active .atlasgrt-app{height:var(--atlasgrt-viewport-height);min-height:var(--atlasgrt-viewport-height);}
body.atlasgrt-immersive-active .atlasgrt-main,
body.atlasgrt-global-immersive-active .atlasgrt-main{width:100vw;height:var(--atlasgrt-viewport-height);}
body.atlasgrt-immersive-active .atlasgrt-content{padding:10px!important;background:#050816;}
body.atlasgrt-immersive-active .atlasgrt-header-immersive-btn,
body.atlasgrt-global-immersive-active .atlasgrt-header-immersive-btn{background:rgba(247,169,0,.16)!important;border-color:rgba(247,169,0,.42)!important;color:#fff3cf!important;}
@media(max-width:767.98px){
    .pg-switcher,.pp-switcher,.hallazgos-switcher,.ml-switcher,.lv-switcher,.mesa-submodule-switcher,.op-switcher,.matriz-switcher{gap:16px!important;}
    .pg-switcher .btn:not(.btn-primary),.pp-switcher .btn:not(.btn-primary),.hallazgos-switcher .btn:not(.btn-primary),.ml-switcher .btn:not(.btn-primary),.lv-switcher .btn:not(.btn-primary),.mesa-submodule-switcher .btn:not(.btn-primary),.op-switcher .btn:not(.btn-primary),.matriz-switcher .btn:not(.btn-primary){font-size:.86rem!important;min-height:34px!important;height:34px!important;}
}

/* AtlasGRT1321 · Submódulos: navegación sin cajas internas; activo por subrayado. */
body .atlasgrt-tabs,
body .atlasgrt-submodule-card > .pg-submodule-bar,
body .atlasgrt-submodule-card > .pp-submodule-bar,
body .atlasgrt-submodule-card > .hallazgos-submodule-bar,
body .lv-submodule-bar,
body .ml-toolbar,
body .mesa-submodule-switcher{
    border-radius:18px!important;
    border:1px solid rgba(148,163,184,.12)!important;
    background:rgba(15,23,42,.30)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.045)!important;
}
body.atlasgrt-skin-claro .atlasgrt-tabs,
body.atlasgrt-skin-claro .atlasgrt-submodule-card > .pg-submodule-bar,
body.atlasgrt-skin-claro .atlasgrt-submodule-card > .pp-submodule-bar,
body.atlasgrt-skin-claro .atlasgrt-submodule-card > .hallazgos-submodule-bar,
body.atlasgrt-skin-claro .lv-submodule-bar,
body.atlasgrt-skin-claro .ml-toolbar,
body.atlasgrt-skin-claro .mesa-submodule-switcher,
body.atlasgrt-skin-base .atlasgrt-tabs,
body.atlasgrt-skin-base .atlasgrt-submodule-card > .pg-submodule-bar,
body.atlasgrt-skin-base .atlasgrt-submodule-card > .pp-submodule-bar,
body.atlasgrt-skin-base .atlasgrt-submodule-card > .hallazgos-submodule-bar,
body.atlasgrt-skin-base .lv-submodule-bar,
body.atlasgrt-skin-base .ml-toolbar,
body.atlasgrt-skin-base .mesa-submodule-switcher{
    background:rgba(255,255,255,.72)!important;
    border-color:rgba(148,163,184,.15)!important;
}
body .atlasgrt-tabs .nav-link,
.pg-switcher .btn,
.pp-switcher .btn,
.hallazgos-switcher .btn,
.ml-switcher .btn,
.lv-switcher .btn,
.mesa-submodule-switcher .btn,
.op-switcher .btn,
.matriz-switcher .btn{
    position:relative!important;
    min-height:38px!important;
    height:38px!important;
    padding:0 2px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
    color:rgba(226,232,240,.74)!important;
    font-weight:560!important;
    letter-spacing:-.018em!important;
    white-space:nowrap!important;
    transform:none!important;
}
body.atlasgrt-skin-claro .atlasgrt-tabs .nav-link,
body.atlasgrt-skin-base .atlasgrt-tabs .nav-link,
body.atlasgrt-skin-claro .pg-switcher .btn,
body.atlasgrt-skin-claro .pp-switcher .btn,
body.atlasgrt-skin-claro .hallazgos-switcher .btn,
body.atlasgrt-skin-claro .ml-switcher .btn,
body.atlasgrt-skin-claro .lv-switcher .btn,
body.atlasgrt-skin-claro .mesa-submodule-switcher .btn,
body.atlasgrt-skin-base .pg-switcher .btn,
body.atlasgrt-skin-base .pp-switcher .btn,
body.atlasgrt-skin-base .hallazgos-switcher .btn,
body.atlasgrt-skin-base .ml-switcher .btn,
body.atlasgrt-skin-base .lv-switcher .btn,
body.atlasgrt-skin-base .mesa-submodule-switcher .btn{
    color:rgba(71,85,105,.82)!important;
}
body .atlasgrt-tabs .nav-link:hover,
body .atlasgrt-tabs .nav-link:focus,
.pg-switcher .btn:hover,
.pp-switcher .btn:hover,
.hallazgos-switcher .btn:hover,
.ml-switcher .btn:hover,
.lv-switcher .btn:hover,
.mesa-submodule-switcher .btn:hover,
.op-switcher .btn:hover,
.matriz-switcher .btn:hover{
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
    border-color:transparent!important;
    box-shadow:none!important;
    color:var(--atlasgrt-text,#fff)!important;
    transform:none!important;
}
body .atlasgrt-tabs .nav-link.active,
body .atlasgrt-tabs .nav-link[aria-selected="true"],
.pg-switcher .btn.btn-dark,
.pp-switcher .btn.btn-dark,
.hallazgos-switcher .btn.btn-dark,
.ml-switcher .btn.btn-dark,
.lv-switcher .btn.btn-dark,
.mesa-submodule-switcher .btn.btn-dark,
.op-switcher .btn.btn-dark,
.matriz-switcher .btn.btn-dark,
.pg-switcher .btn.btn-primary,
.pp-switcher .btn.btn-primary,
.hallazgos-switcher .btn.btn-primary,
.ml-switcher .btn.btn-primary,
.lv-switcher .btn.btn-primary,
.mesa-submodule-switcher .btn.btn-primary,
.op-switcher .btn.btn-primary,
.matriz-switcher .btn.btn-primary{
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
    border-color:transparent!important;
    box-shadow:none!important;
    color:var(--atlasgrt-text,#fff)!important;
    font-weight:720!important;
}
body .atlasgrt-tabs .nav-link::before,
body .atlasgrt-tabs .nav-link.active::before,
.pg-switcher .btn::before,
.pp-switcher .btn::before,
.hallazgos-switcher .btn::before,
.ml-switcher .btn::before,
.lv-switcher .btn::before,
.mesa-submodule-switcher .btn::before,
.op-switcher .btn::before,
.matriz-switcher .btn::before{display:none!important;content:none!important;}
body .atlasgrt-tabs .nav-link::after,
.pg-switcher .btn::after,
.pp-switcher .btn::after,
.hallazgos-switcher .btn::after,
.ml-switcher .btn::after,
.lv-switcher .btn::after,
.mesa-submodule-switcher .btn::after,
.op-switcher .btn::after,
.matriz-switcher .btn::after{
    content:''!important;
    position:absolute!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    height:2px!important;
    border-radius:999px!important;
    background:transparent!important;
    box-shadow:none!important;
    transform:none!important;
}
body .atlasgrt-tabs .nav-link.active::after,
body .atlasgrt-tabs .nav-link[aria-selected="true"]::after,
.pg-switcher .btn.btn-dark::after,
.pp-switcher .btn.btn-dark::after,
.hallazgos-switcher .btn.btn-dark::after,
.ml-switcher .btn.btn-dark::after,
.lv-switcher .btn.btn-dark::after,
.mesa-submodule-switcher .btn.btn-dark::after,
.op-switcher .btn.btn-dark::after,
.matriz-switcher .btn.btn-dark::after,
.pg-switcher .btn.btn-primary::after,
.pp-switcher .btn.btn-primary::after,
.hallazgos-switcher .btn.btn-primary::after,
.ml-switcher .btn.btn-primary::after,
.lv-switcher .btn.btn-primary::after,
.mesa-submodule-switcher .btn.btn-primary::after,
.op-switcher .btn.btn-primary::after,
.matriz-switcher .btn.btn-primary::after{
    background:var(--atlasgrt-skin-accent,#f7a900)!important;
    box-shadow:0 0 12px color-mix(in srgb,var(--atlasgrt-skin-accent,#f7a900) 44%,transparent)!important;
}


/* AtlasGRT1322 · Submódulos: navegación textual real, sin cajas por opción. */
:root{
    --atlasgrt-font-ui:'Plus Jakarta Sans','Inter','Roboto','Segoe UI',system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
}
html,body,
button,input,select,textarea,
.btn,.form-control,.form-select,.dropdown-menu,.modal,.atlasgrt-app{
    font-family:var(--atlasgrt-font-ui)!important;
    text-rendering:optimizeLegibility;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}
.atlasgrt-submodule-card{
    padding:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    overflow:visible!important;
}
.atlasgrt-submodule-card > .pg-submodule-bar,
.atlasgrt-submodule-card > .pp-submodule-bar,
.atlasgrt-submodule-card > .hallazgos-submodule-bar,
.ml-toolbar,
.lv-submodule-bar,
.lv-submodule-actions,
.mesa-submodule-switcher{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:8px!important;
    width:100%!important;
    max-width:100%!important;
    padding:12px 16px!important;
    margin:0 0 14px 0!important;
    border-radius:20px!important;
    border:1px solid rgba(148,163,184,.13)!important;
    background:linear-gradient(180deg,rgba(18,26,39,.90),rgba(15,23,42,.82))!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 12px 30px rgba(2,6,23,.14)!important;
    overflow:visible!important;
}
body.atlasgrt-skin-base .atlasgrt-submodule-card > .pg-submodule-bar,
body.atlasgrt-skin-base .atlasgrt-submodule-card > .pp-submodule-bar,
body.atlasgrt-skin-base .atlasgrt-submodule-card > .hallazgos-submodule-bar,
body.atlasgrt-skin-base .ml-toolbar,
body.atlasgrt-skin-base .lv-submodule-bar,
body.atlasgrt-skin-base .lv-submodule-actions,
body.atlasgrt-skin-base .mesa-submodule-switcher,
body.atlasgrt-skin-claro .atlasgrt-submodule-card > .pg-submodule-bar,
body.atlasgrt-skin-claro .atlasgrt-submodule-card > .pp-submodule-bar,
body.atlasgrt-skin-claro .atlasgrt-submodule-card > .hallazgos-submodule-bar,
body.atlasgrt-skin-claro .ml-toolbar,
body.atlasgrt-skin-claro .lv-submodule-bar,
body.atlasgrt-skin-claro .lv-submodule-actions,
body.atlasgrt-skin-claro .mesa-submodule-switcher{
    background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(248,250,252,.82))!important;
    border-color:rgba(148,163,184,.18)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.74),0 10px 24px rgba(15,23,42,.045)!important;
}
.pg-switcher,.pp-switcher,.hallazgos-switcher,.ml-switcher,.lv-switcher,
.mesa-submodule-switcher .btn-group,.mesa-submodule-switcher[aria-label],
.op-switcher,.matriz-switcher{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    flex-wrap:nowrap!important;
    gap:28px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    flex:0 0 auto!important;
    margin:0!important;
    padding:0 0 2px 0!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:none!important;
    -webkit-overflow-scrolling:touch;
}
.pg-switcher::-webkit-scrollbar,.pp-switcher::-webkit-scrollbar,.hallazgos-switcher::-webkit-scrollbar,.ml-switcher::-webkit-scrollbar,.lv-switcher::-webkit-scrollbar,.op-switcher::-webkit-scrollbar,.matriz-switcher::-webkit-scrollbar{display:none!important;}
.pg-switcher .btn,.pp-switcher .btn,.hallazgos-switcher .btn,.ml-switcher .btn,.lv-switcher .btn,
.mesa-submodule-switcher .btn:not(.atlasgrt-toolbar-action-btn),.op-switcher .btn,.matriz-switcher .btn{
    position:relative!important;
    flex:0 0 auto!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:0!important;
    width:auto!important;
    min-height:38px!important;
    height:38px!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
    outline:none!important;
    color:rgba(226,232,240,.76)!important;
    font-size:.93rem!important;
    font-weight:560!important;
    letter-spacing:-.018em!important;
    line-height:1!important;
    white-space:nowrap!important;
    text-decoration:none!important;
    transform:none!important;
}
body.atlasgrt-skin-base .pg-switcher .btn,body.atlasgrt-skin-base .pp-switcher .btn,body.atlasgrt-skin-base .hallazgos-switcher .btn,body.atlasgrt-skin-base .ml-switcher .btn,body.atlasgrt-skin-base .lv-switcher .btn,
body.atlasgrt-skin-claro .pg-switcher .btn,body.atlasgrt-skin-claro .pp-switcher .btn,body.atlasgrt-skin-claro .hallazgos-switcher .btn,body.atlasgrt-skin-claro .ml-switcher .btn,body.atlasgrt-skin-claro .lv-switcher .btn{
    color:rgba(71,85,105,.88)!important;
}
.pg-switcher .btn:hover,.pp-switcher .btn:hover,.hallazgos-switcher .btn:hover,.ml-switcher .btn:hover,.lv-switcher .btn:hover,
.pg-switcher .btn:focus,.pp-switcher .btn:focus,.hallazgos-switcher .btn:focus,.ml-switcher .btn:focus,.lv-switcher .btn:focus{
    background:transparent!important;
    border-color:transparent!important;
    box-shadow:none!important;
    color:#fff!important;
    transform:none!important;
    filter:none!important;
}
body.atlasgrt-skin-base .pg-switcher .btn:hover,body.atlasgrt-skin-base .pp-switcher .btn:hover,body.atlasgrt-skin-base .hallazgos-switcher .btn:hover,body.atlasgrt-skin-base .ml-switcher .btn:hover,body.atlasgrt-skin-base .lv-switcher .btn:hover,
body.atlasgrt-skin-claro .pg-switcher .btn:hover,body.atlasgrt-skin-claro .pp-switcher .btn:hover,body.atlasgrt-skin-claro .hallazgos-switcher .btn:hover,body.atlasgrt-skin-claro .ml-switcher .btn:hover,body.atlasgrt-skin-claro .lv-switcher .btn:hover{
    color:#111827!important;
}
.pg-switcher .btn.btn-dark,.pp-switcher .btn.btn-dark,.hallazgos-switcher .btn.btn-dark,.ml-switcher .btn.btn-dark,.lv-switcher .btn.btn-dark,
.pg-switcher .btn.active,.pp-switcher .btn.active,.hallazgos-switcher .btn.active,.ml-switcher .btn.active,.lv-switcher .btn.active,
.pg-switcher .btn-primary,.pp-switcher .btn-primary,.hallazgos-switcher .btn-primary,.ml-switcher .btn-primary,.lv-switcher .btn-primary{
    color:#fff!important;
    background:transparent!important;
    background-image:none!important;
    border:0!important;
    box-shadow:none!important;
    font-weight:750!important;
}
body.atlasgrt-skin-base .pg-switcher .btn.btn-dark,body.atlasgrt-skin-base .pp-switcher .btn.btn-dark,body.atlasgrt-skin-base .hallazgos-switcher .btn.btn-dark,body.atlasgrt-skin-base .ml-switcher .btn.btn-dark,body.atlasgrt-skin-base .lv-switcher .btn.btn-dark,
body.atlasgrt-skin-claro .pg-switcher .btn.btn-dark,body.atlasgrt-skin-claro .pp-switcher .btn.btn-dark,body.atlasgrt-skin-claro .hallazgos-switcher .btn.btn-dark,body.atlasgrt-skin-claro .ml-switcher .btn.btn-dark,body.atlasgrt-skin-claro .lv-switcher .btn.btn-dark{
    color:#111827!important;
}
.pg-switcher .btn::after,.pp-switcher .btn::after,.hallazgos-switcher .btn::after,.ml-switcher .btn::after,.lv-switcher .btn::after,
.op-switcher .btn::after,.matriz-switcher .btn::after{
    content:''!important;
    position:absolute!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    height:3px!important;
    border-radius:999px!important;
    background:transparent!important;
    box-shadow:none!important;
}
.pg-switcher .btn.btn-dark::after,.pp-switcher .btn.btn-dark::after,.hallazgos-switcher .btn.btn-dark::after,.ml-switcher .btn.btn-dark::after,.lv-switcher .btn.btn-dark::after,
.pg-switcher .btn.active::after,.pp-switcher .btn.active::after,.hallazgos-switcher .btn.active::after,.ml-switcher .btn.active::after,.lv-switcher .btn.active::after{
    background:var(--atlasgrt-skin-accent,#f7a900)!important;
    box-shadow:0 0 14px color-mix(in srgb,var(--atlasgrt-skin-accent,#f7a900) 32%,transparent)!important;
}
.pg-submodule-shortcuts,.pp-submodule-shortcuts,.hallazgos-submodule-shortcuts,
.ml-toolbar-actions,.lv-toolbar,.lv-submodule-actions > .lv-toolbar{
    order:2!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
    gap:8px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    flex:0 0 auto!important;
    margin:4px 0 0 0!important;
    padding:8px 0 0 0!important;
    border-top:1px solid rgba(148,163,184,.12)!important;
}
.pg-submodule-shortcuts:empty,.pp-submodule-shortcuts:empty,.hallazgos-submodule-shortcuts:empty{display:none!important;}
.pg-submodule-shortcuts .btn,.pp-submodule-shortcuts .btn,.hallazgos-submodule-shortcuts .btn,
.ml-toolbar-actions .btn,.lv-toolbar .btn{
    border-radius:999px!important;
    min-height:32px!important;
    padding:.38rem .72rem!important;
    font-size:.78rem!important;
    font-weight:680!important;
}
@media(max-width:767.98px){
    .atlasgrt-submodule-card > .pg-submodule-bar,
    .atlasgrt-submodule-card > .pp-submodule-bar,
    .atlasgrt-submodule-card > .hallazgos-submodule-bar,
    .ml-toolbar,.lv-submodule-bar,.lv-submodule-actions,.mesa-submodule-switcher{padding:10px 12px!important;border-radius:17px!important;}
    .pg-switcher,.pp-switcher,.hallazgos-switcher,.ml-switcher,.lv-switcher{gap:20px!important;}
    .pg-switcher .btn,.pp-switcher .btn,.hallazgos-switcher .btn,.ml-switcher .btn,.lv-switcher .btn{font-size:.86rem!important;min-height:36px!important;height:36px!important;}
}

/* AtlasGRT1323 · Navegación textual real: sin cajas por opción, activo por subrayado. */
:root{
    --atlasgrt-font-ui:"Segoe UI Variable Text","Segoe UI",Inter,"Plus Jakarta Sans",Roboto,system-ui,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
}
body,.atlasgrt-app,.atlasgrt-topbar,.atlasgrt-sidebar,.atlasgrt-content,
button,input,select,textarea,.btn{
    font-family:var(--atlasgrt-font-ui)!important;
}

/* Contenedores: una superficie general, niveles separados. */
.atlasgrt-submodule-card,
.atlasgrt-submodule-card.atlasgrt-card,
.atlasgrt-card.atlasgrt-submodule-card,
.hallazgos-module-head.atlasgrt-submodule-card{
    padding:12px 14px!important;
    border-radius:18px!important;
    background:linear-gradient(180deg,rgba(15,23,42,.78),rgba(15,23,42,.62))!important;
    border:1px solid rgba(148,163,184,.12)!important;
    box-shadow:none!important;
}
.pg-submodule-bar,
.pp-submodule-bar,
.hallazgos-submodule-bar,
.ml-toolbar,
.lv-submodule-bar,
.mesa-submodule-bar{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    align-items:start!important;
    justify-content:start!important;
    gap:8px!important;
    width:100%!important;
    max-width:100%!important;
    padding:0!important;
    margin:0 0 14px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
}
.atlasgrt-submodule-card > .pg-submodule-bar,
.atlasgrt-submodule-card > .pp-submodule-bar,
.atlasgrt-submodule-card > .hallazgos-submodule-bar,
.atlasgrt-lv-module-shell .lv-submodule-bar{
    margin:0!important;
}
.pg-switcher,
.pp-switcher,
.hallazgos-switcher,
.ml-switcher,
.lv-switcher,
.mesa-submodule-switcher,
.atlasgrt-global-visual .atlasgrt-global-lens-bar,
.atlasgrt-global-visual .atlasgrt-global-sublens-bar{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    flex-wrap:nowrap!important;
    gap:28px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:none!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
}
.pg-switcher::-webkit-scrollbar,
.pp-switcher::-webkit-scrollbar,
.hallazgos-switcher::-webkit-scrollbar,
.ml-switcher::-webkit-scrollbar,
.lv-switcher::-webkit-scrollbar,
.mesa-submodule-switcher::-webkit-scrollbar,
.atlasgrt-global-visual .atlasgrt-global-lens-bar::-webkit-scrollbar,
.atlasgrt-global-visual .atlasgrt-global-sublens-bar::-webkit-scrollbar{display:none!important;}

/* Acciones/atajos: segundo nivel debajo, no mezclado a la derecha. */
.pg-submodule-shortcuts,
.pp-submodule-shortcuts,
.hallazgos-submodule-shortcuts,
.ml-toolbar-actions,
.lv-toolbar,
.lv-submodule-actions,
.radar-toolbar-actions,
.control-atlas-toolbar-actions{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
    width:100%!important;
    max-width:100%!important;
    gap:8px!important;
    padding:7px 0 0!important;
    margin:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
}
.lv-submodule-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;}
.lv-submodule-actions .lv-switcher{grid-row:1!important;}
.lv-submodule-actions .lv-toolbar{grid-row:2!important;}

/* Opciones principales: texto limpio, sin cajas, sin fondos, sin borde. */
.pg-switcher > a.btn,
.pp-switcher > a.btn,
.hallazgos-switcher > a.btn,
.ml-switcher > a.btn,
.lv-switcher > a.btn,
.mesa-submodule-switcher > a.btn,
.mesa-submodule-switcher > button.btn,
.atlasgrt-global-visual .atlasgrt-global-lens-bar > a.btn,
.atlasgrt-global-visual .atlasgrt-global-sublens-bar > a.btn{
    -webkit-appearance:none!important;
    appearance:none!important;
    position:relative!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 auto!important;
    min-width:0!important;
    width:auto!important;
    max-width:none!important;
    min-height:40px!important;
    height:40px!important;
    padding:0 0 9px!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    outline:0!important;
    background:none!important;
    background-color:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
    filter:none!important;
    transform:none!important;
    color:rgba(226,232,240,.72)!important;
    font-family:var(--atlasgrt-font-ui)!important;
    font-size:.94rem!important;
    font-weight:520!important;
    letter-spacing:-.025em!important;
    line-height:1!important;
    white-space:nowrap!important;
    text-decoration:none!important;
    text-shadow:none!important;
    transition:color .16s ease!important;
}
.pg-switcher > a.btn *,
.pp-switcher > a.btn *,
.hallazgos-switcher > a.btn *,
.ml-switcher > a.btn *,
.lv-switcher > a.btn *,
.mesa-submodule-switcher > .btn *,
.atlasgrt-global-visual .atlasgrt-global-lens-bar > a.btn *,
.atlasgrt-global-visual .atlasgrt-global-sublens-bar > a.btn *{
    background:none!important;
    background-color:transparent!important;
    border:0!important;
    box-shadow:none!important;
    padding:0!important;
    margin:0!important;
}
.pg-switcher > a.btn::before,
.pp-switcher > a.btn::before,
.hallazgos-switcher > a.btn::before,
.ml-switcher > a.btn::before,
.lv-switcher > a.btn::before,
.mesa-submodule-switcher > .btn::before,
.atlasgrt-global-visual .atlasgrt-global-lens-bar > a.btn::before,
.atlasgrt-global-visual .atlasgrt-global-sublens-bar > a.btn::before{
    content:none!important;
    display:none!important;
}
.pg-switcher > a.btn::after,
.pp-switcher > a.btn::after,
.hallazgos-switcher > a.btn::after,
.ml-switcher > a.btn::after,
.lv-switcher > a.btn::after,
.mesa-submodule-switcher > .btn::after,
.atlasgrt-global-visual .atlasgrt-global-lens-bar > a.btn::after,
.atlasgrt-global-visual .atlasgrt-global-sublens-bar > a.btn::after{
    content:""!important;
    position:absolute!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    height:3px!important;
    border-radius:999px!important;
    background:transparent!important;
    box-shadow:none!important;
    opacity:1!important;
    transform:none!important;
    display:block!important;
}
.pg-switcher > a.btn:hover,
.pp-switcher > a.btn:hover,
.hallazgos-switcher > a.btn:hover,
.ml-switcher > a.btn:hover,
.lv-switcher > a.btn:hover,
.mesa-submodule-switcher > .btn:hover,
.atlasgrt-global-visual .atlasgrt-global-lens-bar > a.btn:hover,
.atlasgrt-global-visual .atlasgrt-global-sublens-bar > a.btn:hover{
    color:#fff!important;
    background:none!important;
    background-color:transparent!important;
    background-image:none!important;
    border:0!important;
    box-shadow:none!important;
    transform:none!important;
}
.pg-switcher > a.btn.btn-dark,
.pp-switcher > a.btn.btn-dark,
.hallazgos-switcher > a.btn.btn-dark,
.ml-switcher > a.btn.btn-dark,
.lv-switcher > a.btn.btn-dark,
.mesa-submodule-switcher > .btn.btn-dark,
.mesa-submodule-switcher > .btn.btn-primary,
.atlasgrt-global-visual .atlasgrt-global-lens-bar > a.btn.btn-dark,
.atlasgrt-global-visual .atlasgrt-global-sublens-bar > a.btn.btn-dark{
    color:#fff!important;
    background:none!important;
    background-color:transparent!important;
    background-image:none!important;
    border:0!important;
    box-shadow:none!important;
    font-weight:760!important;
}
.pg-switcher > a.btn.btn-dark::after,
.pp-switcher > a.btn.btn-dark::after,
.hallazgos-switcher > a.btn.btn-dark::after,
.ml-switcher > a.btn.btn-dark::after,
.lv-switcher > a.btn.btn-dark::after,
.mesa-submodule-switcher > .btn.btn-dark::after,
.mesa-submodule-switcher > .btn.btn-primary::after,
.atlasgrt-global-visual .atlasgrt-global-lens-bar > a.btn.btn-dark::after,
.atlasgrt-global-visual .atlasgrt-global-sublens-bar > a.btn.btn-dark::after{
    background:var(--atlasgrt-skin-accent,#f7a900)!important;
    box-shadow:0 0 14px rgba(247,169,0,.34)!important;
}
body.atlasgrt-skin-atlas .pg-switcher > a.btn.btn-dark::after,
body.atlasgrt-skin-atlas .pp-switcher > a.btn.btn-dark::after,
body.atlasgrt-skin-atlas .hallazgos-switcher > a.btn.btn-dark::after,
body.atlasgrt-skin-atlas .ml-switcher > a.btn.btn-dark::after,
body.atlasgrt-skin-atlas .lv-switcher > a.btn.btn-dark::after,
body.atlasgrt-skin-atlas .mesa-submodule-switcher > .btn.btn-dark::after,
body.atlasgrt-skin-atlas .mesa-submodule-switcher > .btn.btn-primary::after{
    background:#00ffa5!important;
    box-shadow:0 0 14px rgba(0,255,165,.34)!important;
}

/* Acciones: conservar botón, pero en fila secundaria para no confundirse con submódulos. */
.pg-submodule-shortcuts .btn,
.pp-submodule-shortcuts .btn,
.hallazgos-submodule-shortcuts .btn,
.ml-toolbar-actions .btn,
.lv-toolbar .btn,
.radar-toolbar-actions .btn,
.control-atlas-toolbar-actions .btn{
    min-height:32px!important;
    height:32px!important;
    padding:0 12px!important;
    border-radius:11px!important;
    font-size:.78rem!important;
    font-weight:680!important;
    letter-spacing:-.01em!important;
}

@media (max-width:991.98px){
    .pg-submodule-bar,
    .pp-submodule-bar,
    .hallazgos-submodule-bar,
    .ml-toolbar,
    .lv-submodule-bar,
    .mesa-submodule-bar{grid-template-columns:1fr!important;}
    .pg-switcher,
    .pp-switcher,
    .hallazgos-switcher,
    .ml-switcher,
    .lv-switcher,
    .mesa-submodule-switcher,
    .atlasgrt-global-visual .atlasgrt-global-lens-bar,
    .atlasgrt-global-visual .atlasgrt-global-sublens-bar{gap:22px!important;}
}


/* AtlasGRT1327 · Acciones fuera de submenús, botones modernos y responsive estable. */
:root{
    --atlasgrt-action-bg:rgba(255,255,255,.055);
    --atlasgrt-action-bg-hover:rgba(255,255,255,.09);
    --atlasgrt-action-border:rgba(148,163,184,.22);
    --atlasgrt-action-text:rgba(248,250,252,.92);
    --atlasgrt-action-accent:var(--atlasgrt-skin-accent,#f7a900);
}
body.atlasgrt-skin-atlas{--atlasgrt-action-accent:#00ffa5;}
body.atlasgrt-skin-hst{--atlasgrt-action-accent:#f7a900;}
body.atlasgrt-skin-claro,body.atlasgrt-skin-base{
    --atlasgrt-action-bg:#ffffff;
    --atlasgrt-action-bg-hover:#f8fafc;
    --atlasgrt-action-border:#dbe3ef;
    --atlasgrt-action-text:#1f2937;
}
/* Subrayado coherente por skin. */
body.atlasgrt-skin-hst .pg-switcher > a.btn.btn-dark::after,
body.atlasgrt-skin-hst .pp-switcher > a.btn.btn-dark::after,
body.atlasgrt-skin-hst .hallazgos-switcher > a.btn.btn-dark::after,
body.atlasgrt-skin-hst .ml-switcher > a.btn.btn-dark::after,
body.atlasgrt-skin-hst .lv-switcher > a.btn.btn-dark::after,
body.atlasgrt-skin-hst .mesa-submodule-switcher > .btn.btn-dark::after,
body.atlasgrt-skin-hst .mesa-submodule-switcher > .btn.btn-primary::after{
    background:#f7a900!important;
    box-shadow:0 0 14px rgba(247,169,0,.34)!important;
}
body.atlasgrt-skin-claro .pg-switcher > a.btn.btn-dark::after,
body.atlasgrt-skin-claro .pp-switcher > a.btn.btn-dark::after,
body.atlasgrt-skin-claro .hallazgos-switcher > a.btn.btn-dark::after,
body.atlasgrt-skin-claro .ml-switcher > a.btn.btn-dark::after,
body.atlasgrt-skin-claro .lv-switcher > a.btn.btn-dark::after,
body.atlasgrt-skin-claro .mesa-submodule-switcher > .btn.btn-dark::after,
body.atlasgrt-skin-claro .mesa-submodule-switcher > .btn.btn-primary::after,
body.atlasgrt-skin-base .pg-switcher > a.btn.btn-dark::after,
body.atlasgrt-skin-base .pp-switcher > a.btn.btn-dark::after,
body.atlasgrt-skin-base .hallazgos-switcher > a.btn.btn-dark::after,
body.atlasgrt-skin-base .ml-switcher > a.btn.btn-dark::after,
body.atlasgrt-skin-base .lv-switcher > a.btn.btn-dark::after,
body.atlasgrt-skin-base .mesa-submodule-switcher > .btn.btn-dark::after,
body.atlasgrt-skin-base .mesa-submodule-switcher > .btn.btn-primary::after{
    background:#2f3a5f!important;
    box-shadow:0 0 12px rgba(47,58,95,.22)!important;
}
/* Botonera de acción moderna y consistente, separada visualmente de submódulos. */
.atlasgrt-workspace-actions,
.pp-workspace-actions,
.ml-toolbar-actions,
.lv-panel-actions,
.lv-results-actions,
.lv-view-toggle{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    flex-wrap:wrap!important;
    gap:8px!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
}
.lv-view-toggle{justify-content:flex-start!important;}
.atlasgrt-workspace-actions .btn,
.pp-workspace-actions .btn,
.ml-toolbar-actions .btn,
.lv-panel-actions .btn,
.lv-results-actions .btn,
.lv-view-toggle .btn{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    height:34px!important;
    min-height:34px!important;
    padding:0 13px!important;
    border-radius:999px!important;
    border:1px solid var(--atlasgrt-action-border)!important;
    background:var(--atlasgrt-action-bg)!important;
    color:var(--atlasgrt-action-text)!important;
    box-shadow:none!important;
    font-size:.78rem!important;
    font-weight:680!important;
    line-height:1!important;
    letter-spacing:-.01em!important;
    text-decoration:none!important;
    white-space:nowrap!important;
}
.atlasgrt-workspace-actions .btn:hover,
.pp-workspace-actions .btn:hover,
.ml-toolbar-actions .btn:hover,
.lv-panel-actions .btn:hover,
.lv-results-actions .btn:hover,
.lv-view-toggle .btn:hover{
    background:var(--atlasgrt-action-bg-hover)!important;
    border-color:color-mix(in srgb,var(--atlasgrt-action-accent) 46%,var(--atlasgrt-action-border))!important;
    color:var(--atlasgrt-action-text)!important;
    transform:none!important;
}
.atlasgrt-workspace-actions .btn-dark,
.atlasgrt-workspace-actions .btn-primary,
.pp-workspace-actions .btn-dark,
.pp-workspace-actions .btn-primary,
.ml-toolbar-actions .btn-dark,
.ml-toolbar-actions .btn-primary,
.lv-panel-actions .btn-dark,
.lv-panel-actions .btn-primary,
.lv-results-actions .btn-dark,
.lv-results-actions .btn-primary,
.lv-view-toggle .btn.is-active,
.lv-view-toggle .lv-view-option.is-active{
    background:color-mix(in srgb,var(--atlasgrt-action-accent) 18%,transparent)!important;
    border-color:color-mix(in srgb,var(--atlasgrt-action-accent) 62%,transparent)!important;
    color:var(--atlasgrt-action-text)!important;
}
body.atlasgrt-skin-claro .atlasgrt-workspace-actions .btn-dark,
body.atlasgrt-skin-claro .atlasgrt-workspace-actions .btn-primary,
body.atlasgrt-skin-claro .pp-workspace-actions .btn-dark,
body.atlasgrt-skin-claro .pp-workspace-actions .btn-primary,
body.atlasgrt-skin-claro .ml-toolbar-actions .btn-dark,
body.atlasgrt-skin-claro .ml-toolbar-actions .btn-primary,
body.atlasgrt-skin-claro .lv-panel-actions .btn-dark,
body.atlasgrt-skin-claro .lv-panel-actions .btn-primary,
body.atlasgrt-skin-claro .lv-view-toggle .lv-view-option.is-active,
body.atlasgrt-skin-base .atlasgrt-workspace-actions .btn-dark,
body.atlasgrt-skin-base .atlasgrt-workspace-actions .btn-primary,
body.atlasgrt-skin-base .pp-workspace-actions .btn-dark,
body.atlasgrt-skin-base .pp-workspace-actions .btn-primary,
body.atlasgrt-skin-base .ml-toolbar-actions .btn-dark,
body.atlasgrt-skin-base .ml-toolbar-actions .btn-primary,
body.atlasgrt-skin-base .lv-panel-actions .btn-dark,
body.atlasgrt-skin-base .lv-panel-actions .btn-primary,
body.atlasgrt-skin-base .lv-view-toggle .lv-view-option.is-active{
    background:#111827!important;
    border-color:#111827!important;
    color:#fff!important;
}
.atlasgrt-config-trigger,
.lv-panel-actions .atlasgrt-config-trigger,
.lv-toolbar .atlasgrt-config-trigger{
    width:34px!important;
    min-width:34px!important;
    max-width:34px!important;
    padding:0!important;
}
/* PP: acción dentro del header de trabajo, sin desborde ni anclaje al borde. */
.pp-section-header-with-actions{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:start!important;
    gap:14px!important;
    overflow:visible!important;
}
.pp-section-header-with-actions > div:first-child{min-width:0!important;}
.pp-workspace-actions{
    justify-self:end!important;
    align-self:start!important;
    max-width:100%!important;
    padding-top:1px!important;
}
.pp-workspace-actions .atlasgrt-toolbar-action-btn{max-width:100%!important;}
/* ML: acciones especiales a la derecha, alineadas, sin estética vieja. */
.ml-toolbar{
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:start!important;
    gap:12px!important;
}
.ml-toolbar-actions.ml-toolbar-actions-primary{
    justify-content:flex-end!important;
    align-self:start!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    margin-left:auto!important;
    padding-top:0!important;
    border-top:0!important;
}
/* LV: submenú respira; acciones sólo en contenedor inferior. */
.atlasgrt-lv-module-shell .lv-submodule-bar{
    padding:14px 18px!important;
    margin-bottom:18px!important;
}
.atlasgrt-lv-module-shell .lv-submodule-actions{
    display:block!important;
    width:100%!important;
}
.atlasgrt-lv-module-shell .lv-switcher{
    gap:30px!important;
    padding-bottom:2px!important;
}
.lv-summary-actions{display:none!important;}
.lv-panel-toolbar{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:start!important;
    gap:14px!important;
    margin-bottom:14px!important;
}
.lv-panel-toolbar > div:first-child{min-width:0!important;}
.lv-panel-actions{
    justify-self:end!important;
    align-self:start!important;
}
.lv-panel-actions .lv-view-toggle{
    margin:0!important;
}
.lv-panel-actions .lv-view-toggle .btn,
.lv-panel-actions > .btn{
    height:34px!important;
    min-height:34px!important;
}
.lv-results-actions{justify-content:flex-end!important;}
@media(max-width:991.98px){
    .pp-section-header-with-actions,
    .ml-toolbar,
    .lv-panel-toolbar{
        grid-template-columns:1fr!important;
    }
    .pp-workspace-actions,
    .ml-toolbar-actions.ml-toolbar-actions-primary,
    .lv-panel-actions,
    .lv-results-actions{
        justify-content:flex-start!important;
        justify-self:stretch!important;
        width:100%!important;
    }
    .lv-panel-actions{display:flex!important;}
}
@media(max-width:575.98px){
    .atlasgrt-workspace-actions .btn,
    .pp-workspace-actions .btn,
    .ml-toolbar-actions .btn,
    .lv-panel-actions .btn,
    .lv-results-actions .btn,
    .lv-view-toggle .btn{
        height:32px!important;
        min-height:32px!important;
        padding:0 10px!important;
        font-size:.74rem!important;
    }
    .lv-panel-actions{gap:6px!important;}
    .lv-view-toggle{gap:6px!important;}
    .atlasgrt-lv-module-shell .lv-switcher{gap:22px!important;}
}

/* AtlasGRT1371 · Personal y accesos adopta la navegación canónica de LV. */
.atlas-personal-submodule-bar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    width:100%;
    padding:14px 18px;
    border:1px solid var(--atlasgrt-surface-border,var(--atlasgrt-border));
    border-radius:22px;
    background:var(--atlasgrt-surface,var(--atlasgrt-white));
    box-shadow:var(--atlasgrt-shadow-sm,0 8px 22px rgba(15,23,42,.08));
    overflow:hidden;
}
.atlas-personal-switcher{
    display:flex;
    align-items:center;
    gap:30px;
    min-width:0;
    white-space:nowrap;
    overflow-x:auto;
    scrollbar-width:thin;
    padding-bottom:2px;
}
.atlas-personal-switcher .btn{flex:0 0 auto;min-height:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;}
.atlas-personal-code{
    display:grid;
    grid-template-columns:auto auto auto;
    align-items:center;
    gap:8px;
    flex:0 0 auto;
    border:1px solid var(--atlasgrt-surface-border,var(--atlasgrt-border));
    border-radius:13px;
    background:var(--atlasgrt-surface-2);
    color:var(--atlasgrt-text);
    padding:8px 10px;
    cursor:pointer;
    text-align:left;
    white-space:nowrap;
}
.atlas-personal-code span{font-size:.68rem;text-transform:uppercase;letter-spacing:.05em;color:var(--atlasgrt-text-soft);}
.atlas-personal-code strong{font-size:.82rem;}
.atlas-personal-code:hover,.atlas-personal-code:focus-visible{border-color:var(--atlasgrt-skin-accent,var(--atlasgrt-primary));box-shadow:0 0 0 3px var(--atlasgrt-skin-accent-soft);}

/* ML: submenú y acciones principales permanecen en una sola fila. */
body .ml-toolbar{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:12px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:thin;
}
body .ml-switcher{
    display:flex!important;
    flex-wrap:nowrap!important;
    min-width:max-content!important;
    white-space:nowrap!important;
    overflow:visible!important;
}
body .ml-toolbar-actions.ml-toolbar-actions-primary{
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-end!important;
    justify-self:end!important;
    width:auto!important;
    min-width:max-content!important;
    margin-left:0!important;
    border-top:0!important;
    padding-top:0!important;
}
body .ml-toolbar-actions.ml-toolbar-actions-primary .btn{flex:0 0 auto!important;white-space:nowrap!important;}

@media(max-width:991.98px){
    .atlas-personal-submodule-bar{padding:10px 12px;border-radius:17px;overflow-x:auto;}
    .atlas-personal-switcher{gap:18px;overflow:visible;min-width:max-content;}
    .atlas-personal-code{min-width:max-content;}
    body .ml-toolbar{grid-template-columns:minmax(max-content,1fr) auto!important;}
}
@media(max-width:575.98px){
    .atlas-personal-switcher .btn,.atlas-personal-code{height:32px;min-height:32px;padding:0 10px;font-size:.74rem;}
    .atlas-personal-code span{display:none;}
    body .ml-toolbar{padding:9px 10px!important;gap:8px!important;}
    body .ml-switcher{gap:12px!important;}
    body .ml-toolbar-actions.ml-toolbar-actions-primary{gap:6px!important;}
    body .ml-toolbar-actions.ml-toolbar-actions-primary .btn{height:32px!important;min-height:32px!important;padding:0 9px!important;font-size:.72rem!important;}
}

/* AtlasGRT1378 · Personal adopta tabs planas canónicas (Perfil Preventivo / Capacitaciones). */
body .atlas-personal-submodule-bar{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    width:100%!important;
    padding:8px 10px!important;
    border:1px solid var(--atlasgrt-border,var(--atlasgrt-surface-border))!important;
    border-radius:22px!important;
    background:var(--atlasgrt-white,var(--atlasgrt-surface))!important;
    box-shadow:none!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    white-space:nowrap!important;
    scrollbar-width:thin;
}
body .atlas-personal-switcher{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    min-width:max-content!important;
    overflow:visible!important;
    padding:0!important;
}
body .atlas-personal-switcher .btn{
    position:relative!important;
    flex:0 0 auto!important;
    height:auto!important;
    min-height:34px!important;
    padding:7px 10px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:var(--atlasgrt-text-soft)!important;
    font-weight:700!important;
}
body .atlas-personal-switcher .btn:hover,
body .atlas-personal-switcher .btn:focus-visible{color:var(--atlasgrt-text)!important;background:transparent!important;}
body .atlas-personal-switcher .btn.btn-dark,
body .atlas-personal-switcher .btn.btn-primary{color:var(--atlasgrt-text)!important;background:transparent!important;}
body .atlas-personal-switcher .btn.btn-dark::after,
body .atlas-personal-switcher .btn.btn-primary::after{
    content:"";position:absolute;left:10px;right:10px;bottom:1px;height:3px;border-radius:999px;background:var(--atlasgrt-skin-accent,var(--atlasgrt-primary));
}
body .atlas-personal-code{margin-left:auto!important;}
@media(max-width:767.98px){
    body .atlas-personal-submodule-bar{border-radius:17px!important;padding:7px 9px!important;}
    body .atlas-personal-switcher{gap:4px!important;}
    body .atlas-personal-switcher .btn{font-size:.74rem!important;padding:7px 8px!important;}
}

/* 1451: alertas Action Layer con el lenguaje visual de Matriz Legal. */
body .atlasgrt-swal-popup{
 background:var(--atlasgrt-surface)!important;color:var(--atlasgrt-text)!important;
 border:1px solid var(--atlasgrt-border)!important;border-radius:22px!important;padding:22px!important;
 max-width:calc(100vw - 24px);box-shadow:0 24px 70px rgba(0,0,0,.24)!important;
}
body .atlasgrt-swal-popup .swal2-title{color:var(--atlasgrt-text)!important;font-size:1.05rem;font-weight:800;}
body .atlasgrt-swal-popup :is(.swal2-html-container,.form-label,.table,th,td,small,p){color:var(--atlasgrt-text)!important;}
body .atlasgrt-swal-popup :is(.form-control,.form-select,.swal2-input){background:var(--atlasgrt-surface)!important;color:var(--atlasgrt-text)!important;border:1px solid var(--atlasgrt-border)!important;border-radius:14px;}
body .atlasgrt-swal-popup input::placeholder{color:var(--atlasgrt-text-soft)!important;}
body .atlasgrt-swal-popup .swal2-validation-message{background:var(--atlasgrt-surface)!important;color:var(--atlasgrt-text)!important;}
body .atlasgrt-swal-popup :is(th,td){background:transparent!important;box-shadow:none!important;border-color:var(--atlasgrt-border)!important;}
body .atlasgrt-swal-popup .swal2-actions{gap:12px;flex-wrap:wrap;}
body .atlasgrt-swal-popup .swal2-actions .btn{margin:0!important;border-radius:999px;min-height:40px;padding:.55rem 1rem;}
body .atlasgrt-swal-popup .btn-outline-secondary{background:transparent!important;border-color:var(--atlasgrt-border)!important;color:var(--atlasgrt-text)!important;}
body .atlasgrt-swal-popup .btn-dark{background:var(--atlasgrt-skin-accent,#00d68f)!important;border-color:var(--atlasgrt-skin-accent,#00d68f)!important;color:var(--atlasgrt-swal-confirm-text,#052018)!important;}
body.atlasgrt-skin-base .atlasgrt-swal-popup{--atlasgrt-swal-confirm-text:#fff;}
body .atlasgrt-swal-popup :is(input,.btn):focus-visible{outline:2px solid var(--atlasgrt-skin-accent,#00d68f);outline-offset:2px;}

/* AtlasGRT1476 · Campus usa el mismo contrato de superficies de los skins universales. */
body.atlasgrt-section-campus .campus-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,240px));gap:14px;margin-bottom:20px;}
body.atlasgrt-section-campus .campus-kpi,
body.atlasgrt-section-campus .campus-item,
body.atlasgrt-section-campus .campus-step{
    color:var(--atlasgrt-text);
    border:1px solid var(--atlasgrt-border,var(--atlasgrt-surface-border));
    background:var(--atlasgrt-surface,var(--atlasgrt-white));
    box-shadow:var(--atlasgrt-card-shadow,none);
}
body.atlasgrt-section-campus .campus-kpi{border-radius:16px;padding:16px;}
body.atlasgrt-section-campus .campus-kpi strong{display:block;font-size:1.8rem;color:var(--atlasgrt-text);}
body.atlasgrt-section-campus .campus-list{display:grid;gap:14px;}
body.atlasgrt-section-campus .campus-item{border-radius:18px;padding:18px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;}
body.atlasgrt-section-campus .campus-item h3,
body.atlasgrt-section-campus .campus-step h2,
body.atlasgrt-section-campus .campus-question-view legend{color:var(--atlasgrt-text);}
body.atlasgrt-section-campus .campus-status{display:inline-flex;padding:5px 10px;border-radius:999px;background:#e8f5ee;color:#17633b;font-size:.8rem;font-weight:700;}
body.atlasgrt-section-campus .campus-status.pending{background:#fff4df;color:#825400;}
body.atlasgrt-section-campus .campus-player{width:100%;aspect-ratio:16/9;max-height:66vh;background:#111;border:0;border-radius:18px;}
body.atlasgrt-section-campus .campus-step{border-radius:18px;padding:20px;margin-bottom:18px;}
body.atlasgrt-section-campus .campus-question-view{border-top:1px solid var(--atlasgrt-border,var(--atlasgrt-surface-border));padding-top:16px;margin-top:16px;}
body.atlasgrt-section-campus .campus-question-view:first-child{border-top:0;padding-top:0;margin-top:0;}
body.atlasgrt-section-campus .campus-result{text-align:center;padding:28px;}
body.atlasgrt-section-campus .campus-result strong{display:block;font-size:2.6rem;}
body.atlasgrt-section-campus .campus-exam[hidden]{display:none!important;}
body.atlasgrt-skin-atlas.atlasgrt-section-campus .campus-kpi,
body.atlasgrt-skin-atlas.atlasgrt-section-campus .campus-item,
body.atlasgrt-skin-atlas.atlasgrt-section-campus .campus-step,
body.atlasgrt-skin-hst.atlasgrt-section-campus .campus-kpi,
body.atlasgrt-skin-hst.atlasgrt-section-campus .campus-item,
body.atlasgrt-skin-hst.atlasgrt-section-campus .campus-step{background:var(--atlasgrt-surface)!important;color:var(--atlasgrt-text)!important;}
body.atlasgrt-skin-atlas.atlasgrt-section-campus .campus-status,
body.atlasgrt-skin-hst.atlasgrt-section-campus .campus-status{background:rgba(0,214,143,.14);color:#7ee8c2;}
body.atlasgrt-skin-atlas.atlasgrt-section-campus .campus-status.pending,
body.atlasgrt-skin-hst.atlasgrt-section-campus .campus-status.pending{background:rgba(247,169,0,.16);color:#ffd26b;}
@media(max-width:700px){
    body.atlasgrt-section-campus .campus-kpis{grid-template-columns:1fr 1fr;}
    body.atlasgrt-section-campus .campus-item{grid-template-columns:1fr;}
    body.atlasgrt-section-campus .campus-item .btn{width:100%;}
    body.atlasgrt-section-campus .campus-step{padding:15px;}
}
@media(max-width:575.98px){
    body.atlasgrt-section-campus .campus-kpis{gap:10px;}
    body.atlasgrt-section-campus .campus-kpi{padding:13px;}
    body.atlasgrt-section-campus .campus-item{padding:15px;}
}
@media(max-width:767.98px){
    body.atlasgrt-auth-personal .topbar-right{gap:5px;flex-wrap:nowrap;min-width:0;}
    body.atlasgrt-auth-personal .atlasgrt-role-pills,
    body.atlasgrt-auth-personal .atlasgrt-user-box{display:none!important;}
    body.atlasgrt-auth-personal .atlasgrt-context-pills{gap:5px;min-width:0;}
}
