#overlayProceso {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 2000;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

    #overlayProceso.d-none {
        display: none !important;
    }

.diff-del {
    background: #f8d7da;
    padding: 2px 6px;
    margin-bottom: 2px;
}

.diff-ins {
    background: #d1e7dd;
    padding: 2px 6px;
    margin-bottom: 2px;
}

.diff-mod {
    background: #fff3cd;
    padding: 2px 6px;
    margin-bottom: 2px;
}

.diff-igual {
    padding: 2px 6px;
    margin-bottom: 2px;
    color: #6c757d;
}

.diff-del del, .diff-mod del {
    background: #f1aeb5;
    color: #58151c;
}

.diff-ins ins, .diff-mod ins {
    background: #a3cfbb;
    color: #0a3622;
    text-decoration: none;
    font-weight: 600;
}

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Barlow:wght@300;400;500;600&display=swap');

:root {
    --darkblue: #0c4266;
    --orange: #EA7D04;
    --yellow: #F7B705;
    --blue: #0943b5;
    --red: #DC1922;
    --white: #FFFFFF;
    --light: #f8f8f8;
    --lightblue: #E8F4FD;
    --gray: #6B7C93;
    --gray2: #DDE4ED;
    --shadow: 0 4px 24px rgba(10,58,90,0.13);
    --shadow2: 0 2px 8px rgba(10,58,90,0.2);
    --bs-font-sans-serif: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    --bs-body-font-family: var(--bs-font-sans-serif);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: var(--bs-body-font-family);
    background: var(--light);
    color: var(--darkblue);
}

/* ── HEADER ── */
.navbar {
    background: #f8f9fa;
    padding: 12px 32px;
    height: 68px;
    border-bottom: orange 2px solid;
    color: var(--darkblue);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 20px
}

    .navbar-brand img {
        height: 44px;
        filter: brightness(1)
    }

.header-title {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: .3px;
}

    .header-title span {
        display: block;
        font-weight: 600;
        font-size: 12px;
        letter-spacing: 1px;
        text-transform: uppercase;
        margin-top: 6px
    }

.header-badge {
    background: var(--orange);
    color: var(--white);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 3px;
    text-transform: uppercase;
}

/* ── MAIN ── */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0
}

/* ── MAP SECTION ── */
.map-section {
    background: var(--white);
}

.map-section-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .map-section-title::before {
        content: '';
        width: 4px;
        height: 16px;
        background: var(--orange);
        display: inline-block;
        border-radius: 2px
    }

#tableContainer {
    margin-top: 15px;
}

.map-hint {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 12px;
    font-style: italic;
    text-align: center;
    margin-bottom: 10px;
    width: 100%;
}

.map-wrapper {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid var(--gray2);
    box-shadow: var(--shadow2);
    cursor: default;
    padding: 10px;
}

    .map-wrapper img {
        width: 100%;
        display: block
    }

/* SVG overlay for clickable areas */
.map-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.map-zone {
    fill: transparent;
    stroke: transparent;
    stroke-width: 2;
    pointer-events: all;
    cursor: pointer;
    transition: fill .2s,stroke .2s;
    rx: 6;
    ry: 6;
}


/* tipo-proceso zones */
.map-zone-tipo {
    fill: transparent;
    stroke: transparent;
    stroke-width: 2.5;
    pointer-events: all;
    cursor: pointer;
    transition: fill .2s,stroke .2s
}

    .map-zone-tipo:hover, .map-zone:hover, .map-zone-tipo.active, .map-zone.active {
        fill: rgb(255 230 0 / 30%);
        stroke: #ffb006;
        stroke-width: 2;
    }

/* ── SEARCH SECTION ── */
.search-section {
    background: var(--light);
    padding: 24px 32px 10px;
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
}

.search-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: end;
    margin: 0 auto;
    max-width: 1500px;
}

.fg {
    display: flex;
    flex-direction: column;
    gap: 4px
}

    .fg label {
        font-size: 14px;
        font-weight: 600;
        color: var(--blue);
        margin-bottom: 4px;
    }

    .fg input, .fg select {
        height: 36px;
        border: 1px solid #eeeeee;
        border-radius: 4px;
        color: var(--darkblue);
        font-size: 13px;
        padding: 0 10px;
        outline: none;
        transition: border-color .2s,background .2s;
    }

        .fg input::placeholder {
            color: #999999;
        }

        .fg input:focus, .fg select:focus {
            border-color: var(--blue);
        }

        .fg select option {
            background: #f8f4f1;
            color: var(--darkblue);
            border-bottom: 1px solid #eee;
        }

