/* ============================================================
   CONTENEDOR GENERAL
============================================================ */
.l4d-coe {
    font-size: 0.9rem;
}

.l4d-coe h6 {
    font-weight: 600;
	margin:0;
}

/* ============================================================
   DATATABLE
============================================================ */
.l4d-coe table.dataTable {
    border-collapse: separate;
    border-spacing: 0;
}

.l4d-coe table.dataTable thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
    background: #f8f9fa;
}

.l4d-coe table.dataTable tbody tr:hover {
    background-color: #f8f9fa;
}

.l4d-coe table.dataTable td {
    vertical-align: middle;
}

/* ============================================================
   BOTONES
============================================================ */
.l4d-coe .btn {
    border-radius: .45rem;
}

.l4d-coe .btn-follow {
    padding: .25rem .45rem;
}

/* ============================================================
   BADGES ESTADO
============================================================ */
.l4d-coe .badge {
    font-size: .65rem;
    padding: .35em .6em;
    letter-spacing: .03em;
}

/* ============================================================
   DRAWER / OFFCANVAS
============================================================ */
#coeDrawer {
    width: 420px;
}

#coeDrawer .offcanvas-header {
    border-bottom: 1px solid #e9ecef;
}

#coeDrawer .offcanvas-title {
    font-size: 1rem;
    font-weight: 600;
}

#coeDrawer section {
    border-bottom: 1px dashed #dee2e6;
    padding-bottom: .75rem;
    margin-bottom: .75rem;
}

#coeDrawer section:last-child {
    border-bottom: none;
}

/* ============================================================
   INFO CLIENTE
============================================================ */
#coeDrawer .fw-semibold {
    font-size: .95rem;
}

#coeDrawer .small {
    font-size: .8rem;
}

/* ============================================================
   TIMELINE
============================================================ */
#coeDrawer .timeline {
    position: relative;
    margin-left: .5rem;
}

#coeDrawer .timeline::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

#coeDrawer .timeline-item {
    position: relative;
    padding-left: 45px;
    margin-bottom: 1rem;
}

#coeDrawer .timeline-icon {
    position: absolute;
    left: 5px;
    top: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
}

#coeDrawer .timeline-body {
    background: #f8f9fa;
    border-radius: .4rem;
    padding: .5rem .75rem;
}

/* ============================================================
   AVATAR
============================================================ */
#coeDrawer img.rounded-circle {
    object-fit: cover;
    border: 1px solid #dee2e6;
	height:min-content;
}

/* ============================================================
   FORM INLINE
============================================================ */
#coeDrawer .form-select-sm {
    font-size: .8rem;
    padding: .25rem .5rem;
}

/* ============================================================
   MODALES
============================================================ */
.modal-content {
    border-radius: .6rem;
}

.modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* ============================================================
   UTILIDADES
============================================================ */
.text-muted {
    color: #6c757d !important;
}

.border-start {
    border-left: 2px solid #dee2e6 !important;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 576px) {
    #coeDrawer {
        width: 100%;
    }
}


/* ================= DRAWER LOADER ================= */
.drawer-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    z-index: 10;
}

/* evitar parpadeos */
#coeDrawerBody {
    animation: fadeIn .25s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* FIX AVADA: reactivar animación spinner */
#coeDrawer .spinner-border {
    animation: spinner-border .75s linear infinite !important;
}

/* asegurar visibilidad */
#coeDrawer .drawer-loader {
    background: #fff;
    pointer-events: none;
}
