.multi-sensor-value-widget {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    color: white;
    padding: 1rem 0;
    box-sizing: border-box;
}

.multi-sensor-value-widget .widget-name {
    text-align: left;
    font-size: 1.25rem;
    white-space: nowrap;
    overflow: hidden;
   text-overflow: ellipsis;
}

.multi-sensor-value-widget .sensor-list {
    flex: 1;
    overflow-y: auto;
    width: 100%;
}

.multi-sensor-value-widget .sensor-row {
    display: flex;
    justify-content: space-between;
}

.multi-sensor-value-widget .sensor-row-name {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.multi-sensor-value-widget .sensor-row-value {
    font-size: 0.95rem;
}

.widget-template.multi-sensor-value {
    width: 40vmin;
    height: 20vmin;
}

.sensor-config-table {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.multi-sensor-customization .widget-customize-panel {
    min-width: 420px;
    /* keep panel visible above the footer */
    max-height: calc(var(--app-height) * 0.9 - var(--footer-height) - var(--footer-gap));
    overflow-y: auto;
}

@supports (height: 100dvh) {
    .multi-sensor-customization .widget-customize-panel {
        max-height: calc(90dvh - var(--footer-height) - var(--footer-gap));
    }
}

.sensor-config-row {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.sensor-config-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sensor-config-label {
    flex: 2;
/*    min-width: 0;*/
    min-width: 300px;
    margin-bottom: 0 !important;
}

/* added -- */
.margin-bottom-0 {
    margin-bottom: 0 !important;
}

#multi-sensor-unit-select {
    width: 300px;
}

.number-input {
    width: 50px !important;
}
/* -- added*/

.add-sensor-row {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.sensor-config-select {
    flex: 2;
    min-width: 0;
}

.sensor-config-row select.small-select {
    flex: 0 0 7rem;
    padding: 0.4rem;
}

.sensor-config-row input[type="number"],
.sensor-config-row input[placeholder="Suffix"] {
    flex: 0 0 5rem;
}

.sensor-config-value {
    flex: 0 0 5rem;
    text-align: right;
}

.move-sensor-button {
    background: none;
    border: none;
    color: #aaffff;
    cursor: pointer;
}

.move-sensor-button:hover {
    color: #00ffff;
}

.remove-sensor-button {
    background: none;
    border: none;
    color: #ff7777;
    cursor: pointer;
}

.remove-sensor-button:hover {
    color: #ff0000;
}

.sensor-search-list {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.3rem;
    padding: 0.3rem 0.5rem;
    margin-top: 0.4rem;
    max-height: 8rem;
    overflow-y: auto;
    font-size: 0.9rem;
}

.sensor-search-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.sensor-search-item:hover {
    background: rgba(255, 255, 255, 0.1);
}





/* === MEDIA === */

/* Mobile  */

@media (max-width: 699px) {
    .multi-sensor-customization .widget-customize-panel {
        min-width: unset;
    }

    .multi-sensor-value-widget .widget-name {
        font-size: 0.95rem;
    }
}

/* WVGA / WVGA-Narrow (720x480, 800x480) */

@media (min-width: 700px) and (max-width: 880px) {
}

/* WSVGA / XGA (1024x600, 1024x768) */

@media (min-width: 881px) and (max-width: 1150px) {
    .multi-sensor-value-widget .widget-name {
        font-size: 0.95rem;
    }
}

/* WXGA / HD720 / SXGA (1280x720/800/1024) */

@media (min-width: 1151px) and (max-width: 1600px) {

    .multi-sensor-value-widget .widget-name {
        font-size: 0.95rem;
    }
}

/* HD / WUXGA (1920x1080, 1920x1200) */

@media (min-width: 1601px) and (max-width: 2879px) {
    /* standard styles */
}

/* 4K (3840x2160) */

@media (min-width: 2880px) {

    .multi-sensor-value-widget .widget-name {
        font-size: 2rem;
    }
}