.boton {
    height: 36px;
    background: var(--orange);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .5px;
    padding: 0 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background .18s,transform .1s;
    text-transform: uppercase;
}

    .boton svg {
        margin-right: 10px;
    }

    .boton:hover {
        background: #ff9420;
    }

.btn-clear {
    height: 36px;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.25);
    border-radius: 4px;
    color: rgba(255,255,255,.7);
    font-size: 12px;
    padding: 0 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .18s,color .18s;
}

    .btn-clear:hover {
        border-color: rgba(255,255,255,.6);
        color: #fff
    }

.active-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: auto;
    max-width: 1500px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--orange);
    border: 1px solid var(--orange);
    border-radius: 20px;
    padding: 3px 10px 3px 10px;
    font-size: 11.5px;
    color: #ffffff;
    font-weight: 500;
}

.filter-chip-label {
    color: rgba(255,255,255,.8);
    font-size: 11px;
    margin-right: 2px
}

.filter-chip-remove {
    cursor: pointer;
    font-size: 13px;
    color: rgba(255,255,255,.6);
    transition: color .15s;
    line-height: 1;
    margin-left: 5px;
}

    .filter-chip-remove:hover {
        color: var(--yellow)
    }



#resultsTitle {
    border: 0 !important;
    padding-left: 0;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 18px;
    color: var(--blue);
    display: inline-block;
    margin-right: 15px;
}

.docs-header {
    background-color: var(--white);
    border-bottom: 1px solid #ebebeb;
}

.content {
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 14px;
    padding: 24px 32px 20px;
}

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

.section-title {
    font-weight: 700;
    font-size: 20px;
    color: var(--darkblue);
    letter-spacing: .3px;
    border-left: 4px solid var(--orange);
    padding-left: 15px;
    margin-bottom: 15px;
}

.count-pill {
    color: var(--blue);
    display: inline-block;
}

/* TABLE */
.table-wrap {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid var(--gray2);
    box-shadow: var(--shadow2);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

thead th {
    background: var(--blue);
    color: rgba(255,255,255,.85);
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 11px 14px;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: background .15s;
}

    thead th:hover {
        background: #0d4e78
    }

    thead th.sort-asc::after {
        content: ' ↑';
        color: var(--yellow)
    }

    thead th.sort-desc::after {
        content: ' ↓';
        color: var(--yellow)
    }

tbody tr {
    border-bottom: 1px solid var(--gray2);
    transition: background .1s
}


    tbody tr:hover {
        background: var(--lightblue)
    }

tbody td {
    padding: 9px 14px;
    vertical-align: middle
}

table a {
    display: inline-flex;
    align-items: center;
}

    table a svg {
        margin-right: 6px;
    }

a {
    text-decoration: none;
}

    a:not(.boton) {
        color: var(--darkblue);
    }

        a:not(.boton):hover {
            color: var(--orange);
            font-weight: 400;
        }

.file-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform .15s;
}

    .file-icon-box:hover {
        transform: scale(1.15)
    }


mark {
    background: rgba(247,183,5,0.35);
    color: var(--darkblue);
    border-radius: 2px;
    padding: 0 1px
}

/* EMPTY */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 32px;
    gap: 12px;
    color: var(--gray);
    background: var(--white);
    border-radius: 8px;
    border: 1.5px solid var(--gray2);
}

.empty-icon {
    font-size: 44px;
    opacity: .5
}

.empty-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--darkblue)
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
    height: 6px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: var(--gray2);
    border-radius: 6px
}

/* ICON COLORS */
.ic-pdf {
    background: #FFE8E8;
    color: #C0392B
}

.ic-word {
    background: #E8F0FF;
    color: #1a56db
}

.ic-excel {
    background: #E8F7EE;
    color: #1a7a3f
}

.ic-ppt {
    background: #FFF0E8;
    color: #cc4a00
}

.ic-img {
    background: #F3E8FF;
    color: #7c3aed
}

.ic-zip {
    background: #FFF8E1;
    color: #8a6800
}

.ic-default {
    background: #F0F4F8;
    color: var(--gray)
}

