﻿#bill_details td {
    padding: 10px;
}

#bill_details td:nth-of-type(2n+1) {
    font-weight: bold;
}

.bill_progression {
    width: 1200px;
    height: 400px;
}

.tooltip {
    /*position: relative;*/
    display: inline-block;
    /*border-bottom: 1px dotted black;*/
}

    .tooltip .tooltip_text {
        visibility: hidden;
        width: 175px;
        background-color: black;
        border: solid 1px white;
        border-radius: 6px;
        padding: 5px;
        color: white;
        font-style: normal;
        text-align: center;
        font-size: 12pt;
        /* Position the tooltip */
        position: absolute;
        margin-left: 20px;
        z-index: 1;
        transition: 0s visibility;
    }

    .tooltip:hover .tooltip_text {
        visibility: visible;
        transition-delay: 1s;
    }

.document_item {
    text-align: center;
    color: black;
    padding: 8px;
    margin: 0px 5px 0px 5px;
    border: 1.5px solid black;
    border-radius: 5px;
    background: linear-gradient(135deg, #e5e7ee, #f8e6eb);
    transition: all 0.25s ease;
}

    .document_item:hover {
        transform: translateY(-2px);
        background: linear-gradient(135deg, #e5e7ee, #e5e7ee);
    }

.highlighted_item {
    border-color: red;
}

.document_detail {
    border: 1px solid black;
    padding: 95px 145px;
    margin: 10px 25px;
    font-size: clamp(12pt, 2vw, 14pt) !important;
    color: black;
/*    background-color: #fefcf8;*/
    background-color: white;
}

/* ============================================ */
/* MOBILE-FRIENDLY RESPONSIVE STYLES */
/* ============================================ */

@media screen and (max-width: 900px) {

    /* Bill Details Header Section */
    #bill_details {
        width: 100% !important;
        margin: 0 auto !important;
    }

    /* Status Changes Chart */
    .bill_progression {
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
    }

    /* Status Table - Convert to Stacked Layout */
    .status_table {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

        .status_table tr {
            display: flex !important;
            flex-direction: column !important;
            margin-bottom: 15px;
            border: 1px solid #ccc;
            border-radius: 8px;
            overflow: hidden;
        }

        .status_table th,
        .status_table td {
            display: block !important;
            width: 100% !important;
            padding: 12px !important;
            text-align: left !important;
            border: none !important;
            background-color: inherit !important;
        }

        .status_table th {
            font-weight: 700;
            color: white;
            padding: 12px;
        }

        .status_table tr:nth-child(1) th:nth-child(1) {
            background-color: #ccd0de !important;
            color: #000;
        }

        .status_table tr:nth-child(1) th:nth-child(2) {
            background-color: #f2ced7 !important;
            color: #000;
        }

        .status_table tr:nth-child(1) th:nth-child(3) {
            background-color: #adadad !important;
            color: #000;
        }

        .status_table tr:nth-child(2) td:nth-child(1) {
            background-color: #e5e7ee !important;
        }

        .status_table tr:nth-child(2) td:nth-child(2) {
            background-color: #f8e6eb !important;
        }

        .status_table tr:nth-child(2) td:nth-child(3) {
            background-color: #cccccc !important;
        }

        /* Status list items */
        .status_table ol {
            margin: 0 !important;
            padding-left: 20px !important;
        }

        .status_table li {
            margin-bottom: 15px !important;
            font-size: 13pt !important;
        }

        /* Vote result panel */
        .status_table [id*="status_vote"] {
            width: 100% !important;
            margin-top: 10px !important;
        }

            .status_table [id*="status_vote"] > div {
                width: 100% !important;
                padding: 8px !important;
                border: 1.5px solid gray !important;
                border-radius: 3px !important;
            }

            .status_table [id*="status_vote"] [style*="display: flex"] {
                flex-direction: column !important;
                width: 100% !important;
            }

            .status_table [id*="status_vote"] [id="left"] {
                width: 100% !important;
                margin-bottom: 10px !important;
            }

            .status_table [id*="status_vote"] [id="right"] {
                width: 100% !important;
            }

    /* Cosponsor pagination */
    .pagination_container {
        flex-wrap: wrap !important;
        gap: 5px !important;
    }

    /* Vote breakout chart sizing */
    .vote_breakout_chart {
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
    }

    /* Vote details table */
    #tblVote_breakout {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

        #tblVote_breakout tr {
            display: flex !important;
            flex-direction: column !important;
        }

        #tblVote_breakout th,
        #tblVote_breakout td {
            display: block !important;
            width: 100% !important;
            padding: 12px !important;
            border: none !important;
            box-sizing: border-box;
        }

        #tblVote_breakout th {
            font-weight: 700 !important;
            text-align: center !important;
            padding: 8px !important;
        }

        #tblVote_breakout tr:nth-child(1) th:nth-child(1) {
            background-color: #4ca64c !important;
            color: white;
        }

        #tblVote_breakout tr:nth-child(1) th:nth-child(2) {
            background-color: #ff4c4c !important;
            color: white;
        }

        #tblVote_breakout tr:nth-child(2) td:nth-child(1) {
            border-right: none !important;
            border-bottom: 1px solid #ccc !important;
        }

    /* Document items - wrap and stack */
    [id*="dlDocument_Selection"] {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .document_item {
        margin: 0 !important;
        flex: 1 1 calc(50% - 4px) !important;
        min-width: 150px !important;
        padding: 10px !important;
        font-size: 12pt !important;
    }

    .document_detail {
        padding: 15px !important;
        margin: 10px 0 !important;
        font-size: 12pt !important;
        overflow-x: auto !important;
    }
}

@media screen and (max-width: 600px) {

    .status_table li {
        font-size: 12pt !important;
    }

    .action_name {
        display: block !important;
        margin-bottom: 5px !important;
    }

    .tooltip .tooltip_text {
        width: 150px !important;
        font-size: 11pt !important;
        margin-left: 10px !important;
    }

    .document_item {
        flex: 1 1 100% !important;
    }

    #tblVote_breakout th,
    #tblVote_breakout td {
        padding: 8px !important;
        font-size: 11pt !important;
    }
}