﻿
/* =========================================
   ERP BUTTON SYSTEM v2
========================================= */

:root {
    --font-base: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --erp-radius: 12px;
    --erp-speed: .22s;
    --erp-font: 13px;
    --erp-shadow: 0 6px 16px rgba(15,23,42,.12);
    --erp-shadow-hover: 0 10px 24px rgba(15,23,42,.20);
}


html, body {
    height: 100%;
}
    html.preload,
    html.preload body {
        opacity: 0 !important;
        visibility: hidden !important;
        overflow: hidden !important;
    }
body {
    font-family: var(--font-base);
    font-size: 0.875rem; /* 14px */
    line-height: 1.45;
    color: #1f2937; /* gris profesional */
    display: flex;
    flex-direction: column;
}

.ui-autocomplete {
    z-index: 2147483647 !important;
}

table.dataTable {
    font-size: 0.8rem;
}

    table.dataTable thead th {
        font-weight: 600;
        padding: 0.5rem 0.75rem;
    }

    table.dataTable tbody td {
        padding: 0.45rem 0.75rem;
        vertical-align: middle;
    }

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.45rem;
}

    .btn i {
        font-size: 0.9rem;
    }



/* ===== Custom DataTable Pagination (ERP Style) ===== */
#dt-pagination {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

.pg-btn {
    min-width: 30px;
    height: 28px;
    padding: 0 0.5rem;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #374151;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease-in-out;
}

    .pg-btn.icon {
        min-width: 28px;
        padding: 0;
    }

    .pg-btn:hover:not(:disabled) {
        background-color: #f3f4f6;
        border-color: #9ca3af;
    }

    .pg-btn.active {
        background-color: #2563eb;
        border-color: #2563eb;
        color: #ffffff;
        font-weight: 600;
    }

    .pg-btn:disabled {
        opacity: 0.45;
        cursor: not-allowed;
    }

    .pg-btn i {
        font-size: 0.8rem;
    }


.carpeta {
    cursor: pointer;
}

    .carpeta:hover {
        background-color: #e9ecef;
    }

    .carpeta.active {
        background-color: #0d6efd;
        color: white;
    }

.list-group-item.active {
    background-color: #ff9800 !important; /* tu color */
    border-color: #ff9800 !important;
    color: white;
}

#visorFrame, #visorFrameView {
    background: white;
}

.modal-xl {
    max-width: 95%;
}

#listaCarpetas .list-group-item.active {
    background: #0d6efd !important;
    color: white;
    font-weight: bold;
}

#tablaDocs .doc-item:hover {
    background: #f1f1f1;
    cursor: pointer;
}

#visorFrame, #visorImg, #visorFrameView, #visorImgView {
    background: #000;
}

#globalLoader {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(2px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-box {
    width: 320px;
    text-align: center;
}

/* Celdas cuerpo */
.dtfc-fixed-right tbody td,
.dtfc-fixed-left tbody td {
    background-color: #f8f9fa !important;
}

/* Header */
.dtfc-fixed-right thead th,
.dtfc-fixed-left thead th {
    background-color: #e9ecef !important;
}

/* Mantener separación visual */
.dtfc-fixed-right,
.dtfc-fixed-left {
    box-shadow: -3px 0 5px rgba(0,0,0,0.08);
}

    .dtfc-fixed-right tbody td,
    .dtfc-fixed-left tbody td {
        background-color: #ffffff !important;
        border-left: 1px solid #dee2e6;
    }

    .dtfc-fixed-right thead th,
    .dtfc-fixed-left thead th {
        background: linear-gradient(to bottom, #f1f3f5, #e9ecef) !important;
    }

    .dtfc-fixed-right tbody tr:nth-child(odd) td,
    .dtfc-fixed-left tbody tr:nth-child(odd) td {
        background-color: #f8f9fa !important;
    }

.filter-group {
    padding: 8px;
    border-radius: 10px;
    transition: all .2s ease;
}

    .filter-group.filter-active {
        background-color: #f1f5f9;
        box-shadow: inset 0 0 0 1px #3b82f6;
    }

.transition-layout {
    transition: all .35s ease;
}

.detalle-wrapper {
    opacity: 0;
    transform: translateX(30px);
    transition: all .35s ease;
}

    .detalle-wrapper.show {
        opacity: 1;
        transform: translateX(0);
    }

@media (min-width: 992px) {
    #panelDetalle {
        height: calc(100vh - 120px);
    }

    .detalle-scroll {
        max-height: calc(100vh - 180px);
        overflow-y: auto;
    }
}

