/* Base styles (desktop/laptop) */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 20px;
}

input, select {
    padding: 8px;
    margin: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;  /* Remove top margin */
    margin-bottom: 0;  /* Remove bottom margin */
}

th, td {
    padding: 12px;  /* Increased padding for more space around text */
    border: 1px solid #ddd;
    text-align: center;
}

th {
    background-color: #f4f4f4;
}

thead {
    margin-bottom: 0;  /* Ensure no bottom margin in the table header */
}

tr {
    margin: 0;  /* Ensure no gap between table rows */
}

/* Fixed width for transcription text */
.transcription-text {
    font-family: monospace;
    white-space: pre-wrap;
    max-width: 400px;
    text-align: center;
    padding: 10px

}

.expandable-row {
    display: none;
}

.expandable-content {
    background-color: #f9f9f9;
    padding: 10px;
    text-align: left;
    white-space: pre-wrap;
}

.header-controls {
    margin-bottom: 10px;  /* Reduced bottom margin to pull table closer */
    padding-bottom: 0;  /* Remove unnecessary padding */
}

button {
    padding: 5px 10px;
    cursor: pointer;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
}

button:hover {
    background-color: #0056b3;
}

/* Dropdown fixes for background color and text */
.header-controls select#system-filter,
.header-controls select#dispatch-filter {
    background-color: #444444 !important;  /* Force dark background */
    color: #ffffff !important;             /* White text */
    border: 1px solid #666666 !important;  /* Dark border */
    padding: 6px 12px !important;          /* Adjust padding */
}

/* Force the underlying multiselect button to use our header style */
.multiselect.btn-group .btn {
    background-color: #444444 !important;  /* Dark background */
    color: #ffffff !important;             /* White text */
    border: 1px solid #666666 !important;  /* Dark border */
}

/* When the dropdown is open, force the container to use the same dark gray background with white text */
.multiselect-container {
    background-color: #444444 !important;
    color: #ffffff !important;
    border: 1px solid #666666 !important;
}

.multiselect-container li a {
    color: #ffffff !important;
}

/* Set hover state for dropdown options to a slightly lighter gray */
.multiselect-container li a:hover {
    background-color: #555555 !important;
    color: #ffffff !important;
}

/* Hide any extra dropdown caret from the multiselect controls */
.multiselect .caret {
    display: none !important;
}

/* Responsive adjustments for portrait cell phones */
@media (max-width: 480px) {
    body {
        margin: 10px;
        padding: 0 5px;
    }

    input, select, button {
        font-size: 1em;
    }

    /* Hide table headers */
    thead {
        margin-bottom: 0;
        display: block; /* Ensure table header is not hidden */
    }

    /* Make each row a block */
    table, tbody, tr, td {
        display:
