/* Persistent input history dropdowns for #buttonStudentName and #buttonOther */

.history-input-wrapper {
    position: relative;
    display: block;
    flex: 1;
    z-index: 99999;
}

.history-input-wrapper input {
    text-align: left;
}

.history-list,
.history-list * {
    box-sizing: border-box !important;
}

.history-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 4px 0 0 0 !important;
    padding: 0 !important;
    list-style: none;
    background: #ffffff;
    border: 1px solid #c9d6d3;
    border-radius: 6px;
    max-height: 160px !important;
    overflow-y: auto !important;
    z-index: 99999;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    text-align: left;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 15px;
}

.history-list.open {
    display: block;
}

.history-list li {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    cursor: pointer;
    color: #16332e;
    white-space: nowrap;
    text-align: left;
    flex-shrink: 0;
}

.history-list li:hover {
    background: #eef6f4;
}

.history-list .history-text {
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.history-list .history-delete {
    margin-left: 8px !important;
    padding: 0 4px !important;
    color: #9aa8a5;
    font-weight: bold;
    line-height: 1.3 !important;
}

.history-list .history-delete:hover {
    color: #c0392b;
}

.history-list .history-empty {
    padding: 6px 10px !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    color: #9aa8a5;
    font-style: italic;
    cursor: default;
}
