/* Hide number input spinners for UnitFloatingFilter */
#unitMin::-webkit-outer-spin-button,
#unitMin::-webkit-inner-spin-button,
#unitMax::-webkit-outer-spin-button,
#unitMax::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#unitMin,
#unitMax {
    -moz-appearance: textfield;
}

#grid {
    height: 90vh;
    width: 100%;
}

.lamp-img {
    max-width: 50px;
    max-height: 32px;
}

/* Modal styles */
#columnOptionsModal {
    display: none;
    position: fixed;
    top: 80px;
    left: 50px;
    background: #fff;
    border: 1px solid #ccc;
    padding: 16px;
    z-index: 1000;
}

.col-group {
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

.col-group-header {
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.col-group-toggle {
    font-size: 16px;
    width: 18px;
    text-align: center;
    user-select: none;
}

.col-group-children {
    margin-left: 16px;
    display: none;
}

.col-group-children.expanded {
    display: block;
}

.fa-header {
    font-family: 'Font Awesome 6 Free', 'FontAwesome', sans-serif;
    font-weight: 900;
    font-size: 18px;
    text-align: center;
}

.array-typeahead-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.array-typeahead-input {
    border: 1px solid #ccc;
    outline: none;
    flex: 1;
    min-width: 80px;
    max-width: 140px;
    height: 22px;
    font-size: 13px;
    line-height: 18px;
    padding: 2px 6px;
    box-sizing: border-box;
    resize: none;
    margin-left: 8px;
    margin-right: 2px;
    vertical-align: middle;
    overflow:hidden;
}

.array-typeahead-color-picker {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    margin-left: 0;
    margin-right: 8px;
    vertical-align: middle;
    display: inline-block;
}

.array-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
}

.array-tag {
    background: #e1ecf4;
    color: #39739d;
    border-radius: 2px;
    padding: 2px 6px;
    font-size: 13px;
    margin: 2px 2px 2px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.remove-tag {
    background: none;
    border: none;
    color: #39739d;
    font-size: 14px;
    margin-left: 4px;
    cursor: pointer;
}

.array-suggestions {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 10;
    min-width: 160px;
    max-height: 180px;
    overflow-y: auto;
    /*display: none;*/
    z-index: 100;
}

input.unit-floating-filter {
    width: 24px;
}

.suggestion-item {
    padding: 6px 12px;
    cursor: pointer;
}

.suggestion-item:hover {
    background: #e1ecf4;
}

#searchBox {
    width: 300px;
}

/*!* Fix AG Grid header and row heights *!*/
/*.ag-theme-alpine .ag-header {*/
/*    height: 32px !important;*/
/*}*/

/*.ag-theme-alpine .ag-header-row {*/
/*    height: 32px !important;*/
/*}*/

/*.ag-theme-alpine .ag-row {*/
/*    height: 32px !important;*/
/*}*/

/*.ag-theme-alpine .ag-cell {*/
/*    line-height: 30px !important;*/
/*    padding-top: 1px !important;*/
/*    padding-bottom: 1px !important;*/
/*}*/

