#results-container {
    display: none;
    max-width: 1200px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#resultsBody {
    background: transparent;
}

#results-container.many-courts #resultsBody {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
        url('jpg/3.jpg');
    background-size: 100% 100%, 100% auto;
    background-position: top center, top center;
    background-repeat: no-repeat, repeat-y;
}

.results-table {
    width: 100%;
    font-family: "Roboto Mono", monospace;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 20px rgba(79, 255, 65, 0.27);
}

.results-table th,
.results-table td {
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.results-table th {
    background-color: #4CAF50;
    color: white;
    text-transform: uppercase;
    text-shadow:
        1px 1px 0 #388E3C,
        2px 2px 0 #2E7D32,
        3px 3px 0 #1B5E20,
        4px 7px 5px rgba(0, 0, 0, 0.4);
}

.results-table tr:hover {
    background-color: #9FF18E;
}

.book-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

.book-link:hover {
    text-decoration: underline;
}

th.sortable {
    cursor: pointer !important;
    user-select: none !important;
    position: relative !important;
    padding-right: 20px;
}

th.sortable::after {
    content: '\25B2\25BC';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    z-index: 2;
}

/*(▲) */
th.sortable.sort-asc::after {
    content: '\25B2';
    opacity: 1;
}

/* (▼) */
th.sortable.sort-desc::after {
    content: '\25BC';
    opacity: 1;
}

th.sortable::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer !important;
    z-index: 1;
}

.tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    cursor: help;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #2196F3;
    color: white;
    font-size: 12px;
    font-weight: bold;
    font-family: sans-serif;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.tooltip-text {
    visibility: hidden;
    width: 260px;
    white-space: normal;
    background-color: #23272a;
    color: #fff;
    text-align: left;
    border-radius: 8px;
    padding: 10px 14px;
    position: absolute;
    z-index: 9999999 !important;
    bottom: 130%;
    right: 0;

    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 10px;
    border-width: 6px;
    border-style: solid;
    border-color: #23272a transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

tr:hover,
td:hover,
.tooltip-container:hover {
    z-index: 9999 !important;
    position: relative;
}