/* Mobile Responsive Styles for Mutual Fund Research Table */
@media (max-width: 860px) {

    /* Ensure containers don't overflow */
    .innerpage,
    .container,
    .secondhalf,
    .insidepage,
    .spacer {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    /* Reset half widths */
    .flex.min-h-screen .firsthalf,
    .flex.min-h-screen .secondhalf {
        width: 100% !important;
        display: block !important;
    }

    /* Transform table to stack */
    table,
    .secondhalf table {
        display: block !important;
        width: 100% !important;
        border: 0 !important;
    }

    .secondhalf thead,
    .secondhalf tbody,
    .secondhalf th,
    .secondhalf td,
    .secondhalf tr {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hide table header */
    .secondhalf thead tr {
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
        display: none !important;
    }

    /* Style rows as cards */
    .secondhalf tr {
        border: 1px solid #ddd !important;
        margin-bottom: 25px !important;
        border-radius: 12px !important;
        background: #fff !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        padding: 5px 0 !important;
        overflow: hidden !important;
    }

    /* Style cells */
    .secondhalf td {
        border: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
        position: relative !important;
        padding-left: 45% !important;
        padding-top: 12px !important;
        padding-bottom: 12px !important;
        padding-right: 15px !important;
        text-align: right !important;
        /* Values on the right */
        min-height: 45px !important;
        display: flex !important;
        justify-content: flex-end !important;
        /* Aligns value to right */
        align-items: center !important;
        white-space: normal !important;
        font-size: 14px !important;
        color: #111 !important;
    }

    .secondhalf td:last-child {
        border-bottom: 0 !important;
    }

    /* Add labels from data-label attribute */
    .secondhalf td:before {
        content: attr(data-label) !important;
        position: absolute !important;
        left: 15px !important;
        width: 40% !important;
        padding-right: 10px !important;
        white-space: nowrap !important;
        font-weight: 700 !important;
        font-size: 12px !important;
        color: #666 !important;
        text-align: left !important;
        text-transform: uppercase !important;
    }

    /* Adjust specific elements */
    .thisbtn button {
        margin-top: 15px !important;
        width: 100% !important;
    }

    /* Fix for the container that might have overflow-x-auto */
    .overflow-x-auto {
        overflow-x: visible !important;
        width: 100% !important;
    }


    .secondhalf thead {
        display: none !important;
    }
}