.avatar-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #4f46e5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 6px 18px rgba(13,110,253,.25);
    transition: all .3s ease;
}

.postulante-card:hover .avatar-circle {
    transform: scale(1.08);
}

.postulante-card.active {
    border: 2px solid #0d6efd;
    background: #f4f8ff;
    box-shadow: 0 4px 16px rgba(13,110,253,.1);
}

.detalle-panel {
    background: #ffffff;
    border-left: 1px solid #dee2e6;
    height: 100%;
    display: flex;
    flex-direction: column;
}



.detalle-body {
    padding: 10px 15px;
    flex: 1;
}

/* Animación */
.detalle-panel {
    opacity: 0;
    transform: translateX(10px);
    transition: all .25s ease;
}

    .detalle-panel.activo {
        opacity: 1;
        transform: translateX(0);
    }

.postulacion-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
    background: #ffffff;
    transition: all .2s ease;
}

    .postulacion-item:hover {
        box-shadow: 0 3px 10px rgba(0,0,0,.05);
    }

    /* Permitir que el texto baje de línea */
    .postulacion-item,
    .postulacion-item div {
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

        /* Evitar que botones compriman texto */
        .postulacion-item .col-lg-2,
        .postulacion-item .col-4 {
            min-width: 120px;
        }

/* Mejor separación vertical */
.postulacion-item {
    line-height: 1.4;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Fila seleccionada */
#tabPostulante_detalle tbody tr.row-selected {
    background-color: #e7f1ff !important;
    border-left: 4px solid #0d6efd;
}

/* Transición suave */
#tabPostulante_detalle tbody tr {
    transition: background-color .2s ease;
}

/* ===========================
   SELECT PROFESIONAL BOOTSTRAP 5
   =========================== */

.form-select {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #d0d5dd;
    padding: 0.45rem 2.4rem 0.45rem 0.75rem;
    color: #344054;
    background-color: #ffffff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%23667085' viewBox='0 0 16 16'%3E%3Cpath d='M3.204 5h9.592L8 11 3.204 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}


    /* ===========================
   HOVER
   =========================== */

    .form-select:hover {
        border-color: #b8c1cc;
    }


    /* ===========================
   FOCUS
   =========================== */

    .form-select:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 .15rem rgba(13,110,253,.15);
        outline: none;
        background-color: #ffffff;
    }


    /* ===========================
   DISABLED
   =========================== */

    .form-select:disabled {
        background-color: #f2f4f7;
        color: #98a2b3;
        border-color: #e4e7ec;
        cursor: not-allowed;
    }


    /* ===========================
   READONLY
   =========================== */

    .form-select[readonly] {
        background-color: #f9fafb;
    }


/* ===========================
   SMALL
   =========================== */

.form-select-sm {
    height: 32px;
    font-size: 13px;
    padding: .35rem 2rem .35rem .6rem;
    border-radius: 6px;
}


/* ===========================
   LARGE
   =========================== */

.form-select-lg {
    height: 46px;
    font-size: 15px;
    padding: .6rem 2.6rem .6rem .9rem;
    border-radius: 10px;
}


/* ===========================
   VALIDATION SUCCESS
   =========================== */

.form-select.is-valid {
    border-color: #198754;
}

    .form-select.is-valid:focus {
        border-color: #198754;
        box-shadow: 0 0 0 .15rem rgba(25,135,84,.15);
    }


/* ===========================
   VALIDATION ERROR
   =========================== */

.form-select.is-invalid {
    border-color: #dc3545;
}

    .form-select.is-invalid:focus {
        border-color: #dc3545;
        box-shadow: 0 0 0 .15rem rgba(220,53,69,.15);
    }


