.fuses-widget {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    color: white;
    box-sizing: border-box;
}

.fuses-list {
    flex: 1;
    overflow-y: auto;
}

.module-row {
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0.5rem;
}

.module-header {
    width: 100%;
    padding: 0.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.module-header-actions {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 0.5rem;
}

.module-header-left {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.toggle-module {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
}

.module-name {
    max-width: 90%;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.module-fuses {
    display: flex;
    flex-wrap: wrap;
    padding: 0.25rem;
    gap: 0.25rem;
}

.fuse-entry {
    margin-right: 1vh;
}

.fuse-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4vh;
    height: 4vh;
    border-radius: 50%;
    font-weight: 600;
    flex-shrink: 0;
}

.fuse-circle.on {
    background-color: #00E5E2;
    color: #111111;
    font-weight: 300;
}

.fuse-circle.off {
    background-color: #E32940;
    color: #111111;
    font-weight: 300;
}

.fuses-widget .reset-fuses-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    cursor: pointer;
}

.reset-fuses-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.module-details {
    padding: 0 1vh 0.5vh;
}

.fuse-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem;
    gap: 1rem;
}

.fuse-detail-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.forced-indicator {
    background: rgba(255, 217, 0, 0.2);
    color: #FFD900;
    padding: 0 1vh;
    border-radius: 0.3vh;
    font-size: 80%;
    font-weight: 300;
    align-self: center;
    display: inline-flex;
    justify-content: center;
}

.blown-indicator {
    background: rgba(227, 41, 64, 0.2);
    color: #E32940;
    padding: 0 1vh;
    border-radius: 0.3vh;
    font-size: 80%;
    font-weight: 300;
    align-self: center;
}

.fuse-detail-name, .fuse-detail-current {
    text-align: left;
    font-size: 0.95rem;
}





/* === MEDIA === */

/* Mobile  */

@media (max-width: 699px) {
    .module-header {
        flex-direction: column;
        align-items: start;
        gap: 0.5rem;
    }

    .module-fuses {
        padding: 0;
    }
}

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

@media (min-width: 700px) and (max-width: 880px) {
    .module-header {
        flex-direction: column;
        align-items: start;
        gap: 0.5rem;
    }

    .module-fuses {
        padding: 0;
    }
}

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

@media (min-width: 881px) and (max-width: 1150px) {
    .module-row {
        gap: 0.5rem;
    }

    .toggle-module {
        font-size: 0.95rem;
    }

    .module-name {
        font-size: 0.95rem;
    }

    .fuses-widget .reset-fuses-button {
        font-size: 0.85rem;
    }

    .fuse-circle {
        font-size: 0.95rem;
    }
}

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

@media (min-width: 1151px) and (max-width: 1600px) {
    .module-row {
        gap: 0.5rem;
    }

    .toggle-module {
        font-size: 0.95rem;
    }

    .module-name {
        font-size: 0.95rem;
    }

    .fuses-widget .reset-fuses-button {
        font-size: 0.85rem;
    }

    .fuse-circle {
        font-size: 0.95rem;
    }
}

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

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

/* 4K (3840x2160) */

@media (min-width: 2880px) {

    .module-row {
        gap: 1rem;
    }

    .toggle-module {
        font-size: 2rem;
    }

    .module-name {
        font-size: 2rem;
    }

    .fuses-widget .reset-fuses-button {
        font-size: 1.75rem;
    }

    .fuse-circle {
        font-size: 2rem;
    }
}