div.glossary-container ul.firstUL {
    padding: 0;
    margin: 10px auto 0 auto;
    display: block;
}

div.glossary-container ul.firstUL li {
    display: inline;
    font-size: 12pt;
    font-weight: bold;
    padding: 4px 8px !important;
    cursor: pointer;
    width: auto !important;
    margin: 0;
}

div.glossary-container ul.firstUL li.selected {
    color: #fff;
    background: #999;
}

div.glossary-container ul.firstUL li:hover {
    color: #fff;
    background: #999;
}

div.glossary-container ul.firstUL li#all.selected {
    background: #000;
    color: #fff;
}

div.glossary-container ul.firstUL li#all:hover {
    background: #000;
    color: #fff;
}

div.glossary-container ul.firstUL li#all {
    background: #fff;
    color: #000;
}

div.glossary-container ul {
    padding: 0;
    margin: 0 auto;
    display: block;
}

div.glossary-container ul li {
    display: inline-block;
    font-size: 12pt;
    font-weight: bold;
    padding: 4px 8px !important;
    cursor: pointer;
    width: auto !important;
    margin: 0 0 0 0;
}

div.glossary-container ul li.selected {
    color: #fff;
    background: #999;
}

div.glossary-container ul li:hover {
    color: #fff;
    background: #999;
}

div.glossary-container {
    display: block;
    width: 100%;
    margin: 0 auto;
    padding: 20px 10px 10px 10px;
    border: 1px solid #ccc;
}

div.stewards-container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.stewards-table {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    border: none;
}

.stewards-table tr td {
    border-bottom: 1px solid #ccc;
    padding: 8px 0;
    vertical-align: middle;
}

.table-heading {
    background: #f5f5f5;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 10pt;
}

.table-heading.fixed {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    left: 0;
    padding-left: 20px;
    padding-right: 20px;
}

.stewards-table thead tr td {
    font-weight: bold;
    vertical-align: middle;
}

label {
    padding: 10px 0;
}

/* Select menu styling */
select#program {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid #ccc;
    background: #fff;
    padding: 10px 40px 10px 15px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: inline-block;
    position: relative;
}

/* Add dropdown arrow */
select#program {
    background-image: linear-gradient(45deg, transparent 50%, #333 50%),
    linear-gradient(135deg, #333 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 2px),
    calc(100% - 15px) calc(1em + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

/* Hover and focus states */
select#program:hover {
    border-color: #666;
}

select#program:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    div.glossary-container ul li {
        font-size: 10pt;
        padding: 4px 6px !important;
        margin: 0 2px 2px 0;
    }

    .table-heading {
        display: none;
    }

    .stewards-table thead {
        display: none;
    }

    .stewards-table tr td {
        display: block;
        border-bottom: none;
        padding: 6px 0;
    }

    .stewards-table tr td:before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        text-transform: uppercase;
        font-size: 10pt;
        margin-bottom: 3px;
    }

    .stewards-table tr {
        border-bottom: 1px solid #ccc;
        padding-bottom: 10px;
        margin-bottom: 10px;
        display: block;
    }
}