@media(max-width:960px) {
    .search-grid {
        grid-template-columns: 1fr 1fr
    }

    header {
        padding: 0 16px
    }

    .map-section, .search-section, .results-section {
        padding-left: 16px;
        padding-right: 16px
    }
}

#toast-container > div {
    opacity: 1;
}

.toast-info {
    background-color: var(--orange);
}

button:disabled {
    background-color: light-dark(rgba(239, 239, 239, 0.3), rgba(19, 1, 1, 0.3));
    color: light-dark(rgba(16, 16, 16, 0.3), rgba(255, 255, 255, 0.3));
    border-color: light-dark(rgba(118, 118, 118, 0.3), rgba(195, 195, 195, 0.3));
}

#toast-container > .toast-info {
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII=) !important;
}

.td-number {
    font-weight: 600;
    background-color: #f8f4f1;
    border-right: 1px solid #eee;
}


.badge {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    color: #fff;
    border-radius: 0.375rem;
    display: inline-block;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

.text-bg-excel {
    color: #fff !important;
    background-color: RGBA(25, 135, 84, 1) !important;
}

.text-excel {
    color: RGBA(25, 135, 84, 1) !important;
}

.text-bg-pdf {
    color: #fff !important;
    background-color: RGBA(220, 53, 69, 1) !important;
}

.text-pdf {
    color: RGBA(220, 53, 69, 1) !important;
}

.text-bg-word {
    color: #fff !important;
    background-color: RGBA(13, 110, 253, 1) !important;
}

.text-word {
    color: RGBA(13, 110, 253, 1) !important;
}

#divPreview {
    height: 100% !important;
    width: 100% !important;
    position: fixed;
    top: 68px;
    left: 0;
    background-color: #eee;
}

#helpCntFile {
    height: 85% !important;
    width: 100% !important;
}

.preview-title {
    padding: 10px 15px;
    color: var(--darkblue);
    background-color: var(--white);
}


#btnDownloadFile {
    right: 55px;
    position: absolute;
    top: 5px;
}

#lblPreviewNombreDoc {
    margin-left: 10px;
}

#btnClosePreview {
    background-color: var(--red);
    right: 5px;
    position: absolute;
    top: 5px;
    padding-left: 10px;
    padding-right: 10px;
}

    #btnClosePreview svg {
        margin: 0;
    }



table.table.dataTable.table-hover > tbody > tr:hover > * {
    box-shadow: inset 0 0 0 9999px #ffed5e !important;
}

table.dataTable .sorting_1 {
    box-shadow: inset 0 0 0 9999px #fffacf !important;
}

.table {
    --bs-table-hover-bg: #ffed5e;
    /** --bs-table-hover-color: #333;*/
    box-shadow: 0 3.2px 7.2px 0 rgba(0, 0, 0, .132), 0 .6px 1.8px 0 rgba(0, 0, 0, .108);
    border-spacing: 0 0;
}



    .table thead th {
        text-align: left;
        font-size: 12px;
        font-weight: 600;
        padding-bottom: 5px;
        padding-top: 5px;
    }


    .table thead > :last-child > * {
        border-bottom-color: #ffa500 !important;
    }

    .table tbody > :last-child > * {
        border-bottom-color: inherit !important;
        border-bottom-width: 1px;
    }

tr.table-teal:hover > td {
    border: 1px solid #ffce21;
    background: #ffce21;
    color: #000;
    text-shadow: none;
}

tr.table-teal:hover > td, .ui-state-default:hover {
    border: 1px solid #ffed5e;
    background: #ffed5e;
    color: #000;
}


table.table.dataTable.table-striped > tbody > tr:nth-of-type(2n+1) > * {
    box-shadow: inset 0 0 0 9999px rgba(var(--dt-row-stripe), 0.03);
}

.table-striped {
    --bs-table-striped-bg: rgba(0,0,0,0.03);
}

.Index {
    background-color: #FFFFFF;
}

.poster {
    background-image: url(../img/calidoso.jpeg);
    background-position: top right 150px;
    background-repeat: no-repeat;
    /* background-size: 100px; */
    background-size: 300px;
    background-color: #ffffff;
    min-height: 500px;
    padding: 25px 500px 25px 25px;
    padding-right: 550px;
    padding-left: 150px;
}

    .poster .alert {
        margin-top: 60px !important
    }
