/* Container for responsive layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 0 5rem 0;
    box-sizing: border-box;

}

.search.well .flush-left {
    overflow: hidden;
}

.search.well form {
    width: 100%;
    box-sizing: border-box;
}

.search.well .pull-right {
    float: right;
    clear: right;
}

#ticketTable {
    max-width: 100%;
    table-layout: auto;
    box-sizing: border-box;
    margin: 0 auto;

}

#ticketTable th,
#ticketTable td {
    box-sizing: border-box;
    word-wrap: break-word;
}

h1 {
    overflow: hidden;
    width: 100%;
}

h1 .pull-right {
    float: right;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .search.well .flush-left {
        display: block;
    }

    .search.well form {
        margin-bottom: 10px;
    }

    .search.well .pull-right {
        float: none;
        clear: both;
        margin-top: 10px;
    }

    h1 {
        text-align: center;
    }

    h1 .pull-right {
        float: none;
        clear: both;
        text-align: center;
        margin-top: 10px;
    }

    #ticketTable th:nth-child(5),
    #ticketTable td:nth-child(5) {
        display: none;
    }

    #ticketTable {
        font-size: 14px;
    }

    #ticketTable th,
    #ticketTable td {
        padding: 8px 4px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 5px;
    }

    /* Hide date column on very small screens */
    #ticketTable th:nth-child(2),
    #ticketTable td:nth-child(2) {
        display: none;
    }

    /* Make search input full width */
    .search.well input[type="text"] {
        width: 100%;
        margin-bottom: 10px;
        box-sizing: border-box;
    }

    .search.well select {
        width: 100%;
        box-sizing: border-box;
    }

    #ticketTable {
        font-size: 12px;
    }

    #ticketTable th,
    #ticketTable td {
        padding: 6px 2px;
    }
}