/* ===========================
   OPTION STYLE
   =========================== */

/* Items del dropdown */

.form-select option {
    font-size: 14px;
    font-weight: 500;
    padding: 6px 10px;
    background-color: #ffffff;
    color: #344054;
}


    /* Item seleccionado */

    .form-select option:checked {
        background-color: #0d6efd;
        color: #ffffff;
    }


    /* Hover (solo funciona en algunos navegadores) */

    .form-select option:hover {
        background-color: #e9f2ff;
    }


/* Grupo de opciones */

.form-select optgroup {
    font-weight: 600;
    color: #667085;
}
/* CONTENEDOR */
.ui-autocomplete {
    max-height: 320px;
    overflow-y: auto;
    border-radius: 10px;
    border: 1px solid #e4e7ec;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    padding: 6px 0;
    font-family: "Segoe UI", sans-serif;
}

/* ITEM */
.ac-item {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: all 0.15s ease;
}

/* HOVER */
.ui-menu-item-wrapper:hover {
    background: #f5f7fa !important;
}

/* ITEM ACTIVO */
.ui-state-active {
    background: #e9f2ff !important;
    border: none !important;
    color: #1a1a1a !important;
}

/* CODIGO */
.ac-code {
    font-size: 11px;
    font-weight: 600;
    color: #667085;
}

/* NOMBRE */
.ac-name {
    font-size: 13px;
    font-weight: 500;
    color: #101828;
}

/* HIGHLIGHT */
.ac-highlight {
    background: #fff3cd;
    border-radius: 3px;
    padding: 0 2px;
}

/* SCROLL MODERNO */
.ui-autocomplete::-webkit-scrollbar {
    width: 6px;
}

.ui-autocomplete::-webkit-scrollbar-thumb {
    background: #d0d5dd;
    border-radius: 4px;
}

.ui-menu-item:not(:last-child) {
    border-bottom: 1px solid #f2f4f7;
}

.ac-input {
    border: 1px solid #d0d5dd !important;
    box-shadow: none !important;
    font-size: 13px;
    transition: all 0.15s ease;
}

    .ac-input:focus {
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 2px rgba(59,130,246,0.1) !important;
    }

input.ui-autocomplete-input.ac-input {
    border: 1px solid #d0d5dd;
    font-size: 13px;
}

.ui-autocomplete-input {
    border: 1px solid #d0d5dd !important;
    font-size: 13px;
}

    .ui-autocomplete-input:focus {
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 2px rgba(59,130,246,0.1) !important;
    }

.label {
    display: inline-block;
    padding: .25em .4em;
    font-size: 95%;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    -webkit-border-radius: .25rem;
    border-radius: .25rem;
}

.label-pill {
    padding-right: .6em;
    padding-left: .6em;
    -webkit-border-radius: 10rem;
    border-radius: 10rem;
}

.label-info {
    background-color: #ac6bec;
}

.label-success {
    background-color: #5cb85c;
}

.label-primary {
    background-color: #00a8ff;
}

.label-warning {
    background-color: #fdad2a;
}

.label-danger {
    background-color: #fa424a;
}

/* =========================================
   BASE
========================================= */

