/* Avatar de usuario en el sidebar */
.user-panel .image img {
    width: 34px !important;
    height: 34px !important;
    object-fit: cover;
    border-radius: 50%;
}

/* Logo del sidebar: apilado arriba del texto y más grande */
#jazzy-logo {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 12px 0 8px 0 !important;
}

#jazzy-logo .brand-image {
    width: 80px !important;
    height: 80px !important;
    max-height: 80px !important;
    object-fit: contain !important;
    margin: 0 0 6px 0 !important;
    float: none !important;
    opacity: 1 !important;
}

#jazzy-logo .brand-text {
    font-size: 14px !important;
    font-weight: bold !important;
}

/* Tablas de Django Admin / Jazzmin: texto siempre visible y de alto contraste */
.table, .table td, .table th {
    color: #1f2937 !important;
}

.table thead th, .table thead th a {
    color: #374151 !important;
    font-weight: 600 !important;
}

/* Botones de acciones dentro de las tablas de contratos */
.field-acciones a.button,
.field-acciones a {
    display: inline-block !important;
    padding: 5px 12px !important;
    margin: 2px 3px !important;
    background: #003d82 !important;
    color: #ffffff !important;
    border: 1px solid #002855 !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.field-acciones a.button:hover,
.field-acciones a:hover {
    background: #002855 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Botones de visualización de PDF en recibos y egresos */
.field-boton_pdf a,
.field-btn_pdf a {
    display: inline-block !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.field-boton_pdf a:hover,
.field-btn_pdf a:hover {
    opacity: 0.9;
    text-decoration: none !important;
    color: #ffffff !important;
}

/* Enlaces dentro de celdas de tablas del admin */
.table td a:not(.btn):not(.button):not([style*="background"]) {
    color: #003d82 !important;
    font-weight: 500;
}

.table td a:not(.btn):not(.button):not([style*="background"]):hover {
    color: #002855 !important;
    text-decoration: underline !important;
}


