/* Popup Styling */
.popup-preheader {
    display: grid;
    grid-template-columns: 140px 70px 90px 90px 80px; /* Adjust widths as needed */
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 5px;
    font-size: 0.9em;
    align-items: center;
}

.header-spacer {
    /* Spans Index, Icon, Type */
    /* In the header row: 30px + 30px + 80px = 140px */
}

.popup-entries {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

.popup-entries li {
    margin-bottom: 2px;
}

.popup-header {
    display: grid;
    grid-template-columns: 30px 30px 80px 70px 90px 90px 80px;
    align-items: center;
    background-color: #eef2fc; /* Light blue/lavender */
    padding: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.popup-header:hover {
    background-color: #dbe4fa;
}

.header-index {
    text-align: center;
    font-size: 0.9em;
    color: #555;
}

.header-icon {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-txt {
    font-weight: bold; /* Type Name Bold */
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-val {
    text-align: right;
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Expanded Detail View */
.popup-entry {
    padding: 10px;
    background-color: #fff;
    border: 1px solid #eef2fc;
    border-top: none;
    display: flex;
    flex-direction: column;
}

.detail-row {
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between; /* Or start, depending on preference */
    border-bottom: 1px solid #eee;
    padding-bottom: 2px;
}

.detail-label {
    font-weight: bold;
    color: #333; /* Dark gray/black */
    margin-right: 10px;
}

.detail-value {
    color: #000; /* Standard black */
    text-align: right;
}

.red-bold {
    color: red;
    font-weight: bold;
}

.blue-bold {
    color: blue;
    font-weight: bold;
}

.smaller {
    font-size: 0.85em;
    color: #666;
}

/* Sort arrows */
.sort-arrow {
    cursor: pointer;
    margin-left: 2px;
    font-size: 0.8em;
}
