/* ==========================================================================
   ALJANIA TRANSPARENCIA - PUBLIC PORTAL CSS (ELEMENTOR 1140px CONTAINER)
   ========================================================================== */

.aljania-public-transparencia-page {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #0f172a;
    background-color: #f8fafc;
}

#aljania-public-portal-root {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}

/* TYPOGRAPHY SCALE ADJUSTMENTS */
.pub-main-title {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
}

.pub-lead-text {
    font-size: 0.975rem;
    line-height: 1.5;
    color: #475569;
    max-width: 680px;
}

.pub-kpi-num {
    font-size: 1.85rem;
    font-weight: 800;
}

.pub-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

/* BRANDING & CONTRAST UTILITIES */
.text-ong {
    color: #e65c00 !important;
}

.bg-ong {
    background-color: #e65c00 !important;
}

.bg-ong-subtle {
    background-color: #fff7ed !important;
    border: 1px solid #ffedd5 !important;
}

.text-ong-dark {
    color: #9a3412 !important;
}

.border-ong {
    border-color: #e65c00 !important;
}

.btn-ong-orange {
    background-color: #e65c00 !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(230, 92, 0, 0.25);
    transition: all 0.25s ease;
}

.btn-ong-orange:hover, .btn-ong-orange:focus {
    background-color: #cc5200 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(230, 92, 0, 0.35);
}

.btn-outline-ong {
    border: 2px solid #e65c00 !important;
    color: #e65c00 !important;
    background: transparent !important;
    font-weight: 700 !important;
    transition: all 0.2s ease;
}

.btn-outline-ong:hover {
    background-color: #e65c00 !important;
    color: #ffffff !important;
}

/* TABLES */
/* TABLES */
#public-feed-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
    font-weight: 700;
    background-color: #f1f5f9;
    padding: 0.6rem 0.5rem;
}

#public-feed-table td {
    font-size: 0.83rem;
    padding: 0.55rem 0.5rem;
}

.badge-income {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    font-weight: 700;
}

.badge-expense {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    font-weight: 700;
}

/* HIGH CONTRAST STATUS BADGES */
.badge-status-treatment {
    background-color: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
    font-weight: 700 !important;
}

.badge-status-recovered {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
    font-weight: 700 !important;
}

.badge-status-adoption {
    background-color: #dbeafe !important;
    color: #1e40af !important;
    border: 1px solid #bfdbfe !important;
    font-weight: 700 !important;
}

.badge-status-adopted {
    background-color: #f3e8ff !important;
    color: #5b21b6 !important;
    border: 1px solid #e9d5ff !important;
    font-weight: 700 !important;
}

.badge-status-closed {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb !important;
    font-weight: 700 !important;
}

/* VOUCHER BUTTONS */
.pub-voucher-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50% !important;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pub-voucher-icon-btn.btn-image {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.pub-voucher-icon-btn.btn-pdf {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.pub-voucher-icon-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.progress-case {
    height: 10px;
    border-radius: 10px;
    background-color: #e2e8f0;
}

/* CASE CARDS */
.case-card-pub {
    transition: all 0.25s ease;
}

.case-card-pub:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
}

/* DONATION MODAL OPTIONS */
.donation-channel-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.donation-channel-card:hover {
    border-color: #e65c00;
    background: #fff7ed;
}

/* RESPONSIVE PROTECTIONS & BUTTON SHAPE CORRECTIONS */
.btn-ong-orange,
.btn-outline-ong,
.case-card-pub .btn,
.aljania-widget-casos-wrap .btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    height: auto !important;
    min-height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50px !important;
    line-height: 1.2 !important;
    max-width: 100% !important;
    aspect-ratio: auto !important;
}

/* STATUS BADGES ANTI-OVERFLOW */
.badge-status-treatment,
.badge-status-recovered,
.badge-status-adoption,
.badge-status-adopted,
.badge-status-closed {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1.2 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* MOBILE RESPONSIVE OVERRIDES (< 576px) */
@media (max-width: 576px) {
    .aljania-widget-casos-wrap {
        padding: 1.25rem 1rem !important;
    }
    
    .pub-main-title {
        font-size: 1.6rem !important;
    }
    
    .case-card-pub .card-body {
        padding: 1rem !important;
    }
    
    .case-card-pub img.btn-open-case-audit-modal {
        width: 100% !important;
        height: 160px !important;
    }
}