.btn-erp {
    position: relative;
    overflow: hidden;
    border: none;
    outline: none;
    border-radius: var(--erp-radius);
    height: 38px;
    min-width: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: var(--erp-font);
    font-weight: 600;
    transition: all var(--erp-speed) ease;
    box-shadow: var(--erp-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

    /* ICONOS */

    .btn-erp i {
        font-size: 14px;
        line-height: 1;
    }

    /* HOVER */

    .btn-erp:hover {
        transform: translateY(-2px);
        box-shadow: var(--erp-shadow-hover);
    }

    /* ACTIVE */

    .btn-erp:active {
        transform: scale(.96);
    }

    /* FOCUS */

    .btn-erp:focus-visible {
        outline: 3px solid rgba(59,130,246,.25);
        outline-offset: 2px;
    }

    /* DISABLED */

    .btn-erp:disabled {
        opacity: .55;
        cursor: not-allowed;
        transform: none !important;
        box-shadow: none;
    }

/* =========================================
   VARIANTES
========================================= */

/* EDIT */

.btn-erp-edit {
    background: linear-gradient( 135deg, rgba(37,99,235,.12), rgba(59,130,246,.20) );
    color: #2563eb;
    border: 1px solid rgba(37,99,235,.18);
}

    .btn-erp-edit:hover {
        background: linear-gradient( 135deg, #2563eb, #3b82f6 );
        color: #fff;
    }

/* DELETE */

.btn-erp-delete {
    background: linear-gradient( 135deg, rgba(239,68,68,.12), rgba(248,113,113,.20) );
    color: #ef4444;
    border: 1px solid rgba(239,68,68,.18);
}

    .btn-erp-delete:hover {
        background: linear-gradient( 135deg, #dc2626, #ef4444 );
        color: #fff;
    }

/* INFO */

.btn-erp-info {
    background: linear-gradient( 135deg, rgba(59,130,246,.12), rgba(96,165,250,.20) );
    color: #3b82f6;
    border: 1px solid rgba(59,130,246,.18);
}

    .btn-erp-info:hover {
        background: linear-gradient( 135deg, #2563eb, #3b82f6 );
        color: #fff;
    }

/* SUCCESS */

.btn-erp-success {
    background: linear-gradient( 135deg, rgba(34,197,94,.12), rgba(74,222,128,.20) );
    color: #22c55e;
    border: 1px solid rgba(34,197,94,.18);
}

    .btn-erp-success:hover {
        background: linear-gradient( 135deg, #16a34a, #22c55e );
        color: #fff;
    }

/* SEARCH */

.btn-erp-search {
    background: linear-gradient( 135deg, #0f172a, #1e293b );
    color: #f1f5f9;
    border: 1px solid #334155;
}

    .btn-erp-search:hover {
        background: linear-gradient( 135deg, #1e293b, #334155 );
        color: #fff;
    }

/* =========================================
   MODO TEXTO
========================================= */

.btn-erp-text {
    padding-inline: 16px;
}

/* =========================================
   SOLO ICONO
========================================= */

.btn-erp-icon {
    width: 38px;
    padding: 0;
}

/* =========================================
   TAMAÑOS
========================================= */

.btn-erp-sm {
    height: 32px;
    min-width: 32px;
    font-size: 12px;
}

.btn-erp-lg {
    height: 46px;
    min-width: 46px;
    padding-inline: 20px;
    font-size: 14px;
}

/* =========================================
   EFECTO BRILLO
========================================= */

.btn-erp::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( 120deg, transparent 20%, rgba(255,255,255,.22), transparent 80% );
    transform: translateX(-120%);
    transition: transform .6s ease;
}

.btn-erp:hover::before {
    transform: translateX(120%);
}

/* HEADER */
table.dataTable thead th {
    border-bottom: none !important;
    color: #64748b;
    font-weight: 600;
}

table.dataTable thead .table-secondary th {
    background-color: #1e293b !important;
    color: #fff !important;
}

/* FILAS */
table.dataTable tbody tr {
    background: #fff;
    border-radius: 10px;
    transition: 0.2s;
}

/* CELDAS */
table.dataTable tbody td {
    border-top: none !important;
}

/* EFECTO HOVER */
table.dataTable tbody tr:hover {
    background-color: #f1f5f9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ESPACIADO ENTRE FILAS */
table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0 8px;
}

.dataTables_filter input {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    outline: none;
    transition: 0.2s;
}

    .dataTables_filter input:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 2px rgba(37,99,235,0.1);
    }

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    margin: 0 2px;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        background: #2563eb !important;
        color: #fff !important;
        border: none;
    }

.table-header-erp th {
    background-color: #1e293b !important;
    color: #ffffff !important;
    font-weight: 600;
    border: none;
}

/* =========================================
   BADGE ERP BASE
========================================= */

.badge-erp {
    --badge-bg: #e2e8f0;
    --badge-color: #334155;
    --badge-border: rgba(255,255,255,.18);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .25px;
    line-height: 1;
    white-space: nowrap;
    color: var(--badge-color);
    background: linear-gradient( 180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.03) 100% ), var(--badge-bg);
    border: 1px solid var(--badge-border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 1px 2px rgba(15,23,42,.08);
    backdrop-filter: blur(6px);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

    /* =========================================
   HOVER
========================================= */

    .badge-erp:hover {
        transform: translateY(-1px);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 4px 10px rgba(15,23,42,.12);
    }

    /* =========================================
   ICONOS
========================================= */

    .badge-erp i {
        font-size: 10px;
        opacity: .9;
    }

/* =========================================
   PRIMARY
========================================= */

.badge-erp-primary {
    --badge-bg: linear-gradient( 135deg, rgba(37,99,235,.18), rgba(59,130,246,.10) );
    --badge-color: #2563eb;
    --badge-border: rgba(37,99,235,.22);
}

/* =========================================
   SUCCESS
========================================= */

.badge-erp-success {
    --badge-bg: linear-gradient( 135deg, rgba(16,185,129,.18), rgba(34,197,94,.10) );
    --badge-color: #16a34a;
    --badge-border: rgba(34,197,94,.20);
}

/* =========================================
   DANGER
========================================= */

.badge-erp-danger {
    --badge-bg: linear-gradient( 135deg, rgba(239,68,68,.18), rgba(248,113,113,.10) );
    --badge-color: #dc2626;
    --badge-border: rgba(239,68,68,.18);
}

/* =========================================
   PURPLE
========================================= */

.badge-erp-purple {
    --badge-bg: linear-gradient( 135deg, rgba(168,85,247,.18), rgba(192,132,252,.10) );
    --badge-color: #9333ea;
    --badge-border: rgba(168,85,247,.18);
}

/* =========================================
   SECONDARY
========================================= */

.badge-erp-secondary {
    --badge-bg: linear-gradient( 135deg, rgba(100,116,139,.18), rgba(148,163,184,.10) );
    --badge-color: #64748b;
    --badge-border: rgba(100,116,139,.18);
}

/* =========================================
   INFO
========================================= */

.badge-erp-info {
    --badge-bg: linear-gradient( 135deg, rgba(6,182,212,.18), rgba(34,211,238,.10) );
    --badge-color: #0891b2;
    --badge-border: rgba(6,182,212,.18);
}

/* =========================================
   WARNING
========================================= */

.badge-erp-warning {
    --badge-bg: linear-gradient( 135deg, rgba(245,158,11,.22), rgba(251,191,36,.10) );
    --badge-color: #d97706;
    --badge-border: rgba(245,158,11,.20);
}
/* CONTENEDOR */
.erp-brand {
    color: #fff;
    text-decoration: none;
}

/* ICONO */
.erp-logo-box {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    box-shadow: 0 4px 10px rgba(37,99,235,0.3);
}

/* TEXTO */
.erp-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.erp-title {
    font-weight: 700;
    font-size: 16px;
}

.erp-subtitle {
    font-size: 10px;
    color: #cbd5e1;
}

/* HOVER */
.erp-brand:hover .erp-logo-box {
    transform: scale(1.05);
}

/* BOTÓN LOGOUT */
.btn-logout {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

    /* HOVER */
    .btn-logout:hover {
        background: #ef4444;
        color: #fff;
        transform: translateY(-2px);
    }

    /* CLICK */
    .btn-logout:active {
        transform: scale(0.95);
    }



.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1); /* convierte blanco → negro */
}

.carousel-indicators [data-bs-target] {
    background-color: #999;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.carousel-indicators .active {
    background-color: #000;
    transform: scale(1.2);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: #dee2e6a1;
}


.row-selected {
    background: rgba(37,99,235,.08) !important;
}

.dt-check {
    cursor: pointer;
    width: 16px;
    height: 16px;
}


/* CONTENEDOR */
.login-footer-pro {
    margin-top: 20px;
    text-align: center;
}

/* LINEA SEPARADORA */
.footer-line {
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, transparent, #cbd5e1, transparent);
    margin-bottom: 12px;
}

/* CONTENIDO PRINCIPAL */
.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* NOMBRE APP */
.app-name {
    color: #334155;
}

/* VERSION */
.version {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
}

/* COPYRIGHT */
.footer-copy {
    margin-top: 4px;
    font-size: 0.7rem;
    color: #94a3b8;
}

.tree-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    line-height: 1.4;
}

/* ITEM BASE */
.tree-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    background: #f1f3f5;
    color: #495057;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

    /* ICONO */
    .tree-breadcrumb-item i {
        font-size: 12px;
        margin-right: 5px;
        opacity: 0.7;
    }

    /* HOVER */
    .tree-breadcrumb-item:hover {
        background: #e9ecef;
        color: #212529;
        transform: translateY(-1px);
    }

/* SEPARADOR */
.tree-breadcrumb-separator {
    color: #adb5bd;
    font-size: 12px;
}

/* ÚLTIMO NIVEL (IMPORTANTE) */
.tree-breadcrumb-item.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

    /* EFECTO SUTIL */
    .tree-breadcrumb-item.active i {
        opacity: 1;
    }

/* OPCIONAL: truncar textos largos */
.tree-breadcrumb-item span {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .tree-breadcrumb-item span {
        max-width: 120px;
    }
}

.col-estructura {
    width: 320px !important;
    max-width: 320px !important;
}

.tree-breadcrumb-container {
    line-height: 2;
    white-space: normal;
    word-break: break-word;
}

.tree-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    margin-bottom: 4px;
}

.tree-breadcrumb-separator {
    margin: 0 6px;
    color: #999;
}

.ticket-card-mini {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

/* ========================================
   TITULO
======================================== */

.ticket-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   PATH
======================================== */

.ticket-card-path {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 11px;
    color: #64748b;
}

    .ticket-card-path i {
        font-size: 10px;
        opacity: .7;
    }

/* ========================================
   PRIORIDAD
======================================== */

.ticket-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-priority-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 600;
}

    .ticket-priority-chip i {
        font-size: 10px;
    }

.ticket-track-mini {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 250px;
}

.track-mini-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.track-mini-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* ========================================
   CREACION
======================================== */

.chip-create {
    background: #f1f5f9;
    color: #475569;
}

/* ========================================
   ASIGNACION
======================================== */

.chip-assign {
    background: #ecfeff;
    color: #0891b2;
}

/* ========================================
   CIERRE
======================================== */

.chip-close {
    background: #dcfce7;
    color: #15803d;
}

/* ========================================
   USER
======================================== */

.chip-user {
    background: #f5f3ff;
    color: #7c3aed;
}

.track-mini-chip i {
    font-size: 10px;
}

/* ========================================
   CHIP SECONDARY
======================================== */

.chip-secondary {
    background: #f1f5f9;
    color: #64748b;
}

/* ========================================
   TOOLTIP CURSOR
======================================== */

.track-mini-chip {
    cursor: default;
}

.user-card-mini {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

/* ========================================
   NAME
======================================== */

.user-mini-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

    .user-mini-name i {
        color: #2563eb;
    }

/* ========================================
   EMAIL
======================================== */

.user-mini-email {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .user-mini-email i {
        color: #94a3b8;
    }

/* ========================================
   AREA
======================================== */

.user-mini-area {
    margin-top: 2px;
}

/* ========================================
   BOTON ASIGNAR USUARIO
======================================== */

.btnAsignarUsuario {
    border: none;
    transition: all .18s ease;
    cursor: pointer;
}

    /* ========================================
   HOVER
======================================== */

    .btnAsignarUsuario:hover {
        background: #2563eb !important;
        color: #ffffff !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(37,99,235,.25);
    }

    /* ========================================
   ACTIVE
======================================== */

    .btnAsignarUsuario:active {
        transform: scale(.98);
    }

    /* ========================================
   ICON
======================================== */

    .btnAsignarUsuario i {
        font-size: 10px;
    }


/* =========================================
   ESTADOS MODAL TICKET
========================================= */

.ticket-status-open {
    background: linear-gradient( 135deg, #22c55e, #16a34a );
}

.ticket-status-process {
    background: linear-gradient( 135deg, #f59e0b, #d97706 );
}

.ticket-status-closed {
    background: linear-gradient( 135deg, #ef4444, #dc2626 );
}

.ticket-status-default {
    background: linear-gradient( 135deg, #64748b, #475569 );
}

.ticket-rating-box {
    min-width: 120px;
    padding: 8px 10px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    backdrop-filter: blur(8px);
    transition: all .18s ease;
    box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.10);
}

    .ticket-rating-box:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(16,24,40,.10), 0 2px 4px rgba(16,24,40,.06);
    }

.ticket-rating-stars {
    display: flex;
    gap: 2px;
    font-size: 13px;
}

.ticket-rating-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2px;
}

/* =========================================
   MESSAGE MODAL
========================================= */

.erp-message-body {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    font-size: 14px;
    line-height: 1.7;
    color: #475467;
    white-space: pre-wrap;
    word-break: break-word;
}

.erp-message-ticket {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

    .erp-message-ticket span {
        color: #0f172a;
        font-weight: 700;
    }

/* =========================================
   MODAL ERP
========================================= */

.modal-erp-crud {
    border-radius: 22px;
    overflow: hidden;
}

/* =========================================
   LABELS
========================================= */

.form-label-erp {
    font-size: 13px;
    font-weight: 600;
    color: #344054;
    margin-bottom: 8px;
}

/* =========================================
   INPUT GROUP
========================================= */

.input-group-erp .input-group-text {
    background: #f8fafc;
    border-color: #d0d5dd;
    color: #667085;
}

.input-group-erp .form-control,
.input-group-erp .form-select {
    border-color: #d0d5dd;
    height: 44px;
    font-size: 14px;
}

    .input-group-erp .form-control:focus,
    .input-group-erp .form-select:focus {
        box-shadow: 0 0 0 4px rgba(37,99,235,.12);
        border-color: #2563eb;
    }
/* =========================================
   MODAL PASSWORD
========================================= */

.modal-password {
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
}

/* =========================================
   LABELS
========================================= */

.form-label-erp {
    font-size: 13px;
    font-weight: 600;
    color: #344054;
    margin-bottom: 8px;
}

/* =========================================
   INPUT GROUP
========================================= */

.input-group-erp .input-group-text {
    background: #f8fafc;
    border-color: #d0d5dd;
    color: #667085;
    min-width: 46px;
    justify-content: center;
}

.input-group-erp .form-control {
    border-color: #d0d5dd;
    height: 46px;
    font-size: 14px;
    box-shadow: none;
}

    .input-group-erp .form-control:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 4px rgba(37,99,235,.12);
    }

/* =========================================
   TOGGLE BUTTON
========================================= */

.input-group-erp .btnTogglePassword {
    border-color: #d0d5dd;
    background: #f8fafc;
    color: #64748b;
    min-width: 50px;
}

    .input-group-erp .btnTogglePassword:hover {
        background: #eef2ff;
        color: #2563eb;
    }

/* =========================================
   PASSWORD STRENGTH
========================================= */

.password-strength {
    margin-top: 18px;
}

.strength-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

#passwordStrengthFill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    transition: all .25s ease;
}

.strength-text {
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

/* =========================================
   PASSWORD RULES
========================================= */

.password-rules {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.password-rule {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
    transition: all .2s ease;
}

    .password-rule i {
        font-size: 11px;
    }

    /* =========================================
   VALID RULE
========================================= */

    .password-rule.valid {
        color: #16a34a;
        font-weight: 600;
    }

        .password-rule.valid i::before {
            content: "\f26e";
            font-family: bootstrap-icons;
        }

/* =========================================
   ALERT
========================================= */

.modal-password .alert {
    border-radius: 14px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
    font-size: 13px;
    line-height: 1.6;
}

/* =========================================
   FOOTER BUTTONS
========================================= */

.modal-password .modal-footer {
    padding-top: 10px;
}

/* =========================================
   MODAL ANIMATION
========================================= */

.modal.fade .modal-dialog {
    transform: scale(.96);
    transition: all .18s ease;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:768px) {

    .modal-password {
        border-radius: 18px;
    }

    .password-rule {
        font-size: 12px;
    }
}